![删除双面书前言中首字母缩略词和术语列表之间的空白页](https://linux22.com/image/393814/%E5%88%A0%E9%99%A4%E5%8F%8C%E9%9D%A2%E4%B9%A6%E5%89%8D%E8%A8%80%E4%B8%AD%E9%A6%96%E5%AD%97%E6%AF%8D%E7%BC%A9%E7%95%A5%E8%AF%8D%E5%92%8C%E6%9C%AF%E8%AF%AD%E5%88%97%E8%A1%A8%E4%B9%8B%E9%97%B4%E7%9A%84%E7%A9%BA%E7%99%BD%E9%A1%B5.png)
我正在尝试删除缩写和符号列表段落之间的多余空白页。我使用符号包命名法列表进行打印和管理\frontmatter
。\documentclass[twoside]{book}
梅威瑟:
% arara: lualatex: { shell: true }
% arara: nomencl
% arara: makeglossaries
% arara: lualatex: { synctex: true, shell: true }
% arara: lualatex: { synctex: true, shell: true }
\documentclass [a4paper, 12pt, twoside] {book}
\usepackage [czech] {babel}
\usepackage [utf8] {inputenc}
\usepackage{amssymb}
\usepackage [left=2.5cm, right=2cm, bottom=3cm] {geometry}
\linespread{1.0}
\usepackage{array}
\usepackage{booktabs}
\usepackage{longtable}
\setlength{\tabcolsep}{10pt}
\renewcommand{\arraystretch}{1.2}
%List of Abbreviations
\usepackage[xindy={language=czech, codepage=utf8}, automake, abbreviations,%
stylemods=longbooktabs%
]{glossaries-extra}
\makeglossaries
\setglossarystyle{long-booktabs}
\renewcommand*{\entryname}{Acronym}
\renewcommand*{\descriptionname}{Description}
\setabbreviationstyle[acronym]{long-short-user}
\usepackage[intoc]{nomencl}
\usepackage{ifthen}
\renewcommand{\nomgroup}[1]{%
\item[\bfseries
\ifthenelse{\equal{#1}{P}}{Physics Constants}{%
\ifthenelse{\equal{#1}{O}}{Other Symbols}{%
\ifthenelse{\equal{#1}{N}}{Number Sets}{}}}%
]}
% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\makenomenclature
\renewcommand{\nomname}{Symbol definitions}
%Abbreviations
\newacronym{abc}{ABC}{beginning of alphabet}
\newacronym{def}{DEF}{another part of alphabet}
\begin{document}
\nonfrenchspacing
\frontmatter
\pagestyle{plain}
\glsaddall
\printglossary[type=\acronymtype, nonumberlist, nopostdot, title=Abbreviations]
%Symbols
\nomenclature[P]{$c$}{Speed of light in a vacuum inertial system
\nomunit{$299,792,458\, m/s$}}
\nomenclature[N]{$\mathbb{R}$}{Real Numbers}
\nomenclature[O]{$V$}{Constant Volume}
\printnomenclature
\clearpage
\end{document}
最后要说的是:我对 LaTeX 只是初级的了解,这个问题的解决方案可能很简单,但我找不到。另外,如果你编译 MWE,你会在开头看到 2 个空白页。我不知道为什么在我使用的原始文档中没有出现这些空白页,所以不需要解决这个问题。
任何帮助都将受到赞赏。
问候,托马斯
答案1
插入空白页是因为缩写列表和符号列表都被视为一个章节,它们只应该从左手边的页面开始。为了避免这个问题,可以暂时改变 的定义\cleardoublepage
:
% !TeX program = txs:///arara
% arara: lualatex: { shell: true }
% arara: nomencl
% arara: makeglossaries
% arara: lualatex: { synctex: true, shell: true }
% arara: lualatex: { synctex: true, shell: true }
\documentclass [a4paper, 12pt, twoside] {book}
\usepackage [czech] {babel}
\usepackage [utf8] {inputenc}
\usepackage{amssymb}
\usepackage [left=2.5cm, right=2cm, bottom=3cm] {geometry}
\linespread{1.0}
\usepackage{array}
\usepackage{booktabs}
\usepackage{longtable}
\setlength{\tabcolsep}{10pt}
\renewcommand{\arraystretch}{1.2}
%List of Abbreviations
\usepackage[xindy={language=czech, codepage=utf8}, automake, abbreviations,%
stylemods=longbooktabs%
]{glossaries-extra}
\makeglossaries
\setglossarystyle{long-booktabs}
\renewcommand*{\entryname}{Acronym}
\renewcommand*{\descriptionname}{Description}
\setabbreviationstyle[acronym]{long-short-user}
\usepackage[intoc]{nomencl}
\usepackage{ifthen}
\renewcommand{\nomgroup}[1]{%
\item[\bfseries
\ifthenelse{\equal{#1}{P}}{Physics Constants}{%
\ifthenelse{\equal{#1}{O}}{Other Symbols}{%
\ifthenelse{\equal{#1}{N}}{Number Sets}{}}}%
]}
% This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------
\makenomenclature
\renewcommand{\nomname}{Symbol definitions}
%Abbreviations
\newacronym{abc}{ABC}{beginning of alphabet}
\newacronym{def}{DEF}{another part of alphabet}
\begin{document}
\nonfrenchspacing
\frontmatter
\pagestyle{plain}
{
\let\cleardoublepage\clearpage
\glsaddall
\printglossary[type=\acronymtype, nonumberlist, nopostdot, title=Abbreviations]
%Symbols
\nomenclature[P]{$c$}{Speed of light in a vacuum inertial system
\nomunit{$299,792,458\, m/s$}}
\nomenclature[N]{$\mathbb{R}$}{Real Numbers}
\nomenclature[O]{$V$}{Constant Volume}
\printnomenclature
}
\clearpage
\end{document}