Tuning
The following is not neccesary for getting a running system. It should
not be carried out if your system cannot go through the test after the installation. It is a more experimental
section, and is is biased towards my preferences, so you should pick
the steps you like. I have not documented the intructions in great
detail, so you will need to be an advanced user of windows. If you
think I can improve then instructions, feel free to contact me.
The uninstall instructions do not
cover all of the additions described here.
Adding packages to Miktex
The intention is that the localtexmf directory be the root of
the place where all local files (e.g., .sty and .bib files) (as
opposed
to Miktex package distributions) live. So local
.bib files go in localtexmf\bibtex
.sty files go in localtexmf\miktex\tex\latex
Each time you add a file to one of those directories, you must run
Miktex Options and select "Refresh Now" under file name database on
the general tab.
An example .emacs
This assumes that you have installed everything to c:\ as described
and have gone through most of the steps below. I have tried to write
explanations to most of the content, so you should be able to edit it
to your own needs. If you copy it, you will not need to do the 'insert
the following lines into your c:\.emacs' instructions below. Since
emacs will not startup properly with this .emacs until all
the packages are installed, some of the tests will fail.
- Unzip startup2.zip to c:\ (the value of HOME)
- Insert the commands you wish from the created file
".emacs.advanced" into your .emacs file.
Emacs shortcut (gnuserv)
The "Start in" sets the initial directory for Emacs. You can have
several shortcuts to Emacs with different "Start in" directories. Note
that ~/ will always be HOME.
The "Send to" enables rightclicking on any file and choosing "send to"
Emacs, which will cause the file to be opened by emacs.
File Associations (gnuserv)
Define or edit associations/actions for other file types, e.g. .bib,
.txt. The Edit action for the existing file type .html (called
"Microsoft HTML document 5.0" on my system) can be used by Internet
Explorer, so that when you choose "edit" from within IE, the file
opens in Emacs. After creating the edit action, open Internet
explorer, click Tools/Internet options. Choose the Programs tab and
gnuclientw should be in the list of HTML editors.
Inverse search in YAP
- In Yap, choose View/Options/Inverse Search, and in the Program field, choose "GNU Emacs (single instance)".
Letter paper
To get dvips to use letter-paper instead of A4, insert the following
line in the file c:\program files\texmf\dvips\config\config.ps
t letter
- Move lacheck.exe to
c:\program files\texmf\miktex\bin
Test: At a DOS prompt, run "lacheck file.tex", where
file.tex is a latex-file. It should spit out some suggestions. In
Emacs in latex-mode, choose the "Check" command from the Command menu.
Header
- Unzip header.zip to c:\program files\emacs\site-lisp\header
- Put the following line in c:\.emacs
(load "header")
Info manuals for AUCTeX and Ispell
When running 'info'-mode (C-h i) the entry 'AUCTeX' appears with the
AUCTeX manual.
Speeding up lisp
BIBINPUTS
- In your Autoexec.bat or System/environment, define the variable
BIBINPUTS pointing to the directory where you keep your .bib
files.
The BIBINPUTS is used by bib-cite which comes with auctex. Reftex also
uses it. However, Bibtex does not use it, so check the miktex local
guide for setting the searchpath for bibtex. (In a personal miktex.ini
file).
Math stuff
ESS (Emacs Speaks Statistics)
(to speed up ess, in Emacs, call C-u 0 M-x byte-recompile-directory
and choose c:\program files\emacs\site-lisp\ess\lisp).
Matlab mode
Support for Danish
Hyphenation
- In the Start menu, choose Programs/Miktex/Miktex options
- In the Languages tab, tick danish.
- Choose 'Refresh' and 'Update' from the Miktex Options menu.
Danish characters
- Unzip dk-support.zip to
c:\localtexmf\tex\latex\dk-support
- Choose 'Refresh' and 'Update' from the Miktex Options menu.
- In your .tex files, use \usepackage{dk}
Aalborg University Logo
- Unzip auclogo.zip to
c:\localtexmf\metafont (create the directory, if it does
not exist)
- Choose 'Refresh' from the Miktex Options menu.
- In your .tex files, use \font\auc = auclogo in the preamble and
then {\auc a}, {\auc b}, etc.
Danish dictionary for ispell
Test: In Emacs choose Edit/Spell/Select Dansk, and
then Edit/spell/check buffer.
Claus Dethlefsen
Last modified: Fri Sep 27 11:11:04 Romance Daylight Time 2002