User talk:LarsWinterfeld

By the way you don't need to create the latex version of wikibooks by hand. I wrote the mediawiki2latex for that purpose. Its free and open source. You can get it for ubuntu linux as well as a common commercial operating system. https://de.wikibooks.org/wiki/Benutzer:Dirk_Huenniger/wb2pdf

--Dirk Hünniger (discuss • contribs) 17:02, 1 October 2015 (UTC)


 * Thank you for your work. Unfortunately, the tool did not work for me for reasons I explained here (mainly: main equations get lost and no possibility to customize). I think it would be nice if you could decouple the "wiki to latex"-converter (which is a rather small haskell script?) from the "latex to pdf" converter (a full-blown latex distribution with several GB), which has basically nothing to do with it and which is - as far as I can see - not a necessary dependency. --LarsWinterfeld (discuss • contribs) 19:36, 1 October 2015 (UTC)

Well the sourcecode is available for download on sourceforge an contains only the haskell part. Furthermore the is a small binary for Debian is available. Although if you install it though the package manager it will pull the full blown latex distribution. I think it makes sense to have it that way since you somehow need to be able to see easily that the generated latex source actually compiles to a pdf document. Most people don't want to spend hours to figure out the dependencies themselfs. So if you are interested I could add the customizations you need. But I think most things should be easy to do by taking the latex source my tool generated an run some regexes on it. Furthermore there are some ways to customize already. For example you can inject you own header in the compilation process which should also do the trick in most cases. Furthermore is the templates.user file for customizing the way mediawiki templates are map to latex newcommands. --Dirk Hünniger (discuss • contribs) 16:30, 2 October 2015 (UTC)


 * I would argue that the dependency makes sense for a "mediawiki to pdf" converter. People looking for "mediawiki to LaTex" converter will know what LaTex is and how to compile it to pdf. I was scared away from the gigabyte download and wrote a very simple 4KB script, that uses regexp to translate some keywords and fixed the rest by hand. --LarsWinterfeld (discuss • contribs) 16:44, 2 October 2015 (UTC)


 * To reiterate, I think it would be great to split your programs into a wb2latex and a wb2pdf package, where wb2pdf depends on wb2latex (but not vica versa). That way, your programs could be accessed more easily. --LarsWinterfeld (discuss • contribs) 06:48, 7 October 2015 (UTC)

ː Hi, commons decided to keep your pdf file. The idea of splitting is not necessarily bad. Still I won't do it, especially since my time is very limited. But if you to have a wb2latex program you can make one using my sourcecode and publish it on debian if you like. If you just need it for yourself you canː and do make install on the source you get from sourceforge. Than you can use the -z or -c command line option to get the latex code. --Dirk Hünniger (discuss • contribs) 15:36, 8 October 2015 (UTC)
 * Hi, thank you again! I will look into it and then write to your talk page once I have something ready. --LarsWinterfeld (discuss • contribs) 19:08, 8 October 2015 (UTC)