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
0
votes
0answers
16 views

How to fit long strings that goes out of page using lstlisting?

I am finishing my thesis in Overleaf and need to add an XML file in the appendix. I use lstlisting package. The problem is that the file contains strings with many characters and does not fit in the ...
2
votes
1answer
44 views

How to highlight the XML code in latex overleaf

I followed few answers mentioned here to highlight the XML content in my latex and tried to combine best things together from different answers but for some reason nothing is being highlighted in my ...
0
votes
0answers
21 views

XML is IN and Coverting to TeX using LuaLaTeX - Speed Problem

Previously we are used XMLTEX, but it will take more time in our production. We have plan to using LuaLaTeX, because LuaLaTeX is supporting direct UTF characters. And many more modern technology is ...
1
vote
1answer
31 views

Curly brackets in moodle.sty

I would like to have some curly brackets as delimiters of a set in latex type for a question, using moodle.sty package. Something like \\[\big\\{(x,y)\in\mathbb{R}^2\colon y\geq x\big\\}.\\] When the ...
3
votes
1answer
48 views

How can I automatically elaborate data from XML file?

I have an XML document with elements I must use to create a LaTeX document. Is there a way to automatically get each of these elements and for each of them, execute some LaTeX commands? To make it ...
1
vote
0answers
31 views

Prevent TeXShop from creating xml tags for frames

TeXshop has the somewhat handy feature of automatically creating XML tags for each subsection, which greatly simplifies navigation in large latex documents. However, I am currently writing lecture ...
0
votes
0answers
30 views

How can I insert an external xml file into the config-file of biber in tool-mode?

I want to post-process a bibfile with biber (version 2.14) in its tool-mode (biber --tool) for which I am using a custom made config-file which is loaded as --configfile=myconfig.conf. In this config-...
1
vote
1answer
25 views

Are there any packages to import bibxml into (la)tex?

While I was able to find several packages to export bibtex to bibxml, and even the whole latex stuff to xml/mathml, I could not find anything in the opposite direction. Of course it would be great to ...
1
vote
1answer
153 views

moodle.sty won't incorporate base64 code

This question is very similar to that found here: moodle.sty does not insert graphics in xml output file (though as I'm a new user I can't comment on the original question). I'm using Windows, MiKTeX ...
3
votes
1answer
83 views

LaTeX in an XML production environment

A major publisher recently requested my accepted pdf in an MSWord format. When I offered the LaTeX source, they demurred: “We’ll work with the pdf”. They were glad to receive the figure files, ...
3
votes
3answers
142 views

Problems using moodle package in Latex with TexShop. The XML file generated is not accepted by MoodleCloud

I don't known where is the problem: File \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{...
0
votes
2answers
51 views

How to wrap paragraphs in XML tags?

Closely Related: Changing paragraph begin/end commands Is there a LaTeX "hook" for automatically wrapping paragraphs in boxes, or preferably XML tags? I would like to load the outputted file into an ...
3
votes
1answer
504 views

cloze multichoice question in the latex using the package 'moodle'

I use both Moodle and latex to write all my quizzes. but, I use latex to generate formula rich questions in moodle. The latex package Moodle can do this. Then I import it as XML file to moodle. This ...
2
votes
4answers
642 views

moodle.sty does not insert graphics in xml output file

I neet to generate quizes to be imported within the moodle platform . The quizes include figures. I tried the moodle package from texlive version 2018.20190227-2. When I run pdflatex the .pdf and ....
0
votes
0answers
40 views

Syntax Highlighting for XML in lstlisting environments

I'm looking for a good syntax highlighting for XML (the existing syntax highlighting for XML does not meet all requirements.). I've already created something there (below), unfortunately I'm still ...
0
votes
0answers
55 views

How to write in arabic using lstlinsting for the JSON and XML environment?

I'm an IT developer, and for some reason I've JSON and XML to make in report but with Arabic. For JSON and XML environment I'm using this: \documentclass{report} \usepackage[latin1]{inputenc} \...
4
votes
1answer
106 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
75 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
789 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<...
3
votes
0answers
148 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
96 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
102 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
140 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
248 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
186 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
77 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
71 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
144 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
227 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. ...
1
vote
0answers
176 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
205 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
146 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
131 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
197 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 ...
4
votes
1answer
603 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
166 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
617 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
198 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
49 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
523 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
680 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
509 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 ...
8
votes
1answer
225 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
113 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
77 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
0answers
163 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, ...
4
votes
2answers
978 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
273 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
485 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 ...
5
votes
1answer
3k 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} \...