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
33 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 ...
user avatar
  • 13
0 votes
0 answers
53 views

Convert MS Word references in text to "\cite{}" (using XML)?

I have a word document that I would like to convert to a latex project. The word doc has over 100 references where I used Mendeley to cite. I already have a nice bibtex file ready with all my ...
user avatar
0 votes
1 answer
44 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 ...
user avatar
3 votes
1 answer
101 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 -- ...
user avatar
  • 10.9k
0 votes
0 answers
21 views

Converting TeX from BITS xml structured for nested section levels heads

I am trying to convert the tex file from the xml (BITS structure), i am have the issue for section heads, when section heads in the , the hierarchy is not printing correctly for example, <boxed-...
user avatar
  • 1,764
1 vote
1 answer
83 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 ...
user avatar
  • 10.9k
2 votes
1 answer
96 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. ...
user avatar
  • 10.9k
1 vote
1 answer
147 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 ...
user avatar
  • 10.9k
1 vote
1 answer
70 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> \...
user avatar
  • 10.9k
2 votes
1 answer
138 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 ...
user avatar
  • 21
2 votes
1 answer
434 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=&...
user avatar
2 votes
0 answers
29 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 ...
user avatar
2 votes
0 answers
51 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 ...
user avatar
  • 121
0 votes
0 answers
101 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 ...
user avatar
2 votes
1 answer
412 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 ...
user avatar
1 vote
2 answers
163 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 ...
user avatar
3 votes
1 answer
241 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 ...
user avatar
  • 601
1 vote
0 answers
68 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 ...
user avatar
  • 698
1 vote
1 answer
55 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 ...
user avatar
1 vote
1 answer
699 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 ...
user avatar
4 votes
1 answer
211 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, ...
user avatar
  • 2,054
4 votes
2 answers
586 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{...
user avatar
0 votes
2 answers
76 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 ...
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 ...
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 ....
user avatar
0 votes
0 answers
84 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} \...
user avatar
4 votes
1 answer
181 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 ...
user avatar
  • 365
1 vote
1 answer
102 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 ...
user avatar
  • 305
2 votes
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<...
user avatar
3 votes
0 answers
162 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 ...
user avatar
  • 799
5 votes
1 answer
143 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 ...
user avatar
  • 799
0 votes
0 answers
136 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 ?
user avatar
  • 137
1 vote
0 answers
265 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"/...
user avatar
  • 1,952
5 votes
2 answers
328 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 ...
user avatar
  • 799
6 votes
2 answers
239 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 ...
user avatar
  • 799
4 votes
1 answer
97 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]...
user avatar
3 votes
1 answer
88 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>...
user avatar
5 votes
1 answer
189 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/...
user avatar
2 votes
1 answer
450 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. ...
user avatar
  • 123
1 vote
0 answers
200 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,...
user avatar
  • 11
1 vote
1 answer
232 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 ...
user avatar
  • 799
1 vote
1 answer
170 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 ...
user avatar
5 votes
1 answer
144 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:...
user avatar
  • 227
2 votes
0 answers
249 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 ...
user avatar
  • 213
4 votes
1 answer
786 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 ...
user avatar
  • 71
2 votes
1 answer
215 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 ...
user avatar
  • 123
2 votes
1 answer
730 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 ...
user avatar
  • 1,764
2 votes
1 answer
223 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{...
user avatar
  • 413
0 votes
0 answers
55 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 ...
user avatar
  • 1,764
1 vote
1 answer
648 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]{>}{...
user avatar
  • 35.9k