LaTeX forum ⇒ Text FormattingFigures and Tables Index

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Diogo Remoaldo
Posts: 22
Joined: Mon Apr 06, 2015 8:24 pm

Figures and Tables Index

Postby Diogo Remoaldo » Sat Sep 12, 2015 10:49 pm

Hi, in my latex file I have a problem in which the table's name almost catches the number, in the table index, such as it happens in the following examples. Is there a way to properly adjust the spacing between the number and the text?. My code is the following.
  1. \documentclass[openleft,a4paper,12pt,twoside]{report}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[portuguese]{babel}
  4. \usepackage[T1]{fontenc}
  5. \usepackage{amsmath}
  6. \usepackage{amsfonts}
  7. \usepackage{amssymb}
  8. \usepackage{epstopdf}
  9. \usepackage{float}
  10. \usepackage{graphicx}
  11. \usepackage[hidelinks]{hyperref}
  12. \usepackage{url}
  13. \usepackage[all]{hypcap}
  14. \usepackage{caption}
  15. \usepackage[paper=a4paper,top=2cm,bottom=2cm,right=2.5cm,left=2.5cm,twoside ,bindingoffset=1cm,marginparwidth=0in,marginparsep=0in]{geometry}
  16. \usepackage{array}
  17. \usepackage{booktabs}
  18. \usepackage{tabularx}
  19. \usepackage{indentfirst}
  20. \usepackage[export]{adjustbox}
  21. \usepackage[font=small,labelfont=bf]{caption}
  22. \usepackage{enumitem}
  23. \usepackage{titlesec}
  24. \usepackage{multirow}
  25. \captionsetup[table]{position=above}
  26. \usepackage{siunitx}
  27. \newcolumntype{C}{>{\centering\arraybackslash}m}
  28. \sisetup{per-mode=symbol}
  29. \usepackage{hhline}
  30. \captionsetup[table]{position=above}
  31. \setcounter{secnumdepth}{4}
  32. \DeclareSIUnit{\year}{ano}
  33. \titleformat{\paragraph}
  34. {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
  35. \titlespacing*{\paragraph}
  36. {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
  37. \usepackage{eurosym}
  38. \usepackage{makeidx}
  39. \usepackage{subcaption}
  40. \usepackage{afterpage}
  41. \usepackage{booktabs}
  42. \usepackage{longtable}
  43. \usepackage{placeins}
  44. \usepackage{appendix}
  45.  
  46. \addto\captionsportuguese{
  47. \renewcommand\appendixname{Anexo}
  48. \renewcommand\appendixpagename{Anexos}
  49. }
  50.  
  51. \setlength{\belowcaptionskip}{-2pt}
  52.  
  53. \setlist{itemsep=2.0pt}
  54.  
  55. \setlength{\textfloatsep}{10pt plus 1.0pt minus 2.0pt}
  56.  
  57. \setlength{\floatsep}{5pt plus 1.0pt minus 2.0pt}
  58. \setlength{\intextsep}{5pt plus 1.0pt minus 2.0pt}
  59.  
  60. \setlength{\parindent}{2.0em}
  61. \setlength{\parskip}{0.5em}
  62. %\renewcommand{\baselinestretch}{2.0}
  63.  
  64. \usepackage{fancyhdr}
  65. \usepackage{lastpage}
  66.  
  67. \fancypagestyle{style1}{
  68. \fancyhead{}
  69. \fancyhead[LO,LE]{\nouppercase{\leftmark}}
  70. \renewcommand{\headrulewidth}{0.4pt}
  71. \fancyfoot{}
  72.  
  73. \fancyfoot[RO,LE]{\thepage}}
  74.  
  75. \fancypagestyle{plain}{%
  76. \fancyhf{}%
  77. \fancyfoot[RO,LE]{\thepage} %of \pageref{LastPage}}%
  78. \renewcommand{\headrulewidth}{0pt}}% Line at the header invisible
  79. %\renewcommand{\footrulewidth}{0.4pt}% Line at the footer visible
  80.  
  81.  
  82. %\fancypagestyle{style2}{
  83. %\fancyhead{}
  84. %\renewcommand{\headrulewidth}{0pt}
  85. %\fancyfoot{}
  86.  
  87. %\fancyfoot[RO,LE]{\thepage}}
  88.  
  89. %\fancypagestyle{style3}{
  90. %\fancyhead{}
  91. %\renewcommand{\headrulewidth}{0pt}
  92. %\fancyfoot{}
  93.  
  94. %\renewcommand{\footrulewidth}{0pt}}
  95. %\setlength{\parindent}{0em}
  96.  
  97. \pdfinclusioncopyfonts=1
  98. \newcommand\blankpage{%
  99. \null
  100. \thispagestyle{empty}%
  101. \addtocounter{page}{-1}%
  102. \newpage}
  103.  
  104.  
  105.  
  106. \newgeometry{top=2cm,bottom=2cm,right=2.5cm,left=2.5cm,bindingoffset=0cm,marginparwidth=0in,marginparsep=0in}
  107. \title{Desenvolvimento de um edifício tipo "PassivHaus" para clima temperado (Português) integrando painéis "sandwich" estruturais e fontes de energia renováveis}
  108. \author{Diogo Filipe Pereira Remoaldo}
  109.  
  110.  
  111. \begin{document}
  112.  
  113. \renewcommand{\thepage}{\roman{page}}
  114. \renewcommand{\contentsname}{Índice}
  115. \tableofcontents
  116. \cleardoublepage
  117.  
  118. \newpage
  119.  
  120. \renewcommand\listfigurename{Índice de Figuras}
  121.  
  122. \listoffigures
  123. \cleardoublepage
  124. \newpage
  125.  
  126. \renewcommand\listtablename{Índice de Tabelas}
  127. \listoftables
  128. \cleardoublepage
  129. \newpage
  130.  
  131. \end{document}
Attachments
diogoOverfullB.png
diogoOverfullB.png (18.03 KiB) Viewed 997 times
diogoOverfullA.png
diogoOverfullA.png (12.86 KiB) Viewed 997 times

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8366
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Sep 13, 2015 11:43 am

Hi Diogo,

the microtype package improves justification, loading it could already help. Add to your preamble:

  1. \usepackage{microtype}


In your second image, I noticed that you write units in italics, so they look like variables. Common standard is to write units upright. The siunitx package helps in this regard. You are already loading it, so I recommend to use its syntax for units.

Stefan
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 6 guests