New answers tagged amsmath
0
votes
To write diagram with injective arrow
Use tikz-cd instead:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}[row sep=large]
A \arrow[r, hook] \arrow[d] &
B \arrow[d] \arrow[dr,"f"]
\\
C \...
3
votes
Accepted
To write diagram with injective arrow
Instead of manually creating your diagram in tikz, have instead a look at the tikz-cd package:
\documentclass[border=10pt]{standalone}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
A \arrow[...
4
votes
Accepted
Multicolumn amsmath's align environment on a beamer frame?
Beamer has its own column mechanism, which allows you to place two align environments side by side:
\documentclass{beamer}
\usepackage{pdfpc}
\usepackage{pgfpages}
%\usepackage{multicol}
%\usepackage{...
2
votes
Accepted
Align* in mhchem that also has some $math$ content in it?
align typesets its contents in math mode, so the $ characters are wrong.
Perhaps you also want a further alignment point.
\documentclass{article}
\usepackage[version=4]{mhchem}
\usepackage{amsmath}
\...
1
vote
Does this alignment of the equations look weird?
You shouldn't use \text, but \mathrm. Why? Try
\begin{theorem}
Here $\text{e}^2$ will be in italics
\end{theorem}
(this assumes you have such a \newtheorem defined).
Of course I'd never use \mathrm{e}...
4
votes
How to center a cell in the aligned environment?
I suggest you switch from an aligned to TeX primitive \halign.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\boxed{\vbox{\halign{\hfil#\hfil\cr
Therefore, one plus one equals two.\cr
...
4
votes
Accepted
How to center a cell in the aligned environment?
I suggest you switch from an aligned to a gathered environment.
\documentclass{article}
\usepackage{amsmath} % for '\boxed' macro and 'gathered' env.
\begin{document}
$\boxed{\begin{gathered}
...
1
vote
How to define probabilities with underneath text?
You example is full of errors
the lemma env is not defined
\norm does not already exists so \renewcommand fails
\mleft and \mright needs a package you haven't loaded
\prob is not already defined so \...
3
votes
Consistent vertical spacing in cases environment with multirow cases
With use of \medmath macro defined in the nccmath package (which reduce equation size for about 20 %) and dcases defined in the mathtools package you can get the following result:
\documentclass{...
3
votes
Accepted
Consistent vertical spacing in cases environment with multirow cases
Or am I just using a bad method for reducing the amount space the equation takes up horisontally?
I can't see a good reason for using multlined here. To enforce uniform sizes of the tall round ...
0
votes
Titlespacing command not working for \subsection and also causing error for \section
I "solved" it by adding "phantom" text at the end of the subsection title, followed by a paragraph jump.
\subsection{subsection title}\phantom{dummy_text}\par\samepage
Edit: after ...
3
votes
Accepted
How to get math font larger than Huge in node?
A more reasonable example would be
\documentclass{article}
\begin{document}
\fontsize{80}{200}\selectfont
K $K_x$
\end{document}
which produces
with lualatex and
with pdflatex.
In both cases ...
8
votes
Titlespacing command not working for \subsection and also causing error for \section
You get
! Undefined control sequence.
<argument> ...on\endcsname \protect \@secnumpunct
l.9 \section{Main section}
% <- This line triggers the error
?
! Undefined ...
4
votes
The description of my equation is not coming on the same page
I suggest using an align* environment to list the variables' meanings.
\documentclass{beamer}
\begin{document}
\begin{frame}{Empirical specification}
We employ a quasi-exogenous variation of an in-...
4
votes
The description of my equation is not coming on the same page
It's hard to guess what \medium should mean. But you have several things that aren't necessary.
\documentclass{beamer}
\newcommand{\medium}{???}
\begin{document}
\begin{frame}
\frametitle{Empirical ...
1
vote
Accepted
Equal spacing between equations using align or gather
I would use \tfrac so it fits or you could spread the equations by increasing \jot
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{section}{title}
text
\begin{gather}
a +...
Top 50 recent answers are included
Related Tags
amsmath × 3382math-mode × 967
equations × 667
align × 593
spacing × 211
horizontal-alignment × 193
symbols × 152
matrices × 151
math-operators × 126
mathtools × 124
numbering × 102
vertical-alignment × 83
fonts × 82
cross-referencing × 80
cases × 75
errors × 71
macros × 67
theorems × 64
tikz-pgf × 59
arrays × 59
formatting × 55
environments × 54
alignat × 53
line-breaking × 50
alignment × 48