[Python-modules-team] Bug#484226: rst2newlatex: missing admonition titles (attention, caution, danger, error, hint, important, note, tip, warning, admonition)

Trent W. Buck trentbuck at gmail.com
Tue Jun 3 05:46:39 UTC 2008


Package: python-docutils
Version: 0.4-6
Severity: normal
Tags: upstream

(Including all admonitions in Subject field to help others reporting
the bug.)

Admonitions such as

    .. WARNING:: I'm stoned right now!

render as PDFs (via rst2newlatex) as

    I'm stoned right now!

where they probably should render as

                               WARNING
                        I'm stoned right now!

By grovelling through rst2newlatex's header tex file, I discovered a
basic workaround by adding --stylesheet=style.tex, where style.tex is

    \providecommand{\DNattention}[1]{\textbf{ATTENTION}: #1}
    \providecommand{\DNcaution}[1]{\textbf{CAUTION}: #1}
    \providecommand{\DNdanger}[1]{\textbf{DANGER}: #1}
    \providecommand{\DNerror}[1]{\textbf{ERROR}: #1}
    \providecommand{\DNhint}[1]{\textbf{HINT}: #1}
    \providecommand{\DNimportant}[1]{\textbf{IMPORTANT}: #1}
    \providecommand{\DNnote}[1]{\textbf{NOTE}: #1}
    \providecommand{\DNtip}[1]{\textbf{TIP}: #1}
    \providecommand{\DNwarning}[1]{\textbf{WARNING}: #1}


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-docutils depends on:
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-central                0.6.6      register and build utility for Pyt
ii  python-roman                  0.4-6      A module for generating/analyzing 

python-docutils recommends no packages.

-- no debconf information





More information about the Python-modules-team mailing list