Archive for March, 2006

LaTeX Tips from Practice

%A template of using the subfigure package

%%%%%%%%%%%%%%%%%%%figure-1%%%%%%%%%%%%%%%%%%%%
\begin{figure}[thbp]
\centerline{
\subfigure[subfigure title]{\label{figure-label 1-1}\includegraphics[width=.45\textwidth]{./figs/fig1-1}}
\hfill %stretch the white space between subfigures
\subfigure[subfigure title]{\label{figure-label 1-2}\includegraphics[width=.45\textwidth]{./figs/fig1-2}}}
\caption{Figure 1}\label{label 1}
\centerline{
\subfigure[subfigure title \label{figure-label 1-1 at title}]{\includegraphics[width=.45\textwidth]{./figs/fig1-1}}
\hfill %stretch the white space between subfigures
\subfigure[subfigure title \label{figure-label 1-2 at title}]{\includegraphics[width=.45\textwidth]{./figs/fig1-2}}}
\caption{Figure 1}\label{figure-label 1}
\end{figure}
%%%%%%%%%%%%%%%End of figure-1%%%%%%%%%%%%%%%%%

%use \autoref or \hyperref for hyperlinks with larger clickable regions

%sample 1
\autoref{figure-label 1} % a clickable region of “Figure 1″

%sample 2
% use \hyperref if you feel dissatisfied with \autoref
%for example \autoref cannot recognize the subfigure environment and correctly auto-complete the labels

\hyperref[figure-label 1-1]{Figure~\ref*{figure-label 1-1}}

%sample 3
%put this after the \usepackage[]{hyperref} command in the document preamble
%if you don’t like the “subsection” name for subsections

\renewcommand{\subsectionautorefname}{Section}

%Declare function names in math environment (instead of using \text{})

%In preamble
\DeclareMathOperator{\myFunction}{myFunction}

%List all References in the .bib file (regardless of their appearance in the text) 

\nocite{*}
% if this command is placed at the beginning of the document, then all items in the .bib file will be numbered according to their appearance in the .bib file, rather than the order they are cited in the text


2 comments March 23, 2006


Calendar

March 2006
M T W T F S S
« Feb   May »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Posts by Month

Posts by Category