On 1/20/2015 10:16 AM, Henning Hraban Ramm wrote:
Am 2015-01-19 um 15:48 schrieb Hans Hagen
: On 1/17/2015 1:52 PM, Henning Hraban Ramm wrote:
* How can I set the current \date in a metadata variable? (I know it’s also in the date tag of <document>, but I know how to format \date …)
This doesn’t work (i.e. I get „\date“ in XML/XHTML):
\settaggedmetadata[ version={\date} ]
\the\normalyear-\the\normalmonth-\the\normalday
Thanks, but that’s not the same. Not only because I get „2015-1-20“ and not „2015-01-20“.
Is there a way to get „everything“ expanded within \settaggedmetadata ?
no, because \hbox{foo\smallcaps bar\kern10pt gnu} and such have no real string representation
* Can I influence the directory/file names of the export from within the source? E.g. if I compile „minimal.tex“, I get minimal-export and minimal-epub The —result switch doesn’t change anything.
hm, honoring --result is doable but in general i'd like to keep the export quite basic and predictable (the less options the better)
Ok, that means we have no influence on files names at all?
it would only be the directory and maybe the main files but not every specific file (it would demand an extra setup and lots of explanations in the manual) but maybe at soem point the mtx-epub script can do some magic ... it's already tricky to keep up cq. satisfy basic epub standards and it's really no fun to do that kind of stuff ... i have no real need for it so i cannot spend ages on it ... (in fact i only redid it because i wanted to play with the svg math and then noticed some possible improvements in the rest
* BTW: Can I set —result from within my ConTeXt source?
no, because the context script also does some cleanup and checking (like not replacing the tuc file when there is an issue) (letting tex influence its own run is somewhat tricky and has limitations)
Ok, would have been nice. Will write a wrapper script for my use case.
it it's systematic, predictable etc etc we can always add it as option but filenames and their use are pretty fragile in epub (i had no problems with crashing of locking the kobo) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------