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
4
votes
2answers
812 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
55 views

SVG as page layout in Latex

I know we can use parshape and the shapepar package to have customized paragraph shapes, but I wonder if it is possible to read an SVG file and use it as page layout? A possible solution might be to ...
1
vote
1answer
57 views

Connect .swf with media9

I found out that it is possible to call external javascript in an browser with my interactive .swf document using the ExternalInterface provided by Adobe. That means, that with e. g. button clicks I ...
1
vote
0answers
158 views

Can i convert a XML citation to bibtex?

I need to convert to bibtex all that a XML citation contains, like it <reference anchor="RFC1180" target="https://www.rfc-editor.org/info/rfc1180"> <front> <title>TCP/IP tutorial<...
2
votes
1answer
355 views

Any tricks for using the currvita style with tex4ht?

TeX4ht doesn't quite understand the currvita style's cvlist environment. It appears that cvlist takes the heading as an argument, typesets this heading into an \sbox, and uses the sbox inside the ...
3
votes
0answers
127 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 ...
4
votes
1answer
51 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
78 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
90 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
222 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
149 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
72 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
65 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
116 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
126 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
134 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
167 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,...
8
votes
8answers
5k 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 ...
0
votes
0answers
556 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 ...
8
votes
1answer
336 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
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 ...
4
votes
1answer
125 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:...
0
votes
0answers
47 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 ...
2
votes
0answers
174 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 ...
1
vote
1answer
166 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 ...
4
votes
1answer
619 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
1answer
171 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{...
11
votes
4answers
691 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 ...
1
vote
1answer
133 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 ...
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 ...
3
votes
1answer
475 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 ...
2
votes
1answer
144 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 ...
1
vote
1answer
2k 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{\...
3
votes
1answer
590 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. ...
1
vote
1answer
411 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]{>}{...
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 ...
4
votes
1answer
776 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 ...
6
votes
1answer
294 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 ...
12
votes
2answers
435 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
193 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
109 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 ...
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 ...
1
vote
0answers
157 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, ...
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]{&...
2
votes
0answers
72 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? &...
1
vote
3answers
1k 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 ...
1
vote
0answers
266 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
412 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 ...
1
vote
1answer
430 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 ...
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} \...