\documentclass{article} % preamble: document class
\usepackage[british]{babel} % preamble: package declaration
\title{my Markup UK paper} % global parameters
\author{Martin Kraetke}
\date{\today}
\begin{document} % document body start
\maketitle
\section{Introduction}
This is a paragraph with \textit{italicized text}.
\end{document} % document body end
& % $ # _ { } ~ ^ \
\documentclass{article}
\begin{document}
text mode: \textsuperscript{superscript}
math mode: $^{superscript}$
\end{document}
\documentclass{article}
\begin{document}
\begin{table}
\begin{tabular}{|l|c|r|} \hline
a1 & a2 & a3 \\ \hline
b1 & b2 & b3 \\ \hline
c1 & c2 & c3 \\ \hline
\end{tabular}
\end{table}
\end{document}
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{table}
\begin{tabular}{|l|c|r|} \hline
a1 & \multicolumn{2}{|c|}{a2} \\ \hline
b1 & b2 & \multirow{2}{*}{b2} \\ \cline{1-2}
c1 & c2 \\ \hline
\end{tabular}
\end{table}
\end{document}
\underline{…}
\ul{…}
\uline{…}
\newcommand{\name}{definition}
\newenvironment{name}[num][default]{before}{after}
\def\xmlfile{doc.xml} % xml file
\input xmltex.tex % loads xmltex
\NAMESPACE{http://www.tei-c.org/ns/1.0}{tei.xmt}
\XMLelement{TEI}
{} % attributes
{\documentclass{article} % start of element
\begin{document}
{\end{document}} % end of element
\XMLelement{fo:root}
{}
{\documentclass{article}
\usepackage{fotex}
\begin{document}
\pagestyle{empty}
\FOSetHyphenation
%\ignorewhitespace
}
{\end{document}}
<?xml version="1.0" encoding="UTF-8"?>
<article xmlns="http://docbook.org/ns/docbook" version="5.0">
<title>my Title</title>
<sect1>
<title>Random Section Title</title>
<para>This is a para and this is
<emphasis role="bold">bold</emphasis>
</para>
</sect1>
</article>
\section{Random Section Title}
This is a para and this is \textbf{bold}
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
version="3.0">
<xsl:output method="text"/>
<xsl:template match="TEI">
<xsl:text>\documentclass{article}
</xsl:text>
<xsl:text>\begin{document}
</xsl:text>
<xsl:apply-templates select="* except teiHeader"/>
<xsl:text>\end{document}</xsl:text>
</xsl:template>
<xsl:template match="p">
<xsl:apply-templates/>
<xsl:text>

</xsl:text>
</xsl:template>
</xsl:stylesheet>
+-----------+-----------+ +-----+-----+-----+-----+ | a | b | | a | a | b | b | | +-----+-----+ +-----+-----+-----+-----+ | | c | d | | a | a | c | d | +-----------+-----+ | ==> +-----+-----+-----+-----+ | e | | | e | e | e | d | +-----+-----+-----+ | +-----+-----+-----+-----+ | f | g | h | | | f | g | h | d | +-----+-----+-----+-----+ +-----+-----+-----+-----+
<ns/>
declare namespaces<import/>
import other xml2tex-configs<preamble/>
doc class, packages, parameters etc.<front/>
frontmatter<back/>
backmatter<template/>
associates XML nodes with TeX<regex/>
associates regular expressions with TeX<charmap/>
character map<template context="dbk:section">
<rule break-after="2" name="section" type="cmd">
<param/>
</rule>
</template>
@name
→ TeX name@type = "cmd"|"env"
→ command or environment<param>
→ {parameter}<option>
→ [options]<text>
→ regular text<regex regex="(\d{1,2})\.(\d{1,2})\.(\d{4})">
<rule name="mydate" type="cmd">
<param select="regex-group(1)"/>
<param select="regex-group(2)"/>
<param select="regex-group(3)"/>
</rule>
</regex>
<charmap ignore-imported-charmaps="false">
<!--= Uppercase Gamma -->
<char character="Γ" string="${\Upgamma}$"/>
<char character="Γ" string="$\boldsymbol{\Upgamma}$"
context="*[@css:font-weight eq 'bold']"/>
<char character="Γ" string="${\Gamma}$"
context="*[@css:font-style eq 'italic']"/>
</charmap>