1

I want to define a command \bflikeuline which works like \bfseries. Namely, \bflikeuline some text will underline some text. I tried the following code:

\documentclass{ctexart}
\usepackage{amsthm}
\usepackage[normalem]{ulem}
\useunder{\uline}{\bflikeuline}{}
\begin{document}
    \bflikeuline this is a test
\end{document}

However, it doesn't work, and an error File ended while scanning use of \UL@on. throwed while compling. However, the following works.

\documentclass{ctexart}
\usepackage{amsthm}
\usepackage[normalem]{ulem}
\useunder{\uline}{\bflikeuline}{}
\begin{document}
    {\bflikeuline this is a test}
\end{document}

How to make \bflikeuline work without the surrounding curly brackets?

4

0

You must log in to answer this question.

Browse other questions tagged .