I read how to change \emph and changed it to \DeclareTextFontCommand{\emph}{\bfseries}.
Now I want to create another command like \secondstyleformat which I can configure aswell. Such a format could be bold and italic. After writing the document I could change it easily to for example italic and blue. How can I do that?
LaTeXcommand does not work, so\emph2is a syntax error. Try\BetterEmphor something similar – Jul 03 '14 at 10:03\emphto look for the next token and, if it finds a2then use\itshapeand, otherwise,\bfseries… But, why wouldn't you use a semantic command? What are you going to emphasize with this “\emph2”. – Manuel Jul 03 '14 at 10:06emphchanges font style to\bfseries, but ok... You can declare your font style commands with\newcommand{\OtherFontMarkup}{\itshape}or use `\DeclareTextFontCommand, if necessary, I do not get what the issue might be – Jul 03 '14 at 10:21\emphand this\emph2at the same time, what's the inconvenience of just changing the definition of\emph? – Manuel Jul 03 '14 at 10:25\emphanyway. Better use logical markup, say for some text, which should be formated in special way, at first\textit{foo}and later on the decision to make in blue color and bold, it is better do use a command\newcommand{\makeitboldandcoloured}[1]{\textbf{\textcolor{blue}{#1}}}, in the preamble, so you can 1st easily detect and replace such markup to change the name or change the color etc, if needed. This requires a little categorization how certain text is to be formatted – Jul 03 '14 at 10:29\makeitboldandcoloured– user50224 Jul 03 '14 at 10:34\DeclareTextFontCommand\makeitboldandcoloured{\bfseries\color{blue}}. – Manuel Jul 03 '14 at 10:36\DeclareTextFontCommandinstead of my proposition via\newcommand, see http://tex.stackexchange.com/questions/47259/why-use-declaretextfontcommand-vs-just-newcommand – Jul 03 '14 at 10:43