Skip to content

Instantly share code, notes, and snippets.

@markuspoerschke
Created April 25, 2013 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markuspoerschke/5461704 to your computer and use it in GitHub Desktop.
Save markuspoerschke/5461704 to your computer and use it in GitHub Desktop.
Create a custom list for LaTeX. For my final paper for a degree as computer specialist I needed to add a glossary and a table of acronyms. I did not want to use a package. For this reason I looked for a simple solution: `\newenviroment` offers the possibility to define a custom list. Here is an Example on how to define a custom list.
% Custom list for glossary
\newenvironment{glossarydescription}{
\begin{list}{}{
\setlength{\labelsep}{0mm} % space before text.
\setlength{\labelwidth}{44mm} % width of the label.
\setlength{\leftmargin}{44mm} % adjust margin. same size as labelwidth.
\renewcommand{\makelabel}[1]{\textbf{##1\space}\dotfill\space} % \dotfill creates a line of dots. you can also use \hfill
}
}
{\end{list}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment