Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

Filter by
Sorted by
Tagged with
51
votes
5answers
67k views

XML syntax highlighting

I use the following code to include some XML code: \lstset{language=XML} \begin{lstlisting} <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" ...
45
votes
0answers
2k views

Using XMLTeX to typeset OpenDocument Text

I know that XMLTeX has already been used to typeset TEI documents, but has anyone publicly worked on a set of environment files and stylesheets to typeset OpenDocument Text? I have been looking for ...
18
votes
2answers
2k views

Writing a technical book, structuring first then layout later possible?

I want to write a Technical Book that eventually should go to Lulu.com for publishing, so I have to stick to certain strict rules about page sizes and layout. I'm currently looking for a way to focus ...
15
votes
1answer
673 views

Leveraging a dynamic preamble to generate multiple output formats

Background The diagram below shows an architecture for generating books using a dynamic preamble. The top part of the image shows the database relations between a book theme and its preamble. The top ...
13
votes
6answers
4k views

Is there some typesetting system that uses XML notation?

Is there some typesetting system that uses XML for notation? This is no offense, but I don't like to type \emph{This \emph{text} is important} despite the fact that there are editors that can do it ...
12
votes
3answers
4k views

Breaking long lines using latex with minted and pygments

Since Acrobat obviously isn't able to convert XML to PDF from command line, I'm trying to achieve it using LaTeX. I found the minted package doing a quite good (and simple) job since it uses pygments ...
12
votes
2answers
422 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 ...
12
votes
1answer
5k views

Listings package does not break

The following code does not break even though the breaklines and breakatwhitespace is set: \lstset{ language=XML, numbers=left, numberstyle=\tiny\color{gray}, stepnumber=1, ...
12
votes
1answer
1k views

Embedding extended XMP metadata into a PDF file

I am preparing a thesis paper for submission into an electronic library database. Our institution cooperates with the British Library that uses their EThOS system to harvest the papers from the local ...
11
votes
4answers
688 views

Front end software for people doing editing and typesetting of articles

The editors and typesetters at my organization are not very computer savvy, so I don't think they would be interested in editing in LaTeX or XML directly. However, we are interested in pursuing a ...
10
votes
2answers
8k views

XML highlighting - different style for attributes

I need to highlight syntax in my LaTeX presentation, so I've found this answer: XML syntax highlighting \lstdefinelanguage{XML} { morestring=[b]", morestring=[s]{>}{<}, morecomment=[s]{&...
9
votes
2answers
2k views

Can DITA be rendered to PDF via LaTeX rather than XSL-FO?

(Typing "DITA" and "LaTeX" into Google is NSFW, but this is a genuine question!) I'm a technical writer rather than coder, but I'd appreciate a coder's answer. DITA is a maturing standard for ...
9
votes
1answer
177 views

How to omit the last four lines of a sample code in listing

I am using the listings package to include xml samples in the documentation I am writing. I am aware of the firstline and lastline attributes \lstinputlisting[firstline=4,lastline=24]{example.xml} ...
9
votes
1answer
367 views

ConTeXt mkIV and XML: how do you define a self-closing tag with no content to pass?

I am using TEI Lite, and trying to typeset with ConTeXt. TEI Lite defines <divGen type='toc' /> to signal the Table of Contents, which in ConTeXt is \completecontents Now I am trying this: \...
8
votes
8answers
4k views

Want a TeX to XML or MathML converter

Is there a TeX engine that converts a TeX document to MathML or XML directly the way PDFTeX converts text input to PDF? I am familiar with some converters that transform a subset of TeX into ...
8
votes
1answer
818 views

What are the advantages of using ConTeXt's XML?

I have discovered quite a number of documents at the PRAGMA ADE Web page, showing how to create documents using an XML system. Much of the documents show features, such as tables, which appear, at ...
8
votes
1answer
328 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 ...
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 ...
7
votes
1answer
4k views

XML syntax highlighting does not work

How do I make comments highlighted in the form: <!-- ======= Processing Root tag ======= --> . This is not working. \documentclass[11pt]{scrartcl} \usepackage{listings, color} \definecolor{...
7
votes
1answer
3k views

Someone knows a xml2tex converter?

I've already Googled it, without concrete success. So, I'd like to know if someone knows a converter from XML to TeX. Something "simple" as latex2rtf.
7
votes
3answers
2k views

Best way to write an xml tag

I'm writing a document about an XML schema, and I will be talking a lot of times about that <tag1> or that other <tag2>. Since I'm only mentioning them and not printing a whole XML file, ...
7
votes
1answer
19k views

Including XML file into LaTeX

I am using LaTeX for very first time and have very basic knowledge about it. I am using the template from here to write my thesis. I am using Ubuntu 12.04. When I try to include a small XML file in ...
7
votes
1answer
186 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\...
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">...
7
votes
1answer
913 views

XML or other markup to LaTeX?

In my university project I am doing software testing - planning, implementation, evaulation. All test documents have the format: General information Test categories Test cases Test implementation ...
6
votes
4answers
1k views

Latex not data driven enough, Embed XML+XSLT?

Ok, so I've been using Lyx for about a year now. I haven't really dug too deep in to the LaTex/Tex side of things. I've a little more experience with XML + XSLT. It has a nice seperation of Data from ...
6
votes
2answers
4k views

Latex to XML using pdflatex

I am writing Latex to XML. While compiling pdflatex we generate a xml file using \immediate\write{text} in tagged commands. But how can i get normal text to XML file. Can any one explain with samples.
6
votes
2answers
446 views

ConTeXt style/environment files for setting TEI?

Is there a repository of styles for typesetting XML, specifically TEI XML markup, using ConTeXt? I've been googling now for a week or so trying to dig up as much information as possible about ...
6
votes
1answer
124 views

How to output environment content to a file while enclosing content by a box?

This is the source: \documentclass{article} \begin{document} \begin{obj}{name-of-obj} This is a test code. \begin{equation} a < b \end{equation} \end{obj} \end{document} I want to enclose the ...
6
votes
1answer
286 views

parsing bbl file to an xml file from within pdflatex while typesetting

As editor of a journal I need to translate the bibliography, in a bbl file, into part of an xml file (for potential submission to cross-ref). It seems best done on the fly by pdfLaTeX so I can also ...
5
votes
2answers
214 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
143 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 ...
5
votes
1answer
677 views

Install plasTeX on Windows 7

PlasTeX is a free, open-source tool to process (La)TeX files and convert them to xHTML by default, but also docbook, text, and others. It is fully customizable. How do I install plasTeX on Windows 7?...
5
votes
1answer
112 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/...
4
votes
1answer
770 views

How to escape xml code?

How to escape this kind of expression and make in typewritter font? I added $ dollars to both ends, it did work - warnings dissapear. But text became italic of unknown font and it doesn't jump on ...
4
votes
1answer
70 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]...
4
votes
1answer
121 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:...
4
votes
1answer
757 views

How can I convert a LaTeX document to Texinfo format?

I have a LaTeX document, and I'd like to produce from it a Texinfo document. Does there exist a tool that does this, or a set of guidelines? TeX and Texinfo seem to be closely related, so it feels ...
4
votes
1answer
49 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 ...
4
votes
1answer
606 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 ...
4
votes
2answers
780 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{...
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} \...
4
votes
1answer
553 views

Including transformed XML

I need to include a transformed XML document into my LaTeX source. Transformation is specified inside the XML via XSLT. I recently started using LaTeX and I have bib database in XML. However, this XML ...
4
votes
1answer
749 views

Creating Excel documents with LaTeX

I've been using an own class with some commands for writing exams in my classes (I'm a teacher). In this, I use a rather complex point system (why I do this is kind of irrelevant) with 9 different ...
3
votes
2answers
596 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 ...
3
votes
1answer
407 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 ...
3
votes
1answer
2k views

TeXnicCenter typing macros

Sometimes my LaTeX document gets long and messy, and so it's hard for me to look through and find what I want. When I program, I usually have a macro in my IDE that creates a separator of comments to ...
3
votes
1answer
63 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>...
3
votes
1answer
618 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 ...
3
votes
1answer
441 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 ...