Showing posts with label LaTEX小技巧_LaTEX_skills. Show all posts
Showing posts with label LaTEX小技巧_LaTEX_skills. Show all posts

Sunday, July 19, 2009

Memo: how to type doubledash "--" and underline "_" in LaTex?

How to type double dash in LaTex?
Sometimes we need to type "--" in LaTex, but the parser of Tex will deal with it into one dash.
If you try "- -" a space in two dash, it is not the same with "--".

So you can try
  • \texttt{ }: I think it is good but the format and size of character should be customized.
  • -{}-: Excellent. Nature!
Reference from

Underline is reserved character of LaTex
The reserved characters are
  • $ : dollar sign
  • & :
  • %
  • #
  • _
  • {
  • }
  • ~
  • ^
  • \
If you want to type them, just add a "\" before them.

Wednesday, May 20, 2009

Memo: How to put a character below or under a word?

http://www.gamedev.net/community/forums/topic.asp?topic_id=436284

Use \underset and \overset

%
\begin{equation}\label{Eq:formula3}
    \hat{P} = \underset{P}{\text{argmin}}\{F(P)\},
\end{equation}
%

You will get

Tuesday, July 29, 2008

輸出eps檔案,以利用在插入latex檔案

關鍵字:設定PostScript printer,轉成eps檔案,latex

1. 安裝好Adobe PostScript Driver (PS印表機)
2. 列印的ppt或是任何文件檔成prn檔時,選擇Generic PostScript Printer,並勾選"列印至檔案"
3. 設定好Postscipt Printer,按下"內容",選擇"進階",展開"PostScript選項"
4. 選擇PostScript輸出選項為"壓縮式PostScript(EPS)"
5. 按下列印後,打開輸出好的XXX.prn,使用GSview打開。
6. Orientation選擇"Portrait",Media看輸出圖片大小可選擇"A4"或"A3"。
7. 打開"File",選擇"PS to EPS",選擇輸出檔案名稱和位置。
8. XXX.eps就可以用囉!
例如,
\begin{figure}
\centering
\includegraphics[width=0.3\textwidth]{XXX.eps}
\caption{This is test!}
\label{fig:test}
\end{figure}

Clicky

Clicky Web Analytics