LaTeX forum ⇒ Graphics, Figures & Tablesindex 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

Postby Onurb » Mon Apr 02, 2018 5:30 pm

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:

  1. \chapter*{Abkürzungsverzeichnis}
  2.  
  3. \begin{tabular}{ll}
  4. \textbf{HSLU} & Hochschule Luzern \\
  5. \textbf{USZ} & Universitätsspital Zürich \\
  6. \end{tabular}
  7.  
  8. \begin{description}
  9. \item[HSLU] Hochschule Luzern
  10. \item[USZ] Universitätsspital Zürich
  11. \end{description}


This looks like that:

Bildschirmfoto 2018-04-02 um 17.18.47.jpg
Bildschirmfoto 2018-04-02 um 17.18.47.jpg (12.51 KiB) Viewed 328 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.

Thanks already for your replies.

Greez Onurb

kaiserkarl13
Posts: 598
Joined: Tue Mar 25, 2008 5:02 pm

Postby kaiserkarl13 » Tue Apr 03, 2018 6:17 am

If you want it the way you say it, try this one:
  1. \chapter*{Abkürzungsverzeichnis}
  2.  
  3. \begin{description}
  4. \item[HSLU]} Hochschule Luzern
  5. \begin{description}
  6. \item[USZ] Universit\"atsspital Z\"urich
  7. \end{description}
  8. \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

Postby Onurb » Tue Apr 03, 2018 5:02 pm

kaiserkarl13 wrote:If you want it the way you say it, try this one:
  1. \chapter*{Abkürzungsverzeichnis}
  2.  
  3. \begin{description}
  4. \item[HSLU]} Hochschule Luzern
  5. \begin{description}
  6. \item[USZ] Universitätsspital Zürich
  7. \end{description}
  8. \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

Postby kaiserkarl13 » Thu Apr 05, 2018 3:37 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.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests