Commands:
目前分類:Commands (30)
- Aug 09 Wed 2017 13:10
Special symbols
- Aug 09 Wed 2017 13:00
Dash -
Command:
A single dash - produces a normal hyphen in the output, two dashes produce a longer dash (--) in the output, and three dashes produce the longest dash (---) in the output.
Example:
A single dash - produces a normal hyphen in the output, two dashes produce a longer dash (--) in the output, and three dashes produce the longest dash (---) in the output.
Result:
- Aug 09 Wed 2017 12:42
Lists
Command:
\begin{ enumerate / itemize}
\item a,
\item b.
\end{ enumerate / itemize}
enumerate : lists with numbering.
itemize : lists with dots.
Example:
- Aug 09 Wed 2017 12:34
References ( \cite{xxx} )
Command:
\cite{xxx} - to cite the reference of xxx.
Example:
and xxx.\cite{latexcompanion}
\begin{thebibliography}{1}
\bibitem{latexcompanion}
Michel Goossens, Frank Mittelbach, and Alexander Samarin.
\textit{The \LaTeX\ Companion}.
- Aug 09 Wed 2017 10:33
Template of a simple document with one-column
Example:
\documentclass[a4paper]{article}
%% Language and font encodings
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
%% Sets page size and margins
\usepackage[a4paper,top=1.8cm,bottom=1.8cm,left=1.3cm,right=1.3cm,marginparwidth=0.5cm]{geometry}
%% Useful packages
\usepackage{amsmath}
- Aug 09 Wed 2017 10:01
%
Command:
% - An annotation line after %. (註解一行)
Example:
\documentclass{article}
\begin{document}
This is my \emph{first} document prepared in \LaTeX . I typed it on \today.
% An annotation line after %.
\end{document}
- Aug 09 Wed 2017 09:40
\\
Command:
\\ - to change to next line. (換行)
Example:
\documentclass{article}
\begin{document}
This is my \emph{first} document prepared in \LaTeX . \\ I typed it on \today.
\end{document}
Result:
- Aug 08 Tue 2017 22:33
$$xxx$$
Commands:
$xxx$ - to show a math equation.
$$xxx$$ - to show a math equation on its own line and centered.
Example:
(1) $E=mc^2$ - To type a math expression that is on its own line.
or
(2) $$E=mc^2$$ - To type a math expression that is on its own line and centered.
- Aug 08 Tue 2017 14:37
\emph{xxx} 斜體
Command:
\emph{xxx} - to typeset the text, e.g. "xxx", within the braces in italic.
Example:
\documentclass{article}
\begin{document}
This is my \emph{first} document prepared in \LaTeX . I typed it on \today.
\end{document}