Advertisement
Guest User

thing.cfg

a guest
Nov 9th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.04 KB | None | 0 0
  1. \Preamble{xhtml}
  2.  
  3. % Enable png graphics in html.
  4. \Configure{graphics*}
  5.  {png}
  6.   {%
  7.     \Picture[pict]{\csname Gin@base\endcsname .png
  8.              \space width="\expandafter\the\csname Gin@req@width\endcsname"
  9.    }%
  10.   }
  11.  
  12. % Number paragraphs.
  13. \setcounter{secnumdepth}{4}
  14.  
  15. % Make a TOC in sections for subsection, subsubsection, and paragraph.
  16. \TocAt{section,subsection,subsubsection,paragraph}
  17.  
  18. \begin{document}
  19.  
  20.  % Nav bar
  21. \Configure{crosslinks}
  22.   {\HCode{<span class="navarrows">}[}
  23.      {]\HCode{</font></span>}}
  24.      {Next $\scriptstyle\Rightarrow$}
  25.   {Prev $\scriptstyle\Leftarrow$}
  26.   {}{}{}{Up $\scriptstyle\Uparrow$}
  27.  
  28. % Around Nav bar
  29. \Configure{crosslinks+}
  30.     {\HCode{<H2>}\textit{Gazprea} Spec\HCode{</H2>}} % Before top
  31.     {}{}{}
  32.  
  33. \makeatletter
  34. \renewcommand{\href}[2]{\bgroup\let~\H@tilde%
  35.   \Link[#1 target="_blank"]{}{}%
  36.   {#2}\egroup\EndLink}%
  37. \makeatother
  38.  
  39. % Front page title
  40. \HCode{<H2>}\textit{Gazprea} Spec\HCode{</H2>}
  41.  
  42. % Front page ToC.
  43. \Configure{tableofcontents*}{section,subsection}
  44.  
  45. \EndPreamble
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement