Re: conditional for EPUB?
Patrice Dumas <[email protected]> Tue, 19 May 2026 22:00:24 +0200
| Newsgroups | gmane.comp.tex.texinfo.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Sun, May 10, 2026 at 10:39:38PM +0200, Patrice Dumas wrote: > On Wed, Apr 08, 2026 at 09:47:43PM +0100, Gavin Smith wrote: > > I'm okay with this. Does that mean for raw output for EPUB only (e.g. > > in the metadata block) , you would use the following? > > > > @ifepub > > @html > > .... > > @end html > > @end ifepub > > It cannot work with a conditional, actually. Indeed, the conditional is > removed when parsing, such that only @html remains after parsing and it > is not possible to output something different in HTML metadata and in > EPUB metadata. > > Therefore I think that it is not possible to avoid adding @epub, that > would actually be expanded only when calling a conversion function from > epub3.pm. Should I proceed? -- Pat