居中缩略词列表

居中缩略词列表

我想将页面的首字母缩略词列表居中对齐,位于页面中央,但它们当前位于页面左端。

\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage[acronym, toc, nopostdot]{glossaries}

% Define acronyms
\makeglossaries
\newacronym[plural=PDEs]{pde}{PDE}{partial differential equation}
\newacronym{dd}{DD}{domain decomposition}
\newacronym{bddc}{BDDC}{balancing domain decomposition by constraints}
\newacronym{feti}{FETI}{finite element tearing and interconnect}
\newacronym{feti-dp}{FETI-DP}{finite element tearing and interconnect dual-primal}
\newacronym[plural=FEMs]{fem}{FEM}{finite element method}
\newacronym{das-6}{DAS-6}{Distributed ASCII Supercomputer 6}

\begin{document}

\printglossary[title=Abbreviations, type=\acronymtype, nonumberlist]

\textbf{Example Text Containing Abbreviations:} \gls{pde}, \gls{dd}, \gls{bddc}, \gls{feti}, \gls{feti-dp}, \gls{fem}, \gls{das-6}

\end{document}

在此处输入图片描述

我希望居中的首字母缩略词能够像下面的示例所示那样居中,并且理想情况下仍然使用glossaries支持glsplgls命令的包或类似的东西:

在此处输入图片描述

答案1

如果你的首字母缩略词列表只跨越一页,你可以将其包装成一个小页面:

\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage[acronym, toc, nopostdot]{glossaries}

% Define acronyms
\makeglossaries
\newacronym[plural=PDEs]{pde}{PDE}{partial differential equation}
\newacronym{dd}{DD}{domain decomposition}
\newacronym{bddc}{BDDC}{balancing domain decomposition by constraints}
\newacronym{feti}{FETI}{finite element tearing and interconnect}
\newacronym{feti-dp}{FETI-DP}{finite element tearing and interconnect dual-primal}
\newacronym[plural=FEMs]{fem}{FEM}{finite element method}
\newacronym{das-6}{DAS-6}{Distributed ASCII Supercomputer 6}

\begin{document}

\section*{Abbreviations}
\begin{center}
\begin{minipage}{.5\textwidth}
\printglossary[title=,type=\acronymtype, nonumberlist]
\end{minipage}
\end{center}

\textbf{Example Text Containing Abbreviations:} \gls{pde}, \gls{dd}, \gls{bddc}, \gls{feti}, \gls{feti-dp}, \gls{fem}, \gls{das-6}

\end{document}

在此处输入图片描述

相关内容