I am frequently using the same command and want some shortcuts. How can I make shortcuts to \color{blue}\textbf{some text}}?
Asked
Active
Viewed 35 times
\newcommand{\boldblue}[1]{{\color{blue}\textbf{#1}}}and then\boldblue{some text}? This is quite a basic macro, you can learn more on https://www.learnlatex.org/en/lesson-06 – Rmano Sep 05 '22 at 20:06\newcommand{\boldblue}[1]{\textcolor{blue}{\textbf{#1}}}feels more natural to me. – frabjous Sep 05 '22 at 20:17\colormight produce undesired output, for instance if\boldblueappears at the beginning of a paragraph. Using\textcoloris much better. – egreg Sep 05 '22 at 21:05\textcoloras instructed. – Veak Sep 06 '22 at 09:23