xelatex通過nomenclature插入中文版術(shù)語表

前言

通過CTEX套裝和Miktex配置了中文環(huán)境,編譯器選擇的時texstudio,詳細(xì)配置方法可見

latex安裝和中文編譯環(huán)境配置詳細(xì)步驟(碩/博士畢業(yè)論文模板) - 簡書

1.語法部分

首先進(jìn)行宏定義:

%---------------------------nomencl

\usepackage[utf8]{inputenc}

\usepackage{amssymb}

\usepackage{nomencl}

\makenomenclature

\usepackage{etoolbox}

然后將“nomenclature”標(biāo)題變成中文:

\renewcommand{\nomname}{術(shù)語表}

接著定義nomgroup

\renewcommand\nomgroup[1]{%

\item[\bfseries

\ifstrequal{#1}{A}{粒子群算法}{%

\ifstrequal{#1}{B}{Number Sets}{%

\ifstrequal{#1}{C}{Other Symbols}{}}}%

]}

最后在document里定義術(shù)語,并print

\begin{document}

????\nomenclature[A]{$m$}{材料層數(shù)}%

????\nomenclature[A]{$L$}{最大迭代數(shù)}%

? ?。。。。

\printnomenclature

\end{document}

2. 編譯

術(shù)語表的編譯與參考文獻(xiàn)類似,都是:

xelatex

makeindex %.nlo

xelatex

xelatex

具體命令如下:

makeindex %.nlo -s nomencl.ist -o %.nls (%為文件名)

最終效果如下


中文版術(shù)語表
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容