Tag Info

New answers tagged

4

Gonna be tacky and answer my own question. The answer, given by a friend on another forum, is to use the \IfLemmaTag command which works as follows: \Anotelabel{1}\IfLemmaTag{in}{\textit{in}}\pause{1} \textit{principio erat Verbum et Verbum erat apud Deum et Deus erat} \resume{1}\IfLemmaTag{Verbum}{\textit{Verbum}}\donote{1}{Jn. 1:1} That is, ...


1

Here is a simple solution for only the non-italic text. I think it also looks fine with italic text, but maybe you disagree. \documentclass{article} \usepackage{amssymb} \begin{document} sample$\Box{}$text \textit{sample$\Box{}$text} \end{document}


5

This makes use of two really nice answers. Joseph Wright at Detect which text "mode" (normal, italic, bold, etc.) is currently in use? tells how to determine the current font shape, which I use to determine if I am in italic or not. Bruno at Shear transform a "box" shows how to slant a box. Together, I use Bruno's \slantbox to slant ...


1

A small solution, but it doesn't look very nice ;-) \documentclass[a4paper, 12pt]{article} \usepackage{xcolor} \setlength{\fboxsep}{0pt} \begin{document} 1818{\color{red}\framebox{X}}cBb-1day \textit{1818{\color{red}\framebox{X}}cBb-1day } \emph{1818{\color{red}\framebox{X}}cBb-1day } \end{document} Some improved version for slanted boxes (and ...


5

The code you show produces an error message: ! Missing $ inserted. when TeX finds _, because this character is legal only in math mode. The output from then on can not be relied unto. Fix errors as soon as they are raised when processing the file. Your input should be Let the training data \(X\) consist of \(x_{i\dots n}\) observations, where \(n\) is ...


2

You can do this with advanced find: Edit > Find & Replace (Advanced). A panel will open on the right. First go to the "Settings" tab in that panel and uncheck "ignore format". Then go back to the "Search" panel, and click in the "Find" field and go to Insert > Insert Regular Expression > Anything. Highlight the whole box that appear (not just the ...


4

Redefine the \definiton macro which starts the environment: \documentclass{article} \newenvironment{definition}%% only for demo here {\itshape} {} \begin{document} \begin{definition} Everything is in italic \end{definition} Redefine the environment (should be in the pramble) \makeatletter \g@addto@macro{\definition}{\upshape} \makeatother ...



Top 50 recent answers are included