Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyperref + title formatting = bug #19

Open
Foggalong opened this issue Oct 7, 2024 · 0 comments
Open

hyperref + title formatting = bug #19

Foggalong opened this issue Oct 7, 2024 · 0 comments
Labels
report Relates to the edmaths document stylesheet

Comments

@Foggalong
Copy link
Owner

Tested with v0.99 and earlier. If the user includes any text formatting within their title, such as

\title{Solving {\it Some} Equations}

or any LaTeX mathematics such as

\title{Solving \(x^2 = 0\) Quickly}

then the compiler will throw the following bug

\@setfontsize #1#2#3->\@nomath #1
                                 \ifx \protect \@typeset@protect \let \@curr...
l.123 } {}

if the user is also using the hyperref package. This comes from trying to pass a formatted string to pdftitle in this code

% If with-hyperref selected, configure its default settings
\ifthenelse{\boolean{with-hyperref}}{
    ...
    \RequirePackage[pdftitle={\@title}, ...]{hyperref}
    ...
    } {}
} {}

The issue can be fixed by removing the formatting from \@title before passing it to pdftitle.

@Foggalong Foggalong added the report Relates to the edmaths document stylesheet label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
report Relates to the edmaths document stylesheet
Projects
None yet
Development

No branches or pull requests

1 participant