# Tag Info

## New answers tagged math-mode

1

Do you looking for domething like thi: \documentclass{article} \usepackage{amsmath, amssymb} \begin{document} \begin{align} \mathrm{Var}(X + c) & = && \text{rel. 184 pag. 62} \\ & = && \text{proprietà 1 pag. 61} \end{align} \end{document}

1

Taking like an example the answer of @Philippe Goutet, where where I have made some small changes, considering also the answer of @Mico, you can define your B calligraphic letters: \documentclass[a4paper,12pt]{article} \usepackage{mathtools} \usepackage[cal=mt]{mathalfa} \DeclareSymbolFont{mathscrUC}{U}{rsfs}{m}{n} %%%% from the answer and http://ctan.epst-...

2

I suggest you load the mathalfa package with the options cal=mt and scr=kp. The former option assigns the Math Time Pro calligraphic font face to \mathcal -- note, though, that the mtpro2 package isn't free of charge -- and the KP fonts script font face to \mathscr. Do check out pp. 8 and 9 of the user guide of the mathalfa package for other possible choices ...

4


1

You can use \smash{b} to set the height of b to zero, and then \vphantom{a} to make something with zero width and the height of an a. \documentclass[12pt]{minimal} \newcommand{\ol}[1]{\overline{\smash{#1}\vphantom{a}}} \begin{document} $\overline{a} + \overline{b}$ $\ol{a} + \ol{b}$ \end{document}

3

By smashing things. In the following example, the argument b is vertically smashed (its height doesn't count). The \lowoverline gets its height from the optional argument, which defaults to a. This argument is horizontally smashed and made invisible by \phantom. \documentclass{article} \usepackage{mathtools} \newcommand\lowoverline[2][a]{\ensuremath\overline{...

4

The problem is that amsart loads amsfonts, which changes the definition of the wide accents. Use the noamsfonts option that disable loading the package, which is not needed anyway. \documentclass[noamsfonts]{amsart} \usepackage{kpfonts} \begin{document} $\widetilde{bigtilde} \quad \widehat{bighat}$ \end{document} You'll have to live with an annoying ...

0


1

I gather that \sol isn't the name of a LaTeX macro but, rather, a shorthand expression for a longer, possibly multi-row, derivation of some mathematical result involving the partial derivative(s) of a function f(x,y). Assuming that the solution for f_x(x,y) fits in an otherwise invisible box whose width is less than 0.5\textwidth, I can think of (at least) ...

3

Short code, without use of any library: \documentclass[margin=3.141592]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[fill=cyan!30] (0,0) -- coordinate (a) ++ (+60:5) -- coordinate (b) ++ (-60:5) -- coordinate (c) cycle; \draw[red] (a) -- (b) -- (c) -- cycle; \end{tikzpicture} \end{document}

2

How about this? \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture} \def\mytriangle{(90:1)--(210:1)--(-30:1)--cycle} \draw[fill=yellow!50] \mytriangle; \draw[yscale=-1,scale=.5] \mytriangle; \end{tikzpicture} \end{document} PS: Long time ago, we made a tutorial on drawing equilateral triangle with TikZ. There are several ...

1

It's not very difficult with tikz, in two lines. A reading of the first part of the manual is enough to draw much more complex diagrams. \documentclass[crop=true]{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \usetikzlibrary{positioning,calc} \begin{document} \centering \begin{tikzpicture} \draw (0,0) coordinate(O) -- ++ (60:5) coordinate(A) ...

1

New Solution I defined a command \mathquote{...} that inserts quotation marks depending on the vertical size of its content. Code \documentclass{article} \usepackage{amsmath} \newlength{\mqheight} \newlength{\mqnormalheight} \settoheight{\mqnormalheight}{\hbox{gM}}% \newcommand{\mathquote}[1]{% \settoheight{\mqheight}{\hbox{\ensuremath{#1}}}% \...

1

align is centred by default, if you want flush left displays use [fleqn] (and set \mathindent to zero)

3

With use of the new LaTeX-3 package tabularray, siunitx for S column type (invoked by option si={...}) and slightly redesigned table lines. By defining new child selector are drawn each second \hline in table body and reduced rowsep: \documentclass{article} \usepackage{tabularray} \UseTblrLibrary{diagbox, siunitx} \usepackage[skip=1ex, font=...

4

Add another row with the pm values and decrease the space between the last two rows. \documentclass[sigconf,natbib=false]{acmart} \usepackage{diagbox} \usepackage{multirow} \title{Test} \author{Michael Sidorov} \date{S\today} \begin{document} \begin{table*} \centering \renewcommand{\arraystretch}{1.2} \begin{tabular}{|c||*{3}{l|}} ...

4

\usepackage{makecell} is your friend: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{hhline} \usepackage{multirow} \usepackage{diagbox} \usepackage{makecell} \begin{document} \begin{table*} \centering \renewcommand{\arraystretch}{1.2} \begin{tabular}{|l||*{3}{c|}} \hline \backslashbox{\textbf{Model}}{\textbf{Data Set}} & ...

8

From my comment...here there is the solution. \documentclass[12pt]{article} \usepackage{amsmath,amssymb} \begin{document} \begin{split} \frac{\partial W}{\partial x} &= 0,1 - 2 \lambda \sigma_x^2 x - 2\lambda\sigma_x\sigma_y\rho_{xy}y - \mu = 0\\ \frac{\partial W}{\partial y}& = 0,5 - 2 \lambda \sigma_y^2 y - 2\lambda\sigma_x\...

1

To eliminate the extra vertical space in both uses of fullwidth, it is necessary to define a new environment --similar to fullwidth-- to be be used when align* is included. Of course, if you want to simulate the behavior when fullwidth is not used, use it only the first time (same paragraph). \documentclass{caesar_book} \newenvironment{fullwidthx} % ...

3

The package mathptmx provides Times-like fonts, but it's a 35-year-old hack and for Greek letter it uses glyph from the slanted Symbol font. You get better results with NewTX. \documentclass[12pt]{report} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} \usepackage{...

6

Following a request in the comments, I provide an expl3 solution based on splitting a comma list. \documentclass{article} \ExplSyntaxOn \NewDocumentCommand{\widecomma}{ m }{ \clist_use:nn { #1 } { {,}\ } % since ~ means space in expl3 } \ExplSyntaxOff \begin{document} $$\widecomma{a, b, c}$$ \end{document} EDIT: I guess one could use \def, \...

0

Since this is a problem which is annoying me every time, let me put my two cents in. A solution which may not be that elegant, but that I like for its outcome, is to use a \phantom command to make all the other = signs as large and as high as the incriminated one, as in the following \begin{align*} S_n & \stackrel{\phantom{\mathrm{IH}}}{=} 2^iS_{n-i}+2^i-...

9

It's a bit more complicated than your attempt. Better to make the character math active rather than active tout court, so no category code is changed and \widecomma can also be used in the argument to another command. The instruction \let\comma=, doesn't work, mainly because you want to save the math code of the comma. \documentclass{article} % save the ...

3

The # has a special meaning in LaTeX (since it's used in macro definitions to stand for the arguments as #1, #2, etc.) therefore it can't be used directly as a character. If you want a literal #, you have to add a backslash (\#): \documentclass{scrartcl} \begin{document} $a = \# + 2$ \end{document} Independently of that, surrounding your sources with $... 1 Not an answer. I was wondering if you could cut and paste from one PDF into another. Alas, no. You lose a lot of details in the process. \documentclass{article} \usepackage{eforms} \newsavebox{\tempbox} \begin{document} This is a test to see if I can cut and paste ($\sqrt{\alpha^2}\$ ) into \textField{test}{1in}{1.5\baselineskip}. In fact, you can't ...

9


Top 50 recent answers are included