zim-wiki team mailing list archive
Mailing list archive
Re: LaTeX export and some questions
Not being a Latex expert, I don't have an answer for your inquiry,
however I do have an interest in your project. I was hoping someone
would start looking at writing plugins to export to several formats:
TeX, LaTeX, Lout, and DocBook being the ones that come most readily to
Now, that I am in this type of thought... I do have an idea: what if
we map larger document classes (ie, the Book classes) when exporting a
whole notebook, and smaller (article) type classes when exporting
On Tue, Mar 2, 2010 at 11:25 AM, Johannes Reinhardt
> Hi everybody,
> I am working on LaTeX export. If someone is interested in testing and
> providing feedback, the bzr branch can be found here:
> I've run into a problem, where I am not sure what the best soltion is.
> The sectioning levels depend on the documentclass (article, report,
> book, presentation, ...). For example, there are no chapters in
> articles. To make the dumper do the right thing, (i.e provide the five
> correct sectioning levels for the documentclass), I see several
> * A custom dumper class for each documentclass. This pollutes
> the output format menu with lots of LaTeX-variant.
> * The dumper class has to know which documentclass the chosen
> template is. So the exporter has to tell the dumper which
> template is targeted. Also either the template has to be
> parsed or some convention for the template name has to be
> established so that the documentclass for a template
> can be determined.
> * The dumper writes sectioning indirect commands (like \hone,
> \htwo, \hthree, ...), and these are mapped to the right
> sectioning commands within the template with \newcommand.
> This is ugly, as the resulting LaTeX Code is obfuscated.
> * Sacrifice the flexibility and lock LaTeX export to a certain
> Johannes Reinhardt
> Johannes Reinhardt <jreinhardt@xxxxxxxxxxxxxxxxxx>
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help : https://help.launchpad.net/ListHelp
Faster moments spent spread tales of change within the sound...