- flushleft_and_normal_equations.tex : Flushleft and normal equations goes together, as is the norm in textbook solutions
- flushleft_and_normal_equations.tex : Flushleft and normal equations goes together, using mathtools
- msword_math Tips on using Microsoft word for typesetting Question papers with math content
- overset_underset_cases.tex : Using if in definitions of piecewise funcs, writing over and under symbols, operators and math expressions
- tensor_typing.tex : Sample code for typing tensors using the tensor package. Second line shows that the \tensor command will automatically place the indices in shifted positions without the need for using math-spaces.
- tex commands list at tutorialspoint
Last active
April 2, 2021 05:44
-
-
Save krantikal/2d0c38a4fb74119f605f8c08d32f227a to your computer and use it in GitHub Desktop.
[LaTeX Math Issues] Tackle issues that come up while writing #format #math #QP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{amsmath} | |
\begin{document} | |
\noindent The quick brown fox jumps over the lazy dog. | |
\begin{equation*} | |
A = B | |
\end{equation*} | |
\begin{flalign*} | |
C & = D \\ | |
D & = E && | |
\end{flalign*} | |
\begin{flalign*} | |
E = F && | |
\end{flalign*} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%LaTeX Left, Centered equations | |
%============================ | |
\documentclass{article} | |
\usepackage{amsmath} | |
\usepackage{nccmath} | |
\begin{document} | |
% A centered formula: | |
\begin{align} | |
a &= b\\ | |
&= c | |
\end{align} | |
% A flushed left formula: | |
\begin{fleqn} | |
\begin{align} | |
a &= b\\ | |
&= c | |
\end{align} | |
\end{fleqn} | |
% A centered formula: | |
\begin{align} | |
a &= b\\ | |
&= c | |
\end{align} | |
\end{document} |
- Alt = for math mode
- Alt (numpad) 0134 for \dagger
- \scriptL gets you the Lagrangian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% An arrow over x | |
\overset{x}{\rightarrow} | |
%Writing over an operator | |
\overset{\mathrm{def}}{=} | |
%Text over long xarrow | |
\xleftarrow{\text{see equation (1)}} | |
A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C. | |
Default pos is over, T goes down | |
\[ | |
U[n]= | |
\begin{cases} | |
0& \text{if } n<0\\ | |
1& \text{if } n\geq 0\\ | |
\end{cases} | |
\] | |
%Writing over and under math | |
\underbrace{u'-P(x)u^2-Q(x)u-R(x)}_{\text{=0, since~$u$ is a particular solution.}} | |
\underbracket %mathtools | |
\[ | |
\overbrace{a+b+c}^{d} \quad \overbracket{a+b+c}^{d} \quad | |
\underbrace{a+b+c}_{d} \quad \underbracket{a+b+c}_{d} | |
\] %mathtools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{amsmath} | |
\usepackage{tensor} | |
\begin{document} | |
$g^{\alpha\beta}g^{\gamma\delta}R_{\alpha\mu\gamma\nu}=R^{\beta\;\delta}_{\;\mu\;\nu}$ | |
$g^{\alpha\beta}g^{\gamma\delta}R_{\alpha\mu\gamma\nu} | |
=\tensor{R}{^\beta_\mu^\delta_\nu}$ | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment