Latex tricks
November 22nd, 2023
- For Table, Figure and Equation references.
\documentclass[10pt,final,journal,twocolumn,letterpaper]{IEEEtran}
:
\newcommand{\fref}[1]{Fig.~\ref{#1}} % normally used for paper
%\newcommand{\fref}[1]{Figure~\ref{#1}} % normally used for report
\newcommand{\tref}[1]{Tab.~\ref{#1}} % normally used for paper
%\newcommand{\tref}[1]{Table~\ref{#1}} % normally used for report
\newcommand{\meqref}[1]{Eq.~\eqref{#1}}
\newcommand{\mb}{\mathbf}
\newcommand{\tsf}{\textsf}
:
% In the main latex report
\begin{document}
:
The system diagram is shown in \fref{fig:1relay} and it can be modelled using \meqref{eq:math_model}.
:
\end{document}
- Version for supervisor to check, use double spacing and single column
\documentclass[12pt,draftcls,onecolumn,peerreview]{IEEEtran} % example
\linespread{1.9} % this give double spacing
Recent Comments