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.

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

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