![词汇表的右边距有条目编号……](https://linux22.com/image/327695/%E8%AF%8D%E6%B1%87%E8%A1%A8%E7%9A%84%E5%8F%B3%E8%BE%B9%E8%B7%9D%E6%9C%89%E6%9D%A1%E7%9B%AE%E7%BC%96%E5%8F%B7%E2%80%A6%E2%80%A6.png)
在一些与讨论相关的工作中只有一个词汇表的 entrycounter 为 true
我使用用于从右到左语言的包创建了一个词汇表,该词汇表按一些单词及其同义词排序,分为两列fmultico
。当我打印词汇表时,我获得了两列在左边缘的列编号,但我希望它位于右边缘。我怎样才能将条目编号放在左列的左边距上,将右列的右边距上?
其他事情。对于非编号条目,我希望列的宽度与词汇表的标题相同。我该如何控制这个宽度?
以下是使用的文件:
\documentclass{article}
\usepackage{fmultico}
\usepackage{geometry}
\geometry{paperwidth=165mm, paperheight=140mm, top=5mm, bottom=5mm}
\pagestyle{empty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ORGANIZE ENTRIES AND GLOSSARIES OF FOOTNOTES
\usepackage[entrycounter,nomain,nonumberlist]{glossaries}
\renewcommand*{\glspostdescription}{}
%%Glossary of footnotes
\newglossary[soc]{Dico}{sox}{soo}{The title of the glossary}
\makeglossaries
\newcommand*{\entrydico}[2]
{%
\newglossaryentry{#1}{type=Dico,name={},text={#1},sort={#1},
description={\begin{tabular}{p{2 cm}p{2 cm}}
\hspace*{-6pt}#1 &\hfill #2\hspace*{-6pt}\\
\hline
\end{tabular}} }
}
%% The link of the \gls commands
\defglsentryfmt[Dico]{}
%% ENTRIES
\entrydico{word1}{synonym1}
\entrydico{word2}{synonym2}
\entrydico{word3}{synonym3}
\entrydico{word4}{synonym4}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END GLOSSARIES COMMANDS
\begin{document}
The word word1\gls{word1}
The word word2\gls{word2}
The word word3\gls{word3}
The word word4\gls{word4}
\vspace*{5mm}
\hrule
\vspace*{5mm}
\begin{multicols}{2}[]
\printglossary[type=Dico]
\end{multicols}
\vspace*{5mm}
\hrule
\vspace*{5mm}
Non-numbered entries with the option `entrycounter=false`
\begin{multicols}{2}[]
\printglossary[type=Dico,entrycounter=false]
\end{multicols}
\end{document}
并生成了词汇表: