Guenter Milde | 1 Jun 2011 09:10
Picon

Re: Question about rst2latex with Latex fancyhdr package

On 2011-05-31, Sih Iok-Jin wrote:

> I would like to use rst2latex to generate *.tex file , and show the
> section name on the right top of result PDF file. 

> So, I use the fancyhdr Latex package to accomplish my goal.

> But the result PDF file doesn't show the section name on the right top.

By default, headings are only automatically updated when a new numbered
section starts.

Hence, there can be several reasons:

a) You do not use numbered headings
b) You do not use "latex numbering"

Fix for b):

> docutils.conf
> -----------------

> [latex2e writer]
> documentclass: article
> documentoptions: 12pt,a4paper,dvipdfmx
> output-encoding: utf-8
> stylesheet: docutils.tex
  # section numbering by LaTeX instead of Docutils:
  sectnum-xform: False 

(Continue reading)

ClémentBœsch | 2 Jun 2011 11:42
Picon

man2rst: strange behaviour with a dot as first option group

Hi,

I'm not sure it's a bug (even if it looks like one), and if not I'm looking for
a workaround.

I need to do a group option list with special characters, and the dot '.' seems
to break the layout (a ``.sp`` is added). Can be reproduced with:

$
    bla bla bla

#
    bla bla bla

.
    bla bla bla

[
    bla bla bla

]
    bla bla bla

It does not seem to affect other tools, so I guess it's a bug from rst2man.
Escaping the dot does not help getting the correct output.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
(Continue reading)

m h | 6 Jun 2011 14:57
Picon

odtwriter putting code under a tip...

Hello-

I'm trying to insert code under the .. tip:: construct like so:

.. tip::

  Here's some code to show it::

    >>> foo = "test"

With the odtwriter, the embedded code is not indented relative to the
tip section but to the page. Any ideas on how to fix, or should I file
a bug?

cheers,
-matt

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
Christian Siefkes | 9 Jun 2011 16:25

rst2beamer doesn't render title correctly

Hi all,

I have a problem with the otherwise excellent (thanks!) rst2beamer tool.
After a recent system upgrade to Xubuntu Natty (11.4), it doesn't render
the slide title correctly. Instead, the title is output immediately *after*
the maketitle command, as the attached test file shows. Strangely,
rst2beamer does recognize the title correctly (as the "\hypersetup{
pdftitle={..." setting shows), but it doesn't render it correctly.

I use rst2beamer v0.6.6 with originally Docutils 0.8 [snapshot 2010-09-01,
r6395]. After the problem I tried downgrading Docutils to 0.7 [release],
but that didn't change anything. I also tried re-installing rst2beamer, but
without any success. The only real change was that Python is now at
v2.7.1+, while before it was v2.6.something.

Does anybody have any idea what's going wrong there? I'll be grateful for
any hints...

Christian

--

-- 
|------- Dr. Christian Siefkes ------- christian <at> siefkes.net -------
| Homepage: http://www.siefkes.net/ | Blog: http://www.keimform.de/
|    Peer Production Everywhere:       http://peerconomy.org/wiki/
|---------------------------------- OpenPGP Key ID: 0x346452D8 --
The first 90% of the code accounts for the first 90% of the development
time. The remaining 10% of the code accounts for the other 90% of the
development time.
Attachment (test.tex): text/x-tex, 1434 bytes
(Continue reading)

Attila Tajti | 22 Jun 2011 13:43
Picon
Gravatar

definitions in definition lists be implicit hyperlink targets

Hello,

I would like to know if it is possible make definitions in definition 
lists implicit hyperlink targets automatically somehow. Eg. instead of:

---------------------------------------------------------------------------
_`considerWarningAsError`
     When set to non-zero, show error message instead of confirmation 
dialog.

chechEntryMaximumValue
     Together with considerWarningAsError_ blah.
---------------------------------------------------------------------------

I would like to write this

---------------------------------------------------------------------------
considerWarningAsError
     When set to non-zero, show error message instead of confirmation 
dialog.

chechEntryMaximumValue
     Together with considerWarningAsError_ blah.
---------------------------------------------------------------------------

i.e. without explicit markup in the first line (definition) for 
"considerWarningAsError".

Is this possible? If not, how should I make it possible?

(Continue reading)

Guenter Milde | 23 Jun 2011 09:49
Picon

Re: definitions in definition lists be implicit hyperlink targets

On 2011-06-22, Attila Tajti wrote:
> Hello,

> I would like to know if it is possible make definitions in definition 
> lists implicit hyperlink targets automatically somehow. Eg. instead of:

> ---------------------------------------------------------------------------
> _`considerWarningAsError`
>      When set to non-zero, show error message instead of confirmation 
> dialog.

> chechEntryMaximumValue
>      Together with considerWarningAsError_ blah.
> ---------------------------------------------------------------------------

> I would like to write this

> ---------------------------------------------------------------------------
> considerWarningAsError
>      When set to non-zero, show error message instead of confirmation 
> dialog.

> chechEntryMaximumValue
>      Together with considerWarningAsError_ blah.
> ---------------------------------------------------------------------------

> i.e. without explicit markup in the first line (definition) for 
> "considerWarningAsError".

> Is this possible? If not, how should I make it possible?
(Continue reading)

michael.abbott | 27 Jun 2011 12:48
Picon

Using rst2latexmath.py (from jensj)

I'm trying to figure out the options for writing equations in reST, and the possibilities appear to be to use
either itex2MML or the latex-math plugin from http://docutils.sourceforge.net/sandbox/jensj/latex_math/

However, it seems that the latex generated by rst2latexmath.py (in the tools directory of the link above)
is incomplete.  For example, running the commands (latex_math.txt from the docs directory):

	rst2latexmath.py latex_math.txt latex_math.tex
	pdflatex latex_math.tex

complains about undefined symbols.  To get latex_math.tex to build I have to apply this patch:

--- latex_math.tex.original	2011-06-27 09:18:18.000000000 +0100
+++ latex_math.tex	2011-06-27 09:18:43.000000000 +0100
 <at>  <at>  -14,9 +14,19  <at>  <at> 
 %%% Custom LaTeX preamble
 % PDF Standard Fonts
 \usepackage{mathptmx} % Times
+\usepackage{amsmath}
+\usepackage{amsfonts}
+\usepackage{amssymb}
 \usepackage[scaled=.90]{helvet}
 \usepackage{courier}

+\let\amalg=\undefined
+\let\coprod=\undefined
+\DeclareSymbolFont{cmsymbols}{OMS}{cmsy}{m}{n}
+\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
+\DeclareMathSymbol{\amalg}{\mathbin}{cmsymbols}{"71}
+\DeclareMathSymbol{\coprod}{\mathop}{cmlargesymbols}{"60}
+
(Continue reading)

Guenter Milde | 27 Jun 2011 23:04
Picon

Re: Using rst2latexmath.py (from jensj)

On 2011-06-27, <michael.abbott <at> diamond.ac.uk> wrote:
> I'm trying to figure out the options for writing equations in reST, and
> the possibilities appear to be to use either itex2MML or the latex-math
> plugin from http://docutils.sourceforge.net/sandbox/jensj/latex_math/

You can also use a recent snapshot of the upcoming release 0.8 that
includes math support into the core (incorporating and extending Jens
Jörgens latex_math).

> However, it seems that the latex generated by rst2latexmath.py (in the
> tools directory of the link above) is incomplete.  For example, running
> the commands (latex_math.txt from the docs directory):

> 	rst2latexmath.py latex_math.txt latex_math.tex
> 	pdflatex latex_math.tex

> complains about undefined symbols.  To get latex_math.tex to build I
> have to apply this patch:

> --- latex_math.tex.original	2011-06-27 09:18:18.000000000 +0100
> +++ latex_math.tex	2011-06-27 09:18:43.000000000 +0100
>  <at>  <at>  -14,9 +14,19  <at>  <at> 
>  %%% Custom LaTeX preamble
>  % PDF Standard Fonts
>  \usepackage{mathptmx} % Times
> +\usepackage{amsmath}
> +\usepackage{amsfonts}
> +\usepackage{amssymb}
>  \usepackage[scaled=.90]{helvet}
>  \usepackage{courier}
(Continue reading)

Dave Kuhlman | 28 Jun 2011 05:39

Re: odtwriter putting code under a tip...

> From: m h

> Sent: Mon, June 6, 2011 5:57:04 AM
> 
> 
> Hello-
> 
> I'm trying to insert code under the .. tip:: construct like  so:
> 
> .. tip::
> 
>   Here's some code to show it::
> 
>      >>> foo = "test"
> 
> With the odtwriter, the embedded code is  not indented relative to the
> tip section but to the page. Any ideas on how to  fix, or should I file
> a  bug?
> 

Matt -

Thanks for letting me know.  I believe I've fixed it.  I checked the
code into the SVN repository last night.  Please let me know
if it works the way you'd expect.

- Dave

 -- 

(Continue reading)

michael.abbott | 28 Jun 2011 09:01
Picon

Re: Using rst2latexmath.py (from jensj)

From: Guenter Milde [mailto:milde <at> users.berlios.de]
> > +\let\amalg=\undefined
> > +\let\coprod=\undefined
> > +\DeclareSymbolFont{cmsymbols}{OMS}{cmsy}{m}{n}
> > +\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
> > +\DeclareMathSymbol{\amalg}{\mathbin}{cmsymbols}{"71}
> > +\DeclareMathSymbol{\coprod}{\mathop}{cmlargesymbols}{"60}
> 
> What is the intention of these re-definitions? Are these fixes or
> defining variants?

These are fixes.  The problem is that mathptmx doesn't define \amalg, \coprod or \jmath, or more precisely
defines them to generate errors.  These lines are a fudge to pull in alternative (and perfectly workable)
definitions directly from the original computer modern files.  These lines are required because
latex_math.txt uses \amalg and \coprod.

The issue, presumably, is that these symbols don't have postscript forms, and for whatever reason the
writers of mathptmx didn't want to do the fudge I'm doing here (despite the fact it works perfectly well, as
far as I can tell).

For reference, the third symbol \jmath requires these lines:

\let\jmath=\undefined
\DeclareSymbolFont{cmletters}{OML}{cmm}{m}{it}
\DeclareMathSymbol{\jmath}{\mathord}{cmletters}{"7C}

> Dont, use the development version of Docutils (SVN checkout or daily
> snapshot).

Gosh, must be pretty recent: I only checked out my docutils build literally a month ago!
(Continue reading)


Gmane