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) 人氣()

1. First example: " x.tex "

 

\documentclass{article}

\begin{document}

This is my \emph{first} document prepared  in \LaTeX

\end{document}

 

 

2. open termial and type "latex x.tex" in MacOS terminal.

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

The LATEX Project website : https://www.latex-project.org/get/

Figure 1

(1) For Mac : http://www.tug.org/mactex/downloading.html

 

Download this file : MacTeX.pkg [ approximately 3.0G - 24 May 2017 ]


(2) For Linux : http://www.tug.org/texlive/acquire-netinstall.html


Download this file : install-tl-unx.tar.gz (4mb) 


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