2011年9月25日 星期日

color definition and usage in latex

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Note: color
時間: Sun Sep 25 22:40:12 2011


   \usepackage{color}

   This allows easy text coloring, like: {\red This is red.}

   To define other colors, simply

   \definecolor{violet}{rgb}{1,0,1}

   and then

   {\color{violet} This text is in violet.}

2011年9月12日 星期一

top-aligning imported graphics

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Note: top-aligning imported graphics
時間: Mon Sep 12 21:58:26 2011


   要把圖靠上對齊可以用

\vtop{%
 \vskip0pt
 \hbox{%
   \includegraphics{figure}%
 }%
}

   不需要用 parbox 或 minipage 什麼的
   直接用即可

   for more details, see:

   http://www.tex.ac.uk/cgi-bin/texfaq2html?label=topgraph