# Tag Info

0

As already mentioned, there are two packages to solve this problem: xfrac - typeset fractions in the form n/d generally faktor - especially to typeset factor structures Here is a comparison between the \sfrac{n}{d} and \faktor{n}{d} commands which also demonstrates how they behave in comparison to normal text: \documentclass[12pt,preview, ...

2

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]{% ...

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 ...

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


7

Since \mid does not make much sence then you read \Exp{A \mid B} (and cannot be scaled), I suggest hiding the | inside a specially crafted macro giving us a macro that support conditionals including scaling. \documentclass[a4paper]{memoir} % requires 2014 edition of mathtools \usepackage{amsmath,amssymb,mathtools,bm,etoolbox} \providecommand\given{} ...

1

Latex has a \textcircled command for making a fixed size circle around a letter \textcircled{R} and its picture mode has a \circle command for making circles in a range of sizes (or arbitrary size if you use pict2e). You don't mention mathjax but I note you tagged the question mathjax. Mathjax specific questions are off topic, but I'll note that mathjax ...

4

The \Call macro uses \ifthenelse, which has a very handy feature: it allows combining tests with propositional logic connectives (called \AND and \OR) with parentheses for the stating the precedence. Here's the catch! The symbols for these parentheses are $$and$$. So the presence of $$and$$ in the second argument of \Call (that is used in an ...

1

How about that? I used the aligned and medsize (from nccmath) environments. I also loaded lmodern, which is T1-encoded and has accented letters, for a correct hyphenation. Also, you can typeset accented letters directly (ä instead of {\"a}). \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...

Top 50 recent answers are included