Tag Info

New answers tagged

1

You have to redeclare the math code for the uppercase letters after defining a new symbol font. \documentclass{article} \usepackage{amsmath} \DeclareSymbolFont{boldletters}{\encodingdefault}{\familydefault}{bx}{n} \DeclareSymbolFontAlphabet{\mathbf}{boldletters} \DeclareMathSymbol{A}{\mathalpha}{boldletters}{`A} ...


2

I think, only X and Y should b bold, whereas Var and Cov upright as words/operators (short for "variance" and "covariance"). Defining and using \X and \Y for \mathbf{X} and \mathbf{Y} is a good compromise IMHO. \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\Var}{Var} \DeclareMathOperator{\Cov}{Cov} \newcommand*{\X}{\mathbf{X}} ...


2

You need to expand \TextA before feeding it to \textit: \expandafter\textit\expandafter{\TextA} If you like you can redefine \textit in such a way that it expands its argument one time first: \ExplSyntaxOn \cs_generate_variant:Nn \embrac_textit:nn {no} \RenewDocumentCommand \textit {sm} { \IfBooleanTF {#1} { \embrac_textit:no {*} {#2} }% ...


9

Here are some options, depending on whether you want the text to stand out or not: \documentclass{article} \usepackage{lipsum} \newenvironment{itquote} {\begin{quote}\itshape} {\end{quote}\ignorespacesafterend} \newenvironment{itpars} {\par\itshape} {\par} \begin{document} \lipsum[1] \begin{quote} \lipsum[2] \end{quote} \lipsum[3] ...


4

You wrote: I have several portions of text that I want to be italicized, each of which are several paragraphs long. The macro \textit is not designed to work across paragraph breaks. Hence, don't use \textit{...} for the portions of text in question. Instead, use {\itshape ...}. Assuming the macro \em hasn't been redefined somehow, {\em ...} will also ...


5

The sort order of the subentries will be wrong likely, because \textit is included in the sort string. The @-notation can be used to specify a sort key without markup commands: \documentclass{article} \usepackage{makeidx} \makeindex \begin{document} \null \index{Brazil!aaa} \index{Brazil!zzz} \index{Brazil!\textit{wrong entry}} \index{Brazil!subentry ...



Top 50 recent answers are included