Text FormattingMargins in the list of figures

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jaco_julio
Posts: 2
Joined: Fri Feb 23, 2018 6:08 pm

Margins in the list of figures

Post by jaco_julio »

My list of figure margins is no justified in the contents, and i want to put.
My code is this:

Code: Select all

\documentclass[a4paper, 12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[lmargin = 2.5cm, rmargin = 2.5cm, tmargin = 2.5cm, bmargin = 3cm]{geometry}
\usepackage[english,brazil]{babel}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{indentfirst}
\usepackage{subfiles}
\usepackage{blindtext}
\usepackage{color}
\usepackage{lipsum}
\usepackage{setspace}
\usepackage{chngcntr}
\usepackage{etoolbox}
\usepackage{titlesec}
\usepackage{float}
\usepackage{tikz}
\usepackage{fancyhdr}
\usepackage{nomencl}
\usepackage{titletoc}
\usepackage[toc,page]{appendix}
%\usepackage{fontspec}
%\setmainfont{Times New Roman}
%\usepackage{hyphenat} \hyp{}
%\usepackage{sectsty}
%0205218599
%\lineskip
%\setlength\afterchapskip{18pt} %capítulo começa nas páginas ímpares
\setlength{\parindent}{0.75cm}
\setstretch{1.5}
%\onehalfspacing %espaçamento entre linas
\newcommand{\signaturerule}{\rule{30em}{.4pt}}
%\renewcommand{\arraystretch}{0.5}
\renewcommand{\baselinestretch}{1.5}
\setlength{\parskip}{0pt}

\setlength{\nomitemsep}{-\parsep}
 
\makenomenclature

\usetikzlibrary{shapes,arrows}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
%\setlength{\parskip}{0.3cm} (espaço entre os parágrafos)
\titleformat{\paragraph} 
{\normalfont\normalsize\normalfont}{\theparagraph}{1em}{}\fontsize{12}{12}
%\titlespacing*{\paragraph}

%\patchcmd{\thebibliography}{\section*{\refname}}{}{}{}

\titleformat*{\section}{\normalfont\fontfamily{phv}\fontsize{14}{14}\bfseries}
\titleformat*{\subsection}{\normalfont\fontfamily{phv}\fontsize{12}{12}\normalfont}{}{}{}
\titleformat*{\subsubsection}{\normalfont\fontfamily{phv}\fontsize{12}{12}\normalfont}{}{}{}

%nas figura e tabelas, mudar o nome para "FIG." e "TAB.", respectivamente
%nas equações, além da numeração colocar o termo "EQ."
\counterwithin{figure}{section}
\counterwithin{table}{section}
\counterwithin{equation}{section}
\numberwithin{equation}{section}%{subsubsection}

\graphicspath{ {figures/} }
\graphicspath{{images/}{../images/}}
\newcommand{\ii}{\'{\i}}
\newcommand{\ca}{\c{c}\~ao}
\newcommand{\co}{\c{c}\~oes}
\newcommand{\sectionbreak}{\clearpage}

\addto\captionsbrazil{\renewcommand*\contentsname{\centering SUMÁRIO}}

\addto\captionsbrazil{\renewcommand*{\listfigurename}{\centering LISTA DE ILUSTRAÇÕES}}

\addto\captionsbrazil{\renewcommand*{\listtablename}{\centering LISTA DE TABELAS}}

\titlecontents{section}[2.5em]{\addvspace{1em}\bfseries}{\contentslabel{2.9em}}{\hspace*{-2.9em}}{\titlerule*[1pc]{.}\contentspage}
%\dottedcontents{section}[2.5em]{\bfseries}{2.9em}{1pc}
\dottedcontents{subsection}[2.5em]{}{3.3em}{1pc}
\dottedcontents{subsubsection}[2.5em]{}{3.3em}{1pc}


\titlecontents{figure}[0em]{\addvspace{1.5em}}{FIG.{\thecontentslabel} \hspace*{1.5em}}{}{\titlerule*[1pc]{$\cdot$}\contentspage}


\titlecontents{table}[0em]{\addvspace{1.5em}}{TAB.{\thecontentslabel} \hspace*{1.5em}}{}{ \titlerule*[1pc]{$\cdot$}\contentspage}


\renewenvironment{abstract}
 {\small
  \begin{center}
  \bfseries \abstractname\vspace{-.5em}\vspace{0pt}
  \end{center}
  \list{}{%
    \setlength{\leftmargin}{0mm}% <---------- CHANGE HERE
    \setlength{\rightmargin}{\leftmargin}%
  }%
  \item\relax}
 {\endlist}


\begin{document}
Is there someone can help me, please?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Margins in the list of figures

Post by Johannes_B »

Welcome,
you just posted a very big preamble. This is not enough to help you as it does not show the problem. To be more specific, with just your description, i don't understand your question.
At least add as much content, that the problem gets visible. Better even, post a minimal working example.

Crosspost on TeX.SX.

\titlecontents{table}[0em]{\addvspace{1.5em}}{\contentspush{TAB.~\thecontentslabel \hspace*{1.5em}}}{}{ \titlerule*[1pc]{$\cdot$}\contentspage}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply