Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add support for red text
  • Loading branch information
kthoden committed Feb 17, 2021
1 parent c08052a commit b08e870
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/124_eoatex/preambel/pre_eoa.tex
Expand Up @@ -467,6 +467,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definition einiger Makros zur Erhöhung des Bedienkomforts - Anfang

% red text
\newcommand{\EOAred}[1]{\textcolor{red}{#1}}
% Makro für kursiven Text
\newcommand{\EOAemph}[1]{\emph{#1}}
% Makro für fetten Text
Expand Down
3 changes: 3 additions & 0 deletions examples/124_eoatex/preambel/pre_xml.tex
Expand Up @@ -52,6 +52,9 @@
\newcommand*{\EOAfnalph}[1]{\begin{xmlelement}{EOAbigfoot}\XMLaddatt{list-style-type}{lower-latin}\begin{xmlelement}{p}#1\end{xmlelement}\end{xmlelement}}

\newcommand*{\EOAfnpar}{\begin{xmlelement}{msparbreak}\end{xmlelement}}
\newcommand*{\EOAred}[1]{%
\begin{xmlelement}{hi}#1\end{xmlelement}%
\AddAttToLast{rend}{red}}
\newcommand*{\EOAbold}[1]{\textbf{#1}}
\newcommand*{\EOAemph}[1]{\emph{#1}}
% \newcommand*{\EOAurl}[1]{\url{#1}}
Expand Down
1 change: 1 addition & 0 deletions examples/124_eoatex/texfiles/03_markup.tex
Expand Up @@ -62,6 +62,7 @@
\EOAdown{subscript}. There is also \EOAmathfont{Math font} for
additional symbols: {\EOAmfont ☉}. In some cases, you can use
\EOAbold{EOAbold} directly. \EOAcaps{Small caps} are also possible.
Text in \EOAred{red}.

\EOAsection{Other types of text blocks} If you want to include a
longer quote in a text, use the block quote feature. And inside that
Expand Down
2 changes: 1 addition & 1 deletion examples/125_tei_part/tei_part.xml
Expand Up @@ -395,7 +395,7 @@
rend="math">Math font</hi> for additional symbols: <hi
rend="math">☉</hi>. In some cases, you can use <hi
rend="bold">EOAbold</hi> directly. <hi rend="smallcaps">Small
caps</hi> are also possible.</p>
caps</hi> are also possible. Text in <hi rend="red">red</hi>.</p>
</div>
<div n="3" type="section" xml:id="sec33">
<head>Other types of text blocks</head>
Expand Down
2 changes: 1 addition & 1 deletion schema/resource/eoa-tei-strict.rnc
Expand Up @@ -590,7 +590,7 @@ markup =

hi =
element hi {
attribute rend { "italic" | "superscript" | "subscript" | "math" | "bold" | "struck" | "spaced" | "smallcaps" },
attribute rend { "italic" | "superscript" | "subscript" | "math" | "bold" | "struck" | "spaced" | "smallcaps" | "red" },
( text | index | indexanchor | ref )+
}

Expand Down

0 comments on commit b08e870

Please sign in to comment.