Hot answers tagged

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 ...
egreg's user avatar
  • 1.1m
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{...
samcarter_is_at_topanswers.xyz's user avatar
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-...
Mico's user avatar
  • 496k
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 ...
egreg's user avatar
  • 1.1m
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 ...
wipet's user avatar
  • 72.2k
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} ...
Mico's user avatar
  • 496k
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{...
Zarko's user avatar
  • 293k
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 ...
Mico's user avatar
  • 496k
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 ...
David Carlisle's user avatar
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[...
samcarter_is_at_topanswers.xyz's user avatar
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} \...
egreg's user avatar
  • 1.1m
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}...
egreg's user avatar
  • 1.1m
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 \...
daleif's user avatar
  • 53.2k
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 +...
David Carlisle's user avatar

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