[Tex/LaTex] How to align manually-typed list of abbreviation table (2 columns)

acronymsfront-matterthesis

I try to prepare my "list of abbreviation" for my thesis on a separate frontmatter page (namely "listofabbreviations"), so it will be easy to review and edit. It will have two columns and looks something like this:

TYT     Take your Time
TTYL    Talk to you Later

I want to learn how to align these two columns properly and efficiently for dozens of rows in total. I know people recommend to use nomencl and glossaries packages, etc. But they don't seem to be easily adapted into the template I am using (due to my inexperience)…So, right now I just created the below in my permeable, and try to manually type my list.

\newcommand{\listofabbreviations}{
    \chapter*{List of Abbreviations}
    \noindent   
    \input{frontmatter/listofabbreviations}
    \vspace*{\fill} \newpage
}

I hope people can help me out. Thanks!

Best Answer

One possibility would be a tabular environment (or if the list is more than one page long, a longtable environment).

Or, alternatively, a kind of customized description environment. See both possibilities in the document below.

\documentclass{article}
\usepackage{calc}
\usepackage{longtable}

\newcommand{\abbrevlabel}[1]{#1\hfil}
\newenvironment{listabbrev}
    {\begin{list}{}{\let\makelabel\abbrevlabel
          \setlength{\labelwidth}{2cm}%
          \setlength{\leftmargin}{\labelwidth+\labelsep}}}
    {\end{list}}

\begin{document}

\noindent
\begin{longtable}[l]{lp{10cm}}
TYT   &  Take your Time \\
TTYL  &  Talk to you Later \\
\end{longtable}

\begin{listabbrev}
\item[TYT]     Take your Time
\item[TTYL]    Talk to you Later
 \end{listabbrev}
\end{document}

enter image description here

Related Question