Questions tagged [xml]
XML (Extensible Markup Language) is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards.
131 questions
1
vote
2
answers
76
views
ConTeXt: Preserve all spaces with \xmlflushspacewise
Background
Trying to preserve whitespace in code blocks. In a similar post to the mailing list, the space glyph width was being discarded, which was fixed by using \spaceskip\zeropoint.
Problem
...
3
votes
1
answer
99
views
ConTeXt: Avoid gobbling spaces while replacing strings
Background
Markdown, having been converted to XHTML, is to have certain words stylized using ConTeXt. Consider:
1. Say, "ConTeXt is good."
1. Tap [Space]{.kbd} to continue (or quit with [Q]{....
3
votes
1
answer
93
views
How to add EPUB XML namespace to TeX4ebook XHTML output?
I’m attempting to implement Amazon’s EPUB footnote guidelines with TeX4ebook in order to make my EPUBs as compatible as possible with e-readers (footnotes as pop-ups, etc.). I’ve gotten quite far by ...
3
votes
1
answer
186
views
ConTeXt: Conditional check of text with dollar symbols
Background
An XML document contains TeX elements in inline- and paragraph forms:
<p>Inline: <tex>$E=mc^3$</tex></p>
<p><tex>$$E=mc^2$$</tex></p>
I'd ...
1
vote
1
answer
96
views
ConTeXt: Cross-reference from macro definition
Background
Looking to allow user-defined cross-references and captions. The input XML resembles:
<p>
<a class="name" data-type="tab" name="ref"/>
</p>
...
0
votes
1
answer
551
views
Latex to XML convertor process
I know latex, but new in xslt (learning now), I need to convert the tex to xml file through XSLT (one of my friend suggest, but i failed to convert). Please suggest or give example to convert the ...
0
votes
0
answers
188
views
Differences between TeX/LaTeX and Script/GML
I often see people saying that SGML and LaTeX are different because SGML is made for defining markup languages, while LaTeX is using TeX macros to simulate content markups. However, SGML is based on ...
3
votes
1
answer
738
views
Why? is the <file>.run.xml file generated when I typeset a LaTeX document
I have a LaTeX document that lists the wines in my wine cellar. This particular document doesn't use any features of the LaTeX language that I have not already used in several hundred other documents ...
1
vote
1
answer
170
views
ConTeXt: XML processing and buffers
Knowing that buffers and macros don't play well together, I started with the Verbatim XML guide from the wiki.
However manipulating the catcode table is insufficient when trying to pass xmlflush into ...
3
votes
1
answer
139
views
ConTeXt: Replace matching substring with macro output
Background
Looking to replace a string within a document with an equivalent string created using a macro. For example, I'd like to replace "McAnulty" with "\Mac Anulty".
Problem
...
9
votes
3
answers
1k
views
moodle xml conversion to LaTeX
I am familiar with the package moodle. I however have a question in a reverse direction.
Is there a method or tool to convert xml moodle question banks to LaTeX?
Edit:
A sample of an xml file is like ...
1
vote
1
answer
126
views
no xml metadata stream with xetex
My aim is to produce a pdf file (letter) with an included metadata stream for later indexing purposes. The tex-file gets created by a program and the compilation should be possible by three major ...
0
votes
1
answer
183
views
Can the ampersand command be aliased with newcommand without issue?
In order to facilitate authoring LaTeX fragments within XML (where <, >, and & are reserved characters), the PreTeXt specification allows for the use of \lt, \gt, and \amp within math ...
3
votes
1
answer
317
views
ConTeXt: Dynamic document metadata variables
Background
Looking to convert XHTML metadata into document variables.
Code
The parts include:
XHTML metadata -- includes user-defined metadata
XML setups -- applies XML filters
Metadata setups -- ...
1
vote
1
answer
250
views
ConTeXt: Typeset XML attribute containing newlines
Background
A user can provide their address information in a text area, separating lines by pressing Enter. An XML document is generated, which replaces the new line character with \n, such as in the ...