实际上,我想设置一个缩写列表,但是当显示缩写时,它们包含的页码不是正确的页码,并且我不希望页码出现在缩写列表中,下面是我使用的代码:
\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{framed}
\usepackage{cclicenses}
\usepackage{makecell}
\usepackage[french]{babel}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage[refpage]{nomencl}
\makenomenclature
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\usepackage[justification=centering]{caption}
\usepackage{etoolbox}
\usepackage[a4paper,right=20mm,left=25mm,top=20mm, bottom=20mm]{geometry}
\makeatletter
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{20pt}
\makeatother
\title {thesis title}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\begin{document}
\maketitle
\renewcommand{\nomname}{Liste des abréviations}
\printnomenclature
\chapter*{Introduction générale}
Blablablablablablablablablablablablablablalabla\\blablablablablablablabla
Modern World (MW) \nomenclature{MW}{: Modern World}
\doublespacing
\end{document}
答案1
删除页码不应出现在缩写列表中的refpage
选项。nomencl
\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{framed}
\usepackage{cclicenses}
\usepackage{makecell}
\usepackage[french]{babel}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{nomencl}
\makenomenclature
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\usepackage[justification=centering]{caption}
\usepackage{etoolbox}
\usepackage[a4paper,right=20mm,left=25mm,top=20mm, bottom=20mm]{geometry}
\makeatletter
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{20pt}
\makeatother
\title {thesis title}
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\begin{document}
\maketitle
\renewcommand{\nomname}{Liste des abréviations}
\printnomenclature
\chapter*{Introduction générale}
Blablablablablablablablablablablablablablalabla\\blablablablablablablabla
Modern World (MW) \nomenclature{MW}{: Modern World}
\doublespacing
\end{document}