Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85976 > unrolled thread
| Started by | al.basili@gmail.com (alb) |
|---|---|
| First post | 2015-02-20 14:59 +0000 |
| Last post | 2015-02-22 12:59 +0100 |
| Articles | 7 — 4 participants |
Back to article view | Back to comp.lang.python
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
| From | al.basili@gmail.com (alb) |
|---|---|
| Date | 2015-02-20 14:59 +0000 |
| Subject | pypandoc and restructured text |
| Message-ID | <ckp0dsFk4hU1@mid.individual.net> |
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?
[toc] | [next] | [standalone]
| From | Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> |
|---|---|
| Date | 2015-02-20 17:07 +0100 |
| Message-ID | <mailman.18925.1424448461.18130.python-list@python.org> |
| In reply to | #85976 |
On 20.02.2015 15:59, alb wrote: > > 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? > I have pandoc 1.12.2.1 and it recognizes the figure directive just fine (tested with html output so I cannot say anything about LaTeX). I've found an old forum post from 2011: https://groups.google.com/forum/#!topic/pandoc-discuss/OmGYDycaMjs confirming that the figure directive was not supported at that time. So, yes, I think upgrading pandoc could help. Best, Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | al.basili@gmail.com (alb) |
|---|---|
| Date | 2015-02-21 13:39 +0000 |
| Message-ID | <ckrg3tFk9l3U1@mid.individual.net> |
| In reply to | #85979 |
Hi Wolfgang, Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> wrote: [] > I have pandoc 1.12.2.1 and it recognizes the figure directive just fine > (tested with html output so I cannot say anything about LaTeX). This reminds me that I need to move sooner or later from squeeze to wheezy... Do you know of anyway to install wheezy packages on squeeze? On backports there's nothing more than what comes with the squeeze sources. > I've found an old forum post from 2011: > > https://groups.google.com/forum/#!topic/pandoc-discuss/OmGYDycaMjs > > confirming that the figure directive was not supported at that time. > So, yes, I think upgrading pandoc could help. Thanks a lot for the hint. Maybe I should seriously think about upgrading the whole distro. It's just that Gnome3 really sucks to my taste and I'm not in the mood to look for another Desktop Environment...(maybe I should go back to CDE). Al
[toc] | [prev] | [next] | [standalone]
| From | Fabien <fabien.maussion@gmail.com> |
|---|---|
| Date | 2015-02-21 14:46 +0100 |
| Message-ID | <mca27s$hpt$1@speranza.aioe.org> |
| In reply to | #86032 |
On 21.02.2015 14:39, alb wrote: > Do you know of anyway to install wheezy packages on squeeze? No need for a new distro. Use virtualenv, this is simple and great: http://simononsoftware.com/virtualenv-tutorial-part-2/ Cheers, Fabien
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-02-22 00:55 +1100 |
| Message-ID | <mailman.18961.1424526955.18130.python-list@python.org> |
| In reply to | #86032 |
On Sun, Feb 22, 2015 at 12:39 AM, alb <al.basili@gmail.com> wrote: > Hi Wolfgang, > > Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> wrote: > [] >> I have pandoc 1.12.2.1 and it recognizes the figure directive just fine >> (tested with html output so I cannot say anything about LaTeX). > > This reminds me that I need to move sooner or later from squeeze to > wheezy... > > Do you know of anyway to install wheezy packages on squeeze? On > backports there's nothing more than what comes with the squeeze sources. > > Thanks a lot for the hint. Maybe I should seriously think about > upgrading the whole distro. It's just that Gnome3 really sucks to my > taste and I'm not in the mood to look for another Desktop > Environment...(maybe I should go back to CDE). > This is a bit off-topic for python-list, being more about Debian than the language, but trying to install just one Wheezy package on Squeeze is probably a bad idea; you'll probably find that it's built against a different version of libc and such, so you'd need to upgrade pretty much your whole system. Your two best options are, IMO: 1) Install pandoc from source, which will then build it against your existing libraries. This may not work (if it depends on a newer version of something), but it should tell you if that's the case. You won't disturb your system in any way. 2) Upgrade the entire OS to either Wheezy or Jessie. Personally, I'm quite happy with Jessie, even though she's not officially stable yet (and have you _seen_ her? Definitely mentally unstable); but whether you go Wheezy or Jessie, grab Xfce rather than Gnome 3. The latest Jessie installers are giving an option on installation as to which desktop environment(s) to install, but if you do it as an upgrade, you may want to explicitly uninstall Gnome and install Xfce, either before or after the upgrade. Happily using a mix of Debian versions here, but all with Xfce. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | al.basili@gmail.com (alb) |
|---|---|
| Date | 2015-02-21 23:20 +0000 |
| Message-ID | <cksi6mFsu5qU1@mid.individual.net> |
| In reply to | #86034 |
Hi Chris, Chris Angelico <rosuav@gmail.com> wrote: [] >> Thanks a lot for the hint. Maybe I should seriously think about >> upgrading the whole distro. It's just that Gnome3 really sucks to my >> taste and I'm not in the mood to look for another Desktop >> Environment...(maybe I should go back to CDE). >> > > This is a bit off-topic for python-list, being more about Debian than > the language, but trying to install just one Wheezy package on Squeeze > is probably a bad idea; you'll probably find that it's built against a > different version of libc and such, so you'd need to upgrade pretty > much your whole system. I apologize for littering the group, thought somehow many users here might have had a similar issues with pypandoc. [] > 2) Upgrade the entire OS to either Wheezy or Jessie. Personally, I'm > quite happy with Jessie, even though she's not officially stable yet > (and have you _seen_ her? Definitely mentally unstable); but whether > you go Wheezy or Jessie, grab Xfce rather than Gnome 3. The latest > Jessie installers are giving an option on installation as to which > desktop environment(s) to install, but if you do it as an upgrade, you > may want to explicitly uninstall Gnome and install Xfce, either before > or after the upgrade. I finally upgraded! And I'm currently trying out xfce! Thanks again for the suggestions. Al p.s.: now pandoc works as expected.
[toc] | [prev] | [next] | [standalone]
| From | Fabien <fabien.maussion@gmail.com> |
|---|---|
| Date | 2015-02-22 12:59 +0100 |
| Message-ID | <mccgbk$vkc$1@speranza.aioe.org> |
| In reply to | #86072 |
On 22.02.2015 00:20, alb wrote: > I finally upgraded! And I'm currently trying out xfce! > Thanks again for the suggestions. > > Al > > p.s.: now pandoc works as expected. I don't want to sound insistent, but as a Linux user I personnaly recommend not to use "apt" to install and use python packages. Installed packages will soon or late become outdated or they will become a burden because you have less control on what you have installed and why. I really like virtualenv for it's help in keeping things (system / python version / fooling around with new packages) separated. It's also the recommendation of the recommendation of the "Python Packaging Authority": https://packaging.python.org/en/latest/current.html#installation-tool-recommendations Fabien
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web