目前分類:Commands (30)

瀏覽方式: 標題列表 簡短摘要

Commands:

Screen Shot 2017-08-09 at 14.10.12.png

Screen Shot 2017-08-09 at 14.10.17.png

Screen Shot 2017-08-09 at 14.10.25.png


ytl0821 發表在 痞客邦 留言(0) 人氣()

  • 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:

Screen Shot 2017-08-09 at 14.05.48.png


ytl0821 發表在 痞客邦 留言(0) 人氣()

  • 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:

ytl0821 發表在 痞客邦 留言(0) 人氣()

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}. 

ytl0821 發表在 痞客邦 留言(0) 人氣()

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}

ytl0821 發表在 痞客邦 留言(0) 人氣()

  • 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}

 

ytl0821 發表在 痞客邦 留言(0) 人氣()

  • 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:

ytl0821 發表在 痞客邦 留言(0) 人氣()

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.

Screen Shot 2017-08-08 at 11.39.42 PM.png

or

(2) $$E=mc^2$$ - To type a math expression that is on its own line and centered.

Screen Shot 2017-08-08 at 11.40.20 PM.png

ytl0821 發表在 痞客邦 留言(0) 人氣()

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}

 

ytl0821 發表在 痞客邦 留言(0) 人氣()

  • Aug 08 Tue 2017 14:14
  • \today

Command:

\today - to get current date and print.

 

Example:


\documentclass{article}

\begin{document}

This is my \emph{first} document prepared  in \LaTeX . I typed it on \today.

\end{document}

 

ytl0821 發表在 痞客邦 留言(0) 人氣()

«12