LaTeX forum ⇒ Graphics, Figures & TablesNeed help with \listoffigures

Information and discussion about graphics, figures & tables in LaTeX documents.
Gohstgamer
Posts: 3
Joined: Sat Nov 25, 2017 2:02 pm

Need help with \listoffigures

Postby Gohstgamer » Sat Nov 25, 2017 2:10 pm

Hi there,

Im writing a document with document class article. I d'like to have the \listoffigures at the end of the document, that I've managed to do so. But I'd like to have the same formating for the Titel as if I've use for \section. Can anyone tell me either how to remove the \listoffigures title entirely or how to include an automatic numbering bevor the title?

Now it looks like this:
4. Sources
< some text >

List of figures
< some text >

5. Materials
< some text >

I'd like that it looks like this:
4. Sources
< some text >

5. List of figures
< some text >

6. Materials
< some text >

(I've made no changes to \section command)

Greets Simon

Gohstgamer
Posts: 3
Joined: Sat Nov 25, 2017 2:02 pm

Postby Gohstgamer » Sat Nov 25, 2017 8:43 pm

I've found my trouble maker, I had included \usepackage{tocbibind}, through that I've got an empty space into my Tableofcontents because I used \renewcommand{\listfigurename}{}. This is a working exmaple:
  1. \begin{filecontents}{\jobname.bib}
  2. \@online{ bk:test,
  3. author={Saputello},
  4. title={Was ist ein vollständiges Minimalbeispiel oder kurz VM und wie
  5. erstelle ich dieses?},
  6. url={http://texwelt.de/wissen/fragen/569/was-ist-ein-vollstandiges-minimalbeispiel-oder-kurz-vm-und-wie-erstelle-ich-dieses}
  7. }
  8. \end{filecontents}
  9. \listfiles
  10. \documentclass[a4paper]{article}
  11. \usepackage[ngerman]{babel}
  12. \usepackage[utf8]{inputenc}
  13. \usepackage[backend=biber]{biblatex}
  14. \addbibresource{\jobname.bib}
  15. \usepackage[demo]{graphicx}
  16. \usepackage{wrapfig}
  17.  
  18. \begin{document}
  19. \tableofcontents
  20. \pagebreak
  21.  
  22. \begin{wrapfigure}{r}{0.31\textwidth}
  23. \vspace{-16pt}
  24. \centering
  25. \includegraphics[width=0.3\textwidth]{images/LevelShifter.JPG}
  26. \caption{Levelshifter}
  27. \vspace{-15pt}
  28. \end{wrapfigure}
  29. Das ist ein Beispiel aus \textsuperscript{\cite{bk:test}}.
  30. \pagebreak
  31.  
  32. \section{Literaturverzeichnis}
  33. \printbibliography[heading = none]
  34. \section{Abbildungsverzeichnis}
  35. \renewcommand{\listfigurename}{}
  36. \vspace{-24pt}
  37. \listoffigures
  38. \end{document}

Gohstgamer
Posts: 3
Joined: Sat Nov 25, 2017 2:02 pm

Postby Gohstgamer » Sat Nov 25, 2017 10:42 pm

That was a suggestion of an other user, out of an other Forumhttp://golatex.de/viewtopic,p,97196.html#97196, which seems nicer to me:
  1. \documentclass[a4paper]{article}
  2. \usepackage[ngerman]{babel}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{biblatex}
  5. \usepackage[demo]{graphicx}
  6. \usepackage{wrapfig}
  7. \usepackage{tocbibind}
  8.  
  9. \addbibresource{biblatex-examples.bib}
  10.  
  11. % Quelle: <!-- m --><a class="postlink" href="https://tex.stackexchange.com/questions/150608">https://tex.stackexchange.com/questions/150608</a><!-- m -->
  12. \renewcommand{\listoffigures}{
  13. \begingroup
  14. \tocsection
  15. \tocfile{\listfigurename}{lof}
  16. \endgroup
  17. }
  18.  
  19. \begin{document}
  20. \tableofcontents
  21. \pagebreak
  22.  
  23. \begin{wrapfigure}{r}{0.31\textwidth}
  24. \vspace{-16pt}
  25. \centering
  26. \includegraphics[width=0.3\textwidth]{images/LevelShifter.JPG}
  27. \caption{Levelshifter}
  28. \vspace{-15pt}
  29. \end{wrapfigure}
  30. Das ist ein Beispiel aus \textsuperscript{\cite{markey}}.
  31. \pagebreak
  32.  
  33. \printbibliography[heading=bibnumbered, title=Literaturverzeichnis]
  34. \listoffigures
  35. \end{document}


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests