软件包 nomencl 存在问题

软件包 nomencl 存在问题

我正在为大学撰写一份报告,使用的是我在网上找到的格式。问题是,当我编写手稿时.tex,命名法没有出现在输出中。此外,目录不显示命名法页面。应用程序 Terminal.app 中使用的说明如下:

pdflatex 00_file.tex
makeindex 00_file.nlo -s nomencl.ist -o 00_file.nls
bibtex 00_file
pdflatex 00_file.tex
pdflatex 00_file.tex

包含00_file.tex

 \documentclass[12pt,a4paper,twoside,openright,english]{book}

 \usepackage{mathrsfs}
 \usepackage{latexsym}
 \usepackage{alltt}
 \usepackage[explicit]{titlesec}
 \usepackage{titletoc}
 \usepackage{tikz}
 \usepackage{epigraph}
 \usepackage{xpatch}
 \usepackage{lmodern}
 \usepackage{graphicx}
 \usepackage{natbib}
 \usepackage{pdfpages}
 \usepackage[activeacute]{babel}
 \usepackage[utf8]{inputenc} 
 \usepackage{amsmath}
 \usepackage{amssymb}
 \usepackage{multicol}
 \usepackage{wrapfig}
 \usepackage{nomencl}
 \usepackage[nottoc]{tocbibind}
 \usepackage{hyperref}                      

 \newlength\ChapWd
 \settowidth\ChapWd{\huge\chaptertitlename}

 \definecolor{myblue}{RGB}{0,0,122}

 \titleformat{\chapter}[display]
   {\normalfont\filcenter\sffamily}
   {\tikz[remember picture,overlay]
     {
     \node[fill=myblue,font=\fontsize{60}{72}\selectfont\color{white},anchor=north east,minimum size=\ChapWd] 
       at ([xshift=-120pt,yshift=-50pt]current page.north east) 
       (numb) {\thechapter};
     \node[rotate=90,anchor=south,inner sep=0pt,font=\huge] at (numb.west)  {\chaptertitlename};
     }
   }{0pt}{\fontsize{33}{40}\selectfont\color{myblue}#1}[\vskip10pt\Large***]
 \titlespacing*{\chapter}
   {0pt}{50pt}{10pt}


 \makeatletter
 \xpatchcmd{\ttl@printlist}{\endgroup}{{\noindent\color{myblue}\rule{\textwidth}{1.5pt}}\vskip30pt\endgroup}{}{}
 \makeatother

 \newcommand\DoPToC{%
 \startcontents[chapters]
 \printcontents[chapters]{}{1}{\noindent{\color{myblue}\rule{\textwidth} {1.5pt}}\par\medskip}%
 }

 \setlength\epigraphrule{0pt}
 \renewcommand\textflush{flushright}
 \renewcommand\epigraphsize{\normalsize\itshape}

 \textwidth=14cm                
 \graphicspath{{images/}}       
 \makenomenclature          

 \begin{document}
 \include{01_title}

 \frontmatter

 \setcounter{secnumdepth}{3} 
 \setcounter{tocdepth}{3}    
 \tableofcontents            

 \printnomenclature         

 \listoffigures 

 \listoftables  

 \include{03_Experimental}

 \backmatter

 \begin{multicols}{2} 
 \begin{tiny} 
 \bibliographystyle{abbrvnat}
 \renewcommand{\bibname}{References}
 \bibliography{10_references} 
 \end{tiny}
 \end{multicols}

 \end{document}

其中01_title.tex包括:

 \setlength{\unitlength}{1 cm}
 \thispagestyle{empty}
 %\begin{picture}(5,2)
 %\put(0,0){\includegraphics[width=3cm,height=4cm]{UNAM.jpg}}
 %\end{picture}
 \\
 \\
 \begin{center}
 \normalfont\filcenter\sffamily{{\Huge University}\\[0.5cm]
 {\LARGE Institute}}\\[1.25cm]
 {\Large Tiltle 1}\\[2.3cm]
 {\LARGE \textbf{Notes}}\\[3.5cm]
 {\large My name}\\[1.5cm]
 Program \\[0.5cm]
 City - \today
 \end{center}

具有03_Experimental.tex

 \chapter{Experimental}
 \DoPToC
 The velocity profile at the test zone without any room model must resembles the atmospheric boundary layer given by \citep{daniels} 

 \begin{equation}\label{Uprofile}
 u_z=u_r \left(\dfrac{z}{z_r} \right)^{\alpha},
 \end{equation}%
 \nomenclature{$z$}{Coordinate z [$m$]\nomrefpage}%
 \nomenclature{$u_z$}{Velocity [$m/s$]\nomrefpage}%
 \nomenclature{$u_r$}{Reference velocity [$m/s$]\nomrefpage}%
 \nomenclature{$z_r$}{Reference height [$m/s$]\nomrefpage}%
 \nomenclature{$\alpha$}{Exponent profile [$-$]\nomrefpage}%

 \noindent where $u_z$ is the velocity at a $z$ height, $u_r$ is the reference velocity, $z_r$ is the reference height and $\alpha$ is the exponent profile.

 \newpage
 \thispagestyle{empty}

最后10_references.bib拥有:

 @book{daniels,
    author = "Daniels, K",
    publisher = "Birkkäuser Verlay",
    title = "The Technology of Ecological Building: Basics Principles, Examples and Ideas",
    address = "Germany.",
    year = "1997"
 }

这是修改后的版本00_file.tex,其中带有intoc将术语纳入目录的选项:

 \documentclass[12pt,a4paper,twoside,openright,english]{book}

 \usepackage[explicit]{titlesec}
 \usepackage{titletoc}
 \usepackage{tikz}
 \usepackage{epigraph}
 \usepackage{xpatch} 
 \usepackage{amsmath}
 \usepackage[intoc]{nomencl}
 \usepackage[nottoc]{tocbibind}                     

 \newlength\ChapWd
 \settowidth\ChapWd{\huge\chaptertitlename}

 \definecolor{myblue}{RGB}{0,0,122}

 \titleformat{\chapter}[display]
   {\normalfont\filcenter\sffamily}
   {\tikz[remember picture,overlay]
     {
     \node[fill=myblue,font=\fontsize{60}{72}\selectfont\color{white},anchor=north east,minimum size=\ChapWd] 
       at ([xshift=-120pt,yshift=-50pt]current page.north east) 
       (numb) {\thechapter};
     \node[rotate=90,anchor=south,inner sep=0pt,font=\huge] at (numb.west)  {\chaptertitlename};
     }
   }{0pt}{\fontsize{33}{40}\selectfont\color{myblue}#1}[\vskip10pt\Large***]
 \titlespacing*{\chapter}
   {0pt}{50pt}{10pt}


 \makeatletter
 \xpatchcmd{\ttl@printlist}{\endgroup}{{\noindent\color{myblue}\rule{\textwidth}{1.5pt}}\vskip30pt\endgroup}{}{}
 \makeatother

 \newcommand\DoPToC{%
 \startcontents[chapters]
 \printcontents[chapters]{}{1}{\noindent{\color{myblue}\rule{\textwidth} {1.5pt}}\par\medskip}%
 }

 \setlength\epigraphrule{0pt}
 \renewcommand\textflush{flushright}
 \renewcommand\epigraphsize{\normalsize\itshape}

 \textwidth=14cm                

 \makenomenclature          

 \begin{document}

 \frontmatter

 \tableofcontents            

 \listoftables
 \printnomenclature         

 \mainmatter

 \chapter{Experimental}
 \DoPToC

 \begin{equation}\label{Uprofile}
 u_z=u_r \left(\dfrac{z}{z_r} \right)^{\alpha},
 \end{equation}%
 \nomenclature{$z$}{Coordinate z [$m$]\nomrefpage}%
 \nomenclature{$u_z$}{Velocity [$m/s$]\nomrefpage}%
 \nomenclature{$u_r$}{Reference velocity [$m/s$]\nomrefpage}%
 \nomenclature{$z_r$}{Reference height [$m/s$]\nomrefpage}%
 \nomenclature{$\alpha$}{Exponent profile [$-$]\nomrefpage}%

 \noindent where $u_z$ is the velocity at a $z$ height, $u_r$ is the reference velocity, $z_r$ is the reference height and $\alpha$ is the exponent profile.

 \newpage
 \thispagestyle{empty}

 \end{document}

我将非常感谢大家帮助我解决此问题。谢谢大家。


这是最小的例子:

 \documentclass[12pt,a4paper,twoside,openright,english]{book}

 \usepackage[explicit]{titlesec}
 \usepackage{titletoc}
 \usepackage{tikz}
 \usepackage{epigraph}
 \usepackage{xpatch} 
 \usepackage{amsmath}
 \usepackage[intoc]{nomencl}
 \usepackage[nottoc]{tocbibind}                     

 \newlength\ChapWd
 \settowidth\ChapWd{\huge\chaptertitlename}

 \definecolor{myblue}{RGB}{0,0,122}

 \titleformat{\chapter}[display]
   {\normalfont\filcenter\sffamily}
   {\tikz[remember picture,overlay]
     {
     \node[fill=myblue,font=\fontsize{60}{72}\selectfont\color{white},anchor=north east,minimum size=\ChapWd] 
       at ([xshift=-120pt,yshift=-50pt]current page.north east) 
       (numb) {\thechapter};
     \node[rotate=90,anchor=south,inner sep=0pt,font=\huge] at (numb.west)  {\chaptertitlename};
     }
   }{0pt}{\fontsize{33}{40}\selectfont\color{myblue}#1}[\vskip10pt\Large***]
 \titlespacing*{\chapter}
   {0pt}{50pt}{10pt}


 \makeatletter
 \xpatchcmd{\ttl@printlist}{\endgroup}{{\noindent\color{myblue}\rule{\textwidth}{1.5pt}}\vskip30pt\endgroup}{}{}
 \makeatother

 \newcommand\DoPToC{%
 \startcontents[chapters]
 \printcontents[chapters]{}{1}{\noindent{\color{myblue}\rule{\textwidth} {1.5pt}}\par\medskip}%
 }

 \setlength\epigraphrule{0pt}
 \renewcommand\textflush{flushright}
 \renewcommand\epigraphsize{\normalsize\itshape}

 \textwidth=14cm                

 \makenomenclature          

 \begin{document}

 \frontmatter

 \tableofcontents            

 \listoftables
 \printnomenclature         

 \mainmatter

 \chapter{Experimental}
 \DoPToC

 \begin{equation}\label{Uprofile}
 u_z=u_r \left(\dfrac{z}{z_r} \right)^{\alpha},
 \end{equation}%
 \nomenclature{$z$}{Coordinate z [$m$]\nomrefpage}%
 \nomenclature{$u_z$}{Velocity [$m/s$]\nomrefpage}%
 \nomenclature{$u_r$}{Reference velocity [$m/s$]\nomrefpage}%
 \nomenclature{$z_r$}{Reference height [$m/s$]\nomrefpage}%
 \nomenclature{$\alpha$}{Exponent profile [$-$]\nomrefpage}%

 \noindent where $u_z$ is the velocity at a $z$ height, $u_r$ is the reference velocity, $z_r$ is the reference height and $\alpha$ is the exponent profile.

 \newpage
 \thispagestyle{empty}

 \end{document}

答案1

我做了一个最小的例子,它似乎对我有用;请注意intoc将术语纳入目录的选项:

\documentclass{book}
\usepackage[intoc]{nomencl}
\makenomenclature          
\begin{document}
\tableofcontents            
\printnomenclature         

\chapter{Experimental}
The velocity profile at the test zone without any room model must resembles the atmospheric boundary layer given by [xyz]

 \begin{equation}\label{Uprofile}
 u_z=u_r \left(\frac{z}{z_r} \right)^{\alpha},
 \end{equation}%
 \nomenclature{$z$}{Coordinate z [$m$]\nomrefpage}%
 \nomenclature{$u_z$}{Velocity [$m/s$]\nomrefpage}%
 \nomenclature{$u_r$}{Reference velocity [$m/s$]\nomrefpage}%
 \nomenclature{$z_r$}{Reference height [$m/s$]\nomrefpage}%
 \nomenclature{$\alpha$}{Exponent profile [$-$]\nomrefpage}%

 \noindent where $u_z$ is the velocity at a $z$ height, $u_r$ is the reference velocity, $z_r$ is the reference height and $\alpha$ is the exponent profile.

\end{document}

相关内容