Thursday, October 20, 2011
When writing my thesis i faced a problem, how to avoid displaying Appendix section from TOC, i found a coding solution in StackOverflow.com and i modified it to allow up to 3 levels.
Just add these Command after the preamble of your document and use them as following:\newcommand{\hiddensection}[1]{
\stepcounter{section}
\subsection*{\arabic{section}\hspace{1em}{#1}}}\newcommand{\hiddensubsection}[1]{
\stepcounter{subsection}
\subsection*{\arabic{section}.\arabic{subsection}\hspace{1em}{#1}}}
\newcommand{\hiddensubsubsection}[1]{
\stepcounter{subsubsection}
\subsection*{\arabic{section}.\arabic{subsection}.\arabic{subsection}\hspace{1em}{#1}}}
Now you can use the new commands as following:
\hiddensection{Sectionname}instead of
\section{SectionName}instead of
\hiddensubsection{SubSectionName}\subsection{SubSectionName}\hiddensubsubsection{SubSubSectionName}
instead of\subsubsection{SubSubSectionName}
Labels: Latex , Technology
Monday, October 03, 2011
To allow good Appendix table of content view and writing professional documents, follow this piece of code:
Note that , appendix1 and appendix2 is a normal .tex files like any chapter files start with \chapter and contains sections
\usepackage[titletoc]{appendix}
\begin{document} \begin{appendices}\include{appendix1}
\include{appendix2}
\end{appendices}
\end{document}
Subscribe to:
Posts
(
Atom
)