* [NTG-context] Re: exporting to epub
[not found] ` <c7de504c-07c9-470d-8924-7b0152b2f31b@gmail.com>
@ 2025-06-02 13:45 ` Matthias Weber
2025-06-02 15:35 ` Henning Hraban Ramm
0 siblings, 1 reply; 6+ messages in thread
From: Matthias Weber @ 2025-06-02 13:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thank you Wolfgang. A fresh install fixed my initial problems.
mtxrun --script mtx-epub --make --purge epub-mkiv-demo
produces an epub. However, both Calibre and Thorium have trouble with it (not displaying anything but error messages).
Are there any steps I need to follow to create a readable epub?
Thanks again,
Matthias
> On Jun 1, 2025, at 11:32 AM, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
> Am 01.06.2025 um 17:12 schrieb Matthias Weber:
>> Usually TeXShop. Should I create a new account for a fresh install?
>
> Delete the directory with your ConTeXt installation and download the zip file from the Pragma site to reinstall ConTeXt.
>
> How do you run mtxrun from TeXShop because you didn't (if I get your previous mail right) add the path for the TeX binaries to your PATH variable?
>
> Wolfgang
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: exporting to epub
2025-06-02 13:45 ` [NTG-context] Re: exporting to epub Matthias Weber
@ 2025-06-02 15:35 ` Henning Hraban Ramm
0 siblings, 0 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2025-06-02 15:35 UTC (permalink / raw)
To: ntg-context
Am 02.06.25 um 15:45 schrieb Matthias Weber:
> Thank you Wolfgang. A fresh install fixed my initial problems.
>
> mtxrun --script mtx-epub --make --purge epub-mkiv-demo
>
> produces an epub. However, both Calibre and Thorium have trouble with it (not displaying anything but error messages).
> Are there any steps I need to follow to create a readable epub?
I only ever used that script for the general structure and created my
actual code with a bunch of XSLT from the exported XML. (Reminds me, I
must finally implement changes requested by our ebook distributor.)
I still don’t have a clue how to handle the not-so-semantic stuff (like
titles, dedication, blurb, imprint…) properly. ePub is no fun.
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: exporting to epub
[not found] ` <A9FE0EF1-3F02-4DC4-B05E-7D9E02050320@gmail.com>
@ 2025-05-31 17:13 ` Wolfgang Schuster
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2025-05-31 17:13 UTC (permalink / raw)
To: ntg-context
Am 31.05.2025 um 18:24 schrieb Matthias Weber:
> Thanks, yes, I used to have several, but now I have only one (I deleted the directories for the others).
> Is there a simple way to fix this?
What system do you use?
On Mac and Linux you can use
echo $PATH
on the terminal to get a list with all entries in the PATH variable.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: exporting to epub
2025-05-30 17:49 ` Matthias Weber
@ 2025-05-31 15:15 ` Wolfgang Schuster
[not found] ` <A9FE0EF1-3F02-4DC4-B05E-7D9E02050320@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2025-05-31 15:15 UTC (permalink / raw)
To: ntg-context
Am 30.05.2025 um 19:49 schrieb Matthias Weber:
> Thanks Wolfgang.
>
> I located mtx-epub.lua
>
> and now I am getting with
>
> mtxrun --script mtx-epub --make --purge test
Do you have (or had one in the past) another TeX installation on your
system, PATH entries for multiple installations can cause problems.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: exporting to epub
2025-05-30 16:21 ` [NTG-context] " Wolfgang Schuster
@ 2025-05-30 17:49 ` Matthias Weber
2025-05-31 15:15 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Matthias Weber @ 2025-05-30 17:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2256 bytes --]
Thanks Wolfgang.
I located mtx-epub.lua
and now I am getting with
mtxrun --script mtx-epub --make --purge test
the error
mtx-epub | unknown specificaton file 'test-export/test-pub.lua' for ‘test'
I tried other things than ’test’ to no avail.
I am using the most recent minimal, so I think I have everything
Matthias
> On May 30, 2025, at 12:21 PM, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
> Am 29.05.2025 um 22:54 schrieb Matthias Weber:
>> Hi,
>> I am trying to export to epub. I found epub-mkiv-demo.tex and export-example.tex, and both compile fine, generating the XML tree. The instructions say that I have to run
>> mtxrun --script epub --make --purge test
>> but I get unknown script ‘epub.lua’. I don’t have epub.lua anywhere.
>
> The filename of the scrip is mtx-epub.lua and the path is <TEXROOT>\tex\texmf-context\scripts\context\lua
>
>> It also says that the console would tell me what script to run,
>> but it only tells me
>> mtx-context | pdfview methods: auto default evince okular pdfxcview sumatra zathura, current method: sumatra (directives_pdfview_method)
>> pdfview | command: wine "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC "epub-mkiv-demo.pdf" 1>/dev/null 2>/dev/null &
>> The directories with the XML trees contain a script epub-mkiv-demo-pub.lua which I can run, but it doesn’t seem to do anything.
>> I am clearly doing something wrong.
>> Any hints on how to proceed will be much appreciated.
>
> It's possible your installation is missing files, the best solution is to use the minimal version from the pragma site: https://www.pragma-ade.nl/install.htm
>
> Wolfgang
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 8776 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: exporting to epub
2025-05-29 20:54 [NTG-context] " Matthias Weber
@ 2025-05-30 16:21 ` Wolfgang Schuster
2025-05-30 17:49 ` Matthias Weber
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2025-05-30 16:21 UTC (permalink / raw)
To: ntg-context
Am 29.05.2025 um 22:54 schrieb Matthias Weber:
> Hi,
>
>
> I am trying to export to epub. I found epub-mkiv-demo.tex and export-example.tex, and both compile fine, generating the XML tree. The instructions say that I have to run
>
> mtxrun --script epub --make --purge test
>
> but I get unknown script ‘epub.lua’. I don’t have epub.lua anywhere.
The filename of the scrip is mtx-epub.lua and the path is
<TEXROOT>\tex\texmf-context\scripts\context\lua
> It also says that the console would tell me what script to run,
> but it only tells me
>
> mtx-context | pdfview methods: auto default evince okular pdfxcview sumatra zathura, current method: sumatra (directives_pdfview_method)
> pdfview | command: wine "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC "epub-mkiv-demo.pdf" 1>/dev/null 2>/dev/null &
>
> The directories with the XML trees contain a script epub-mkiv-demo-pub.lua which I can run, but it doesn’t seem to do anything.
>
> I am clearly doing something wrong.
> Any hints on how to proceed will be much appreciated.
It's possible your installation is missing files, the best solution is
to use the minimal version from the pragma site:
https://www.pragma-ade.nl/install.htm
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-06-02 15:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <dba67d13-c0bc-4133-954c-4d2e527ee4ef@gmail.com>
[not found] ` <243508F9-D675-4802-B006-8DD15853D682@gmail.com>
[not found] ` <c7de504c-07c9-470d-8924-7b0152b2f31b@gmail.com>
2025-06-02 13:45 ` [NTG-context] Re: exporting to epub Matthias Weber
2025-06-02 15:35 ` Henning Hraban Ramm
2025-05-29 20:54 [NTG-context] " Matthias Weber
2025-05-30 16:21 ` [NTG-context] " Wolfgang Schuster
2025-05-30 17:49 ` Matthias Weber
2025-05-31 15:15 ` Wolfgang Schuster
[not found] ` <A9FE0EF1-3F02-4DC4-B05E-7D9E02050320@gmail.com>
2025-05-31 17:13 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).