David Goodger <goodger@...> writes:
> Patrick K. O'Brien wrote:
> > I think I need to modify my visit_paragraph method and have it append
> > a different style ('.bullet' instead of '.body') if I'm inside a
> > bullet item. Is that correct?
>
> Could be. What if there are multiple paragraphs inside a list item? Nested
> lists? Paragraph inside a table inside a list item?
I'm just trying to get the simple case to work. Not sure I'll need any
of these variations for my particular situation.
> > If so, what's the proper way to detect
> > your context for something like this? I guess I could just toggle a
> > flag in the visit_bullet_list/depart_bullet_list methods, but that
> > seemed kind of hackish.
>
> Not at all; whatever gets the job done. If there are nesting issues, you
> may want to use a stack to keep tab of the current context.
Okay. Works for me.
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------

Patrick K. O'Brien wrote:
> I think I need to modify my visit_paragraph method and have it append
> a different style ('.bullet' instead of '.body') if I'm inside a
> bullet item. Is that correct?
Could be. What if there are multiple paragraphs inside a list item? Nested
lists? Paragraph inside a table inside a list item?
> If so, what's the proper way to detect
> your context for something like this? I guess I could just toggle a
> flag in the visit_bullet_list/depart_bullet_list methods, but that
> seemed kind of hackish.
Not at all; whatever gets the job done. If there are nesting issues, you
may want to use a stack to keep tab of the current context.
-- David Goodger http://starship.python.net/~goodger
Programmer/sysadmin for hire: http://starship.python.net/~goodger/cv

Anthony Baxter wrote:
> Docutils 0.2, docutils/frontend.py, around line 275 or so:
...
> Why is it trying to access class mangled names in this way?
That was a blind alley that lingered.
> This no longer works on 2.3 - presumably the ConfigParser
> internals have been refactored.
Correct. It was fixed in CVS within days of 2.3a1's release.
> Any chance of a newer release that works with 2.3?
I intend to make a new release soon. Please use the CVS code or snapshot
until then: <http://docutils.sf.net/docutils-snapshot.tgz&gt;.
-- David Goodger http://starship.python.net/~goodger
Programmer/sysadmin for hire: http://starship.python.net/~goodger/cv

Docutils 0.2, docutils/frontend.py, around line 275 or so:
try:
sectdict = self._ConfigParser__sections[section].copy()
except KeyError:
sectdict = {}
d = self._ConfigParser__defaults.copy()
Why is it trying to access class mangled names in this way? This no longer
works on 2.3 - presumably the ConfigParser internals have been refactored.
Any chance of a newer release that works with 2.3?
Anthony

> Also, the result is quite odd with the LaTeX writer. Some of the footnote
> texts are actually placed on pages *before* they are referenced! They should
> be on the same page, or in a special section at the end. The way it is now is
> really confusing... I guess this is a general problem with footnotes and the
> LaTeX writer.
footnotes are a problem in the latex writer, as it does not use latex footnotes,
because these donot allow to ump from the footnote to the reference. multiple
references to one footnote should work but the jump back seams to be a problem.
as this is a real paper docu jumping is not needed maybe we should do like with
the toc: --use-latex-toc disables multiple tocs but then one has pagenumbers in
the toc.
the problem with the big vertical space between the footnotes remind me of the
links on early test.txt dvis, but julien fixed this with some lines in the
style.tex. I want to include the necessary parts in latex2e.py but never got an
answer so up to now put the following lines into your style.tex.
---------
% donot indent first line.
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\renewcommand{\labelitemi}{--}
% Since we use floats for footnotes, some tweaking is necessary:
\setlength{\floatsep}{0.5em}
\setlength{\textfloatsep}{\fill}
\addtolength{\textfloatsep}{3em}
\renewcommand{\textfraction}{0.5}
\renewcommand{\topfraction}{0.5}
\renewcommand{\bottomfraction}{0.5}
\setcounter{totalnumber}{50}
\setcounter{topnumber}{50}
\setcounter{bottomnumber}{50}
----------
--
BINGO: end to end Eskalation
--- Engelbert Gruber -------+
SSG Fintl,Gruber,Lassnig /
A6410 Telfs Untermarkt 9 /
Tel. ++43-5262-64727 ----+