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
1 vote
1 answer
39 views

ConTeXt: Cross-reference from macro definition

Background Looking to allow user-defined cross-references and captions. The input XML resembles: <p> <a class="name" data-type="tab" name="ref"/> </p> ...
Dave Jarvis's user avatar
  • 11.6k
0 votes
1 answer
38 views

Latex to XML convertor process

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 ...
Rajkumar M's user avatar
0 votes
0 answers
77 views

Differences between TeX/LaTeX and Script/GML

I often see people saying that SGML and LaTeX are different because SGML is made for defining markup languages, while LaTeX is using TeX macros to simulate content markups. However, SGML is based on ...
haha's user avatar
  • 1
0 votes
0 answers
29 views

Tools to convert from TEX to XSL-FO format for TOC template

I need to get an XSL-FO (XSL Formatting Objects) template of a TOC (Table of Contents) with two columns and for various reason I would like to obtain it starting from an equivalent template written in ...
andreagalle's user avatar
0 votes
0 answers
57 views

docbook - Markup for SI Units

How can I properly type values with units (similar to LaTeX siunitx) in Docbook? Sinc I could not find a tag for this purpose, I was wondering whether one can install extension packages, similar to ...
LRMAAX's user avatar
  • 213
3 votes
1 answer
252 views

Why? is the <file>.run.xml file generated when I typeset a LaTeX document

I have a LaTeX document that lists the wines in my wine cellar. This particular document doesn't use any features of the LaTeX language that I have not already used in several hundred other documents ...
K7PEH's user avatar
  • 245
1 vote
1 answer
72 views

ConTeXt: XML processing and buffers

Knowing that buffers and macros don't play well together, I started with the Verbatim XML guide from the wiki. However manipulating the catcode table is insufficient when trying to pass xmlflush into ...
pestaa's user avatar
  • 163
3 votes
1 answer
96 views

ConTeXt: Replace matching substring with macro output

Background Looking to replace a string within a document with an equivalent string created using a macro. For example, I'd like to replace "McAnulty" with "\Mac Anulty". Problem ...
Dave Jarvis's user avatar
  • 11.6k
9 votes
3 answers
655 views

moodle xml conversion to LaTeX

I am familiar with the package moodle. I however have a question in a reverse direction. Is there a method or tool to convert xml moodle question banks to LaTeX? Edit: A sample of an xml file is like ...
Name's user avatar
  • 2,806
1 vote
1 answer
76 views

no xml metadata stream with xetex

My aim is to produce a pdf file (letter) with an included metadata stream for later indexing purposes. The tex-file gets created by a program and the compilation should be possible by three major ...
joHub's user avatar
  • 23
0 votes
1 answer
98 views

Can the ampersand command be aliased with newcommand without issue?

In order to facilitate authoring LaTeX fragments within XML (where <, >, and & are reserved characters), the PreTeXt specification allows for the use of \lt, \gt, and \amp within math ...
Steven Clontz's user avatar
3 votes
1 answer
222 views

ConTeXt: Dynamic document metadata variables

Background Looking to convert XHTML metadata into document variables. Code The parts include: XHTML metadata -- includes user-defined metadata XML setups -- applies XML filters Metadata setups -- ...
Dave Jarvis's user avatar
  • 11.6k
1 vote
1 answer
165 views

ConTeXt: Typeset XML attribute containing newlines

Background A user can provide their address information in a text area, separating lines by pressing Enter. An XML document is generated, which replaces the new line character with \n, such as in the ...
Dave Jarvis's user avatar
  • 11.6k
2 votes
1 answer
131 views

ConTeXt: Format blockquotes according to punctuation rules

Background Format multi-paragraph quotation with typical English punctuation: quotation marks at the beginning of each paragraph and a single closing quotation mark at the end of the last paragraph. ...
Dave Jarvis's user avatar
  • 11.6k
1 vote
1 answer
234 views

ConTeXt: Mix XHTML and TeX commands

Background A document, having inline math statements, is being written in Markdown. The document is converted to XHTML for subsequent processing using ConTeXt. Problem The XHTML contains XML elements ...
Dave Jarvis's user avatar
  • 11.6k
1 vote
1 answer
139 views

ConTeXt: External SVG images using XML setups

Background Include an external SVG image from an HTML img element, using ConTeXt LMTX. Code Here's main.tex: \startbuffer[document] <body><img src="circle.svg"/></body> \...
Dave Jarvis's user avatar
  • 11.6k
2 votes
1 answer
214 views

moodle.sty does not insert tikz graphics into xml output file [closed]

I want to generate quizzes to be imported to the Moodle platform. The quizzes include tikz drawings. I use the moodle 2021/01/04 57334 v0.8 package with TeX Live 2020/W32TeX on Windows 10. When I run ...
Kirsten's user avatar
  • 21
2 votes
1 answer
870 views

phone sms xml to boxed conversation-like in latex

here is a piece of an xml file generated by and android app to backup sms's. <sms protocol="0" address="+1234567890" date="1602132754403" type="1" subject=&...
user1850133's user avatar
2 votes
0 answers
46 views

Extended Latin characters appear out of place in \listings

I am trying to generate a PDF containing my XML file, which is UTF-8 encoded and contains extended Latin characters. However, there is an issue – Polish characters appear out of place in both listings ...
MrVocabulary's user avatar
2 votes
0 answers
74 views

Problem with docx2tex custom configuration

I'm trying to improve conversion of my DOCX files with ZOTERO citation. My idea was to set custom citation format, to mimic tex style, so after the conversion to tex, I will have only to set my BIB ...
Karls's user avatar
  • 121
0 votes
0 answers
308 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 ...
Diego Olvera's user avatar
2 votes
1 answer
962 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 ...
BATMAN_2008's user avatar
1 vote
2 answers
230 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 ...
Alexandre Lymberopoulos's user avatar
3 votes
1 answer
579 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 ...
Ntakwetet's user avatar
  • 611
1 vote
0 answers
91 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 ...
mimuller's user avatar
  • 800
1 vote
1 answer
126 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 ...
მამუკა ჯიბლაძე's user avatar
1 vote
1 answer
1k 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 ...
fcturner's user avatar
4 votes
1 answer
419 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, ...
John's user avatar
  • 2,391
4 votes
2 answers
786 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{...
veronica's user avatar
0 votes
2 answers
178 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 ...
elika kohen's user avatar
5 votes
2 answers
2k 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 ...
FJaleel's user avatar
  • 53
3 votes
5 answers
1k 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 ....
Gustavo Demarco's user avatar
0 votes
0 answers
241 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} \...
ATTAFI Billel Abd Rezak's user avatar
4 votes
1 answer
363 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 ...
Shahryar's user avatar
  • 365
1 vote
1 answer
125 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 ...
JoN's user avatar
  • 314
1 vote
0 answers
2k 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<...
Arthur Abitante's user avatar
3 votes
0 answers
188 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 ...
Denis's user avatar
  • 799
5 votes
1 answer
187 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 ...
Denis's user avatar
  • 799
0 votes
0 answers
196 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 ?
Thewickedislick's user avatar
1 vote
0 answers
352 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"/...
user1's user avatar
  • 2,166
5 votes
2 answers
388 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 ...
Denis's user avatar
  • 799
6 votes
2 answers
292 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 ...
Denis's user avatar
  • 799
5 votes
1 answer
149 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]...
Neil Mussett's user avatar
3 votes
1 answer
121 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>...
Neil Mussett's user avatar
6 votes
1 answer
307 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/...
Neil Mussett's user avatar
2 votes
1 answer
817 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. ...
sonja's user avatar
  • 123
1 vote
0 answers
212 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,...
Keiser's user avatar
  • 11
1 vote
1 answer
264 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 ...
Denis's user avatar
  • 799
1 vote
1 answer
205 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 ...
Sandeep Raheja's user avatar
5 votes
1 answer
158 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:...
Icxolu's user avatar
  • 227