## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ index of abbreviations flushleft Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
Onurb
Posts: 2
Joined: Mon Apr 02, 2018 5:20 pm

### index of abbreviations flushleft

Hi guys, i want to include an index of abbreviations into my document and I tried it with 2 easy ways but neither of them look like I want it to look. I tried the following options:

\chapter*{Abkürzungsverzeichnis} \begin{tabular}{ll}	\textbf{HSLU} & Hochschule Luzern \\	\textbf{USZ} & Universitätsspital Zürich \\\end{tabular} \begin{description}	\item[HSLU] Hochschule Luzern	\item[USZ] Universitätsspital Zürich\end{description}

This looks like that:

Bildschirmfoto 2018-04-02 um 17.18.47.jpg (12.51 KiB) Viewed 327 times

What i want is a mixture between those. The second row should start in 1 line as in the table. But the first row should start completely at the left side of the document as in the desription method. Does somebody know a way how to do that? I already tried \flushleft before the table but this doesn work.

Greez Onurb

kaiserkarl13
Posts: 598
Joined: Tue Mar 25, 2008 5:02 pm
If you want it the way you say it, try this one:
\chapter*{Abkürzungsverzeichnis}     \begin{description}        \item[HSLU]} Hochschule Luzern        \begin{description}           \item[USZ] Universit\"atsspital Z\"urich        \end{description}    \end{description}

If you actually want it as in the first example, except flush to the left margin, use \noindent before the tabular environment (the table is treated as a single box, but it's still indented because the paragraph is).

In general, avoid making explicit formatting for such things---it's much harder to change it later or be consistent if you do it on a per-item basis. Define a new environment or a new command, and you can tweak it later if you need to.

Onurb
Posts: 2
Joined: Mon Apr 02, 2018 5:20 pm
kaiserkarl13 wrote:If you want it the way you say it, try this one:
\chapter*{Abkürzungsverzeichnis}     \begin{description}        \item[HSLU]} Hochschule Luzern        \begin{description}           \item[USZ] Universitätsspital Zürich        \end{description}    \end{description}

If you actually want it as in the first example, except flush to the left margin, use \noindent before the tabular environment (the table is treated as a single box, but it's still indented because the paragraph is).

This Code doesnt work out for me, it shifts the second row to the right. But the \noindent is what I was looking for. Thank you! It is also way easier to change later on if I change my mind^^

kaiserkarl13
Posts: 598
Joined: Tue Mar 25, 2008 5:02 pm
It was supposed to indent the second one (you said that was what you wanted).

If this is for a "list of symbols," you might check out the nomencl package, which uses the makeindex program to update the nomenclature in a well-defined way that links back to the text.