多行標題未居中,當我用 {} 將它們分開時,不包含在索引表中

多行標題未居中,當我用 {} 將它們分開時,不包含在索引表中

我試圖將多行圖形標題居中,但未能做到。當我嘗試用方括號分隔標題中的行時{},它可以工作,但標題行是相反的。我在下面附上了 MWE。

另外,如何確保即使我將標題的各行分開,它也會顯示在目錄中?

謝謝!

\documentclass[12pt, oneside]{article}      
\usepackage{geometry}                       
\geometry{letterpaper}
\geometry{left=1.5in, right=1in, top=1in, bottom=1in}                           

\usepackage{amssymb}

\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}

\usepackage{floatrow}

\usepackage{tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\renewcommand\tabularxcolumn[1]{m{#1}}

\usepackage[title,titletoc,page,header]{appendix}
\renewcommand{\appendixpagename}{\centering Appendices}

\usepackage[nottoc]{tocbibind}

\usepackage{graphicx}
\graphicspath{ {Images/} }  

\linespread{1.6}

\begin{document}

\listoffigures

\newpage

\indent X-ray generation is produced by inelastic collisions of the incident electrons with electrons in discrete orbitals of atoms in the sample. As excited electrons return to lower energy states, they yield x-rays that are of a fixed wavelength. These wavelengths are related to the difference in energy levels of electrons in different shells for a given element. This allows characteristic x-rays to be generated for each element in a material that is "excited" by the electron. One of the benefits of SEM analysis is that it is "non-destructive"; the x-rays generated by the electron interactions do not lead to volume loss of the sample, so it is possible to analyze materials repeatedly.
Figure 3 displays a typical SEM schematic. 

\begin{figure}[ht] \centering
\includegraphics[scale=0.30]{SEMSchematic}
\caption{Typical SEM Schematic Displaying Electron Source, Focal Lenses, and}{Detectors}
\end{figure}

\end{document}

答案1

也許這就是您想要的——最後一個標題行居中?另一方面,請注意,通常,當您增加行間距時,您不想增加腳註和標題的間距。 set space 套件負責處理這些細節,所以我冒昧地加載它並替換\linespread\setstretch.

\documentclass[12pt, oneside]{article}
\usepackage{geometry}
\geometry{letterpaper}
\geometry{left=1.5in, right=1in, top=1in, bottom=1in}

\usepackage{amssymb}

\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}

\usepackage{floatrow}

\usepackage{tabularx}
\newcolumntype{C}{>{\centering\arraybackslash}X}
\renewcommand\tabularxcolumn[1]{m{#1}}

\usepackage[title,titletoc,page,header]{appendix}
\renewcommand{\appendixpagename}{\centering Appendices}

\usepackage[nottoc]{tocbibind}

\usepackage[demo]{graphicx}
\graphicspath{ {Images/} }
\usepackage{caption}
\captionsetup{justification=centerlast}
\usepackage{setspace}
%\linespread{1.6}
\setstretch{1.6}

\begin{document}

\listoffigures

\newpage

\indent X-ray generation is produced by inelastic collisions of the incident electrons with electrons in discrete orbitals of atoms in the sample. As excited electrons return to lower energy states, they yield x-rays that are of a fixed wavelength. These wavelengths are related to the difference in energy levels of electrons in different shells for a given element. This allows characteristic x-rays to be generated for each element in a material that is "excited" by the electron. One of the benefits of SEM analysis is that it is "non-destructive"; the x-rays generated by the electron interactions do not lead to volume loss of the sample, so it is possible to analyze materials repeatedly.
Figure 3 displays a typical SEM schematic.

\begin{figure}[ht] \centering
\includegraphics[scale=0.30]{SEMSchematic}
\caption{Typical SEM Schematic Displaying Electron Source, Focal Lenses, and Detectors}
\end{figure}

\end{document} 

在此輸入影像描述

相關內容