页面

2008-09-22

LaTex Tips

  1. Output as PDF:
    $ latex -output-format=pdf -shell-escape foo.tex
  2. Get current job's path information with package 'fink'. After having created fink.sty in terms of the fink manual, move it here (debian lenny):
    $ cp /thesis/fink.sty /usr/share/texmf-texlive/tex/latex/fink/fink.sty

  3. Suppress automatically section numbering:
    \section*{1 Manually numbering section}
  4. Reset page number to 1:
    \setcounter{page}{1}
  5. Comment content (3 methods):
    1. % annotation
    2. \begin{comment} lines of annotations \end{comment}
    3. \newcommand{\mycomment}[1]{}
  6. Debug output:
    \typeout{msg}

  7. Create nomenclature (i.e. glossary):
    1. \documentclass{article}
      \usepackage{nomencl}
      \makenomenclature
      \begin{document}
      \nomenclature{$\sigma$}{The total mass of angels per unit area}
      \printnomenclature
      \end{document}

    2. $ latex my_article.tex
      $ makeindex my_article.nlo -s nomencl.ist -o my_article.nls

没有评论: