additional (La)TeX links
By default, TeX and friends will look for a file in the following locations (in order):
The defaults are set in the file texmf.cnf (in our system, the complete path is /usr/share/texmf/web2c/texmf.cnf).
If you want to install a tex file, copy it in a suitable subdirectory of ~/texmf (e.g., you will copy a Latex .sty file in a subdirectory of
~/texmf/tex/latex/), and then re-build the database, using the comand texhash . from inside ~/texmf (note the dot).
Suppose now that you want to modify the search path.
We will consider the following case: you want tex to search (in order) your texmf directory, the texmf directory of the user fornasiero (me), and then the "system" texmf directories.
Of course, we will assume that you can read the contents of the directory /home/fornasiero/texmf.
You have to set the system variable $TEXMF.
Assume that your home is /home/pippo.
With the value
TEXMF= {!!/home/pippo/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}
you obtain the default behaviour described above.
You have to modify TEXMF, and obtain:
TEXMF= {!!home/pippo/texmf,!!/home/fornasiero/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}
Method: for a temporary change, write (on you shell: we will assume that you use the bash shell)
export TEXMF='{!!$HOME/texmf,!!/home/fornasiero/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}'
for a permanent change, add the above line to your .bashrc file (it should be in your home directory; if it is not there, create one containing the above line).
\usepackage[british]{babel}
\usepackage[nice]{nicefrac}
\begin{enumerate}[{punto }a.]I for roman etc.\renewcommand{\enumi}{punto \alph{enumi}}
\xspace
\textfrak and \textswab
\letterspace to 1.5\naturalwidth{abcdefghijklmnopqrstuvwxyz}
\newtheorem
\usepackage[hypertex,colorlinks=true]{hyperref}
\usepackage[active]{srcltx}
\usepackage[sections,floats,textmath,displaymath]{preview}
\usepackage[notref]{showkeys}
\DeclareFontFamily{OT1}{pzc}{}
\DeclareFontShape{OT1}{pzc}{m}{it}%
{<-> s * [0.900] pzcmi7t}{}
\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}%
{m}{it}
Zapf Chancery is the standard PostScript calligraphic font.
Allows to use the command \mathpzc for calligraphic letters
(uppercase and lowecase) in math mode.
s* means silently
the number in [] is the magnification factor (default 1).
\fontfamily{pzc}\selectfont to switch to Zapf Chancery in normal text;
$\mathpzc{text}$ to use Zapf Chancery inside math mode.
\renewcommand\@makefnmark{\@textsuperscript{\normalfont(\@thefnmark)}}
\renewcommand{\@pnumwidth}{1.75em}
\renewcommand{\@tocrmarg}{2.75em}
redefine the page number width in the toc,
in order to avoid overflowing
\newcommand{\rst}[1]{\ensuremath{{\mathbin\upharpoonright}%
\raise-.5ex\hbox{$#1$}}}
define the \rst command.
\rst{A} print something like |A,
with the A slightly lowered.
$f\rst{A}$ should mean the function f restricted to the set A.
\newcommand{\unover}[1]{\ensuremath{%
\frac{\raisebox{-.1ex}{\ensuremath{1}}}%
{\raisebox{.2ex}{\ensuremath{#1}}}}}
define \unover\unover{x} prints a better looking fraction 1/x
to be used in display math mode
\newcommand{\unosu}[1]{\ensuremath{\mathchoice%
{\unover{#1}}% display math mode
{\nicefrac{1}{#1}}% in-line math mode
{\nicefrac{1}{#1}}% scriptstyle
{\nicefrac{1}{#1}}}}% scriptscriptstyle
define \unosu\unsosu{x} print a better version of 1/x
uses the package nicefrac
\ensuremath{formula}\newcommand[2][normal]{\pippo}{text #1 #2d}\pippo[first]{second}\providecommand{\pippo}{something}\pippo,
if it does not already exists;
otherwise, does nothing
\renewcommand{\pippo}{something}\pippo,
if it does not already exists;
otherwise, gives error
\input{nomefile}\include{nomefile}\include inside an included file
(bu you can use \input instead)
\includeonly{file1,file2}(in the preamble)\include
However, it keeps page numbering and labels
as if all files were included
\makeindex \makeglossary (in the preamble)\printindex (in the text)\index{$\exp$|see{exponential}} (in the text, at any point, better at the beginnig)\index{$\exp$}(in the text) \index{length!common}\index{exponential|(} many pages of text ... text \index{exponential|)}\mathbf\mathsf\mathit\mathtt\mathrm\mathfrak\mathcal\mathbb\mathpzc\text\textit\textsl\textbf\texttt\textsc\textsf\emph\tiny\scriptsize\footnotesize\small\normalsize\large\Large\LARGE\huge\Huge\mathord\mathop\mathbin\mathopen \mathclose\mathpunct\left \middle \right\bigl \bigm \bigr\newcommand{\paren}[1]{\ensuremath{\left(#1\right)}}\newcommand{\Paren}[1]{\ensuremath{\bigl(#1\bigr)}}\newcommand{\squares}[1]{\ensuremath{\left[#1\right]}}\newcommand{\Squares}[1]{\ensuremath{\bigl[#1\bigr]}}\label{labelname}\ref{labelname}\cite{labelname}\bibliography{surreals}\bibliographystyle{abbrv}\nocite{label1,label2}\nocite{*}bibtex filename.tex
\tableofcontents\addcontentsline{toc}{chapter}{Index}
\clearpage
\addcontentsline{toc}{chapter}{Index}
\printindex
will create an index and put the entry Index 117 in the Table of Contents (if, say, the index appears at page 117).
You might want to use \cleadoublepage instead of \clearpage. Sometimes, no \clearpage is needed.
\hyphenation{Ar-chi-me-dean De-de-kind sche-ma-ta}\def\hyph{\nobreakdash-\hspace{0pt}\relax} \hyph command (using the amsmath package).
\hyph prints a hyphen that does not prevent hyphenation.
non\hyph Archimedean $p$\hyph adic
prints non-Archimedean p-adic and can be now hyphenated normally
\show\commandname\xspace\newcommand{\namely}{namely\xspace}\namely x=y\namely, x=y\xspace there is a point:
TeX puts some extra space after a point. You can either use
\frenchspacing to get rid of this space everywhere. Or you can disable
it with \newcommand{\ie}{i.e.\@\xspace} or
\newcommand{\ie}{i.e\mbox{.}\xspace}
Ulrike Fischer.
Please write me if you have suggestions, find mistakes and/or some links are not working.Last modified: Mon Jan 9 12:02:43 CET 2012 by A. Fornasiero