Tag Info

Hot answers tagged

4

Regardless whether it's useful or not, as a shortcut without $...$ it's possible to redefine \eta, but it's necessary to store the meaning of \eta before (making a copy) using \let. My statements are of general nature, I do not really recommend to use \eta in this way. \documentclass{article} \newcommand{\pt}{\ensuremath{p_T}} \let\etaorig\eta% ...


3

The \pdfstrcmp primitive performs expansion: the linked answer does mention that the argument needs to be a 'string'. For comparing arbitrary input, prevent expansion using \unexpanded: \documentclass{article} \usepackage[utf8]{inputenc} \setlength\parindent{0pt} \usepackage{siunitx,microtype,textcomp,textgreek} \newcommand{\evaltest}[2]{% ...


2

I suggest the macro \sgchart which generates desired table. The usage is: \sgchart {list of points} {formula: signs, formula: signs, formula: signs etc} for example \sgchart {-4, ~5} {x-5: --+, x+4: -++, (x+4)/(x-5): +-+} If the point value isn't preceded by ~ then it is printed with solid bullet (default) and if the ~ precedes then circle is printed. ...


2

I wouldn't use \limits in this case since it'll end up placing the lower and upper limits of the sequence below and above the right-hand curly brace -- probably not what you intended. If you write \{h_{n}\}_{0}^{\infty}$ (see the middle example below, labelled "not awful"), the upper and lower limits may look like they're too close to each other, especially ...


2

You are mixing math and text modes. You need to bracket the mathematics correctly. \documentclass{article} \begin{document} In-line math 1.The sequence \(\{a_n\}\) converges to \(a\) if for all \(\epsilon > 0\) Display math 1.The sequence \[\{a_n\}\] converges to \[a\] if for all \[\epsilon > 0\] \end{document} You use \( and \) to bracket ...


2

It's as easy as this: \documentclass{article} \DeclareMathAlphabet{\mathcal}{OMS}{ntxsy}{m}{n} % or txsy \SetMathAlphabet{\mathcal}{bold}{OMS}{ntxsy}{b}{n} % or txsy \begin{document} $x\mathcal{ABCDEF}y$ \boldmath$x\mathcal{ABCDEF}y$ \end{document} Explanation. The TX/NewTX packages do no change to the basic math font setup, where \mathcal is ...


1

The standard definition of \mathcal is in fontmath.ltx: \DeclareSymbolFontAlphabet{\mathcal} {symbols} So, to use a different font, we need to do two things: define a new symbol font, with a distinct name (because we don't want everything else to come from the txfonts symbol font); redefine \mathcal so that it uses the new font. So, let's use ...


1

Does it have to be pdfstrcmp? If not, you should look into etoolbox. E.g.: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \setlength\parindent{0pt} \usepackage{etoolbox} \usepackage{siunitx,microtype,textcomp,textgreek} \newcommand{\evaltest}[2]{% \ifnum\pdfstrcmp{#1}{#2}=0 #1 equals #2% \else #1 does ...


1

Here is another approach which doesn't allocate the new name \etaorig: \edef\eta{\noexpand\ensuremath{\mathchar\the\eta\space}}


1

You shouldn't be using \intertext to start the display. And you're better using \shortintertext in the second case, in order to reduce the vertical spacing. \documentclass[12pt,a4paper,twoside]{scrbook} \usepackage{amsmath} \usepackage{mathtools} \usepackage{amssymb} \usepackage{lipsum} \begin{document} \lipsum[1-3] \newpage \lipsum[1-3] \newpage ...


1

Don't type long descriptions in a math formula: per poi ottenere $Q:=P(\xi_1)\land\dots\land P(\xi_m)\land P(-\xi_1)\\dots\land P(-\xi_m)=$ ``\textit{uno stato casuale si stabilizza in uno degli stati memorizzati o un suo opposto}''. A questo punto Remove \textit if you don't need italics. Don't use \\ for ending paragraphs either. Note \dots for the ...


1

\usepackage{bbold} \begin{document} $\mathbb{0}$ \\ $\mathbb{1}$ \end{document} This also works. It's not the same font as used in the mathalfa package, but it also produces double struck 0s and 1s.


1

If I change the name of the subsidiary file drawing.pdf_tex to drawing.tex and load it in the main file via \input drawing (note that .tex is optional), and also make sure to compile the main file with LuaLaTeX, I get the following result: Note that the example code uses default text and math fonts that are rather different from Latin Modern. ...



Only top voted, non community-wiki answers of a minimum length are eligible