顯示具有 Latex 標籤的文章。 顯示所有文章
顯示具有 Latex 標籤的文章。 顯示所有文章

2012年4月23日 星期一

[Latex][chapterbib]

耗了兩天,所以特地寫了篇心得文之類的?

Anyway,有時,像是在寫書時,會想要在各章後放各章的參考文獻,但是一般來說參考文獻都會被放在文件的最後面,如果想要在各章之後 show 出來的話該怎麼做呢?這時就要用 chapterbib 這個 package 了。

底下是我這次所測試出來可以用的例子。

Example/
  |-article.tex
  |-Chap01/
      |-reference.bib
      |-section01.tex
      |-section02.tex
  |-chap01.tex
  |-Chap02/
      |-reference.bib
      |-section01.tex
      |-section02.tex
  |-chap02.tex
  |-Makefile

[article.tex]
\documentclass{book}                   
\usepackage[sectionbib]{chapterbib}
\usepackage{CJKutf8}
\begin{document}
    \begin{CJK*}{UTF8}{bkai}
        \include{chap01} 
        \include{chap02}
    \end{CJK*}
\end{document}

[chap01.tex]
\chapter{Chapter 01}
    \input Chap01/section01.tex
    \input Chap01/section02.tex
    \newpage
    \bibliographystyle{plain}
    \bibliography{Chap01/reference.bib}


[chap02.tex]
\chapter{Chapter 02}
    \input Chap02/section01.tex
    \input Chap02/section02.tex
    \newpage
    \bibliographystyle{plain}
    \bibliography{Chap02/reference.bib}

[Makefile]
all:
    latex article
    bibtex chap01
    bibtex chap02
    latex article
    latex article
    pdflatex article

clean:
    rm -rf *.aux *.bbl *.blg *.dvi *.log *.pdf

如果不加上 sectionbib 的話,就會是在文件最後面才會依章列出所用的參考文獻。

Reference:
http://www.eng.cam.ac.uk/help/tpl/textprocessing/bibliographies.html

2012年3月21日 星期三

[Linux][Latex][右上角的 (R) 或是 TM]

ABC 後加上 \textsuperscript{\texttrademark} 這樣會在 ABC 的右上角出現代表商標的 TM。

將 \texttrademark 改成 \textregistered 則會在右上角出現代表註冊的圈圈內的 R。

2011年11月4日 星期五

[Latex][Comment]

Latex 中似乎沒辦法像 C/C++ 一樣用 /* */ 來進行多行註解.

雖然可以用一些套件達到 block 中是註解的需求, 不過還要 use 其他套件, 想到就覺得麻煩.

所以還是用最傳統的 % 來進行單行註解, 真的有需要用到數十行註解時, 或許我該考慮自己程式的易讀性了.

或者就是用 Document 的方式進行說明.

2011年8月10日 星期三

[Latex][圖]

.eps:
  pdflatex 無法識別。
  用 latex 得出.dvi 檔,再用 dvipdfm 從 .dvi 檔得出 .pdf 檔。
.jpg:
  可直接用 pdflatex 得出 .pdf 檔。
  想用 latex 得 dvi 時要指定 bounding box 的值,如
  \includegraphics[width=Xmm, bb=<左下 x> <左下 y> <右上 x> <右上 y>]{Pic.jpg}
.pdf:
  可直接用 pdflatex 得出 .pdf 檔。
  想用 latex 得 dvi 時要指定 bounding box 的值,如
  \includegraphics[width=Xmm, bb=<左下 x> <左下 y> <右上 x> <右上 y>]{Pic.pdf}
.tex:
  pdflatex 無法識別。
  想用 latex 得 dvi 時要指定 bounding box 的值,如
  \includegraphics[width=Xmm, bb=<左下 x> <左下 y> <右上 x> <右上 y>]{Pic.tex}

[Latex][許許多多]

這篇會改很久很久.....

\mathds  ->  /usepackage{dsfont}  ->  texlive-fonts-extra

Helpful Website:
眾所皆知的  Latex123
幫忙寫數學式 http://www.codecogs.com/latex/eqneditor.php
幫忙辨識符號 http://detexify.kirelabs.org/classify.html
Latex 的符號   http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html
http://en.wikibooks.org/wiki/LaTeX/Formatting
http://en.wikibooks.org/wiki/LaTeX/Mathematics
http://en.wikipedia.org/wiki/Help:Displaying_a_formula
Bib http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibstyles.html

2011年8月3日 星期三

[Linux][Ubuntu][Latex][Chinese Contents]

我是用 texlive 跟 CJK on Ubuntu。

也就很簡單的 sudo apt-get install texlive latex-cjk-all

然後就可以編譯有中文內容的 Latex 了。