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

titleps: No \pars allowed in header / footer #79

Closed
jasperhabicht opened this issue Oct 25, 2024 · 1 comment
Closed

titleps: No \pars allowed in header / footer #79

jasperhabicht opened this issue Oct 25, 2024 · 1 comment

Comments

@jasperhabicht
Copy link

jasperhabicht commented Oct 25, 2024

Due to the fact that the relevant commands are not defined as \long, it is not possible to use \par in the headers or footers (not even inside \parboxes or similar), which, however, might be required by the user. At least, I can't see a reason why one would not want to allow this.

For example, the following code will break:

\documentclass{article}
\usepackage{titleps}

\newpagestyle{main}{
    \sethead{}{
        \parbox{\textwidth}{foo \par bar}
    }{}
} 
\pagestyle{main}

\begin{document}
baz
\end{document}

A possible way to circumvent this would be to create a copy of \par:

\documentclass{article}
\usepackage{titleps}
\let\parcopy\par

\newpagestyle{main}{
    \sethead{}{
        \parbox{\textwidth}{foo \parcopy bar}
    }{}
} 
\pagestyle{main}

\begin{document}
baz
\end{document}
@jbezos
Copy link
Owner

jbezos commented Jan 4, 2025

I’m closing this issue because it’s an enhancement request. This doesn’t mean it’s rejected, just it’s not listed has an issue.

@jbezos jbezos closed this as completed Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants