Difference between revisions of "Miscellaneous LaTeX notes"

From Notes_Wiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>LaTeX</yambe:breadcrumb>
[[Main Page | Home]] > [[LaTeX]] > [[Miscellaneous LaTeX notes]]
=Miscellaneous LaTeX notes=


==Per chapter table of contents==
==Per chapter table of contents==
Line 29: Line 28:




<yambe:breadcrumb>LaTeX</yambe:breadcrumb>
==Paragraph and sub-paragraph numbering==
 
To enable numbering for paragraph and sub-paragraph use:
<pre>
  \setcounter{secnumdepth}{5}
</pre>
 
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:
<pre>
  #+LATEX_HEADER: \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
</pre>
 
Then something similar to
<pre>
  \textcolor{violet}{\textbf{Page \thepage}}
</pre>
 
 
 
[[Main Page | Home]] > [[LaTeX]] > [[Miscellaneous LaTeX notes]]

Latest revision as of 06:06, 18 April 2022

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