The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

1

Okay, so I know I'm WAY late to the party, and I don't have much experience with LaTeX (or coding in general, really), but I think I've come up with a decent enough solution. Fair warning, in using the Triangle of Power notation for myself over the years, I found that it works a lot better to write the triangle upside down. It's more compact. I've set up my ...


3

For usage in math mode: \documentclass{article} \usepackage{amsmath,mathtools} \usepackage{xparse} \makeatletter \newenvironment{smallermatrix}[1][c] {\null\,\vcenter\bgroup \Let@\restore@math@cr\default@tag \baselineskip0pt \lineskip0.4pt \lineskiplimit0pt \ialign\bgroup\if#1l\else\hfil\fi$\m@th\scriptstyle##$\if#1r\else\hfil\fi&&\thickspace\...


1

You get a few errors from that code. Complex subscripts (more than a single letter or digit) should be braced: \documentclass{article} \usepackage{amsmath} \usepackage{esvect} \newcommand{\proj}{\mathrm{proj}} \begin{document} \begin{equation} \vv{y_2} = \vv{v_2} - \proj_{\vv{\mu_1}} * \vv{v_2} \end{equation} \end{document} I'm not sure about *, which ...


1

I'd simply use \bar; maybe \widebar as defined below, but not \overline. \documentclass{article} \usepackage{amsmath} % see https://tex.stackexchange.com/a/364929/4427 \DeclareFontFamily{U}{mathx}{} \DeclareFontShape{U}{mathx}{m}{n}{ <-> mathx10 }{} \DeclareSymbolFont{mathx}{U}{mathx}{m}{n} \DeclareFontSubstitution{U}{mathx}{m}{n} \DeclareMathAccent{\...


1

In this case, a \smash is sufficient. In other cases, you may also need a \vphantom{...} of the underlying variable. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} $\smash{\overline\Theta}^a \Theta^a$ \end{document}


1

As mentioned in the comments, _e_n{n} should be just e_{n}. Also, ... should be \cdots (\dots if you want the dots at the baseline.)


4

{\cong} will be a mathord with normal letter spacing, so you probably want \mathrel{{}_{A}{\cong}{}_{B}} to get a relation with the subscripts around an inner mathord \cong.


Top 50 recent answers are included