LaTeX Etiquette - Good Practices
LaTeX Etiquette - Good Practices
By Flickr user Jacob Appelbaum, uploaded to en.wikipedia by users BeSherman, Duozmo - Flickr.com
\documentclass[a4paper]{article}
% article, report, or book
% some journal has its own class
\newcommand{\rbf}[1]{\textbf{\color{red}#1}}
\begine{document}
I \rbf{love} \LaTeX{}!!!
\end{document}
sinx si nx
= = six = 6?
n n
sinx si nx
= = six = 6?
n n
Here ‘ is the key on the below Esc, while ’ is the key left to Enter
Example:
Let f be a linear transformation. The nullspace of f is
{x ∈ Rn : f (x) = 0},
{f (x) : x ∈ Rn }.
Example:
Let f be a linear transformation. The nullspace of f is
{x ∈ Rn : f (x) = 0},
{f (x) : x ∈ Rn }.
Correct example:
The equation implies x = 1, which is positive.
Correct example:
The equation implies x = 1, which is positive.
x 2 − 1 = 0 =⇒ (x + 1)(x − 1) = 0 =⇒ x = ±1.
Recommended example:
Since x 2 − 1 = 0, which can be factored as (x + 1)(x − 1) = 0, this
leads to the conclusion that x = ±1.
x 2 − 1 = 0 =⇒ (x + 1)(x − 1) = 0 =⇒ x = ±1.
Recommended example:
Since x 2 − 1 = 0, which can be factored as (x + 1)(x − 1) = 0, this
leads to the conclusion that x = ±1.
Always use the internal reference feature. Never type the number
by yourself.
Theorem 1 \begin{theorem}
If x = 1, then x + 1 = 2. \label{thm:CH}
If $x=1$, ...
\end{theorem}
Always use the internal reference feature. Never type the number
by yourself.
Theorem 1 \begin{theorem}
If x = 1, then x + 1 = 2. \label{thm:CH}
If $x=1$, ...
\end{theorem}
You may use the TikZ package, the Ipe extensible drawing editor,
or the Adobe Illustrator, and so on, to do so.
You may use the TikZ package, the Ipe extensible drawing editor,
or the Adobe Illustrator, and so on, to do so.
\begin{figure}
\begin{center}
\includegraphics[scale=0.5]{nsysulogo}
\end{center}
Example:
tr(A> A) = tr(AA> )
\newcommand{\tr}{\operatorname{tr}}
\newcommand{\trans}{^\top}
$\tr(A\trans A) = \tr(AA\trans)$
\newcommand\topstrut{\rule{0pt}{1.2em}}
\[\left[\begin{array}{c|c}
A & B \\
\hline
\topstrut B\trans & C
\end{array}\right]\]
PS This is not dirty at all. In fact, this is also suggested by the
TEXbook.
Etiquette and dirty tricks in LATEX 40/45 NSYSU
How to type this?
0 1 1
1
A
1
\newcommand{\floating}[1]
{\smash{\raisebox{.5\normalbaselineskip}{#1}}}
\[\left[\begin{array}{c|cc}
0 & 1 & 1 \\
\hline
1 & & \\
1 & \multicolumn{2}{c}{\floating{$A$}}
\end{array}\right]\]
0 1 1
1
A
1
\newcommand{\floating}[1]
{\smash{\raisebox{.5\normalbaselineskip}{#1}}}
\[\left[\begin{array}{c|cc}
0 & 1 & 1 \\
\hline
1 & & \\
1 & \multicolumn{2}{c}{\floating{$A$}}
\end{array}\right]\]
x3 + x2 + x + 1
= x 2 (x + 1) + (x + 1)
= (x + 1)(x 2 + 1)
\[\begin{aligned}
&\mathrel{\phantom{=}}x^3 + x^2 + x + 1 \\
&= x^2(x+1) + (x+1) \\
&= (x+1)(x^2+1)
\end{aligned}\]
x3 + x2 + x + 1
= x 2 (x + 1) + (x + 1)
= (x + 1)(x 2 + 1)
\[\begin{aligned}
&\mathrel{\phantom{=}}x^3 + x^2 + x + 1 \\
&= x^2(x+1) + (x+1) \\
&= (x+1)(x^2+1)
\end{aligned}\]
x3 + x2 + x + 1
=x 2 (x + 1) + (x + 1)
=(x + 1)(x 2 + 1)
\[\begin{aligned}
&x^3 + x^2 + x + 1 \\
=& x^2(x+1) + (x+1) \\
=& (x+1)(x^2+1)
\end{aligned}\]
x3 + x2 + x + 1
= x 2 (x + 1) + (x + 1)
= (x + 1)(x 2 + 1)
\[\begin{aligned}
&\phantom{=}x^3 + x^2 + x + 1 \\
&= x^2(x+1) + (x+1) \\
&= (x+1)(x^2+1)
\end{aligned}\]
x3 + x2 + x + 1
= x 2 (x + 1) + (x + 1)
= (x + 1)(x 2 + 1)
\[\begin{aligned}
&\mathrel{\phantom{=}}x^3 + x^2 + x + 1 \\
&= x^2(x+1) + (x+1) \\
&= (x+1)(x^2+1)
\end{aligned}\]
x3 + x2 + x + 1
= x 2 (x + 1) + (x + 1)
= (x + 1)(x 2 + 1)
\[\begin{aligned}
&\mathrel{\phantom{=}}x^3 + x^2 + x + 1 \\
&= x^2(x+1) + (x+1) \\
&= (x+1)(x^2+1)
\end{aligned}\]
Enjoy! Thanks!
Etiquette and dirty tricks in LATEX 45/45 NSYSU