Bug Tracker 
ID | 159🔗 |
---|---|
Date: | 2020-04-16 13:49:12 |
Last update: | 2025-03-16 15:04:35 |
Status | Closed (Not a Bug) |
Category | glossaries |
Version | 4.46 |
Summary | Superragged style may create a header on an empty page even when using the emptypage package |
Sign in to subscribe to notifications about this report.
Description
When the superragged style is used to display a glossary, a header is sometimes created on an empty page, even though theemptypage
package has been loaded.
In my MWE I use the Latin Modern font at 12 pt, and even though the list of symbols occupies just one page, the "Symbols" header appears on the next page.
MWE
Download (4.23K)
% arara: lualatex % arara: bib2gls % arara: lualatex % glossaries 4.46, glossaries-extra 1.45 \documentclass[12pt,a4paper]{book} \usepackage{fontspec} \usepackage{mathtools} \usepackage[math-style=ISO]{unicode-math} \usepackage{emptypage} \usepackage{hyperref} \begin{filecontents}{symbols.bib} % Encoding: utf8 @symbol{hankone, name = {\ensuremath{H_{\nu}^{(1)}(z)}}, description = {funzione di Hankel di prima specie} } @symbol{hanktwo, name = {\ensuremath{H_{\nu}^{(2)}(z)}}, description = {funzione di Hankel di seconda specie} } @symbol{coefatt, name = {\ensuremath{\alpha}}, description = {coefficiente di attenuazione in una fibra ottica} } @symbol{gain, plural = {\ensuremath{G}}, name = {\ensuremath{G(\theta , \phi)}}, description = {guadagno d'antenna definito come il rapporto tra potenza irradiata dall'antenna isotropica e la potenza irradiata da un'antenna reale, tale da avere la stessa densità di potenza alla stessa distanza} } @symbol{effarea, name = {\ensuremath{A_\text{eff}}}, description = {area efficace di un'antenna. Indica l'attitudine dell'antenna ad assorbire potenza} } @symbol{wavelen, name = {\ensuremath{\lambda}}, description = {lunghezza d'onda} } @symbol{force, name = {\ensuremath{\mathit{F}}}, description = {vettore forza}, } @symbol{mass, name={\ensuremath{m}}, description={massa}, } @symbol{accel, name={\ensuremath{\mathit{a}}}, description={accelerazione}, } @symbol{meltt, name = {\ensuremath{T_\text{m}}}, description = {temperatura di fusione} } @symbol{ipergeoconf, %unit = {\si{\ampere \per \metre}}, name = {\ensuremath{M (a,b,z)}}, description = {funzione ipergeometrica confluente, detta anche funzione di Kummer di prima specie} } @symbol{rzeta, unit = { }, % "unit" è un parametro custom che però per questo glossario non interessa name = {\ensuremath{\zeta(s)}}, description = {funzione zeta di Riemann} } @symbol{ibuio, unit = {\si{\ampere}}, name = {\ensuremath{I_\text{\mdseries d}}}, description = {corrente di buio che scorre attraverso un fotodiodo quando questo non è eccitato da una potenza in ingresso} } @symbol{resp, unit = {\si{\ampere \per \watt}}, name = {\ensuremath{\mathcal{R}}}, description = {responsività di un fotodiodo} } @symbol{gegen, name = {\ensuremath{C_{n}^{\alpha}(z)}}, description = {polinomio di Gegenbauer} } @symbol{gth, name = {\ensuremath{\psi_\text{\mdseries GT}}}, description = {ground track heading, detto anche angolo di virata \(\delta\). Angolo che la proiezione a terra della velocità \(V\) del baricentro del velivolo forma con in Nord} } @symbol{v, name = {\ensuremath{v}}, description = {vettore velocità} } @symbol{M, name = {\ensuremath{M}}, description = {mutua induttanza} } \end{filecontents} \usepackage[symbols, % crea il glossario dei simboli ucmark=true, % glossari appaiono nelle testatine toc, % glossari appaiono nell'indice record % puoi usare bib2gls ]{glossaries-extra} \glsnoexpandfields % per far funzionare con siunitx \GlsXtrLoadResources[% src={symbols.bib},% sort-field={name},% type={symbols},% sort={letter-case}]% ordina secondo la lettera del nome \usepackage{glossary-superragged} \begin{document} \begin{frontmatter} \printunsrtglossary[% type=symbols,% style=superragged,% nogroupskip,% nonumberlist% ] \end{frontmatter} \begin{mainmatter} \chapter{Hello} \gls{hankone} \gls{hanktwo} \gls{coefatt} \gls{gain} \gls{effarea} \gls{wavelen} \gls{force} \gls{mass} \gls{accel} \gls{meltt} \gls{ipergeoconf} \gls{rzeta} \gls{ibuio} \gls{resp} \gls{gegen} \gls{gth} \gls{v} \gls{M} \end{mainmatter} \end{document}
Evaluation
The same problem can be demonstrated with the following, which is essentially mimicking what \printunsrtglossary
is doing:
\documentclass[12pt,a4paper]{book} \usepackage{fontspec} \usepackage{mathtools} \usepackage[math-style=ISO]{unicode-math} \usepackage{emptypage} \usepackage{supertabular} \usepackage{array} \usepackage{etoolbox} \usepackage{hyperref} \newenvironment{theglossary} {\tablehead{}\tabletail{}% \begin{supertabular}{l>{\raggedright}p{0.6\textwidth}}} {\end{supertabular}} \newcommand{\glossarypreamble}{} \newcommand{\glossarypostamble}{} \begin{document} \frontmatter \ifundef{\cleardoublepage}{\clearpage}{\cleardoublepage}% \phantomsection \chapter*{Symbols}% \markboth{Symbols}{Symbols}% \addcontentsline{toc}{Symbols}{chapter} \glossarypreamble \begin{theglossary} \ensuremath{C_{n}^{\alpha}(z)} & polinomio di Gegenbauer \tabularnewline \ensuremath{\mathit{F}} & vettore forza \tabularnewline \ensuremath{G(\theta , \phi)} & guadagno d'antenna definito come il rapporto tra potenza irradiata dall'antenna isotropica e la potenza irradiata da un'antenna reale, tale da avere la stessa densità di potenza alla stessa distanza \tabularnewline \ensuremath{H_{\nu}^{(1)}(z)} & funzione di Hankel di prima specie \tabularnewline \ensuremath{H_{\nu}^{(2)}(z)} & funzione di Hankel di seconda specie \tabularnewline % commenting out this row to get the table on one page: %\ensuremath{M} %& %mutua induttanza %\tabularnewline \ensuremath{M (a,b,z)} & funzione ipergeometrica confluente, detta anche funzione di Kummer di prima specie \tabularnewline \ensuremath{\mathcal{R}} & responsività di un fotodiodo \tabularnewline \ensuremath{A_\text{eff}} & area efficace di un'antenna. Indica l'attitudine dell'antenna ad assorbire potenza \tabularnewline \ensuremath{I_\text{\mdseries d}} & corrente di buio che scorre attraverso un fotodiodo quando questo non è eccitato da una potenza in ingresso \tabularnewline \ensuremath{T_\text{m}} & temperatura di fusione \tabularnewline \ensuremath{\psi_\text{\mdseries GT}} & ground track heading, detto anche angolo di virata \(\delta\). Angolo che la proiezione a terra della velocità \(V\) del baricentro del velivolo forma con in Nord \tabularnewline \ensuremath{\mathit{a}} & accelerazione \tabularnewline \ensuremath{m} & massa \tabularnewline \ensuremath{v} & vettore velocità \tabularnewline \ensuremath{\alpha} & coefficiente di attenuazione in una fibra ottica \tabularnewline \ensuremath{\zeta(s)} & funzione zeta di Riemann \tabularnewline \ensuremath{\lambda} & lunghezza d'onda \tabularnewline \end{theglossary}\glossarypostamble \mainmatter \chapter{Hello} \ensuremath{H_{\nu}^{(1)}(z)} \ensuremath{H_{\nu}^{(2)}(z)} \ensuremath{\alpha} \ensuremath{G(\theta , \phi)} \ensuremath{A_\text{eff}} \ensuremath{\lambda} \ensuremath{\mathit{F}} \ensuremath{m} \ensuremath{\mathit{a}} \ensuremath{T_\text{m}} \ensuremath{M (a,b,z)} \ensuremath{\zeta(s)} \ensuremath{I_\text{\mdseries d}} \ensuremath{\mathcal{R}} \ensuremath{C_{n}^{\alpha}(z)} \ensuremath{\psi_\text{\mdseries GT}} \ensuremath{v} \ensuremath{M} \end{document}
The table just fits on the first page and the second page is blank except for the header with "ii" on the left and "Symbols" on the right. This demonstrates that it's a quirk in the interaction between supertabular and emptypage, so there's nothing that the glossaries (or glossaries-extra) package can do about it. So therefore I will have to close this issue as "not a bug" as it's not a bug in the glossary style.
I recommend you switch to using longragged
instead.
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=159