Sadless is a good man, but you can not see it through.

2009年5月15日 星期五

10. 數學排版

10. 數學排版


latex 跟圖相關的, \usepackage

在 \documentclass[journal]{IEEEtran} 的下面 加入這個 package

\usepackage{graphicx}

然後可以指定圖的path, 如:

\graphicspath{{./eps/}}

這樣一來, 後面的 \includegraphics{} 就只要寫檔名即可

//=========================================================

• h: 放在此處• t: 放在頂端• b: 放在底端• p: 在本頁

都不寫, Latex會自己放, [htbp] 都寫, Latex 會放在這一頁, 自己放

\begin{figure}[h]

\center

\includegraphics [width=5cm, angle=130]{./fig/Diagram1.eps}\\

\caption{Caption_for_figure_description}

\label{Label_for_reference}

\end{figure}

//=========================================================

reference Fig~ref{Label_for_reference}

//=========================================================



出現 "! undefined control sequence" "\includegraphics"

使用 WinEdt

如果出現 "! undefined control sequence" "\includegraphics"

得在 \documentclass[journal]{IEEEtran} 的下面加上

\usepackage[dvips]{graphicx}

之後使用

Latex 產生 dvi

再用 dvi2pdf產生 pdf 即可



2009年4月23日 星期四

Dia存檔後打不開的問題

Dia 這個繪圖軟體不支援中文檔名以及路徑,所以要把圖存到全部英文的路徑下才打得開。



2009年4月10日 星期五

TeX/LaTeX 相關

LaTex 用法手冊 TeX/LaTeX 語法概說

Lyx 要把.lyx檔案存在 c:/program/lyx16/的 下面


TW的TexLive install-tl.zip 載點 http://ctan.cdpa.nsysu.edu.tw/systems/texlive/tlnet/2008/
如果這個掛了,去這邊換一個站試試看 http://www.ctan.org/tex-archive/CTAN.sites

Lyx Download http://www.lyx.org/Download