Tag Info

New answers tagged

1

I'm not clear exactly what your question is but you ask in comments of it is possible to locally affect the size of formulae. The standard LaTeX font commands affect math as well as text so you can do this: \documentclass{article} \usepackage{amsmath} \begin{document} xxx $a=b$ yyy zzz zzz zzz zzz zzz zzz \[a=b\] yy yy yy yy yy yy yy yy zzz zzz zzz ...


0

In your preamble: \usepackage{braket} % needed for \Set In your math mode: A = \Set{ (x,y,z) : \exists ... \forall ... (big definition of a graph)}


11

For very strange reasons, the slot "6B in the font sy-iwona is empty. The \lVert and \rVert commands point to that slot, so you can't see any symbol because it's not there to begin with. The definition of \lVert and \rVert given by amsmath are \DeclareMathDelimiter{\lVert} {\mathopen}{symbols}{"6B}{largesymbols}{"0D} \DeclareMathDelimiter{\rVert} ...


3

EDIT for left/right. While David Carlisle points out that my solution does not work for vertically scaled \left \right syntax, the \stretchleftright{}{}{} syntax of the scalerel package takes care of it. \documentclass{standalone} \usepackage[math]{iwona} \usepackage{mathtools} \usepackage{scalerel} \DeclarePairedDelimiter\norm{\lVert}{\rVert} ...


4

A simple solution using \bullet as superscript: \documentclass{article} \usepackage{amsmath} \newcommand{\dotr}[1]{#1^{\bullet}} \begin{document} $\dotr{(X+Y)}$ \end{document} If the bullet is too large, it can be reduced using the graphicx package. The following example also measures the first term and puts the bullet as high as possible ...


5

another approach: \documentclass{article} \usepackage{amsmath} \newcommand{\dotr}{\mbox{$\boldsymbol{\cdot}$}} \begin{document} $(X+Y)^{\dotr}$ \end{document}


0

The altitude of the dot is adjustable, currently 1ex \documentclass{article} \usepackage{verbatimbox} \newcommand{\dotr}[1]{#1\mbox{\bfseries\addvbuffer[-1ex 1ex]{.}}} \begin{document} $\dotr{(X+Y)}$ \end{document}


0

Please compare: \documentclass{article} \usepackage{amsmath} \usepackage{accents} \newcommand{\dotr}[1]{% #1\accentset{\mbox{\bfseries .}}{\vphantom{#1}}} \begin{document} $\dotr{(X+Y)}$ $(X+Y)^{\textstyle\textbf{.}}$ \end{document} Of course, corrections of the heighth are possible.


2

Your title says "Left" but your example code has a standard right superscript? Assuming you want it on the right, I'd probably just do (X+Y)^{\cdot}


1

You are not using correct dot language. Underscores in node names work fine indeed, as node names have to consist of digits, letters, and underscores, not starting with a digit. Your graph defines nodes a, bar, b, and c, where b is contained in a subgraph. What you actually want to achieve is probably: \documentclass{article} \usepackage{dot2texi} ...


3

I would suggest you use the siunitx package and set the comma as decimal point by \sisetup{output-decimal-marker = {,}}. Using this package will also allow you to use some other very nice features that you'll find handy, such as 3-number separators, SI units, D columns (when dealing with tables full of numbers) and much more! Take a look at the siunitx ...


2

The following: Print Replica: This Kindle book looks just like the printed book Available only on Kindle Fire Tablets, iPad, Android Tablets, PC and Mac suggests that it is PDF not AZW or MOBI. And a good preview of math documents... Not on any 6" display. Well, I use it sometimes, but it really painfull.


0

This is just an example to explore the possibility/usefulness of direct unicode input. I think David Carlisle's answer is perfect. f̬̂ Û̬


2

I probably should have posted this answer (Proper use of \mathchoice) here, but I will just refer you to it. In the MWE at that post, I introduce the syntax \MS{...\SavedMathStyle...} which can also be nested as \MS{...\SavedMathStyle...\MS{...\SavedMathStyle...}...} The invocation of \MS saves the current math style, which can later be recalled via ...


4

A combination of amsmath's \overset and \underset can help here: \documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \newcommand{\hatv}[1]{\overset{\wedge}{\underset{\vee}{\mathstrut#1}}} \newcommand{\fhatv}{\hatv{f}} \newcommand{\Uhatv}{\hatv{U}} \begin{document} $\fhatv\ \Uhatv$ \end{document} The use of \mathstrut allows for ...


5

\documentclass{article} \usepackage{amsmath} \begin{document} \[ \mathop{f{}}\limits_\vee^\wedge \] \end{document}


3

Everything I know about \mathchoice I learned from David Carlisle's accepted answer above. He explained it wonderfully. So this answer is not an attempt to replace that answer, but to amplify it. His key phrase that triggered my light bulb was "\mathchoice{a}{b}{c}{d} is indistinguishable from within tex from \hbox{a}\hbox{b}\hbox{c}\hbox{d}" which made ...


6

mathstyle does \AtBeginDocument{\catcode`\^=12\relax \catcode`\_=12\relax}% If you need definitions in the preamble you could just execute that earlier. \documentclass{article} \usepackage{amsmath} \usepackage{mathstyle} \catcode`\^=12\relax \catcode`\_=12\relax \newcommand*{\testcmd}{\(M_{\texttt{k}}\)} \begin{document} \(M_{\texttt{k}}\) \par ...


3

Here is a method which works by using flalign and maintaining a fixed distance to the right margin of the rightmost, textual, part of the equation. Some adjustment to take into account the tag use the calc package facilities for dimension expressions. \documentclass[letterpaper,fleqn]{article} \usepackage{amsmath,amssymb} \usepackage{calc} % The default ...


1

As noted by @cgnieder the default appearance of numbers for the main text should be set to proportional and osf (old style figures). The chemistry equations should get proportional lining figures. Finally, tables should contain tabular figures (equal width), but personally I think old style figures are fine in a table. In the following code I define three ...


0

I show your original, followed by two alternatives. The first scales the summation to 20% of the original size. The second scales the 3 to 500% of the original size. The \scaleobj command is part of the scalerel package. It is similar to the \scalebox command of the graphicx package, except that it defaults to math mode, and takes the current math style ...


1

You could use parentheses to make more clear what you would like to show: 3^{\left (\displaystyle \sum_{n=0}^{\infty}\frac{(-1)^n}{2^n} \right)} Or standard in-line style: 3^{\left (\sum_{n=0}^{\infty}\frac{(-1)^n}{2^n}\right )} or even 3^{\sum_{n=0}^{\infty}\frac{(-1)^n}{2^n}} This looks much more natural than having a huge 3 and a tiny ...


5

${\scriptstyle<}1\mathrm{ms}$ perhaps?


3

The libertine package per default has the options lining and tabular activated. In normal text you usually want proportional and oldstyle, though. \usepackage[oldstyle,proportional]{libertine} You don't want to set them as package options, though, but only after newtxmath has been loaded to get lining figures in math. This could be done by defining ...


1

Use \usepackage{libertine}, and immediately after \begin{document}, use \libertineOsF. Immediately after \begin{table}[..], use \libertineLF.


6

A variation of morbusg solution that works also for subscripts and superscripts. \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\dotminus}{\mathbin{\text{\@dotminus}}} \newcommand{\@dotminus}{% \ooalign{\hidewidth\raise1ex\hbox{.}\hidewidth\cr$\m@th-$\cr}% } \makeatother \begin{document} $a\dotminus b_{c\dotminus d}$ ...


3

You can't use \left in one line of a split and \right in another one. You should also use an align* environment (and don't use redundant \left and \right); the big delimiters must be set by hand. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} F'&=\delta m\biggl\{f\frac{M_1l}{r^3}\bigl[3\cos^2\phi\cos^2(\lambda-D)-1\bigr] ...


1

The -\\- parts are main source of the problem. You should add closing \right's, in particular \right., before \\, and opening \left's after it.


4

Here's a try at building one: \def\dotminus{\mathbin{\ooalign{\hss\raise1ex\hbox{.}\hss\cr \mathsurround=0pt$-$}}} $ a \dotminus b $ \bye


2

If using unicode-math is an option, you could input it directly \documentclass{article} \usepackage{unicode-math} \setmathfont{XITS Math} \begin{document} $A ∸ B = θ$ \end{document}


3

The official unicode name is dot minus, and among the packages that have it is mnsymbol: \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage{mnsymbol,lmodern} \begin{document} $a \dotminus b$ \end{document}


4

According to the Comprehensive List of LateX symbols (a very useful guide, by the way), the \dotdiv command (part of the mathabx package) produces the desired operator.


4

You can set \delimiterfactor to delay the start of stretching, however not eeven if the brackets don't stretch, \left\right` makes a math inner atom which affects the horizontal spacing (and prevents linebreaking). (plain tex) \def\x#1{\left({\vrule height#1pt}_{#1}a+b\right)} $\x{08}\x{10}\x{12}\x{14}\x{16}\x{20}\x{24}$ {\delimiterfactor400 ...


3

For the simple diagrams you can do in this way: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\division}{smm} { \IfBooleanTF{#1} { \fabricio_division_inline:nn { #2 } { #3 } } { \fabricio_division:nn { #2 } { #3 } } } \cs_new:Npn \fabricio_division_inline:nn #1 #2 { #1=#2\cdot\int_div_truncate:nn { #1 } { #2 } ...


10

This is just you'd get from any Op Binary Ord sequence. A binary operation symbol following an operator is treated as an ordinary. The same would happen with \sin-x. There's no reason for definining \price with \DeclareMathOperator, because it's a variable. \newcommand{\price}{\mathrm{price}} will give the correct shape and no spacing problem.


4

You haven't put any alignment points in your align so it is not that alignment is messed up, it wasn't attempted. Use {\begin{align} a&\in(b,c) \label{eq1}, \text{where}\\ b&=B \nonumber \\ c&=C \nonumber \end{align} } The outer {} would hide the alignment from tabularx although really using tabularx is very inefficient here. You ...


3

You can use a self-defined command with a better syntax than using five arguments: \documentclass{article} \usepackage{xparse,array} \NewDocumentCommand{\map}{s m >{\SplitArgument{1}{\to}}m >{\SplitArgument{1}{\mapsto}}m} {\IfBooleanTF{#1}{\onelinemap{#2}#3#4}{\twolinemap{#2}#3#4}} \NewDocumentCommand{\onelinemap}{mmmmm} {#1\colon #2\to#3,\quad ...


4

Another TiKZ solution. The code was provided some time ago by JLDiaz in CervanTeX, (spanish TeX group) mail list. Every successive division draws a matrix of nodes relative to previous one. It also labels every reminder to help to draw lines between them or place some other information. It doesn't show the complete division, only dividend, divisor and ...


5

Here is a fairly naive solution that has not been extensively tested: \documentclass{article} \usepackage{mathstyle}% http://ctan.org/pkg/mathstyle \usepackage{multido}% http://ctan.org/pkg/multido (just for this example) \makeatletter \newcommand{\getmathstyle}{% http://tex.stackexchange.com/a/78874/5764 \global\edef\curmathstyle{% ...


8

One option would be to use the xlop package: \documentclass{report} \usepackage{xlop} \begin{document} \opidiv{25}{7}\qquad\opdiv{25}{7} \end{document} Manually, you can use an array: \documentclass{article} \newcommand\myrule[1]{\multicolumn{1}{| l}{#1}} \begin{document} \[ \begin{array}{rl} 478 & \myrule{7} \\ \cline{2-2} 58 & 68 \\ 2 ...


5

I'm going to assume you're a bit new to LaTeX. Suppose you have the following document: \documentclass{article} \pagestyle{empty} \begin{document} $t = \plusminus \sqrt{\frac{2,7}{4,9}} \approx \plusminus 0,74$ \end{document} and then you try to compile it. You'll get the following error. ! Undefined control sequence. l.5 $t = \plusminus ...


3

You probably want $\pm$ instead of $\plusminus$.


6

You can use the following. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \pi^\ast \colon C^k(P,N) &\to C^k(M,N)\\[-1ex] f &\mapsto f \circ \pi \end{align*} \end{document} Remember to use \colon for naming maps; with : you will get the wrong spacing. P.S. I don't think there is a package for typing only this ...


4

You can use a bold bar: \documentclass[12pt]{article} \usepackage{amsmath} %%% For the example we keep the old \bar \let\oldbar\bar % this is not necessary in the real application %%% Define a new math font \DeclareSymbolFont{boldoperators}{OT1}{cmr}{bx}{n} \SetSymbolFont{boldoperators}{bold}{OT1}{cmr}{bx}{n} ...


11

The "computer science answer" is that when parsers encounter an error, a possible error recovery strategy in some situations is to guess that a token is missing in the input stream, and simply put it in and try parsing again. The error recovery strategy is just a guess, and, as such, it might be wrong. So wording the diagnostic as "missing $ inserted" is ...


21

When using \text{} you escape math mode. Your line asks LaTeX to compile several math symbols (such as \Leftrightarrow and \cdot) inside a text environment, which explains the error message. The proper way of writing your line would, in any math environment, be \text{bredden} = x \Leftrightarrow \text{längden} = 3 \cdot \text{bredden} = 3x (with $ ... $ ...


5

The value slot needs to be a 0-argument interactive function not an evaluated expression, also \{ needs an extra level of \ quoting to get the backslash into the lisp string. This seems to work (setq LaTeX-math-list (quote ( ("C-(" (lambda ()(interactive)(LaTeX-my-leftright "(" ")")) "" nil) ("C-{" (lambda ()(interactive)(LaTeX-my-leftright "\\{" ...


0

Here are some capitols that might be related. Not fonts included. I can't find the rest :C ℜ ℰ ℱ ℐ ℋ ℒ ℭ ℬ ℳ


4

TeX and its various derivatives (such as LaTeX) distinguish between normal prose (text mode) and mathematics (math mode). The simplest and original way to switch between the two is to use the math switch, which is $. Here is a sample document to show you how it is typically used. \documentclass{article} \begin{document} This is some normal text, written ...


10

"Accents" in math mode can have a precise mathematical meaning. For instance $\dot{a}$ isn't related to the use of the letter ȧ in words, but usually means a derivative with respect to time. Similarly, $\ddot{a}$ is the second derivative and has nothing to do with ä. Thus TeX disallows text accent commands in math mode: one should know what he/she is ...



Top 50 recent answers are included