Skip to content

Scoping issue with \underline #2795

@tp971

Description

@tp971

In the following example, the \em is applied to the entire text "Hello, world!", although it should only be applied to "Hello":

\documentclass{article}

\begin{document}

\underline{\em Hello}, world!

% Can be fixed by adding an extra group:
% \underline{{\em Hello}}, world!

\end{document}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions