I want to define \newcommand{\B}
in 2 different ways and switch between them in the simplest way – just using a comment mark, %
. Let's look at the example:
\documentclass[a4paper,9pt]{article}
\usepackage[utf8]{inputenc}
% My 1st definition
\newcommand{\B}[1]{\textbf{#1}}
% My 2nd definition (it’s wrong that’s way I’m asing)
\newcommand{\B}{$\ldots$}
\begin{document}
Let \B{1.345} be
\end{document}
Using first definition the value 1.345
is bolded. If I use second definition I should always get only $\ldots$
so value 1.345
should be removed. I tried to add spaces (crude solution) but value skipped line below. Any suggestion?
article
class doesn't support the9pt
fontsize option without loading, e.g, theextsizes
package.\renewcommand
for the second definition, you only have to add/remove one comment mark instead of adding one and removing one