作者: 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 ...
作者: 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.
作者: 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.
作者: 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
作者: hantis (呢呢是豬) 看板: Hantis標題: [隨寫] Technical Notes: bibunits時間: Wed Nov 25 11:06:24 2009 要用多個bibliography 可用bibunits這個package 見PDF的說明檔
作者: 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