[NTG-context] Incorrect css reference in exported html file

2021-02-27 Thread Aditya Mahajan
Hi, This message is prompted by a bug report for t-vim (https://github.com/adityam/filter/issues/43), but the issue is more general. Whenever, `cssfile` in `\setupexport` points to a file now in $PWD, the reference to the file in the exported CSS is incorrect: Consider the following directory

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-19 Thread Aditya Mahajan
of that). I thought that \startelement[mycommand][name=whatever] should work (there are some such examples in the texmf tree), but it does not. epub-mkiv.pdf states that I need `\setupexport[properties=yes]`, but that doesn't work either: There is a bug in back-exp.lua: --- /tmp/back-exp.lua

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
][name=whatever] should work (there are some such examples in the texmf tree), but it does not. epub-mkiv.pdf states that I need `\setupexport[properties=yes]`, but that doesn't work either: ``` \setupbackend[export=xml] \setupexport [properties=my] \setelementbackendtag[mycommand

Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes

2020-04-10 Thread Christoph Hintermüller
iple output for > publishing > ane educational purposes. And it looks pretty good too. > Thank you very much i will do. You are refering to Thomas Schmitz? \setupbackend[ export=yes, xhtml=yes ] \setupexport[ title={linenumber placement missmatch example in export}, subtitle={}, au

Re: [NTG-context] Epub export css buglets

2020-01-17 Thread Rik Kabel
On 1/10/2020 10:59, Rik Kabel wrote: Here ya go, about as minimal as I can imagine: \setupbackend [export=yes] \setupexport [] \starttext ! \stoptext and in the resulting export styles directory, I get: g:\yoiks-export\styles>grep "namespace\|weight.*ital

Re: [NTG-context] Epub export css buglets

2020-01-10 Thread Rik Kabel
ly assigns italic to font-weight when of course it  is a font-style as far as css is concerned. This can be seen in file export-example.css in the distribution. can you make a mwe ... Here ya go, about as minimal as I can imagine: \setupbackend [export=yes] \setupexport []

[NTG-context] style=underbar output in export

2018-10-03 Thread Rik Kabel
font-style  : inherit ;     font-variant    : inherit ;     font-weight : inherit ;     font-family : inherit ;     color   : inherit ;     text-decoration : underline ; } xxx.tex: \setupbackend[export=yes] \setupexport[cssfile=xxx.css] \definehigh

[NTG-context] tagged elements in tables (TABLE, tabulate, xtable)

2018-09-29 Thread Rik Kabel
to get two (or all to get three, or...). There are similar problems with tabulate and xtables, but only TABLE is shown here. \setupstructure[state=start, method=auto] \setuptagging [state=start] \setupbackend [export=yes] \setupexport

[NTG-context] Epub broken

2018-07-04 Thread Rik Kabel
The following example fails with recent betas, but not with TL18: \setupinteraction [state=start] \setuptagging [state=start] \setupbackend [export=yes,xhtml=yes] \setupexport [title={Title}] \setupstructure [state=start] \starttext \startchapter[title

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Toby Miller
dd attributes >> as you say), but I feel bad about posting to the list for them. Is there >> any documentation for these features at all? I couldn't find any >> reference to the \startelement command when I looked, but perhaps I'm >> looking in the wrong place. > >

Re: [NTG-context] Custom XML Export

2015-09-12 Thread Hans Hagen
. Is there any documentation for these features at all? I couldn't find any reference to the \startelement command when I looked, but perhaps I'm looking in the wrong place. \setupbackend[export=yes] \setupexport[properties=yes] \starttext \startelement[test][this=that]whatever\stopelement

[NTG-context] Cover of ePub

2015-08-07 Thread Henning Hraban Ramm
Hi again, I'm trying to define a cover image for my ePub using the documented „firstpage“ setting of \setupexport. While it works in my minimal example below, it fails in my project structure; I tried to move \setupexport into project, product and component to no avail. % \setupbackend[export

Re: [NTG-context] Cover of ePub

2015-08-07 Thread Henning Hraban Ramm
of \setupexport. While it works in my minimal example below, it fails in my project structure; I tried to move \setupexport into project, product and component to no avail. % \setupbackend[export=yes] \setupinteraction[ state=start, color=,contrastcolor=, title={ePub

[NTG-context] Export bugs

2015-04-24 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Here are two export bugs, full test suite attached: ==sh_ahmad-qajar-xml-test-highlight.tex=== \setupexport[cssfile=sh_ahmad-qajar.css] \setupbackend[export=yes] \definehighlight[emphasis][style=\em] \definehighlight[important][style=bold] \starttext

Re: [NTG-context] tagging heads and empty output

2015-03-28 Thread Idris Samawi Hamid ادريس سماوي حامد
to \start-stophead. A simple \definestartstop[heading][style=] does the trick, and may be worth adding to the distribution. Best wishes Idris = \setupexport[cssfile=itemize.css] \setupbackend[export=yes] \setupitemize[each][headstyle=bold] \definestartstop[heading][style=] \starttext

[NTG-context] ePUB creation problems

2015-03-18 Thread Gerben Wierda
' I’m using in the env file: \setupbackend [export=yes] \setupexport [title={Chess and the Art of Enterprise Architecture}, author={Gerben Wierda}, firstpage={9789081984058-CoverFront.jpeg}, ] So, what seems to be ignored is \setupexport [title={Chess and the Art of Enterprise

[NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, In the attached, we export hemistiches: === \setupexport[cssfile=sh_ahmad-qajar.css] \setupbackend[export=yes] \usemodule[hemistich] \setuphemistich [width=local, distance=1\emwidth, separator=] \setuphemistich [leftcolor=, separatorcolor

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster
Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear gang, In the attached, we export hemistiches: === \setupexport[cssfile=sh_ahmad-qajar.css] \setupbackend[export=yes] \usemodule[hemistich] \setuphemistich [width=local

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Wolfgang Schuster
isha...@colostate.edu: Dear gang, In the attached, we export hemistiches: === \setupexport[cssfile=sh_ahmad-qajar.css] \setupbackend[export=yes] \usemodule[hemistich] \setuphemistich [width=local, distance=1\emwidth, separator=] \setuphemistich [leftcolor

Re: [NTG-context] Export: \setuphemistich distance=

2015-03-18 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 18 Mar 2015 11:51:13 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 18.03.2015 um 15:04 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear gang, In the attached, we export hemistiches: === \setupexport[cssfile=sh_ahmad-qajar.css

Re: [NTG-context] Exporting highlights

2015-03-16 Thread Idris Samawi Hamid ادريس سماوي حامد
Ok, I've made some progress: On Sun, 15 Mar 2015 17:01:16 -0600, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: export-highlight.tex== \setupbackend [export=yes,css=highlight.css] \setupexport[cssfile=highlight.css] \setupbackend[export=yes

Re: [NTG-context] context - docx ??

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
\input darwin 9 10 \setupexport 11 [hyphen=yes, 12width=60em] 13 14 \stopmode 15 16 \starttext 17 18 \startquotation 19 \input darwin 20 \stopquotation 21 22 \stoptext Please advise. Best wishes Idris It's one of those weird things

Re: [NTG-context] context - docx ??

2015-01-14 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Alan, On Wed, 14 Jan 2015 10:55:50 -0700, Alan BRASLAU alan.bras...@cea.fr wrote: \enablemode[export] \startmode[export] \setupbackend [export=yes, xhtml=yes, css=export-example.css] \setupexport [hyphen=yes, width=60em] \stopmode \starttext

Re: [NTG-context] context - docx ??

2015-01-14 Thread Alan BRASLAU
converted to Word is another problem that is to be addressed to the MS-Word community. Hans showed us at the last ConTeXt conference: MWE: \enablemode[export] \startmode[export] \setupbackend [export=yes, xhtml=yes, css=export-example.css] \setupexport [hyphen=yes

Re: [NTG-context] What happened to the ePub script?

2015-01-13 Thread Hans Hagen
it with any specification file, but only with a plain ConTeXt file like \setupbackend[ export=export.xml,xhtml=yes, ] \setupexport[ firstpage={koe.png}, ] \settaggedmetadata[ author={Hraban}, ] \starttext \startchapter[title={Chapter One}] \startsection[title={Section

[NTG-context] What happened to the ePub script?

2015-01-12 Thread Henning Hraban Ramm
=yes, ] \setupexport[ firstpage={koe.png}, ] \settaggedmetadata[ author={Hraban}, ] \starttext \startchapter[title={Chapter One}] \startsection[title={Section One}] \input tufte \stopsection \startsection[title={Section Two}] \input knuth \externalfigure[koe][width

Re: [NTG-context] Bugs in XML export (for ePub)

2014-03-11 Thread Henning Hraban Ramm
about ePub says, it should be possible to define metadata in \setupexport like this: \setupexport[ firstpage={koe.pdf}, title={My Fine Title}, ] But that is completely ignored - it does neither show up in the export, nor in a produced ePub. If I include an image

[NTG-context] Bugs in XML export (for ePub)

2014-03-10 Thread Henning Hraban Ramm
Hi again. I understand you don’t want to export some arbitrary (X)HTML. That’s fine, I can make my own XSLT. And I’m glad that \setupexport doesn’t kill hyphenation any more. But there are serious errors in export, that have nothing to do with „there’s no usable standard“. [1] root node

[NTG-context] Compiling to EPUB

2014-01-15 Thread H. Özoguz
Hi, I tried to compile one of my projects to a EPUB by adding \setupbackend[export=yes,xhtml=yes] \setupexport [title={A nice book}, author={John Doe}, firstpage={huhn.jpg}, ] to the main-file. After that I began the compiling by C:\Users\diretorymtxrun --script epub --make

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
offer the flexibility of custom XML documents without affecting the default behaviour. * Generates XHTML headers (including !DOCTYPE and html...) not needed as we're 'standalone' Having the ability to produce the !DOCTYPE... and htmnl elements could be as simple as: \setupexport

Re: [NTG-context] EPUB XHTML Format

2013-09-04 Thread Thangalin
offer the flexibility of custom XML documents without affecting the default behaviour. * Generates XHTML headers (including !DOCTYPE and html...) not needed as we're 'standalone' Having the ability to produce the !DOCTYPE... and htmnl elements could be as simple as: \setupexport[ standalone

Re: [NTG-context] Documentation for EPUB conversion

2013-08-28 Thread Mica Semrick
] \setupexport[ title={A nice book}, author={John Doe}, firstpage={cover.jpg}, ] \starttext \startitemize \item First \item Second \item Third \stopitemize \stoptext I then ran mtxrun: mtxrun --script epub --make t.specification This produced a document

Re: [NTG-context] Epub woes

2012-11-15 Thread Andy Thomas
Please try the following example: -- start code -- \setupbackend[export=yes,xhtml=test_00.xhtml] \mainlanguage[de] \language[de] \setupexport [title={A nice book}, author={Andy Tom}, firstpage={huhn.jpg}, ] \starttext Hello world! \stoptext -- end code -- The firstpage

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-10 Thread Hans Hagen
On 9-6-2012 14:58, Andy Thomas wrote: On Jun 9, 2012, at 1:31 AM, Hans Hagen wrote: On 8-6-2012 23:28, Andy Thomas wrote: Thank you for the suggestions. I will try to implement it, but might need until Sunday. - I've added some keys to \setupexport: author title subtitle

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-09 Thread Andy Thomas
On Jun 9, 2012, at 1:31 AM, Hans Hagen wrote: On 8-6-2012 23:28, Andy Thomas wrote: Thank you for the suggestions. I will try to implement it, but might need until Sunday. - I've added some keys to \setupexport: author title subtitle firstpage (also new key in mult) lastpage

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-08 Thread Hans Hagen
={}] Backends other than epub can safely ignore the directive. better is \setupexport (actually, we do have \setupdocument which makes een more sense: (1) take from setupdocument (2) if empty take from setupexport (3) otherwise take from setupinteraction In one of your earlier threads

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-08 Thread Hans Hagen
On 8-6-2012 23:28, Andy Thomas wrote: Thank you for the suggestions. I will try to implement it, but might need until Sunday. - I've added some keys to \setupexport: author title subtitle firstpage (also new key in mult) lastpage (aso new key in mult) - The title, subtitle

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-08 Thread Aditya Mahajan
On Sat, 9 Jun 2012, Hans Hagen wrote: On 8-6-2012 23:28, Andy Thomas wrote: Thank you for the suggestions. I will try to implement it, but might need until Sunday. - I've added some keys to \setupexport: author title subtitle firstpage (also new key in mult) lastpage (aso new key

[NTG-context] ePub from project?

2011-12-22 Thread Henning Hraban Ramm
Ramm}] \setupexport[bodyfont=12pt,hyphen=yes] \starttext \startchapter[title=Test] \input tufte \stopchapter \stoptext Hm, the xhtml file doesn’t look like HTML at all, and even styling the existing tags in CSS doesn’t affect the output. If I change sectiontitle to xhtml:h2, it’s reckognized

[NTG-context] Error with export=yes

2011-05-06 Thread Aditya Mahajan
... empty file * ./test ? Any ideas on how to fix this? Also, I looked at back-exp.mkiv and it appears that xhtml export is possible. If so, what is the command to enable it. (I am guessing \setupexport[export=yes, xhtml=yes] but cannot test it due to the above error). Aditya