From: G. M. <mi...@us...> - 2008-06-23 13:21:09
|
On 23.06.08, Trent W. Buck wrote: > "G. Milde" <mi...@us...> writes: > > On 22.06.08, Trent W. Buck wrote: > >> Before I spend any more time grovelling through the TeX generated by > >> docutils, I thought I'd ask: has anyone got Unicode box art working > >> in a reST to PDF toolchain? > > > > * generate LaTeX code with --output-encoding=utf-8:strict. > Yup, already doing that. > > * In the latex file, edit the preamble to load "ucs" with "postscript" > > option and also load the pstricks package:: > Neither rst2latex nor rst2newlatex include a ucs line, here, using > Debian's 0.4-6 package. Are you using a svn snapshot? Yes. But, as you need to edit the generated latex anyway, you might be OK with 0.4-6. Juas make sure to replace the line that loads package inputenc with > > \usepackage[utf8x]{inputenc} and also load ucs and pstricks \usepackage[postscript]{ucs} \usepackage{pstricks} . > > * Convert to PDF with `latex`, `dvips`, and `ps2pdf`. > > The `rubber` building system for LaTeX documents is a help here, just run > > `rubber --ps --pdf <your-box-file>.tex` > Hmm, I'd been using rubber, but with --inplace --pdf rather than --ps > --pdf. While --inplace or not will not influence the box-drawing characters, you need the --ps --pdf as pstricks (used to draw the boxes) is incompatible with pdflatex (see the rubber man or info pages for details). Günter |