\documentclass{article}

\usepackage{graphicx}
\graphicspath{ {images/} }

\begin{document}
The universe is immense and it seems to be homogeneous,
in a large scale, everywhere we look at.

\includegraphics[scale=0.8]{kp.png}
There's a picture of a galaxy above.

Tis is good.
\begin{flushright}
\includegraphics[scale=0.8]{dad.png}
\end{flushright}


\end{document}

---------------------------------

Lesson 1

請copy以下程式碼並存檔,每個文章都是以這幾行為框架,開始編輯文章時可打開直接copy使用

\documentclass[12pt]{article}
\begin{document}
\noindent

 


\end{document}

----------------------------

沒有縮排:\noindent

換行程式碼:\\

\[1+1=2\]---單獨一行打這些會顯示在中間(用\[__\]包住算式,即斜線-中括號-算式-斜線-中括號),若是中括號改成小括號,就不會獨立出現在一行,會緊接在內文後面。

 

Lesson 2

內容部分

粗體:\textbf{aaaaa}

斜體:\textit{bbbbb}

底線:\underline{ccccc}

靠左:

\begin{flushleft}

內容

\end{flushleft}

 

置中:

\begin{center}

內容

\end{center}

 

靠右:

\begin{flushright}

內容

\end{flushright}

---------------------------

Theorem Fermat's Theorem的打法:

第一個單字是粗體,後面兩個是粗體又是斜體

\textbf{Theorem \textit{Fermat's Theorem.}}

----------------------------

Lesson 3

數學模式分成:

1.內文數學式:$算式$ 或者 \(算式\)

2.列式數學式(獨立自己一行置中): $$算式$$ 或者 \[算式\]

屬於: \in

花體: \mathit{} ...ex:\mathit{N},正整數

內文: \mbox{}

可以在$$____$$中使用內文,ex:$$a^{p_0} \equiv a(\mbox{mod} p_0) \mbox{ for all integers }a.$$

-----------------

input:

$$1+2=3.(\mbox{It is true.})$$

output:

1+2=3.(It is true.)

 

以上的打法若是沒有打\mbox:

input:

$$1+2=3.(It is true.)$$

output:

1+2=3.(Itistrue.)

結論:在數學模式下,空格不會顯現出來,空格的作用是區分每一個指令。

 

arrow
arrow
    全站熱搜

    扁頭科學麵 發表在 痞客邦 留言(0) 人氣()