[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML output and &latex; entity undefined

From: Patrice Dumas
Subject: Re: XML output and &latex; entity undefined
Date: Tue, 9 Feb 2016 11:28:43 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

On Fri, Feb 05, 2016 at 05:30:38PM -0800, Per Bothner wrote:
> I'd drop it in favor of --xhtml,
> where --xhtml is the same as --html except strictly XML compatible - with
> no required DTDs or entity definitions.

Isn't the html generated already XHTML compatible?  I remember vaguely
this issue, but not the conclusion.  Instead of a new command line, it
could also be a customization file like those that are in tp/init/.

(In my opinion, doing HTML5 would probably be more interesting than

> For @TeX{} and @LaTeX{}, we could generate something information-preserving,
> such as:
> <span special="LaTeX">L<sup>a</sup>T<sub>e</sub>X</span>
> and
> <span special="TeX">T<sub>e</sub>X</span>

If this is better than the current HTML generated, it can easily be

If it is not to be used in the default HTML output, doing such
customization should be easy with an init file.  This is not documented,
however and the API has never been stabilized.  There is an example in
tp/init/html32.pm which allows to produce valid HTML 3.2.

> An XML post-processor for texinfo can look for the XSL/XPath pattern 
> /address@hidden"TeX"]
> or the CSS pattern span[special="LaTeX"].
> A style based on:
> http://stackoverflow.com/questions/8160514/is-there-css-for-typesetting-the-latex-logo-in-html
> span[special="TeX"] sub, span[special="LaTeX"] sub, span[special="LaTeX"] sup 
> {
>   text-transform: uppercase;
> }
> span[special="TeX"] sub, span[special="LaTeX"] sub {
>   vertical-align: -0.5ex;
>   margin-left: -0.1667em;
>   margin-right: -0.125em;
> }
> span[special="TeX"], span[special="LaTeX"] , span[special="TeX"] sub, 
> span[special="LaTeX"] sub {
>   font-size: 1em;
> }
> span[special="LaTeX"] sup {
>   font-size: 0.85em;
>   vertical-align: 0.15em;
>   margin-left: -0.36em;
>   margin-right: -0.15em;
>   }
> -- 
>       --Per Bothner
> address@hidden   http://per.bothner.com/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]