[webgen-users] Pipeline for LaTeX files

Vincent Beffara vbeffara at ens-lyon.fr
Wed Feb 16 15:56:48 EST 2011


Hi again,

TL> * Drop in a .tex anywhere in your src/ directory and have it
TL> processed via the source handler 'page' like any .page file.

VB> That works very well. Only thing is, the generated page is still
VB> named whatever.tex, how can I have it renamed whatever.html instead
VB> ?

OK, I got this one by tweaking the texfiles.metainfo file. Any way to
achieve the same thing (declaring that .tex files should be treated,
setting the output file name) by editing config.yaml instead of creating
such a metainfo file ? Maybe it's just me but I like having the whole
configuration in a single file ...

TL> * Set the `template` meta information like with normal .page
TL> files. Or, for that matter, any other meta information you need
TL> (like `in_menu).

VB> This I could not figure out how to do. I know how to parse the file
VB> to extract the title, but how do I tell webgen that this is it?
VB> Probably something like context['title']="Whatever" in the content
VB> processor, but I couldn't figure it out.

On this I am still looking ... But I am already quite happy with the
results.

Thanks again !

       /v

-- 
|                 |   UMPA - ENS Lyon   | Mél: vbeffara at ens-lyon.fr |
| Vincent Beffara |  46 allée d'Italie  | Tél: (+33) 4 72 72 85 25  |
|                 | 69364 Lyon Cedex 07 | Fax: (+33) 4 72 72 84 80  |



More information about the webgen-users mailing list