[xwiki-devs] Texifier
Hi everyone, For your information, I started coding a "Texifier", i.e. a tool that converts XWiki pages into a Tex file: http://playground.xwiki.org/xwiki/bin/view/Main/Texifier It relies on WikiModel and was written mainly for generating PDF from XWiki pages using the power of pdflatex. Comments welcome! Cheers Stéphane
cool! Best would be to put this in the code zone, especially since the playground wiki is cleaned every day... Thanks -Vincent On Jun 28, 2008, at 1:18 PM, Stéphane Laurière wrote:
Hi everyone,
For your information, I started coding a "Texifier", i.e. a tool that converts XWiki pages into a Tex file: http://playground.xwiki.org/xwiki/bin/view/Main/Texifier
It relies on WikiModel and was written mainly for generating PDF from XWiki pages using the power of pdflatex.
Comments welcome!
Cheers
Stéphane
cool! Best would be to put this in the code zone, especially since the playground wiki is cleaned every day...
ok! Here it is: http://code.xwiki.org/xwiki/bin/view/Snippets/TexifierSnippet Cheers Stéphane
Hello, have you cared somehow for all the very many encoding issues that can arise using TeX? Basically, you'd want UTF-8 to be eaten by pdftex but I haven't seen it here (this is far more important than one considers). Also I haven't seen escapes for all the math-specific characters, in particular "_" and "^" which both, in tex's nonstopmode, force an entry in math-mode. paul Le 28-juin-08 à 13:37, Stéphane Laurière a écrit :
cool! Best would be to put this in the code zone, especially since the playground wiki is cleaned every day...
ok!
Here it is: http://code.xwiki.org/xwiki/bin/view/Snippets/TexifierSnippet
Cheers
Stéphane
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hello, In recent versions of Latex it is not a problem to handle the UTF8 encoding, especially for PDFs. Usually the following command should be enough: \usepackage[utf8]{inputenc} There is also an option for hyperref to write unicode chars into the pdf: \usepackage [pdftex, unicode]{hyperref} After that the issue is the correct font with unicode support. One could use the Bitstream font from Netscape. For all european and us characters the standard fonts will be just good enough. It gets difficult if you wan't to typeset Asian (CJK) or Arabian text alongside european special chars (like german Umlauts). Manuals for that can be found here: (eng) http://www.tug.org/pracjourn/2006-1/aslaksen/ (german) http://www.jawiki.de/wiki/display/WAD/MikTex Maybe it helps a bit. greetings Jonas Paul Libbrecht wrote:
Hello,
have you cared somehow for all the very many encoding issues that can arise using TeX? Basically, you'd want UTF-8 to be eaten by pdftex but I haven't seen it here (this is far more important than one considers).
Also I haven't seen escapes for all the math-specific characters, in particular "_" and "^" which both, in tex's nonstopmode, force an entry in math-mode.
Thanks Stéphane for this nice snippet. I have a small problem to download the tar.gz http://code.xwiki.org/xwiki/bin/download/Snippets/TexifierSnippet/texifier.t... It seems corrupt. I cannot extract it with the standard "tar xzvf " Am I doing something wrong or there is a problem on the attachment ? Nico Stéphane Laurière wrote:
cool! Best would be to put this in the code zone, especially since the playground wiki is cleaned every day...
ok!
Here it is: http://code.xwiki.org/xwiki/bin/view/Snippets/TexifierSnippet
Cheers
Stéphane
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On 28 juin 08, at 13:18, Stéphane Laurière wrote:
Hi everyone,
For your information, I started coding a "Texifier", i.e. a tool that converts XWiki pages into a Tex file: http://playground.xwiki.org/xwiki/bin/view/Main/Texifier
It relies on WikiModel and was written mainly for generating PDF from XWiki pages using the power of pdflatex.
Comments welcome!
For the XMLRPC you could directly use the xwiki-xmlrpc-client module that provides wrappers so that you don't need to explicitly write code like XmlRpcClient client = createXmlRpcClient(wikiUrl); String token = (String) client.execute("confluence1.login", new Object[] { username, password }); String[] pageNameData = getSpaceAndName(pageListDocumentFullName); Map page = (Map) client.execute("confluence1.getPage", new Object[] { token, pageNameData[0], pageNameData[1] }); String content = (String) page.get("content"); But you can do something more readable: XWikiXmlRcpClient client = new XWikiXmlRpcClient(endpoint); client.login(userName, password); XWikiPage page = client.getPage(pageId); String content = page.getContent(); ... -Fabio
Hi, I'm a kile (LaTeX) user myself. Out of curiosity, why should I want to create a PDF from a XWiki page over LaTeX? Am I missing something or can't I just create directly a PDF out of a XWiki page? Cheers, Squirrel On Sat, Jun 28, 2008 at 2:35 PM, Fabio Mancinelli < [email protected]> wrote:
On 28 juin 08, at 13:18, Stéphane Laurière wrote:
Hi everyone,
For your information, I started coding a "Texifier", i.e. a tool that converts XWiki pages into a Tex file: http://playground.xwiki.org/xwiki/bin/view/Main/Texifier
It relies on WikiModel and was written mainly for generating PDF from XWiki pages using the power of pdflatex.
Comments welcome!
For the XMLRPC you could directly use the xwiki-xmlrpc-client module that provides wrappers so that you don't need to explicitly write code like
XmlRpcClient client = createXmlRpcClient(wikiUrl); String token = (String) client.execute("confluence1.login", new Object[] { username, password }); String[] pageNameData = getSpaceAndName(pageListDocumentFullName); Map page = (Map) client.execute("confluence1.getPage", new Object[] { token, pageNameData[0], pageNameData[1] }); String content = (String) page.get("content");
But you can do something more readable:
XWikiXmlRcpClient client = new XWikiXmlRpcClient(endpoint); client.login(userName, password); XWikiPage page = client.getPage(pageId); String content = page.getContent(); ...
-Fabio
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Squirrel wrote:
Hi,
I'm a kile (LaTeX) user myself. Out of curiosity, why should I want to create a PDF from a XWiki page over LaTeX? Am I missing something or can't I just create directly a PDF out of a XWiki page?
Well, LaTeX documents look sort of... professional. A PDF exported directly from XWiki looks OK, but just OK, not great.
On Sat, Jun 28, 2008 at 2:35 PM, Fabio Mancinelli < [email protected]> wrote:
On 28 juin 08, at 13:18, Stéphane Laurière wrote:
Hi everyone,
For your information, I started coding a "Texifier", i.e. a tool that converts XWiki pages into a Tex file: http://playground.xwiki.org/xwiki/bin/view/Main/Texifier
It relies on WikiModel and was written mainly for generating PDF from XWiki pages using the power of pdflatex.
Comments welcome!
For the XMLRPC you could directly use the xwiki-xmlrpc-client module that provides wrappers so that you don't need to explicitly write code like
XmlRpcClient client = createXmlRpcClient(wikiUrl); String token = (String) client.execute("confluence1.login", new Object[] { username, password }); String[] pageNameData = getSpaceAndName(pageListDocumentFullName); Map page = (Map) client.execute("confluence1.getPage", new Object[] { token, pageNameData[0], pageNameData[1] }); String content = (String) page.get("content");
But you can do something more readable:
XWikiXmlRcpClient client = new XWikiXmlRpcClient(endpoint); client.login(userName, password); XWikiPage page = client.getPage(pageId); String content = page.getContent(); ...
-Fabio
-- Sergiu Dumitriu http://purl.org/net/sergiu/
LaTeX's indenting mechanism, for example, is almost unsurpassed. paul Le 28-juin-08 à 23:11, Squirrel a écrit :
Hi,
I'm a kile (LaTeX) user myself. Out of curiosity, why should I want to create a PDF from a XWiki page over LaTeX? Am I missing something or can't I just create directly a PDF out of a XWiki page?
Cheers, Squirrel
participants (8)
-
Fabio Mancinelli -
Jonas von Malottki -
Nicolas Rodriguez -
Paul Libbrecht -
Sergiu Dumitriu -
Squirrel -
Stéphane Laurière -
Vincent Massol