我想要两列命名法。到目前为止,我有以下代码,我正在处理它。有什么想法我应该如何将它们分成两列吗?我还想删除命名法下方的打印日期。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage{nomencl}
\makenomenclature
%% This will add the subgroups
%----------------------------------------------
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{}{%
\ifstrequal{#1}{B}{Number Sets}{%
\ifstrequal{#1}{C}{Other Symbols}{}}}%
]}
%----------------------------------------------
%% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\title{Nomenclatures}
\begin{document}
\maketitle
\mbox{}
\nomenclature[A, 01]{$\dot\rho$}{D}
\nomenclature[A, 02]{$\bf \nabla$}{N}
\nomenclature[A, 03]{$\mathcal{R}$}{R}
\nomenclature[A, 04]{$\sigma$}{DS}
\printnomenclature
\end{document}
答案1
您可以使用两个钩子\nompreamble
和\nompostamble
:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{nomencl}
\makenomenclature
%% This will add the subgroups
%----------------------------------------------
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{}{%
\ifstrequal{#1}{B}{Number Sets}{%
\ifstrequal{#1}{C}{Other Symbols}{}}}%
]}
%----------------------------------------------
%% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\renewcommand{\nompreamble}{\begin{multicols}{2}}
\renewcommand{\nompostamble}{\end{multicols}}
\title{Nomenclatures}
\begin{document}
\maketitle
\mbox{}
\nomenclature[A, 01]{$\dot\rho$}{D}
\nomenclature[A, 02]{$\bf \nabla$}{N}
\nomenclature[A, 03]{$\mathcal{R}$}{R}
\nomenclature[A, 04]{$\sigma$}{DS}
\printnomenclature
\end{document}
答案2
只需添加\usepackage{multicol}
到您的序言中然后:
\begin{multicols}{2}
\printnomenclature
\end{multicols}
我不明白日期的问题。