Tag Info

Hot answers tagged

9

Yes, that's a bug in microtype. Until the package is updated, a temporary fix would be to add \makeatletter\let\glb@currsize\@empty\makeatother after the \lsstyle and math inside a group, which forces the math fonts to be set up anew.


9

This should be what you want. The mandatory argument to \fa should be a four character string: First byte: 1 or 2 (one way or two way) Second byte: S or M (single or multi head) Third byte: D or N (deterministic or non deterministic) Fourth byte: + or - (with or without stack) The optional argument is the number of heads, while the macro \fa can be ...


9

It is the fourier package that ate your + with that you get the warning Missing character: There is no in font lmsy10! \documentclass{article} \usepackage{amsmath, amssymb, %fourier, mathrsfs } \usepackage{lmodern, fourier} %%% OK \usepackage{dcolumn} \begin{document} ...


7

\vphantom{\psi} helps. Then the underlining command for i sees the larger descender of \psi, while \psi is not visible: \documentclass{article} \usepackage{amsmath} \usepackage[normalem]{ulem} \begin{document} %underline example \begin{align} m = -\dfrac{3}{2} z_\mathrm{p} \operatorname{Im}\{\underline{\psi}_1^{\angle k} ...


6

The glyph corresponding to U+2605 is not available in TeX Gyre Termes (text and math). You can use the glyph from another font: \documentclass{article} \usepackage[math-style=ISO]{unicode-math} \setmainfont[Numbers=OldStyle, Ligatures=TeX]{TeX Gyre Termes} \setmathfont[Numbers=Lining]{TeX Gyre Termes Math} \setmathfont[range=\bigstar]{XITS Math} ...


6

Try this: \documentclass{beamer} \setbeamertemplate{section in toc}{\hspace*{1em}\inserttocsectionnumber.~\inserttocsection\par} \setbeamertemplate{subsection in toc}{\hspace*{2em}\inserttocsectionnumber.\inserttocsubsectionnumber.~\inserttocsubsection\par} \begin{document} \begin{frame}[allowframebreaks]{Best Linear Predictor} \begin{itemize} \item ...


5

I agree with @egreg (especially) that typesetting 10/20pt is not a card of the good typography. I have a special and extensive notice about this bad practise in theses mentioned in my templates for theses. But the problem from TeXnical point of view is very interesting and it seems to be non-trivial. This is the reason why I tried something... We need to ...


5

Here's an approach which is initially a little top heavy but allows you to make various formatting choices down the line: \documentclass{article} \makeatletter \let\@xp\expandafter \newcommand\set{\ae@set} \def\ae@set(#1){%% \@ifnextchar;%% {\@ae@set(#1)}%% {\ae@@set(#1)}} \def\@ae@set(#1);{\ae@@set(#1)->#1;} \def\ae@@set(#1)->#2;{%% ...


4

This example shows how to define ( and ) as active characters only in math environment. The \mathcode"8000 is the key of this. {\catcode`(=13 \catcode`)=13 \gdef({\left\delimiter\delcode`(} \gdef){\right\delimiter\delcode`)} } \mathcode`(="8000 \mathcode`)="8000 \def\nm{\mathchar`} Here is (normal) text. $$ (1\over2)+3, \quad \nm( {1\over2} \nm) + ...


4

Some possibilities: \documentclass{article} \usepackage{mathtools} \usepackage{array} \usepackage{blkarray} \begin{document} \begin{equation} P = \begin{blockarray}{ccccc} & BS_1 & BS_2 & \ldots & BS_B \\ \begin{block}{c[cccc]} UE_1 & P_{1,1} & P_{1,2} & \ldots & P_{1,B} \\ ...


3

Since there are other solutions of the “front end” here I just a the solution for parsing the argument. This is just a simple “reader”: it reads a certain element and checks if it's equal to some predefined cases, and, in case it is not, it does what it's inside the F argument (…:nnnF). First element, 1 or 2, otherwise does nothing (no error). Second ...


3

Shortening the overline on the right when a subscript is involved seems the best thing to do; it won't completely cover the subscript, but it doesn't seem really necessary: \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\average}[2][0]{{% \mspace{#1mu}% \overline{\mspace{-#1mu}\average@check#2\relax}% }} ...


2

Hmm not sure I like the result but... \documentclass{article} \usepackage{amsmath} % merge \overbrace and \underbrace \makeatletter \def\widebreve#1{\mathop{\vbox{\m@th\ialign{##\crcr\noalign{\kern3\p@}% \brevefill\crcr\noalign{\kern3\p@\nointerlineskip}% $\hfil\displaystyle{#1}\hfil$\crcr}}}\limits} \def\brevefill{$\m@th ...


2

Well, partially: yes. You have plain text and math formulas, as B(T) = \exp\left(\int_0^T r(u)\, du\right) in this case, which enclosed into, say, the pair \[, \] gives exactly the formula shown in your question. One should only remove unneeded parts, as an image in your example and convert part of them into TeX/LaTeX commands. This can be done by a ...


1

You may enlarge the original star with help of the relsize package. The height is not absolutely identical like this, but the approach is quite easy and you are using the same font for both symbols. % arara: lualatex \documentclass{article} \usepackage{fontspec} \setmainfont[Numbers=OldStyle, Ligatures=TeX]{texgyretermes-regular.otf} ...


1

As the comments of egreg and deleif suggest, this probably a bad idea in general. If you really want to do it, however, then here is one way of modifying () to do what you want. Extending this idea to other delimiters is easy enough but by just doing () I can also highlight what needs to happen if your self-adjusting delimiters do not match. Here is the ...


1

Here is another way of doing it: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{alignat*}{2} && U &= R \cdot I \qquad \vert\ :R \\ \ArrowBetweenLines && \frac{U}{R} &= I \end{alignat*} \vspace{4ex} \begin{alignat*}{2} && U &= R \cdot I \\ \text{(Divide by $R$)}\Updownarrow \quad ...



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