![居中缩略词列表](https://linux22.com/image/472570/%E5%B1%85%E4%B8%AD%E7%BC%A9%E7%95%A5%E8%AF%8D%E5%88%97%E8%A1%A8.png)
我想将页面的首字母缩略词列表居中对齐,位于页面中央,但它们当前位于页面左端。
\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
支持glspl
和gls
命令的包或类似的东西:
答案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}