TransWikia.com

Protect part of text from external formatting

TeX - LaTeX Asked by Damien L on April 17, 2021

I would like to create a macro ProtectedBold
such that

foo textit{ProtectedBold{bar}}

would compile as "foo bar" and not "foo bar".

What is the standard way to achieve this?

One Answer

Something like this?

enter image description here

documentclass{article}
newcommandProtectedBold[1]{textup{textbf{#1}}}
begin{document}
foo textit{ProtectedBold{bar}}
end{document}

Correct answer by Mico on April 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP