Subject: | Can't parse comments mixed with commands |
Date: | Wed, 29 Oct 2014 17:17:00 -0600 |
To: | bug-LaTeX-TOM [...] rt.cpan.org |
From: | Gunnar Þór Magnússon <gunnar [...] gthm.is> |
Hello,
The LaTeX::TOM parser drops the '{Foo bar}' argument from the'\title'
command from this valid LaTeX:
\title[Foo]%
{Foo bar}
The parser won't actually complain about this or give an error message,
but end up with the wrong tree. That is, if you tell the module to find
the 'title' command and print its contents, it'll die with an error.
(If you tell it to print the output of toLaTeX you get what you expect,
so the problem seems to be related to building the tree itself rather
than parsing the input.)
This doesn't seem to be a Perl or distro problem, but just in case:
distro: Ubuntu 14.04.1 LTS
perl -v: This is perl 5, version 18, subversion 2 (v5.18.2) built for
x86_64-linux-gnu-thread-multi
uname -a: Linux newton 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22
21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Is anyone still maintaining this package? I see it's been a while since
its website was updated, but that might not mean anything.
If you need more info I'd be happy to help however I can.
Best,
Gunnar