create
a texmf directory for your LaTeX packages in your home directory:
$ cd /home/your-directory
$ mkdir texmf
Since I back up my texmf directory to a CD-ROM, I do the followings:
$ cd /etc
$ cat fstab [check dev for your cdrom and mount point.]
# mount /dev/cdrom /cdrom
# cd /cdrom/localtexmf
# cp -R tex /home/your-directory/texmf/
# mktexlsr [reconfiguring LaTeX.]
Customizing
To change default settings such as fonts size etc of
xdvi, See here.
You need to put srcltx.sty
(srctex.sty if you use plain TeX) to your latex package
directory. You also need to add the line \usepackge[active]{srcltx} to the preamble of your
LaTeX files. Don't forget to reconfigure your TeX by doing
$ mktexlsr.
Click with the middle bottom of the mouse on the kdvi screen, then a new instance will open to bring you to the tex file. C-x C-j doesn't work on my LaTeX.
Add the line below in the dot emacs file if you don't want a new instance open when doing forward searech in kdvi:
Go to Options > Customize Emacs > Top-level Customization Group > faces > Font Lock > Font Lock Faces group.
My current colour settings are:
comment: grey20 (foreground), grey50 (background)
string: medium sea green, nil
keyword: lemonchiffon4, nil
builtin: deepskyblue, nil
function-name: sandybrown, nil
variable-name: gf - deepskyblue, nil
type: lemonchiffon4, nil
constant: indanred, nil
warning: red3, nil
Settings for emacs21
To use your own colour for syntax-highlighting, put the following settings to dot emacs:
;; Fonts ---------------------
;; font-lock
(global-font-lock-mode 1)
;(setq global-font-lock-mode t) ; this command does not work on Meadow and I use the one above.
;; Speeding up loading files with use font-lock mode (only effective for emacs21)
(setq font-lock-support-mode 'jit-lock-mode)
The following settings for syntax-highlighting are to realise an image of 'chalk on blackboard' on the screen.
; +++ Syntax-highlighting for LaTeX mode +++ ;;
;; The followings are my own colour for syntax-highlighting.
;; The lines added by 03/01/04
# nkf -s < your-original-diary-file > diary [chage the character code of your diary file into Shift JIS ]
# mv diary /your-home-directory-of-meadow-on-windows-partition [move the diary file to a home directory of Meadow. The file system of the Windows partition should be in vfat.]
# ln -s /path-to-your-home-directory-of-meadow-on-windows-partition/diary /path-to-your-home-directory-on-linux/diary [link the diary file to a home directory of emacs on linux.]
Now you can share the diary file between meadow on Windows and emacs on Linux on the dual-boot machine.
(setq load-path (cons "/usr/local/share/emacs/site-lisp/mew/" load-path))
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)
(setq mew-icon-directory "/root/mew-3.3/etc/")
;; change path to where your mew.img is.
;; You can start Mew as a root usr without setting the above path, but you
;; need to set the load path for mew.img like above for non-root
users.
;; If you installed Mew by apt-get install, the path is '/usr/share/pixmaps/mew/'.
;; (setq mew-icon-directory "icon directory")
(if (boundp 'read-mail-command)
(setq read-mail-command 'mew))
;;; add D mark to doubled messages.
(setq mew-scan-form-mark-delete t)
Viewing URL from Mew by
Mozzila
(setq browse-url-browser-function 'browse-url-netscape)
(autoload 'browse-url-at-mouse "browse-url"
"Ask a WWW browser to load a URL clicked with the mouse." t)
(add-hook 'mew-message-mode-hook
(function
(lambda()
(local-set-key [mouse-2]
'browse-url-at-mouse))))
;; using mozilla instad of netscape;;
(setq browse-url-netscape-program "mozilla")
To send ccs to someone everytime you
send e-mails.
(setq mew-cc "your@e-mailaccount") [put
this line to your dot emacs file.]
To keep copies of outgoing mails in 'send' directory
in ~/Mail, add the following line to your dot emacs file.
(setq mew-fcc "+send")
Changing Mail directory
To change your Mail directory, use the followings:
(setq mew-conf-path "YOUR NEW DIRECTORY"
mew-mail-path "YOUR NEW DIRECTORY")
Leaving messages on the servers
Note that the line should not be in the dot emacs file. If do so, pop accont settings in
the dot.mew file conflict with it and Mew won't be able to reach the server.)
(setq mew-pop-delete nil)
Multiple-account settings
When changing from one to another account type i (retrieve
mails from a pop account.) then type capital c and a mini
buffer in which you can choose your accout will appear.
Fonthtml provides you with key bindings for font colours to work with html-helper-mode module.
Html-helper-mode does not have key bindings for font colour and
I create the file, Fonthtml, for me to use. You are welcome to copy and
modify the file for your own needs and if you could let me know your
modifications to improve Fonthtml, that will be greatly appreciated.
%%% Local Variables:
%%% mode: yatex
%%% TeX-master: t
%%% End:
***************************************
********* input files look like this **********
%#!latex master.tex
input files need the four lines below
in order to type set with yatex and also to generate
bibliography at the end of the whole document.
If you want to generate bibliography for your chapters which are included in the master file at the end of your whole document, you can do so only by typesetting the master file (not files for each chapter). So, if you are writing chapter 1 with chapter1.tex, you should go to master.tex and then type set this file.