使用符号、描述单元和不同分隔符创建命名法

使用符号、描述单元和不同分隔符创建命名法

StackExchange 社区的各位朋友,大家好,我目前正在用 Latex (Overleaf) 写我的学士论文,在创建命名法时遇到了一些麻烦。我发现我的一位教授在他的论文中使用了一个非常好看的命名法,所以我试图在我的论文中实现相同的风格(我已经请他帮我,但不幸的是他用 word 写了)。通过论坛研究,我已经能够创建一个有 3 列且不同类型符号之间有分隔的命名法,但符号线上方和下方的线条让我抓狂。有人能帮我吗?

他的风格是这样的

他还使用了拉丁符号和希腊符号的分离

谢谢你们两位的快速回复。我的错,我应该早点发布我目前完成的工作。

我希望有可能在命名法章节和命名法的第一个条目之间写一段文字,当然还有分隔部分上面和下面的行

以下是代码示例:

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage{color,siunitx}

\usepackage{nomencl}\makenomenclature
% % % % % % % % %% Nomgroup setting: Starting% % % % % % % % %
\renewcommand*{\nompreamble}{\markboth{\nomname}{\nomname}}
\newcommand*{\chSubtitle}[1]{\item[\large\bfseries#1]}
\newcommand*{\DescrWidth}[1]{\parbox[c]{7cm}{#1}}
\newcommand*{\chUnit}[1]{\hfill\makebox[1.7cm]{#1\hfill}}

\newcommand*{\chnomSeq}[1]{\csname chSymb#1\endcsname}
\renewcommand*{\nomgroup}{\chnomSeq}

%=====================================================
%==============Defining Greek Symbols=================
%=====================================================
\newcommand*{\chSymbG}{\chSubtitle{Greek Symbols}%
\item [\textbf{Symbol}]%
\textbf{Description}\chUnit{\textbf{Unit}}}
%=====================================================
%===========Defining Roman Symbols====================
%=====================================================
\newcommand*{\chSymbR}{\vspace{5mm}\chSubtitle{Roman Symbols}%
\item[\textbf{Symbol}]%
\textbf{Description}\chUnit{\textbf{Unit}}}
%=====================================================
%===========Defining Other Symbols====================
%=====================================================
\newcommand*{\chSymbO}{\vspace{5mm}\chSubtitle{Other Symbols}%
\item[\textbf{Symbol}]%
\textbf{Description}\chUnit{\textbf{Unit}}}
%=====================================================
%=====================================================
\newcommand*{\chwithUnit}[4]{\nomenclature[#1]{#2}%
{\DescrWidth{#3}\chUnit{#4}}}

\newcommand*{\nmG}[4][]{\chwithUnit{G#1}{#2}{#3}{#4}}
\newcommand*{\nmR}[4][]{\chwithUnit{R#1}{#2}{#3}{#4}}
\newcommand*{\nmO}[4][]{\chwithUnit{O#1}{#2}{#3}{#4}}

\title{Nomenclature adjustments}
\author{Malte Grube}

% % % % % % % % % % Nomgroup setting: Ending % % % % % % %
\begin{document}
\maketitle
\nmR[E]{$e_b$}{Bilayer elastic curvature energy density}{\si{J/m^2}}
\nmG[O]{$\omega$}{Angular velocity}{\si{rad/sec}}
\nmG[A]{$\theta$}{Angular displacement}{\si{rad}}
\nmR[R]{$R$}{Circle radius}{\si{m}}
\nmR[B]{$B_i$}{Biot number}{-}
\nmO[L]{$L$}{Characteristics length}{\si{m}}
\printnomenclature[3.5cm]
\end{document}

答案1

谢谢你的所有提示。我想我现在明白了,但我不知道这是否是一个好方法。

如果您认为有更好的方法,请告诉我。

所以我的最终解决方案是

命名法

以下是我的相应代码:

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage{color,siunitx}
\usepackage{tabularx}

\usepackage{nomencl}\makenomenclature

% % % % % % % % %% Nomgroup setting: Starting % % % % % % % % %
%\renewcommand{\nomname}{List of Symbols}
\renewcommand*{\nompreamble}{Today we write a preamble\markboth{\nomname{}}{\nomname}}
\newcommand*{\chSubtitle}[1]{\item[\large\bfseries#1]}
\newcommand*{\DescrWidth}[1]{\parbox[c]{7cm}{#1}}
\newcommand*{\chUnit}[1]{\hfill\makebox[6em][l]{#1 \hfill}\ignorespaces}

\newcommand*{\chnomSeq}[1]{\csname chSymb#1\endcsname}
\renewcommand*{\nomgroup}{\chnomSeq}

%Table Design
\newcommand{\Answer}[1]{\smash{\begin{tabularx}{\textwidth}{X l} \hline #1 \\ \hline \end{tabularx}\hspace*{-\tabcolsep}}}

%=====================================================
%==============Defining Greek Symbols=================
%=====================================================
\newcommand*{\chSymbG}{\chSubtitle{\Answer{Greek Symbols}}%
\vspace{5mm}\item [\textbf{Symbol}]%
\textbf{Beschreibung}\chUnit{\textbf{Einheit}}}
%=====================================================
%===========Defining Roman Symbols====================
%=====================================================
\newcommand*{\chSymbR}{\chSubtitle{\Answer{Roman Symbols}}%
\vspace{5mm}\item[\textbf{Symbol}]%
\textbf{Description}\chUnit{\textbf{Einheit}}}
%=====================================================
%===========Defining Other Symbols====================
%=====================================================
\newcommand*{\chSymbO}{\chSubtitle{\Answer{Other Symbols}}%
\vspace{5mm}\item[\textbf{Symbol}]%
\textbf{Beschreibung}\chUnit{\textbf{Einheit}}}
%=====================================================
%=====================================================
\newcommand*{\chwithUnit}[4]{\nomenclature[#1]{#2}%
{\DescrWidth{#3}\chUnit{#4}}}

\newcommand*{\nmG}[4][]{\chwithUnit{G#1}{#2}{#3}{#4}}
\newcommand*{\nmR}[4][]{\chwithUnit{R#1}{#2}{#3}{#4}}
\newcommand*{\nmO}[4][]{\chwithUnit{O#1}{#2}{#3}{#4}}


\title{Nomenclature adjustments}
\author{Malte Grube}


% % % % % % % % % % Nomgroup setting: Ending % % % % % % %
\begin{document}
\maketitle

%=====================================================
%===================Roman Symbols ====================
%=====================================================
\nmR[E]{$e_b$}{Bilayer elastic curvature energy density}{J/m$^2$}
\nmR[RE]{$\theta$}{Angular displacement}{rad}
\nmR[R]{$R$}{Circle radius}{m}
\nmR[B]{$B_i$}{Biot number}{-}
\nmR[RF]{$\omega$}{Angular displacement}{rad}
%=====================================================
%===================Greek Symbols ====================
%=====================================================
\nmG[O]{$\omega$}{Angular velocity}{kg/s}
\nmG[A]{$\theta$}{Angular displacement}{rad}
%=====================================================
%===================Other Symbols ====================
%=====================================================
\nmO[RA]{$\theta$}{Angular displacement}{rad}
\nmO[RU]{$\theta$}{Angular displacement}{rad}
\nmO[L]{$L$}{Characteristics length}{m}
\nmO[RE]{$\theta$}{Angular displacement}{rad}

\printnomenclature[4cm]
\end{document}

相关内容