Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85976

pypandoc and restructured text

From al.basili@gmail.com (alb)
Newsgroups comp.lang.python
Subject pypandoc and restructured text
Date 2015-02-20 14:59 +0000
Message-ID <ckp0dsFk4hU1@mid.individual.net> (permalink)

Show all headers | View raw


Hi everyone,

I'm trying to convert restructured text to latex with pandoc and it 
seems to me there's something not correctly working.

I have the following text:

.. figure:: picture.png
   :scale: 50 %
   :alt: map to buried treasure

   This is the caption of the figure (a simple paragraph).

   The legend consists of all elements after the caption.  In this
   case, the legend consists of this paragraph and the following
   table:

   +-----------------------+-----------------------+
   | Symbol                | Meaning               |
   +=======================+=======================+
   | .. image:: tent.png   | Campground            |
   +-----------------------+-----------------------+
   | .. image:: waves.png  | Lake                  |
   +-----------------------+-----------------------+
   | .. image:: peak.png   | Mountain              |
   +-----------------------+-----------------------+

which is essentially copied from here: 
http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure

But unfortunately the pypandoc silently ignores everything. The same 
happens with pandoc directly.

My installation is the following:
pandoc 1.5.1.1
python 2.6.6
debian squeeze

Any idea why? Should I upgrade somehow beyond what the debian repository 
delivers?

Al

p.s.: I understand that this is potentially not related to python and more 
related to the package, but there's a chance somebody here already had 
the same problem.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

pypandoc and restructured text al.basili@gmail.com (alb) - 2015-02-20 14:59 +0000
  Re: pypandoc and restructured text Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2015-02-20 17:07 +0100
    Re: pypandoc and restructured text al.basili@gmail.com (alb) - 2015-02-21 13:39 +0000
      Re: pypandoc and restructured text Fabien <fabien.maussion@gmail.com> - 2015-02-21 14:46 +0100
      Re: pypandoc and restructured text Chris Angelico <rosuav@gmail.com> - 2015-02-22 00:55 +1100
        Re: pypandoc and restructured text al.basili@gmail.com (alb) - 2015-02-21 23:20 +0000
          Re: pypandoc and restructured text Fabien <fabien.maussion@gmail.com> - 2015-02-22 12:59 +0100

csiph-web