summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/spelatex/Example/example.tex
blob: fc6c8a1ca5df1d76f257772c65b4beba42216864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
\documentclass{article}

\usepackage[dutch,english]{babel}   % load babel before spel to avoid
                                    % option clash!
\selectlanguage{english}
\usepackage[format=ogg]{spelatex}

\newrobustcmd\CTAN{CTAN}
\spelmacad{CTAN}{see-tan}
\newrobustcmd\CPAN{CPAN}
\spelmacad{CPAN}{see-pan}

\title{\spelatex{} Example}
\author{Walter Daems and Paul Levrie}
\date{2011/04/12}
\setlength\parindent{0em}
\setlength\parskip{1ex}

\begin{document}

\maketitle

\section{Introduction}

\begin{spelchunk}
  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}

\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}
  \begin{equation}
    f(x) = x^{5}- x^4 + 7 x^3 + 3 x^2 - 8 x + 23
  \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}}}
\spelmacad{xx}[2]{#1 #2}

\label{eqn:complex}
\begin{spelchunk}
  For a lightray that hits the parabola at the point
  $P(t,9-\frac{t^2}{4})$, the reflected ray has slope $\tan 2\alpha$.
  Since the slope of the tangent to the parabola at $P$ is
  equal to $\tan\alpha = -\frac{t}{2}$, the equation of the
  reflected ray is given by
\end{spelchunk}
\begin{spelchunk}
  \[
  y-9+\frac{t^2}{4} = -\frac{4t}{4-t^2} \cdot (x-t)
  \]
\end{spelchunk}

\selectlanguage{dutch}
\section{Een andere taal}
\begin{spelchunk}
\spelatex{} is ook volledig babel-actief, wat wil zeggen dat de
voorleesstem de geselecteerde taal zal volgen.
\end{spelchunk}

\begin{spelchunk}
  \[
  y-9+\frac{t^2}{4} = -(x-t) \cdot \frac{4t}{4-t^2}
  \]
\end{spelchunk}

\selectlanguage{english}
\section{And some extras}
\subsection{Citations}
\begin{spelchunk}
Two excellent repositories are \CPAN{} \cite{CPAN} and \CTAN{} \cite{CTAN}.
\end{spelchunk}

\subsection{References to labels}
\begin{spelchunk}
Section~\ref{eqn:simple} contains an illustration of a simple
equation. For a more complex equation, we refer the user to
section~\ref{eqn:complex}.
\end{spelchunk}

\bibliographystyle{alpha}

\begin{thebibliography}{99}

\bibitem{CTAN}
The Comprehensive \TeX{} Archive Network.
\newblock \url{http://www.ctan.org}.
\newblock online, accessed in August 2021.

\bibitem{CPAN}
The Comprehensive Perl Archive Network.
\newblock \url{http://www.cpan.org}.
\newblock online, accessed in August 2021.

\end{thebibliography}{99}

\end{document}