Translations of this page?:

Exporting to Latex

There are several document classes in latex: article, amsart, book, amsbook, latter, report, and slides.

DocClass Default properties in Latex2e
article 11pt, 12pt, twoside, twocolumn, draft, fleqn, leqno, acm
report 11pt, 12pt, twoside, twocolumn, draft, fleqn, leqno, acm
letter 11pt, 12pt, fleqn, leqno, acm
book 11pt, 12pt, twoside, twocolumn, draft, fleqn, leqno

I believe that Latex defaults to Letter papersize, but most European countries uses A4; what should be DokuWiki's default output papersize?

Letter is “compatible” to A4 (meaning Letter is smaller than A4), whereas the opposite is not the case (of course …)
So, in most cases Letter is better than A4, because if you print something smaller on something bigger you still get all the content, whereas the opposite will possibly lead to loss of content
There is a good way to keep the default setting from becoming to important. When exporting to .tex files there should be a main file which contains all the general stuff. In this file the files with the real content (text) can be imported easily. When letter is default (which is a good idea considering the above argument), this can then easily be adjusted to a4 by adjusting the \documentclass line above in the main file (by adding [a4paper] to the end of that line, I believe. There is however a far more important issue, which is to generate a correct index and contents and links. This can be done because dokuwiki has these nice namespaces, I guess, but I would not know where to start. PDF is of course also easy to create when the latex is created. — Quinten Krijger 2006-08-27 18:33

LatexRender by Benjamin Zeiss renders pieces of latex code into images for display on the Wiki. Perhaps this can be extended to encompass the entire page. Additional tags could be implemented to import other pages so that multiple people can work on a large document.

Wexi is a Python script that turns Dokuwiki syntax into LaTeX. It's in incredibly early stages right now but I thought it might save someone some time. (This paragraph was written by Wexi's author.)

Those who are using DokuWiki and wish to generate Latex, what are your needs?

This wiki has been excellent in keeping my notes up to date and sorted. I have resorted in using it as an electronic notepad to quickly capture ideas and share these with colleagues. However, it is not only the quick notes that get documented, some of the pages are exactly what i would write in a report (including the math stuff). Other than that, despite the progress made in screen manufacturing, i still need to print something to read it seriously, make notes and edits on paper and so on. Another reason for wanting to generate everything in latex is for keeping a hardcopy backup of everything. So i guess a plugin or external program that would create an indexed .tex document which would be an exact snapshot of the wiki would be extremely useful to anyone with similar needs.

Yes, agreed. And as I said above, it would be a good idea to make an import list of all the chapters (read: pages) in the main .tex file. If that is the case one can easily adjust the order of the chapters by interchanging those lines. — Quinten Krijger 2006-08-27 18:42

That would be really, really useful for those of us in academics. It would make an awesome tool for collaborative for writing papers, with revision control.

That's exactly what I will use it for. Perfect! Thank you both! Still have to decide between WeXi and DokiTexIt, probabaly will try both. Flo

DokuTeXit is a DokuWiki plugin that can export a page in LaTeX and after into PDF.

yes, but where does the .tex document go? I'd love to see have a .tex as a result of a plugin, so that I can do some tweaking and fine-tuning before turning it into a pdf. Also I could set the preamble myself if we'd just get simple .tex files… Any Ideas? — f 2006-10-10 15:24
That would be easily accomplished by tweaking the Dokutexit code a little. If you're not new to PHP this shouldn't take more than 10 minutes. Let me know if you need any help. — Primoz Verdnik 2006-10-13 08:14
In DokiTexit the .tex document are available in the directory texit via the media manager. I wanted make a .zip with all tex sources (with image), but I didn't find a way to make zipfile on every php versions. Danjer [at] doudouke [dot] org 2006-10-15
I did it ! — Danjer 2007-03-05 10:04
 
wiki/discussion/exporting_latex.txt · Last modified: 2007/07/16 13:44 by 85.181.78.142
 
Imprint Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate