diff options
author | Karl Berry <karl@freefriends.org> | 2024-05-29 20:12:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-05-29 20:12:48 +0000 |
commit | e6d64d2be0d47ed8779b1c44c78034b130842558 (patch) | |
tree | 1b6d9089d5d29f66068ec677592dbec8c4d2d37a /Master/texmf-dist/doc/latex/elpres/elpres-example.tex | |
parent | d37bafe17177add3d4cab64fa357d87b04c681ed (diff) |
elpres (29may24)
git-svn-id: svn://tug.org/texlive/trunk@71385 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/elpres/elpres-example.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/elpres/elpres-example.tex | 146 |
1 files changed, 112 insertions, 34 deletions
diff --git a/Master/texmf-dist/doc/latex/elpres/elpres-example.tex b/Master/texmf-dist/doc/latex/elpres/elpres-example.tex index 9bd56104a42..f2f0c3474c7 100644 --- a/Master/texmf-dist/doc/latex/elpres/elpres-example.tex +++ b/Master/texmf-dist/doc/latex/elpres/elpres-example.tex @@ -1,30 +1,37 @@ -\documentclass[12pt,pdftex,sansfont,4x3]{elpres} -\usepackage[latin1]{inputenc} -\usepackage[perpage,para,symbol,norule]{footmisc} -\usepackage[document]{ragged2e} - -\RaggedRight - +\documentclass[11pt,pdftex,4x3]{elpres} +\usepackage[utf8]{inputenc} +\usepackage[perpage,hang]{footmisc} +\setlength{\footnotemargin}{0.55em} +\usepackage[document,originalparameters]{ragged2e} +\usepackage{eso-pic} + +\newcommand{\altfnarea}[1]{% +\AddToShipoutPictureFG*{ +\setlength{\unitlength}{1mm} + \put(1.2,1.2){\parbox[b]{0.9\paperwidth}% + {\scriptsize \textcolor{darkgray}{#1}}}}} + +% % Please uncomment the desired presentation scheme \usepackage{elpreswhitebluescheme} % \usepackage{elpresgrayscheme} % \usepackage{elpreswhiteredscheme} % \usepackage{elpresbluelightgrayscheme} % \usepackage{elpreswhitetealscheme} - \begin{document} \begin{titlepage} \centering - \distance{1} + \distance{1.35} { \Huge \bfseries \textcolor{eptitlecolor}{Title of presentation} \par } - \vspace{1.3ex} \large - Author\\[2ex]Date and place of presentation + \vspace{1.3ex} \Large + Author\\[2ex] + {\normalsize \textcolor{ephighlightcolor}{Date and place of presentation}} \distance{2} \end{titlepage} -\begin{psli}[Title of first page] +\begin{psli}[Title of first slide] This is an example of a \LaTeX\ \texttt{itemize} list \begin{itemize} @@ -32,14 +39,14 @@ This is an example of a \LaTeX\ \texttt{itemize} list \item second line in an itemized list \item third line in an itemized list \end{itemize} - \end{psli} -\begin{psli}[Title of second page\footnote{footnotes are often - not a good idea for a presentation}] -% \raggedright -The second page with nested, ``vertically compressed'' lists using the -\texttt{citemize} and \texttt{cenumerate} environments. +\begin{psli}[Title of second slide\footnote{footnotes often are + not a good idea for a presentation, better avoid them!}] + +This page shows nested, ``vertically compressed'' lists using the +\texttt{citemize} and \texttt{cenumerate} environments of + \texttt{elpres}: \begin{citemize} \item first line in an itemized list @@ -48,38 +55,109 @@ The second page with nested, ``vertically compressed'' lists using the \item first line of numbered list \item second line of numbered list \end{cenumerate} - \item final line in itemized list\footnote{\dots\ it is therefore - useful to write comments into a single footnote paragraph in order - to save space} + \item final line in itemized list \end{citemize} -{\small For footnotes, the \texttt{footmisc} package, providing the - options \texttt{perpage} and \texttt{symbol}, is recommended. \par} +{\small For footnotes using \LaTeX's \verb+\footnote{}+ command, + the \texttt{footmisc} package, providing the + option \texttt{perpage}\footnote{this forces \LaTeX\ to start + footnote numbers with ``1'' on each slide} + is recommended.% + \footnote{another option is \texttt{symbol*} which allows + to mark footnotes with symbols instead of numbers} \par } \end{psli} -\begin{psli}[Title of third page] +\begin{psli}[Title of third slide\textsuperscript{*}] + \begin{itemize} \item This page shows the use of footnotes + with the \verb+\altfnarea{}+ command + \item Definition and use of \verb+\altfnarea{}+\textsuperscript{\dag} + are described in the \texttt{elpres} manual + + \altfnarea{\textsuperscript{*}This footnote comments the title; + \textsuperscript{\dag}\texttt{altfnarea}: \textbf{alt}ernative + \textbf{f}oot\textbf{n}otes \textbf{area}} + \end{itemize} +\end{psli} - \begin{cdescription} -\item[environment name:] \texttt{cdescription}, comparable to - \LaTeX s \texttt{des\-cription} environment - \item[used for:] vertically compressed lists with small ``titles'' +\begin{psli}[Title of fourth slide] +\begin{cdescription} + \item[environment name:] \texttt{cdescription}, comparable to + \LaTeX's \texttt{des\-cription} environment + \item[used for:] vertically compressed lists with small ``titles'' + of items \end{cdescription} +\end{psli} + +\begin{psli}[Title of fifth slide] + +If justified text and hyphenation is to be suppressed, the +\texttt{ragged2e} package may be used with the \texttt{document} +and \texttt{originalparameters} options. + +\vspace{1ex} + +\fbox{\parbox{0.95\textwidth}{ +\footnotesize In order to avoid an option clash, \texttt{ragged2e} + should follow \texttt{footmisc} in the preamble, if both packages are + used. \par }} \end{psli} -\begin{psli}[A page with two columns] - - \begin{minipage}[b]{0.58\textwidth} +\begin{psli}[A slide with two columns\textsuperscript{*}] + \begin{minipage}[b][0.6\textheight][t]{0.5\textwidth} \includegraphics[width=1.0\textwidth]{ctan-lion} \end{minipage} - \hspace{0.4em} - \begin{minipage}[b]{0.39\paperwidth} \small + \hspace{0.1em} + \begin{minipage}[b][0.6\textheight][t]{0.38\textwidth} + \footnotesize The ``CTAN \TeX-lion'' drawn by Duane Bibby, thanks to \texttt{ctan.org} - \end{minipage} + \altfnarea{\textsuperscript{*}using \texttt{minipage}} \end{psli} +\begin{psli}[Code of ``A slide with two columns''] +\footnotesize +\begin{verbatim} + +\begin{psli}[A slide with two columns\textsuperscript{*}] + \begin{minipage}[b][0.6\textheight][t]{0.5\textwidth} + \includegraphics[width=1.0\textwidth]{ctan-lion} + \end{minipage} + \hspace{0.1em} + \begin{minipage}[b][0.6\textheight][t]{0.38\textwidth} + \footnotesize + The ``CTAN \TeX-lion'' drawn by Duane Bibby, + thanks to \texttt{ctan.org} + \end{minipage} + \altfnarea{\textsuperscript{*}using \texttt{minipage}} +\end{psli} +\end{verbatim} +\end{psli} + +\begin{psli}[A slide with a logo using the \texttt{eso-pic} package] +\AddToShipoutPictureBG{ +\setlength{\unitlength}{1mm} + \put(108,79){\includegraphics[height=16mm]{ctan-lion}} +} + +The code for placing the logo {\scriptsize (details are explained +in the \texttt{elpres} manual)}: + +{ \footnotesize +\begin{verbatim} + \AddToShipoutPictureBG{ + \setlength{\unitlength}{1mm} + \put(108,79){\includegraphics[height=16mm]{ctan-lion}} + } +\end{verbatim}} + +This makes the logo visible on the current and on all following pages. +The starred version: {\footnotesize \verb+\AddToShipoutPictureBG*{}+ +} shows the picture on the current slide only. +\end{psli} + + \begin{rsli} A final page written with the \textcolor{ephighlightcolor}{\texttt{rsli}} environment |