Conditions in algorithm are underlined automatically using algorithm2e package and TeXLive 2022
Opened this issue · 0 comments
yspjack commented
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](https://private-user-images.githubusercontent.com/19166754/321966897-9522bf7a-26f0-41bb-81ba-bbfcc312506a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyMzI4OTYsIm5iZiI6MTcxOTIzMjU5NiwicGF0aCI6Ii8xOTE2Njc1NC8zMjE5NjY4OTctOTUyMmJmN2EtMjZmMC00MWJiLTgxYmEtYmJmY2MzMTI1MDZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDEyMzYzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhNjM3MjMyOWFiY2VlZmY5NmFkNDhlMDU3OGVjMzQ4YThkYzY1NzZhMjU3NTI5M2JmMGQzYzVmMGUyOThkYWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Kci6pFaN3eKgINLj99Z-Xht5rPp65khmzaJAD2JDu2U)