<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en-GB">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title type="main">TEI by Example</title>
        <title type="sub">Module 0: Introduction to Text Encoding and the TEI</title>
        <author xml:id="RvdB">Ron Van den Branden</author>
        <editor xml:id="EV">Edward Vanhoutte</editor>
        <editor xml:id="MT">Melissa Terras</editor>
        <sponsor>Association for Literary and Linguistic Computing (ALLC)</sponsor>
        <sponsor>Centre for Data, Culture and Society, University of Edinburgh, UK</sponsor> 
        <sponsor>Centre for Digital Humanities (CDH), University College London, UK</sponsor>
        <sponsor>Centre for Computing in the Humanities (CCH), King’s College London, UK</sponsor>
        <sponsor>Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium</sponsor>
        <funder>
          <address>
            <addrLine>Centre for Scholarly Editing and Document Studies (CTB)</addrLine>
            <addrLine>Royal Academy of Dutch Language and Literature</addrLine>
            <addrLine>Koningstraat 18</addrLine>
            <addrLine>9000 Gent</addrLine>
            <addrLine>Belgium</addrLine>
          </address>
          <email>ctb@kantl.be</email>
        </funder>
        <principal>Edward Vanhoutte</principal>
        <principal>Melissa Terras</principal>
      </titleStmt>
      <publicationStmt>
        <publisher>Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium</publisher>
        <distributor>Centre for Scholarly Editing and Document Studies (CTB) , Royal Academy of Dutch Language and Literature, Belgium</distributor>
        <pubPlace>Gent</pubPlace>
        <address>
          <addrLine>Centre for Scholarly Editing and Document Studies (CTB)</addrLine>
          <addrLine>Royal Academy of Dutch Language and Literature</addrLine>
          <addrLine>Koningstraat 18</addrLine>
          <addrLine>9000 Gent</addrLine>
          <addrLine>Belgium</addrLine>
        </address>
        <availability status="free">
          <p>Licensed under a <ref target="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution ShareAlike 3.0 License</ref>
                    </p>
        </availability>
        <date when="2010-07-09">9 July 2010</date>
      </publicationStmt>
      <seriesStmt>
        <title>TEI by Example.</title>
        <respStmt>
          <name>Edward Vanhoutte</name>
          <resp>editor</resp>
        </respStmt>
        <respStmt>
          <name>Ron Van den Branden</name>
          <resp>editor</resp>
        </respStmt>
        <respStmt>
          <name>Melissa Terras</name>
          <resp>editor</resp>
        </respStmt>
      </seriesStmt>
      <sourceDesc>
        <p>Digitally born</p>
      </sourceDesc>
    </fileDesc>
    <encodingDesc>
      <projectDesc>
        <p>TEI by Example offers a series of freely available online tutorials walking individuals through the different stages in marking up a document in TEI (Text Encoding Initiative). Besides a general introduction to text encoding, step-by-step tutorial modules provide example-based introductions to eight different aspects of electronic text markup for the humanities. Each tutorial module is accompanied with a dedicated examples section, illustrating actual TEI encoding practise with real-life examples. The theory of the tutorial modules can be tested in interactive tests and exercises.</p>
      </projectDesc>
    </encodingDesc>
    <profileDesc>
      <langUsage>
        <language ident="en-GB">en-GB</language>
      </langUsage>
    </profileDesc>
    <revisionDesc>
      <change when="2020-06-28" who="#RvdB">integrated examples in a single file</change>
    </revisionDesc>
  </teiHeader>
  <text xml:id="TBED00v00" type="examples">
    <body>
            <div xml:id="latex" type="example">
        <head>LaTeX</head>
        <p>This example illustrates how the text above could be encoded in LaTeX, an open source typesetting language that can be interpreted by TeX typesetting programs for producing fixed-layout representations such as PDF. LaTeX is not an XML format, and makes use of <soCalled>procedural</soCalled> markup, whose meta-information (starting with the <code>\</code> character) are instructions for the rendering software on the layout of the text content. As you can see, the actual text contents are preceded by a declaration of several style aspects determining how the text has to be rendered on a page. The text is divided captured as a <code>{document}</code>, in which all italicised words are indicated as italicised (<code>\textit{}</code>), without difference between the reasons for this typographic emphasis. The footnote is distinguished (<code>\footnote{}</code>), but there is no way of telling the computer that <q>Goethe</q> is a proper name.
        </p>
        <figure xml:id="latex-example">
          <eg>
            \documentclass[12pt]{article}
            \usepackage{makeidx}
            \usepackage{multirow}
            \usepackage{multicol}
            \usepackage[dvipsnames,svgnames,table]{xcolor}
            \usepackage[dvips]{graphicx}
            \usepackage{ulem}
            \usepackage{hyperref}
            \author{the TBE crew}
            \title{Statement}
            \setlength{\paperwidth}{419pt}
            \setlength{\paperheight}{595pt}
            \setlength{\textheight}{451pt}
            \setlength{\textwidth}{239pt}
            \setlength{\voffset}{-72pt}
            \setlength{\hoffset}{-72pt}
            \setlength{\evensidemargin}{90pt}
            \setlength{\oddsidemargin}{90pt}
            \setlength{\topmargin}{39pt}
            \setlength{\headheight}{13pt}
            \setlength{\headsep}{20pt}
            
            \makeatletter
            \newenvironment{indentation}[3]%
            {\par\setlength{\parindent}{#3}
            \setlength{\leftmargin}{#1}       \setlength{\rightmargin}{#2}%
            \advance\linewidth -\leftmargin       \advance\linewidth -\rightmargin%
            \advance\@totalleftmargin\leftmargin  \@setpar{{\@@par}}%
            \parshape 1\@totalleftmargin \linewidth\ignorespaces}{\par}%
            \makeatother 
            
            % new LaTeX commands
            \newcommand{\styleCaption}[1]{\textit{#1}}
            \newcommand{\styleEndnoteCharacters}[1]{#1}
            \newcommand{\styleFootnoteCharacters}[1]{$^{#1}$}
            \newcommand{\styleHeading}[1]{{\large \textsf{#1}}}
            \newcommand{\styleIndex}[1]{#1}
            \newcommand{\styleStandaardalinealettertypeOne}[1]{#1}
            
            
            \begin{document}
            \section{\textsf{Review}}
            
            {\raggedright
            \begin{indentation}{0pt}{0pt}{0pt}
            {\large \textit{Die Leiden des jungen Werther\footnote{ by Goethe
            
            }} is an \textit{exceptionally} good example of a book full of
            \textit{Weltschmerz}.}
            \end{indentation}
            }
            
            \end{document}
          </eg>
          <head type="legend">A LaTeX example</head>
        </figure>
      </div>
        </body>
  </text>
  <!-- 
        $Date: 2020-07-08 02:33:20 +0200 (Wed, 08 Jul 2020) $
        $Id: TBED00v00.xml 425 2020-07-08 00:33:20Z ron.vandenbranden $  -->
</TEI>