我想將頁面的首字母縮略詞列表居中,使其在頁面的中心左對齊,但是,它們目前在頁面的左端左對齊。
\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}