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
2
votes
1answer
50 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 ...
2
votes
1answer
100 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=&...
2
votes
0answers
16 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 ...
2
votes
0answers
29 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 ...
0
votes
0answers
31 views

Biber: is it possible to have BBLXML output?

I would like to post-process Biber output, and this would be much much easier if it were in XML (so that data and markup are clearly separated). I read on a github forum from January 2019 that Biber ...
0
votes
0answers
23 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
63 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 ...
1
vote
2answers
79 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
66 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
37 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
31 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
27 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
312 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
113 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
292 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
60 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 ...
5
votes
2answers
1k 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 ...
3
votes
5answers
870 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
62 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
111 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
80 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
983 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
150 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
114 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
113 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
170 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
263 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
192 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
81 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
73 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
154 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
265 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
180 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
216 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
152 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
134 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
209 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
640 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
181 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
1answer
633 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
201 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
565 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
721 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
525 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
233 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
114 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
78 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
164 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
1k 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{...