我的图形边距列表如下图所示
我想要像下面的图片
我的乳胶代码是这样的
\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}
有谁能帮助我吗?
答案1
\titlecontents{table}[0em]{\addvspace{1.5em}}{TAB.{\thecontentslabel} \hspace*{1.5em}}{}{ \titlerule*[1pc]{$\cdot$}\contentspage}
您的代码中有上述一行,但可能正在寻找使用 的修改版本\contentspush
。
\titlecontents{table}[0em]{\addvspace{1.5em}}{\contentspush{TAB.~\thecontentslabel \hspace*{1.5em}}}{}{ \titlerule*[1pc]{$\cdot$}\contentspage}
答案2
您想要的是的默认值article
,,report
book
我不会仔细阅读您的序言。但是……
像这样创建 MWE:
\documentclass{article}
% your preamble
\begin{document}
\listoffigures
\begin{figure}
\centering
ILLUSTRATION
\caption{A long caption that requires more than one line ...}
\end{figure}
\end{document}
然后继续减少序言中的软件包和代码,直到 LoF 恢复为默认值。您的问题出在最后删除的项目上。
或者使用可选参数\caption
:
\caption[Short version for LoF}{A long caption that requires more than one line ...}