Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

3
votes
0answers
108 views

ConTeXt XML: Produce PDF and cleaned up XML

I have an XML file with some elements that should be typeset right-to-left. I use ConTeXt directives to change the typesetting direction. But our web viewer does not seem to like those injections. Is ...
3
votes
1answer
37 views

ConTeXt XML: Footnote references and footnote content

I am trying to process JATS XML with ConTeXt. One problem is how I can properly typeset the footnotes since in JATS XML footnote references and footnote content are not at the same location in the ...
0
votes
0answers
33 views

How to draw SVG from XML Structure file?

I extracted the XML description of a Chart from a Word Document. It is about 500 lines of code so I will not append it. How can I draw the SVG for the XML file in Latex ?
0
votes
0answers
61 views

Convert XML to Tikz

Is there already a tool, that can convert a XML file to a Tikz-tree? <node id="1" time="0"> <info1> <info1a="1"/> </info1> <info2> <info2a="0"/...
5
votes
2answers
199 views

ConTeXt XML: Nested section elements

I am trying to produce PDF from XML with ConTeXt. Currently, I am struggling with this: The XML file is in JATS, and JATS usually does not specify the levels of sections. There is an optional ...
5
votes
2answers
134 views

ConTeXt XML: Configureable Titleblock

I am trying out XML processing with ConTeXt. The basics are working fine for me. Now I am trying to make the titleblock layout independent of where the data appears in the XML file. Let's consider ...
4
votes
1answer
62 views

ConTeXt XML: How do I typeset blank lines, leading spaces

I have the following example, where one <Line> is blank and one has leading spaces. ConTeXt is ignoring the blank line and trimming the leading spaces. How do I turn this off? \startbuffer[demo]...
3
votes
1answer
53 views

ConTeXt: Optional XML in two columns

I have the following XML data: \startbuffer[demo] <?xml version="1.0" encoding="UTF-8"?> <Book> <Reading> <Header>Foo</Header> <Source>From Source #1</Source>...
5
votes
1answer
102 views

ConTeXt: Read an XML file into a buffer for processing

I have a very (very) long XML file, and I am using ConTeXt to turn it into a book. This works to read the file and output as-is: \starttext \startbuffer[test] \input /Users/ramfub/Documents/...
2
votes
1answer
83 views

Listing: XML keywords, strings, identifiers not recognized

I'd like to implement some XML code in my document. However, the syntax of my listings doesn't seem to be acknowledged. So my output looks like this right now: Obviously, that doesn't make any sense. ...
2
votes
0answers
115 views

Lua Table or XML as Bibliography File in LuaLaTeX

According to the ConTeXt Wiki in ConTeXt you can use the bibtex format for bibliographies but are not limited to that filetype. Since lua and XML are a little more universal but i can‘t (yet) switch ...
1
vote
0answers
160 views

Using start/stopxmlsetups with the ConTeXt Lua Interface

How could I write something like the following converter using only the Lua interface? \startbuffer[test] <html> <body> <p>Some stuff</p> <p>More stuff,...
1
vote
1answer
136 views

Tex4ht, LaTeX to Docbook: Quote-Environment not transformed to <blockquote>

I've been using Tex4ht to create a Word-File from LaTeX via ODT (oolatex). I've been wondering if the conversion process can be easier if we generate a Docbook XML from LaTeX. This could be the ...
1
vote
1answer
114 views

Texml or equivalent required for Python3

I am looking for a solution to markup latex in an XML syntax on the lines of texml, however I find that the available library does not work with Python3. Does anyone have experience of using any ...
4
votes
1answer
117 views

ConTeXt: How to use xmlflush in lua?

I tried to use context's xml with this xhtml file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http:...
2
votes
0answers
155 views

Can I convert from LaTeX to TexML?

TeXML is an XML serialization of LaTeX. The getfo program can convert TeXML to LaTeX. Is there any way to convert LaTeX to XML? Unnecessarily Detailed Background I want to programmatically generate ...
3
votes
1answer
365 views

XML parsing and data retrieving in ConTeXt

ConTeXt provides a way of managing XML files. The reason I approached this functionality is due to the need of being able to publish xml data in PDF to obtain catalogs or other technical ...
1
vote
1answer
124 views

Converting blog (blogger/blogspot) backup to latex?

It would save me quite a bit of work if I could find a way to convert the blogspot backup of my blog to Latex. Easy web searches aren't showing me much. the backup file starts with an xml declaration ...
0
votes
0answers
492 views

tex to xml conversion through xslt

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 ...
2
votes
1answer
161 views

align equations without using align or array environment

Is it possible to align equations to "=" without merging the below equations into one environment? \documentclass{article} \begin{document} Sample \begin{equation} a + b = c \end{equation} \begin{...
0
votes
0answers
46 views

How to modify the environment and command possible write the content in a file through the \write command?

I want to "generate/convert" my .tex files into xml format while compiling LaTeX. I don't want to modify the tex files, I want to generate the xml file trough the \write command based on the DTD while ...
1
vote
1answer
344 views

XML syntax highlighting: comments not recognized

Consider this MWE: \documentclass{article} \usepackage{xcolor} \usepackage{listings} \lstdefinelanguage{XML}{ commentstyle=\color{gray}, breaklines=true, morestring=[b]", morestring=[s]{>}{...
3
votes
1answer
526 views

Converting Jats XML to LaTeX

I need to convert Jats XML to LaTeX. Jats means Journal Article Tag Suite and it's a XML format to Scientific publications. Other important XML schemas like SciELO Publishing Schema derive from it. ...
12
votes
2answers
407 views

Compare ConTeXt with speedata publisher for database publishing and dynamic page layout

Context mkiv has xml capabilities and it can now publish a xml database. The Speedata publisher is based on LuaTeX and is made to do database publishing. How do these systems compare? Can ConTeXt do ...
7
votes
1answer
176 views

Macro overloading, catcode redefining… or how can I parse XML with TeX?

Given this code that barely parse XML and print it as SXML (s-exp XML, aka lisp-style XML, aka XML-with-parenthesis): \catcode`@=11 \let\@xp\expandafter \def\@makeletter#1#2\@nil{\catcode`#1 \ifx\...
2
votes
1answer
106 views

What software packages have been used to produce the FCLA book and why that might be a more suitable choice than LaTeX?

A First Course in Linear Algebra (FCLA) was written in LaTeX until version 2.99 but switched to XML. See the FCLA development page which contains a link to its git repository. What set of softwares ...
2
votes
0answers
69 views

Is there special TexML syntax for key-value pairs

Many TeX commands now work with key-value pairs, like this: \mycommand{key1={myvalue},key2={othervalue}} I can generate that sort of thing with TeXML (below), but it's ugly. Is there a better way? &...
2
votes
0answers
153 views

Adding KOMAscript to LaTeXML [closed]

Like many people, I prefer KOMA Script classes scrbook, scrreprt and scrartcl over the original book, report and article. Lately I’ve been trying out a web service for collaborative writing, Authorea, ...
3
votes
2answers
691 views

Force newline in concepts

I am following this acm-template (Zip set of TeX template files for easy download (May, 2015).) I have this minimal example: \documentclass{sig-alternate-05-2015} \usepackage[english]{babel} \begin{...
1
vote
0answers
255 views

How to color numbers in certain parts of a lstlisting

So, I'm a student and my teacher posted this kind of "how to make XML look cool in LaTeX". We were using it in class but I noticed some errors. For example, when printing numbers inside the labels (...
3
votes
1answer
385 views

Pretty printing DTDs (Document Type Declaration)

I want to include a didactic, compact view of a DTD (Document Type Declaration) in my texts. DTDs are used to define the set of tags and attributes of a XML/SGML document -- some sort of a grammar of ...
4
votes
1answer
2k views

How to add caption correctly in listing?

I have two blocks lstlisting and another listing as follows: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{inconsolata} \usepackage{color} \definecolor{pblue}{rgb}{0.13,0.13,1} \...
2
votes
1answer
3k views

How to display the symbol dollar $ correctly?

I have a minted block as follows: \documentclass{article} \usepackage{minted} \usepackage{listings} \begin{document} \begin{listing}[ht] \begin{minted}{xml} <plugin> <...
3
votes
1answer
593 views

How to properly number between lstlisting and listing the same latex file?

I'm having trouble with the legend of the lstlisting and listing the latex file when I reference them both are appearing as listing 1. How do I display the number of correctly caption for listing 1 ...
8
votes
1answer
306 views

Use ConTeXt to turn EPUB into PDF

Because ConTeXt is good at manipulating XML, it would seem likely that it is also good at handling EPUB, since this is essentially a zipped collection of HTML and CSS files. I am wondering if there ...
4
votes
1answer
572 views

Why convert TeX to XML before compilation to PDF?

When I received the proof for my latest paper submission I found the following explanatory text in the proof: Please note that as part of the production process, [the journal] converts all ...
2
votes
0answers
97 views

ConTeXt: Table header as section in TOC (while parsing xml to pdf with xmlflush) [closed]

I would like to use the header of a table as a section for the TOC (while parsing an XML to pdf) \startxmlsetups xml:table \page[yes] \dorecurse{3}{ \bTABLE[frame=on,split=no] ...
8
votes
0answers
1k views

Framemaker to LaTeX

I'm a software person who has been tasked with moving a few thousand pages of documentation for a piece of legacy software online. The documentation is all in Adobe Framemaker and yes, there are lots ...
1
vote
1answer
571 views

How do I convert MathML characters to XML in texmath? [closed]

I'm in the process of converting LaTeX to MathML in PHP. texmath is the command line tool through which the conversion process can be done. Latex file: \mathbf{f} = (f_{1}, f_{2})^{\prime} test....
1
vote
1answer
402 views

How to convert Latex entities to hex value?

I'm in the process of converting latex to xml. So, I need to convert latex entities into hex value. I thought to convert from latex entities to html to hex entities or can it be done directly from ...
1
vote
0answers
82 views

Someone knows a xml2bibtex or other *2bibtex converters?

I have a database of the books in a BookCat (.mdb-format), but now I want to convert BookCat-database into bibtex, but BookCat can not export directly into bibtex but only into xml. So, I need ...
2
votes
0answers
263 views

xmltex more attributes in element

I am just working on my graduating thesis, when I making a new latex style for typesetting legal XML documents. I have my new latex style, which is overworked [article] with new commands and source ...
0
votes
0answers
190 views

How to change Latexml DTD to NLM DTD 3.0?

Am converting latex files to xml using latexml. The xml file which is created by latexml DTD is plain XML file. I need NLM DTD 3.0 in latexml for the conversion of tex files to xml. So is there any ...
0
votes
1answer
1k views

Including both XML code and Java code in a document using lstlisting package

I am writing a document which has both java and xml codes, I managed to highlight my java code but unfortunately I was unable to do the same with xml, so far I have tried more than one way either by ...
3
votes
1answer
3k views

Problems with XML Syntax Highlighting

I want to highlight syntax in XML files. I found a nice definition from krlmlr which I changed to my needs. It works fine for Android's xml files: But the result of a xml file with values in between ...
2
votes
0answers
195 views

Generating LaTeX reports from XML *without* external scripts

First of all, I apologize if this is pretty similiar in nature to my previous question: Reading and (custom) formatting a CSV (not \csvautotabular) I thought it would be better to separate the two ...
3
votes
2answers
542 views

Arabic font for Listing

Currently, I am using Listings package in order to insert my XML text in the document. For example the code: \begin{lstlisting} <Product Title="نوکیا" Type="گوشی"> \end{lstlisting} The ...
2
votes
0answers
262 views

XML style for Latex including Persian characters with some preferences

I am using the listings package to include some XML code in my document. Currently, I am using the following style: \lstset{ basicstyle=\ttfamily, columns=fullflexible, showstringspaces=false,...
7
votes
1answer
1k views

Does a (Lua) approach exist, to read XML data into a .tex file?

I am having a lot of data in .xml files which look like this: <DATA> <NAME="name" /> <VERSION="1" /> <VARIABLES> <TEST> <ELEMENT atr="0" atr2="1">...
1
vote
1answer
116 views

Listings refuses to highlight identifiers such as 'intent–filter'. Why?

I have some xml code, which I want to look fine in my latexdocument. I am doing it this way: \documentclass[12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[none]{...