Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-16 Thread Paul Libbrecht
You certainly need hooks for a preamble where all macros, variables, and environments are defined. Bringing Velocity to write LaTeX is probably enjoyable since you can be very free to input text source, I am wondering if there are no escaping issues. Maybe with the $ sign which is used for math

Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-15 Thread Vincent Massol
Ok I’ve now realized that the 2 approaches mentioned so far are not going to work: * The first one mixes content and styling and is complex for the user to use * The second one is actually very limited and doesn’t allow full control of the LaTeX markup used So I’ve been thinking about a new appr

Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-15 Thread Guillaume Delhumeau
I cannot help more than Paul, but I'm glad you are prototyping a PDF export using LaTeX. I've been a LaTeX user for years and I have always loved the results. But it's a very different world than the other tools. 2018-02-15 8:46 GMT+01:00 Vincent Massol : > Hi Paul, > > > On 15 Feb 2018, at 08:24

Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-14 Thread Vincent Massol
Hi Paul, > On 15 Feb 2018, at 08:24, Paul Libbrecht wrote: > > Hello Vincent, > > On 15 Feb 2018, at 7:25, Vincent Massol wrote: >>> having some experience with TeX I would implement CSS with >>> macro-definitions… Every element start would be a call to a macro that >>> would check for rules

Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-14 Thread Vincent Massol
haha seems there’s some option to use “.sty” files for styling in LaTeX! :) * https://tug.org/pracjourn/2005-3/asknelly/nelly-sty-&-cls.pdf * https://tex.stackexchange.com/questions/91167/why-use-sty-files What I understand so far, is that we would redefine commands in the .sty file and then use

Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-14 Thread Paul Libbrecht
Hello Vincent, On 15 Feb 2018, at 7:25, Vincent Massol wrote: having some experience with TeX I would implement CSS with macro-definitions… Every element start would be a call to a macro that would check for rules that would apply to its element, including passing parameters of their ancestry.

Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-14 Thread Vincent Massol
Hi Paul, > On 14 Feb 2018, at 23:14, Paul Libbrecht wrote: > > Hello Vincent, > > having some experience with TeX I would implement CSS with macro-definitions… > Every element start would be a call to a macro that would check for rules > that would apply to its element, including passing para

Re: [xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-14 Thread Paul Libbrecht
Hello Vincent, having some experience with TeX I would implement CSS with macro-definitions… Every element start would be a call to a macro that would check for rules that would apply to its element, including passing parameters of their ancestry. However, I guess that your solution seems proba

[xwiki-devs] [Brainstorming] LaTeX Renderer - Styling

2018-02-14 Thread Vincent Massol
Hi devs, I’m currently working on improving our TeX renderer (which is really a POC ATM), in an effort to see if it could be used to generate nice PDF exports (you generate LaTeX and then you convert to PDF). The main issue is that LaTeX doesn’t have any technology for applying style to it (li