调整词汇表左边距

调整词汇表左边距

好吧,让我们尝试这个工作示例:

\documentclass{article}

\usepackage[acronyms,nonumberlist,nogroupskip,nopostdot,toc]{glossaries}
\usepackage{glossary-mcols}

\renewcommand{\glsmcols}{2}
\renewcommand{\glossarypreamble}{\glsfindwidesttoplevelname[\currentglossary]}
\setglossary{mcolalttree}
\renewcommand*{\glossaryname}{Nomenclature}
\renewcommand*{\acronymname}{Abbreviations}

\makeglossaries

\begin{document}

\printglossaries

\newglossaryentry{pt}{name=$\sfrac{P_{T2}}{P_{T0}}$, description={Ratio of total pressure at AIP to freestream total pressure}}
\newglossaryentry{y+}{name=$y^{+}$, description={Dimensionless distance from wall boundaries}}
\newglossaryentry{d}{name=$D$, description={AIP diameter}}
\newglossaryentry{m2}{name=$M_2$, description={Mach number at AIP}}%
\newglossaryentry{pt2avg}{name=$P_{T2_{avg}}$, description={Average of 40 AIP Kulite\textsuperscript{\textregistered} total pressures}}%
\newglossaryentry{p2avg}{name=$P_{2_{avg}}$, description={Average of 8 AIP static tap pressures}}
\newglossaryentry{ds}{name=$\Delta s$, description={Distance measured between neighboring grid points}}
\newglossaryentry{dpcp}{name=DPCP, description={Circumferential distortion intensity}}
\newglossaryentry{dprp}{name=DPRP, description={Radial distortion intensity}}
\newglossaryentry{pav}{name=PAV, description={Average ring pressure}}
\newglossaryentry{pavlow}{name=PAVLOW, description={Average low pressure}}  \gls{pavlow}

\newacronym{aip}{AIP}{Aerodynamic Interface Plane}\gls{aip}
\newacronym{amr}{AMR}{Adaptive Mesh Refinement}
\newacronym{gcr}{GCR}{Generalized Conjugate Residual}

\glsaddall

\end{document}

现在我想调整词汇表两侧的边距,使左右边距都大约增大 3em。

答案1

您可以将整个词汇表放在列表中,并像这样调整列表边距:

\documentclass{article}

\usepackage[acronyms,nonumberlist,nogroupskip,nopostdot,toc]{glossaries}
\usepackage{glossary-mcols}

\renewcommand{\glsmcols}{2}
\setglossarystyle{mcolalttree}
\renewcommand{\glossarypreamble}{%
 \glsfindwidesttoplevelname[\currentglossary]
 \begin{list}{}%
 {\setlength{\leftmargin}{3em}\rightmargin\leftmargin}% margins
 \item\relax}
\renewcommand{\glossarypostamble}{\end{list}}
\renewcommand*{\glossaryname}{Nomenclature}
\renewcommand*{\acronymname}{Abbreviations}


\makeglossaries

\begin{document}

\printglossaries

\newglossaryentry{pt}{name=$\frac{P_{T2}}{P_{T0}}$, description={Ratio of total pressure at AIP to freestream total pressure}}
\newglossaryentry{y+}{name=$y^{+}$, description={Dimensionless distance from wall boundaries}}
\newglossaryentry{d}{name=$D$, description={AIP diameter}}
\newglossaryentry{m2}{name=$M_2$, description={Mach number at AIP}}%
\newglossaryentry{pt2avg}{name=$P_{T2_{avg}}$, description={Average of 40 AIP Kulite\textsuperscript{\textregistered} total pressures}}%
\newglossaryentry{p2avg}{name=$P_{2_{avg}}$, description={Average of 8 AIP static tap pressures}}
\newglossaryentry{ds}{name=$\Delta s$, description={Distance measured between neighboring grid points}}
\newglossaryentry{dpcp}{name=DPCP, description={Circumferential distortion intensity}}
\newglossaryentry{dprp}{name=DPRP, description={Radial distortion intensity}}
\newglossaryentry{pav}{name=PAV, description={Average ring pressure}}
\newglossaryentry{pavlow}{name=PAVLOW, description={Average low pressure}}  \gls{pavlow}

\newacronym{aip}{AIP}{Aerodynamic Interface Plane}\gls{aip}
\newacronym{amr}{AMR}{Adaptive Mesh Refinement}
\newacronym{gcr}{GCR}{Generalized Conjugate Residual}

\glsaddall

\end{document}

文件图像

可以通过改变来调整列之间的间隙\columnsep

无关,但是我建议你将定义移到序言中

相关内容