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.

learn more… | top users | synonyms

7
votes
1answer
72 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\...
3
votes
1answer
68 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 ...
0
votes
0answers
22 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
93 views

Adding KOMAscript to LaTeXML

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

Force newline in concpets

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
68 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
142 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
83 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} \...
3
votes
1answer
149 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> <...
2
votes
1answer
153 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 ...
1
vote
0answers
153 views

Jabref (biblatex) to Excel (xml) [closed]

I would like to export my database with a lot of customized entry type from Jabref to Excel. I did not manage to open correctly csv files in Excel, but xml works great. Now, I want to choose the ...
6
votes
0answers
136 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 ...
3
votes
1answer
188 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
59 views

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

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] ...
6
votes
0answers
355 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
182 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....
0
votes
1answer
181 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 ...
0
votes
0answers
139 views

XML and LaTeX, including figures PGF plots

I am about to submit an article to a scientific journal. This journal provides some guidelines for those who want to submit the work in LaTeX. Requirements, however, are quite restrictive: Do not ...
1
vote
0answers
56 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 ...
3
votes
0answers
117 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
129 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
266 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 ...
4
votes
1answer
689 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 ...
2
votes
0answers
100 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 ...
2
votes
2answers
212 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
148 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
539 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">...
2
votes
1answer
77 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]{...
1
vote
0answers
39 views

Can I use Writer2LaTeX and the `mla-paper` style together?

I use LibreOffice 4.1.3.x, and have had success using a patched version of Writer2LaTex with documents created in LibreOffice Writer. I want to create a (sub?)filter for Writer2LaTeX that allows me ...
1
vote
1answer
126 views

How can I have a hyphenated XML tag in a listing?

Consider the following valid XML according to http://stackoverflow.com/a/1478623/1443496? \documentclass{article} \usepackage{listings} \lstset{ language=xml, morekeywords=some-tag, } \begin{...
1
vote
1answer
179 views

Why is lstlisting splitting my XML tags?

I have a little problem with this ambient. I have some XML to insert into my document and the thing that really bugs me is that the new line breaks a closing tag in two. I indicated to the environment ...
5
votes
1answer
449 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?...
4
votes
1answer
243 views

Color lines in source code that is embedded in LaTeX

I am looking for a way to mark some lines in a source code sample that will be integrated into my LaTeX code. I already found solutions to embed source code and have syntax highlighting like this ...
1
vote
1answer
454 views

How to format xml?

Hi I use the following LaTeX to ouput xml format data, however, there is no space before each line. \documentclass{minimal} \usepackage{etex}, \begin{document} \medskip {\small\noindent \fbox{\...
9
votes
1answer
114 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} ...
2
votes
1answer
129 views

Convert TeX to XDoc

I am rather new in this forum, so that I hope you will be patient in case of naive question. I would like to know if any of you is aware of ready-made tools to convert a TeX document into a XDoc. So ...
3
votes
1answer
371 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 ...
1
vote
1answer
376 views

How to create a citation graph using Bibtex and XML

I would like to include a citation graph for all the citations in my bibliography. My question is how to parse the graph file (in XML format), replacing the \cite{...} keys with the correct number ...
15
votes
1answer
503 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 ...
2
votes
2answers
861 views

Import elements of XML-Files in LyX/Latex

I have a software which creates XML-Files with a structure looking like this: <model> <dims> <dim type="attr" name="foo"> <def>Insert Definition of the Dimension '...
6
votes
1answer
110 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 ...
5
votes
0answers
133 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 ...
1
vote
1answer
322 views

XML with Listings: Different colors for attributes and elements

How can I make every attribute name in color X and every element name in color Y without adding keywords and stuff? What I did so far: \lstdefinelanguage{myXML} { morestring=[b]", ...
7
votes
1answer
571 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 ...
1
vote
3answers
203 views

Configure Minted Color XML

I'm using minted package for code listing, however I don't like some of the colors too much. Is it possible to configure these colors? For example, When I display the colors to view XML color, the ...
29
votes
0answers
768 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 ...
7
votes
1answer
9k 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 ...
6
votes
2answers
2k 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.
11
votes
3answers
607 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 ...
12
votes
1answer
4k 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, ...