Miscellaneous LaTeX notes

From Notes_Wiki

Home > LaTeX > Miscellaneous LaTeX notes

Per chapter table of contents

If we want mini per-Chapter Table of contents before each chapter then we can use 'minitoc' package. When we use minitoc package we must use '\dominitoc' once before using '\tableofcontents' to initialize package. Then after each '\chapter{}' we can use '\minitoc' to generate per-Chapter mini table of contents.


Embedding fonts at compile time

To embed fonts in pdf at compile time (as required by IEEE, ACM, etc. papers) use 'updmap --edit' command and set

dvipsDownloadBase35 true
pdftexDownloadBase14 true
dvipdfmDownloadBase14 true

Note that sometimes default dvi viewer does not shows fonts correctly. In such cases use 'Okular' to see dvi files properly.


Hiding boxes around pdf exported using hyperref

Sometimes pdf exported using hyperref package have boxes around all links which is not desirable. To prevent box generation use:

\hypersetup{hidelinks}

command to change default configuration. One can also pass hidelinks option while including hyperref package to achieve same effect.


Paragraph and sub-paragraph numbering

To enable numbering for paragraph and sub-paragraph use:

   \setcounter{secnumdepth}{5}

Refer http://tex.stackexchange.com/questions/130795/how-can-i-number-sections-below-subsection-in-latex


Setting text-color in LaTeX

To set text-color in LaTeX use:

   #+LATEX_HEADER: \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}

Then something similar to

   \textcolor{violet}{\textbf{Page \thepage}}


Home > LaTeX > Miscellaneous LaTeX notes