diff options
Diffstat (limited to 'macros/latex/contrib/spelatex/Example/example.tex')
-rw-r--r-- | macros/latex/contrib/spelatex/Example/example.tex | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/macros/latex/contrib/spelatex/Example/example.tex b/macros/latex/contrib/spelatex/Example/example.tex index e7a5e8dc69..481d6eb811 100644 --- a/macros/latex/contrib/spelatex/Example/example.tex +++ b/macros/latex/contrib/spelatex/Example/example.tex @@ -1,9 +1,12 @@ -\documentclass{article} +\documentclass{report} -\usepackage[dutch,english]{babel} % load babel before spel to avoid +\usepackage[dutch,english]{babel} % load babel before spelatex to avoid % option clash! \selectlanguage{english} -\usepackage[format=ogg]{spelatex} +\usepackage[format=ogg, + server=https://ctan.org/tex-archive/macros/latex/contrib/spelatex/Example + ] + {spelatex} \newrobustcmd\CTAN{CTAN} \spelmacad{CTAN}{see-tan} @@ -12,7 +15,7 @@ \title{\spelatex{} Example} \author{Walter Daems and Paul Levrie} -\date{2011/04/12} +\date{2024/09/09} \setlength\parindent{0em} \setlength\parskip{1ex} @@ -20,33 +23,34 @@ \maketitle -\section{Introduction} +\chapter{Introduction} -\begin{spelchunk} - This file is just a simple showcase of the features of \spelatex. +\<<<{ + This file is just a simple showcase of the features of \spelatex{}. Below, you'll find examples of: -\end{spelchunk} +} \begin{itemize} \spelitem{a simple equation} \spelitem{a more complex equation} \end{itemize} +\chapter{Examples} \section{A simple equation} \label{eqn:simple} -\begin{spelchunk} +\<<<{ Consider the following simple definition of a polynomial function and check its spoken version by clicking on it. -\end{spelchunk} -\begin{spelchunk}[arealink] +} +\<<<[arealink]{ \begin{equation} - f(x) = x^{5}- x^4 + 7 x^3 + 3 x^2 - 8 x + 23 + f(x) = x^{5}- x^4 + 7 x^3 + 3 x^2 - 8 x + 25 \end{equation} -\end{spelchunk} -\begin{spelchunk} +} +\<<<{ This seems a simple equation, however, it is not so straightforward for an automated reader, to read it correctly. -\end{spelchunk} +} \section{A more complex equation} \newcommand\xx[2]{\ensuremath{#1_{#2}}} @@ -66,6 +70,14 @@ \] \end{spelchunk} +\section{Remark} +\<<<{ +Instead of the \texttt{\textbackslash{}<<<} macro, one can also use the +spelchunk environment. We did this in the next sections. +} + +\chapter{More advanced topics} + \selectlanguage{dutch} \section{Een andere taal} \begin{spelchunk} @@ -80,6 +92,7 @@ voorleesstem de geselecteerde taal zal volgen. \end{spelchunk} \selectlanguage{english} + \section{And some extras} \subsection{Citations} \begin{spelchunk} @@ -93,6 +106,8 @@ equation. For a more complex equation, we refer the user to section~\ref{eqn:complex}. \end{spelchunk} +\selectlanguage{dutch} + \bibliographystyle{alpha} \begin{thebibliography}{99} |