Useful user-defined LaTeX commands

Reading time ~1 minute

This post collects certain useful LeTeX commands, mainly focusing on user-defined ones.

Efficient Commands to Representing a Path in a Graph

% The etoolbox package is a toolbox of programming tools geared primarily towards
% LaTeX class and package authors. It provides LaTeX frontends to some of the new
% primitives provided by e-TeX as well as some generic tools which are not related to
% e-TeX but match the profile of this package.
\usepackage{etoolbox}
\ifx\walk\undefined 
\makeatletter
\newcommand{\walk}[1]{
  \@tempswafalse
  \@for\next:=#1\do
    {\if@tempswa\!\!\rightarrow\!\!\else\@tempswatrue\fi\next}
}
\makeatother
\fi

Useful Linux Software

Ubuntu Software Installation Continue reading

How to add .sty file manually on Mac

Published on October 27, 2016