Thu 19 Jan: TeX Hour: STEM access: From author to reader

William F Hammond hmwlfsr at yahoo.com
Thu Jan 19 21:46:40 CET 2023


David Carlisle <d.p.carlisle at gmail.com> writes:

>> Bill, why virtually every line apart from the first four
> starts not with an opening "<" as one might expect, but
> instead with a closing ">", 
>
> If you are adding cosmetic line ending for source viewing in
> xml or html, it is always safe to add them within the tag as
> you show. If you add them in element content before the tag
> as you suggest then then they may or may not produce white
> space in the output depending on ... things...
>
> David

:-) :-) :-)
> pp Bill
:-) :-) :-)

Thank you, David.

David is always right, of course, although I think he meant
to say "after" where he said "before".

An XML file doesn't require any newlines at all, so any
newlines present are for width control.  In this case the
file is generated by a program in a pipeline that begins
with generalized LaTeX source that is as readable as regular
LaTeX source, and the XML file is not intended for direct
human reading by anyone other than the author of the
software that produced it.  Someone writing code to process
it would be looking at a parsed form.

                              -- Bill




More information about the texhax mailing list.