Skip to content

Instantly share code, notes, and snippets.

Created December 21, 2012 11:11
Show Gist options
  • Save anonymous/4352188 to your computer and use it in GitHub Desktop.
Save anonymous/4352188 to your computer and use it in GitHub Desktop.
LaTeX: various width parameters of LaTeX, plus \hsize primitive
\documentclass[a4paper,twocolumn]{article}
\begin{document}
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\item \verb|\paperwidth| = \the\paperwidth.
\item \verb|\textwidth| = \the\textwidth.
\item \verb|\columnwidth| = \the\columnwidth.
\item \rule[.5ex]{\columnwidth}{.8pt}
\item \verb|\linewidth| = \the\linewidth.
\item \rule[.5ex]{\linewidth}{.8pt}
\item \verb|\hsize| = \the\hsize.
\item \rule[.5ex]{\hsize}{.8pt}
\item Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
\end{itemize}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment