Skip to content

Conflict with glosseries(-extra) #10

Description

@domiden

Description

First of all, thank you very much for all the effort you put into the package. I recently noticed that there is a potential conflict with glossaries(-extra). This problem only occurs when I load typog. In the text passage where I use \gls{} or other glossaries functions, considerably more additional space is inserted before the acronym. I have created a minimal example that will hopefully reproduce the issue.

Btw, it would be great if you could include the code you used for your examples in the documentation.

Minimal example

Minimal_example_of_conflict_with_typog_and_glosseries__extra_-1.pdf

Code

\documentclass{scrbook}
\KOMAoptions{
   paper = a4,%
   pagesize = auto,%
   fontsize = 12pt,%
   parskip = half,%
   usegeometry=true%
}
\usepackage[%
    vmargin=20mm,%
    inner=20mm,%
    outer=30mm%
]{geometry}
\usepackage[no-math]{fontspec}
\usepackage[main=english]{babel}
\usepackage[babel=true]{microtype}
\usepackage{typog}
\usepackage[%
  colorlinks=true,%
  linktoc = all%
]{hyperref}

\usepackage[%
    automake,%
    abbreviations,%
    nopostdot%
]{glossaries-extra}
\setabbreviationstyle{long-short}
\newabbreviation{hmwb}{HMWB}{heavily modified water body}
\makeglossaries

\begin{document}
\begin{titlepage}
    \begin{smoothraggedrightpar}
        \huge\bfseries A minimum example of a potential conflict when using \texttt{typog} and \texttt{glossaries} in a \LaTeX{} document
    \end{smoothraggedrightpar}
    \vspace{2em}
    
    \textbf{domiden}
    \vfill
    
    \textit{\today}
\end{titlepage}
\frontmatter
\glsfindwidesttoplevelname
\printabbreviations[nonumberlist]

\mainmatter
\chapter{Issues}
\section{Typog with Glosseries}
\subsection{An example}

The river has been classified as a \gls{hmwb}. The reasons given for this designation are hydromorphological changes, manifesting primarily as transverse structures and waterway development. The use of water for energy production and tourism is also a contributing factor.

\backmatter
% references

\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions