Skip to content

Commit

Permalink
Scale attribute on images
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Thoden committed Mar 5, 2018
1 parent 73eebf2 commit 541e687
Showing 1 changed file with 57 additions and 56 deletions.
113 changes: 57 additions & 56 deletions data/exampleTEI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@
command has two arguments, the first one being the running head which
is displayed in the header of each page, the second being the text
that is printed on the page where the chapter begins.</p>

<p>We offer two additional units below the section: the subsection and
the subsubsection. See below how they are displayed!</p>

<!-- \EOAsubsection starts a new and numbered section -->
<div type="subsection" n="1" xml:id="subsec111">
<head>This is a subsection</head>
<p>Here we are at an even lower hierarchical level. This can be quite
useful. Be aware that this level is not being displayed in the table
of contents. Now, there is still one level below that: the subsubsection.</p>

<!-- \EOAsubsection starts a new and numbered section -->
<div type="subsubsection" n="1" xml:id="subsubsec1111">
<head>A subsubsection</head>
Expand Down Expand Up @@ -227,7 +227,7 @@
<!-- \EOAmathfont -->
<hi rend="math">Math font good for?</hi> Be careful and use
<hi rend="bold">EOAbold</hi> only sparingly.</p>

<!-- %% Multilingualism -->
<p>To read single Arabic words, as in
Grammaticall Paradigms, we must know the sound of the letters
Expand All @@ -239,21 +239,22 @@
polysyllables as nasara, nasarta unlwaaw [y]e penult be made
long by quiescent by אוי as tansoranias tansoriיna
tansoraיna<note place="bottom">Add., f.1r.</note></p>

<p>Another paragraph showcasing some additional text marking features.
<!-- \EOAst, \EOAls, \EOAcaps, \EOAurl -->
Text can be <hi rend="struck">struck through</hi>. And we can
<hi rend="spaced">space out</hi> some words. But <hi
rend="smallcaps">small caps I know pretty well</hi>. Last, but
not least, here is the way to enter web addresses: <ref target="http://www.edition-open-access.de">http://www.edition-open-access.de</ref>
</p>

<!-- \hyperref[sec2:image1]{\includegraphics[height=0.85em,keepaspectratio]{inline/A.jpg}} -->
<p>A short check on how hyperref works: <ref target="#sec2image1">
<!-- fehlt noch -->
<graphic url="inline/A.jpg"/></ref>
<!-- \href{http://www.tex.stackexchange.com}{\includegraphics{inline/A.jpg}} -->
<ref target="http://www.tex.stackexchange.com"><graphic url="inline/A.jpg"/></ref>
<!-- @scale means relative to textwidth or something -->
<ref target="http://www.tex.stackexchange.com"><graphic scale="70" url="inline/A.jpg"/></ref>
</p>
</div>
<div type="section" n="3" xml:id="sec33">
Expand All @@ -262,31 +263,31 @@
<p>If you want to include a longer quote in a text, there is of course a
command for that. And inside that we also introduce you to how you can
insert footnotes.Piaget 1985<ptr type="bibliog" target="#Piaget_1985"/>.</p>

<!-- \begin{EOAquote} \end{EOAquote}-->
<q>Do you like the lorem ipsum text? I don't.<note
place="bottom">Kaulbach 1960, 320-322<ptr type="bibliog"
target="#Kaulbach_1960"/></note>. Klar, man kann damit Seite
um Seite füllen, aber wenn die Leserin entsprechend geneigt
ist, will sie gelesenen Text auch lesen und verstehen
können. Und da hörts dabei einfach auf!</q>
<!--

<!--
% Testing out the footnote feature of Oklahoma\EOAfnalph{Satisfaction}. This will of course produce an error, because we
% already have the other stuff.\EOAfnarabic{Let's see what happens.}
% This is exciting!
-->
<div type="subsection" n="1" rend="nonumber" xml:id="subsec331">
<head>Three constructs for lists</head>

<p>This is a numbered list containing three items <!-- \begin{EOAlist} \end{EOAlist}-->
<list type="ordered">
<item>This is the first entry.</item>
<item>This is the second entry.</item>
<item>This is the third entry</item>
</list>
</p>

<p>In contrast to that, here is a list that is not numbered, but also contains the same
items! </p>
<p>
Expand All @@ -296,7 +297,7 @@
<item>This is the third entry</item>
</list>
</p>

<p>Thirdly, if you want to give some definitions you can use EOAdescription:
<!-- \begin{EOAdescription} \end{EOAdescription} -->
<list type="gloss">
Expand Down Expand Up @@ -326,7 +327,7 @@
<!-- \EOAchapter{References and indices}{References and indices} -->
<p>Elements can be assigned labels so that we can later refer to them:
sections, images, tables. A lot of things can be cross-referened.</p>

<!-- \EOAindexperson{James Joyce} \EOAindexlocation{Zürich} -->
<p>By the way, Joyce<index indexName="Person"><term>James
Joyce</term></index> is a darn good author. Read some of his
Expand All @@ -338,7 +339,7 @@
type="bibliog" target="#walkowski_digital_2016"/> or Carvalho
2012<ptr type="bibliog" target="#Carvalho2012"/>!
</p>

<!-- \EOAindexperson{Cavendish, Charles 2@Cavendish, Lord
Charles (son of the second duke of Devonshire),
(Fig.~\EOAref{sec2:image1},
Expand All @@ -362,7 +363,7 @@
<!-- \EOApageref{sec2:image1} -->
<ref target="#sec2:image1"/>, <ref type="page"
target="#sec2:image1"/>)</p>

<p>This paragraph illustrates various references (see section <ref
target="sec1"/>). It includes a reference to the image (see image
<ref target="sec2:image2"/>), two entries for the index (Science
Expand All @@ -389,13 +390,13 @@
you can leave the placing of them to the typesetting system,
in order to avoid bigger stretches Hsu 1993<ptr type="bibliog"
target="#Hsu_1993"/> of white space.</p>

<div type="section" n="1" xml:id="numsec3-1">
<head>Tables</head>
<p>The following lines of code produce a table consisting of 4 columns
and 3 rows. Is the table right so?</p>
<!--

<!--
\begin{EOAtable}{L{2.3cm}L{2.3cm}L{2.3cm}L{2.3cm}}
{This is a table}{sec3:table1}{H}
\EOAtablehead{Heading 1 & Heading 2 & Heading 3
Expand All @@ -417,19 +418,19 @@
<cell role="data">Here</cell>
<cell role="data">you</cell>
<cell role="data">may</cell>
<cell role="data">find</cell>
<cell role="data">find</cell>
</row>
<row role="data">
<cell role="data">some</cell>
<cell role="data">data</cell>
<cell role="data">spread</cell>
<cell role="data">over</cell>
<cell role="data">over</cell>
</row>
<row role="data">
<cell role="data">the</cell>
<cell role="data">table</cell>
<cell role="data">in</cell>
<cell role="data">cells</cell>
<cell role="data">cells</cell>
</row>
</table>
</div>
Expand All @@ -448,18 +449,18 @@
<graphic url="images/1.jpg"/>
<head>Ostafrikanische Arbeiter an einem der großen Knochengräben, die während der paläontologischen Expedition des Berliner Naturkundemuseums in die damalige Kolonie Deutsch-Ostafrika zwischen 1909 und 1913 angelegt wurden. (Koloriertes Glasdiapositiv, Museum für Naturkunde Berlin, Historische Bild- u. Schriftgutsammlungen, Bestand: Pal. Mus., Signatur: B V/177)</head>
</figure>

<!-- \EOAfigure{images/1.jpg}{Ostafrikanische Arbeiter an einem der großen Knochengräben, die während der paläontologischen Expedition des Berliner Naturkundemuseums in die damalige Kolonie Deutsch-Ostafrika zwischen 1909 und 1913 angelegt wurden. (Koloriertes Glasdiapositiv, Museum für Naturkunde Berlin, Historische Bild- u. Schriftgutsammlungen, Bestand: Pal. Mus., Signatur: B V/177)}{sec2:image1a}{66}{H} -->

<p>The fat-free version of this is EOAfigurenonumber which does without a
caption and a label. We are using the same source image here, but by
specifying the size of the image, it will scale down accordingly.</p>

<!-- \EOAfigurenonumber{images/1.jpg}{33}{H} -->
<figure xml:id="sec2image3" rend="nonumber">
<graphic url="images/1.jpg"/>
</figure>

<!-- \EOAlsfigure{images/1.jpg}{That's a caption for the lovely landscape image}{sec2:lsimage2} -->
<p>The last image command – EOAlsfigure – takes three parameters the figure covers the whole page</p>
<figure xml:id="sec2lsimage2-2" rend="landscape">
Expand All @@ -472,50 +473,50 @@
<head>Mathematics</head>
<!-- \EOAchapter{Mathematics}{Mathematics} -->
<!-- %% in silence: a new theorem, we'll use it later \EOAnewtheorem{theorem1}{Theorem} -->

<!-- \EOAineq -->

<p>Let's have some mathematics examples here. Latex is very good in
typesetting formulæ, so let's go for it! We already had this example,
but here is another inline equation <formula rend="inline" notation="TeX">$\sqrt{9} = 3$</formula>. Well, our
root symbol expands the line spacing a bit, so maybe we should not use
it inline. Here is another equation: <formula rend="inline" notation="TeX">$2^2 = 4$</formula>.</p>

<p>Instead, an equation outside of a paragraph.</p>
<p><formula rend="block" notation="TeX" xml:id="LabelOfThisEquation">
$6 + 6 = 12$
</formula></p>
<!--
<!--
\begin{EOAequation}{LabelOfThisEquation}
6 + 6 = 12
\end{EOAequation}
-->
<p><formula rend="block" notation="TeX" xml:id="AnotherLabelOfThisEquation">
$g_{\mu \nu} = 7$
</formula></p>
<!--
<!--
\begin{EOAequation}{AnotherLabelOfThisEquation}
g_{\mu \nu} = 7
\end{EOAequation}
-->

<p>And if it does not need to be numbered. They also don't take labels (why?).</p>
<p><formula rend="block nonumber" notation="TeX">
$6 + 6 = 12$
</formula></p>
<!--

<!--
\begin{EOAequationnonumber}
6 + 6 = 12
\end{EOAequationnonumber}
-->

<p><formula rend="block subequations" notation="TeX" xml:id="subequations1">
$6 + 6 = 12\\
12 + 12 = 24\\
24 + 24 = 48$
</formula></p>

<!--
\begin{EOAsubequations}{subequations1}
When you have some equations that belong somehow together.
Expand All @@ -526,88 +527,88 @@
\end{align}
\end{EOAsubequations}
-->

<!--
\begin{theorem1}
Environment for the theorem we defined above.
\end{theorem1}
-->

<p>An array of equations. All of them numbered individually.</p>
<p><formula rend="block array" notation="TeX" xml:id="LabelOfArray">
$1 + 1 = 2\\
2 + 2 = 4\\
4 + 4 = 8$
</formula></p>

<!--
\begin{EOAequationarray}{LabelOfArray}
1 + 1 = 2\\
2 + 2 = 4\\
4 + 4 = 8
\end{EOAequationarray}-->

<p>Again, an array of equations without numbers. They don't get labels, either.</p>
<p><formula rend="block array nonumber" notation="TeX" xml:id="LabelOfNonumberArray">
$1 + 1 = 2\\
2 + 2 = 4\\
4 + 4 = 8$
</formula></p>

<!--
\begin{EOAequationarraynonumber}
1 + 1 = 2\\
2 + 2 = 4\\
4 + 4 = 8
\end{EOAequationarraynonumber}
\end{EOAequationarraynonumber}
-->

<p>Let's insert an empty page here.</p>
<!-- \EOAemptypage -->
</div>
<div type="chapter" n="7" xml:id="chap7">
<head>Transcription and translation</head>
<!-- \EOAchapter{Transcription and translation}{Transcription and translation} -->
<!--
<!--
% For a transcription and translation EOAtranscripted may be used.
% This command always starts on a left page
\begin{EOAtranscripted}{Libro Primo, 6v}{First Book, 6v}
Delirant isti romani!
\EOAnewpage
Die spinnen, die Römer!
\end{EOAtranscripted}
%% this command adds an entry into the table of contents
\EOAtocentry{A letter}
Starting all over. We can also cite newspapers: \EOAciteauthoryear{wenk_riesenschweinerei_????}
\EOAletterhead{With love from me to you, 1963/04/11}{Call number R 5015}{writing style}{number of pages}
Dear Paul\EOAindexperson{Paul McCartney}.
With love, from me to you.
Cheers, John\EOAindexperson{John Lennon}
A complement to the empty page is …
\EOAnewpage
The new page command. This starts a new page, but obviously without a
blank page in between.-->

</div>
<div type="chapter" n="8" xml:id="chap8">
<head>Bibliography</head>
<!-- \EOAchapternonumber{Bibliography}{Bibliography} -->
<!-- \EOAprintbibliography -->
</div>

<!-- \EOAprintindex -->
<!-- \EOAtocentry{Person index} -->
<!-- \EOAprintpersonindex -->

<!-- \EOAtocentry{Location index} -->
<!-- \EOAprintlocationindex -->
</div>
Expand Down

0 comments on commit 541e687

Please sign in to comment.