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

Conditions in algorithm are underlined automatically using algorithm2e package and TeXLive 2022 #328

Open
yspjack opened this issue Apr 12, 2024 · 0 comments

Comments

@yspjack
Copy link

yspjack commented Apr 12, 2024

Description

When I use algorithm2e to write pseudocode, the condition statements are underlined automatically because of ulem included in buaathesis.

How to reproduce

Here is an example. Texlive version is 2022.

\documentclass[master,openright,twoside,color,AutoFakeBold=true]{buaathesis}
\usepackage{algorithm2e}
\begin{document}
\begin{algorithm}[ht!]
    \SetAlgoLined
    \KwData{this text}
    \KwResult{how to write algorithm with \LaTeX2e }
    initialization\;
    \While{not at end of this document}{
        read current\;
        \eIf{understand}{
            go to next section\;
            current section becomes this one\;
        }{
            go back to the beginning of current section\;
        }
    }
    \caption{How to write algorithms}
\end{algorithm}
\end{document}

Expected output

Conditions in While and If statements without underline.

Actual output

Conditions in While and If statements are underlined automatically.

屏幕截图 2024-04-12 181935
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant