Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
useful latex commands for a journal article
% sections and subsections and subsubsections
\newcounter{ms}
\newcounter{mss}
\newcounter{msss}
\newcommand{\mysection}[1]{\stepcounter{ms}\noindent\textbf{\arabic{ms}. {#1}}\setcounter{mss}{0}\\}
\newcommand{\mysubsection}[1]{\stepcounter{mss}\noindent\textbf{\arabic{ms}.\arabic{mss}. {#1}}\setcounter{msss}{0}\\}
\newcommand{\mysubsubsection}[1]{\stepcounter{msss}\noindent\textbf{\arabic{ms}.\arabic{mss}.\arabic{msss}. {#1}}\\}
\setcounter{ms}{0}
\setcounter{mss}{0}
\setcounter{msss}{0}
% figure numbers
\newcommand{\fign}[1]{FIG. {#1}}
% endnotes
\newcounter{enc}
\newcommand{\enote}{\stepcounter{enc}\textcolor{blue}{[\arabic{enc}]}} % add an endnote
\newcommand{\num}{\textcolor{blue}{[\arabic{enc}]}} % reference the last endnote created
\setcounter{enc}{0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment