2010年3月18日 星期四

\itemize in pspicture

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Note: \itemize in pspicture
時間: Thu Mar 18 11:44:17 2010


   Within pspicture environment, \itemize has to be wrapped within \parbox
   (or some others). For example,

   ...
   \pspicture(0,0)(8,8){
   ...
   \rput[l](1,2){\parbox{5cm}{\begin{itemize}%
   \item This is a test%
   \end{itemize}}%
   ...
   \endpspicture
   ...

2010年3月3日 星期三

eps file output by pstricks

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Note: eps file output by latex
時間: Wed Mar  3 11:02:38 2010


   pstricks and other extending packages provide
   great ps figures, but the output is tricky.

   The summary is:
   =========================
   \documentclass{article}
   \usepackage{pstricks}
   ...
   \pagestyle{empty}

   ...
   \fcolorbox{white}{white}{
   \pspicture(x1,y1)(x2,y2)
   ...
   \endpspicture
   }
   =========================
   (Better one figure one file.)
   compile commands:

   latex fig
   dvips fig ----> this allows a quick preview
   when done, then
   dvips fig -E -o fig.eps

   The file has to be (or not?) an eps file.

2010年2月18日 星期四

PostScript math commands

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Note: PostScript Math Commands
時間: Thu Feb 18 01:31:07 2010

http://www.ugrad.math.ubc.ca/Flat/math-ref.html

2009年12月16日 星期三

Word break

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Technical Notes: Word break
時間: Wed Dec 16 21:35:53 2009


   To break a word after a hyphen, a "discretionary" hyphen
   can be added by \-.
   Example: spin-independent => spin-indepen\-dent
   This "discretionary hyphen" will appear when it is necessary.

   Contrarily, ABC~DEFG avoids ABC DEFG being broken into two words.
   This will be especially helpful when using BibTex.
   For example, the author Massimiliano Di Ventra should be
   typed as Di~Ventra, Massimiliano, because Di Ventra is his
   full family name.

2009年11月26日 星期四

Bibliography title

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Technical Notes: Bibliography title
時間: Thu Nov 26 16:01:27 2009


   article: \section
   book/report: \chapter

   If choosing book/report class but desire \section for the bibliography
   title, paste the following codes in the preamble.

\makeatletter
\renewenvironment{thebibliography}[1]
    {\section*{\bibname}% <-- this line was changed from \chapter* to \section*
     \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
     \list{\@biblabel{\@arabic\c@enumiv}}%
          {\settowidth\labelwidth{\@biblabel{#1}}%
           \leftmargin\labelwidth
           \advance\leftmargin\labelsep
           \@openbib@code
           \usecounter{enumiv}%
           \let\p@enumiv\@empty
           \renewcommand\theenumiv{\@arabic\c@enumiv}}%
     \sloppy
     \clubpenalty4000
     \@clubpenalty \clubpenalty
     \widowpenalty4000%
     \sfcode`\.\@m}
    {\def\@noitemerr
      {\@latex@warning{Empty `thebibliography' environment}}%
     \endlist}
\makeatother

2009年11月25日 星期三

bibunits

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Technical Notes: bibunits
時間: Wed Nov 25 11:06:24 2009


   要用多個bibliography
   可用bibunits這個package
   見PDF的說明檔

2009年11月2日 星期一

paper size of dvips

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Technical Notes: paper size of dvips
時間: Mon Nov  2 16:22:38 2009


   if the paper size is wrong when dvips

   then use, e.g.,  dvips -t a4 XXX