Created
April 25, 2013 17:56
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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