horizontal line command

This commit is contained in:
Jan Benda 2021-03-06 00:56:28 +01:00
parent f47aad4684
commit dc0eae61dc
4 changed files with 159 additions and 135 deletions

View File

@ -82,10 +82,18 @@
\setbeamercolor{message item symbol}{fg=red} \setbeamercolor{message item symbol}{fg=red}
\setbeamercolor{verse}{fg=, bg=black!15} \setbeamercolor{verse}{fg=, bg=black!15}
\setbeamercolor{verse line top}{fg=green}
\setbeamercolor{verse line bottom}{fg=green}
\setbeamercolor{quote}{fg=, bg=black!15} \setbeamercolor{quote}{fg=, bg=black!15}
\setbeamercolor{quote symbol}{fg=red} \setbeamercolor{quote symbol}{fg=red}
\setbeamercolor{quote line top}{fg=red}
\setbeamercolor{quote line bottom}{fg=red}
\setbeamercolor{quotation}{fg=, bg=black!15} \setbeamercolor{quotation}{fg=, bg=black!15}
\setbeamercolor{quotation symbol}{fg=blue} \setbeamercolor{quotation symbol}{fg=blue}
\setbeamercolor{quotation line top}{fg=blue}
\setbeamercolor{quotation line bottom}{fg=blue}
\setbeamercolor{section in toc}{parent={normal text}} \setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}} \setbeamercolor{subsection in toc}{parent={normal text}}

View File

@ -83,8 +83,18 @@
\setbeamercolor{message item symbol}{fg=utgold} \setbeamercolor{message item symbol}{fg=utgold}
\setbeamercolor{verse}{fg=, bg=utgreen!20} \setbeamercolor{verse}{fg=, bg=utgreen!20}
\setbeamercolor{verse line top}{fg=utgreen}
\setbeamercolor{verse line bottom}{fg=utgreen}
\setbeamercolor{quote}{fg=, bg=utgreen!20} \setbeamercolor{quote}{fg=, bg=utgreen!20}
\setbeamercolor{quote symbol}{fg=utred}
\setbeamercolor{quote line top}{fg=}
\setbeamercolor{quote line bottom}{fg=}
\setbeamercolor{quotation}{fg=, bg=utgreen!20} \setbeamercolor{quotation}{fg=, bg=utgreen!20}
\setbeamercolor{quotation symbol}{fg=utblue}
\setbeamercolor{quotation line top}{fg=}
\setbeamercolor{quotation line bottom}{fg=}
\setbeamercolor{section in toc}{parent={normal text}} \setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}} \setbeamercolor{subsection in toc}{parent={normal text}}

View File

@ -8,7 +8,6 @@
\ProvidesPackage{beamerthemelines}[2021/02/28 beamer theme with horizontal lines] \ProvidesPackage{beamerthemelines}[2021/02/28 beamer theme with horizontal lines]
\RequirePackage{tikz} \RequirePackage{tikz}
\RequirePackage{xstring}
\RequirePackage{pifont} \RequirePackage{pifont}
\newif\if@beamer@footline@author \newif\if@beamer@footline@author
@ -66,6 +65,27 @@
% no headline: % no headline:
\setbeamertemplate{headline}[default] \setbeamertemplate{headline}[default]
%%%%% horizontal line %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% a horizontal line on top of a box over the whole linewidth
% arguments: name of color theme, width of line
\newcommand{\beamer@horizontal@line@top}[2]{%
\ifbeamercolorempty[fg]{#1}{}{%
\begin{beamercolorbox}[vmode]{#1}
\rule{\linewidth}{#2}
\end{beamercolorbox}%
\par\nointerlineskip}%
}
% a horizontal line below a box over the whole linewidth
% arguments: name of color theme, width of line
\newcommand{\beamer@horizontal@line@bottom}[2]{%
\ifbeamercolorempty[fg]{#1}{}{%
\par\nointerlineskip%
\begin{beamercolorbox}[vmode]{#1}
\rule{\linewidth}{#2}
\end{beamercolorbox}}%
}
%%%%% page numbers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% page numbers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -235,14 +255,7 @@
%%%%% frametitle line: %%%%% frametitle line:
\defbeamertemplate{frametitle line}{text}[1][1pt]% \defbeamertemplate{frametitle line}{text}[1][1pt]%
{ {\beamer@horizontal@line@bottom{frametitle line}{#1}}
\ifbeamercolorempty[fg]{frametitle line}{}{%
\nointerlineskip%
\begin{beamercolorbox}[wd=\textwidth,dp=0pt,ht=#1,sep=0pt]{frametitle line}%
\rule{\columnwidth}{#1}%
\end{beamercolorbox}%
}%
}
\defbeamertemplate{frametitle line}{page}[1][1pt]% \defbeamertemplate{frametitle line}{page}[1][1pt]%
{ {
\ifbeamercolorempty[fg]{frametitle line}{}{% \ifbeamercolorempty[fg]{frametitle line}{}{%
@ -370,23 +383,15 @@
\newcommand{\block@lines@begin}[3]{% \newcommand{\block@lines@begin}[3]{%
\par\vskip\medskipamount% \par\vskip\medskipamount%
\usebeamerfont{block title#1}% \usebeamerfont{block title#1}%
\IfStrEq{\insertblocktitle}{}{}{% % IfStrEq does not work for theorems! \setbox0=\hbox{\insertblocktitle\unskip}% does not work for theorem?!
\ifbeamercolorempty[fg]{block line#1 top}{}{% \ifdim\wd0=0pt\else%
\nointerlineskip \beamer@horizontal@line@top{block line#1 top}{#2}
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{block line#1 top}
\rule{\linewidth}{#2}
\end{beamercolorbox}
\nointerlineskip%
}
\begin{beamercolorbox}[wd=\linewidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{block title#1} \begin{beamercolorbox}[wd=\linewidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{block title#1}
\strut\insertblocktitle \strut\insertblocktitle
\end{beamercolorbox}}
\nointerlineskip
\ifbeamercolorempty[fg]{block line#1 middle}{}{%
\begin{beamercolorbox}[wd=\linewidth,ht=#3]{block line#1 middle}
\rule{\linewidth}{#3}
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip}% \fi
\nointerlineskip
\beamer@horizontal@line@top{block line#1 middle}{#3}
\usebeamerfont{block body#1}% \usebeamerfont{block body#1}%
\begin{beamercolorbox}[wd=\linewidth,colsep=2mm]{block body#1} \begin{beamercolorbox}[wd=\linewidth,colsep=2mm]{block body#1}
} }
@ -394,12 +399,7 @@
\newcommand{\block@lines@end}[2]{% \newcommand{\block@lines@end}[2]{%
\vspace{-0.4ex}% \vspace{-0.4ex}%
\end{beamercolorbox}% \end{beamercolorbox}%
\ifbeamercolorempty[fg]{block line#1 bottom}{}{% \beamer@horizontal@line@bottom{block line#1 bottom}{#2}
\nointerlineskip
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{block line#1 bottom}
\rule{\linewidth}{#2}
\end{beamercolorbox}
}%
} }
%%%%% block environment: %%%%% block environment:
@ -434,22 +434,12 @@
\newcommand{\theorem@lines@begin}[3]{% \newcommand{\theorem@lines@begin}[3]{%
\par\vskip\medskipamount% \par\vskip\medskipamount%
\usebeamerfont{#1 title}% \usebeamerfont{#1 title}%
\ifbeamercolorempty[fg]{#1 line top}{}{% \beamer@horizontal@line@top{#1 line top}{#2}
\nointerlineskip
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{#1 line top}
\rule{\linewidth}{#2}
\end{beamercolorbox}
\nointerlineskip%
}
\begin{beamercolorbox}[wd=\linewidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{#1 title} \begin{beamercolorbox}[wd=\linewidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{#1 title}
\strut \insertblocktitle \strut \insertblocktitle
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip \nointerlineskip
\ifbeamercolorempty[fg]{#1 line middle}{}{% \beamer@horizontal@line@top{#1 line middle}{#3}
\begin{beamercolorbox}[wd=\linewidth,ht=#3]{#1 line middle}
\rule{\linewidth}{#3}
\end{beamercolorbox}
\nointerlineskip}%
\usebeamerfont{#1 body}% \usebeamerfont{#1 body}%
\begin{beamercolorbox}[wd=\linewidth,colsep=2mm]{#1 body} \begin{beamercolorbox}[wd=\linewidth,colsep=2mm]{#1 body}
} }
@ -457,12 +447,7 @@
\newcommand{\theorem@lines@end}[2]{% \newcommand{\theorem@lines@end}[2]{%
\vspace{-0.4ex}% \vspace{-0.4ex}%
\end{beamercolorbox}% \end{beamercolorbox}%
\ifbeamercolorempty[fg]{#1 line bottom}{}{% \beamer@horizontal@line@bottom{#1 line bottom}{#2}
\nointerlineskip
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{#1 line bottom}
\rule{\linewidth}{#2}
\end{beamercolorbox}
}%
} }
\newenvironment<>{theoremblock}[1]{% \newenvironment<>{theoremblock}[1]{%
@ -492,20 +477,24 @@
\setbeamertemplate{message symbol}[circle] \setbeamertemplate{message symbol}[circle]
% see quotation environment defined in
% /usr/share/texmf/tex/latex/beamer/base/beamerbaselocalstructure.sty
% for an alternative implementation based on list with empty item!
\newcommand{\message@box@body}{ \newcommand{\message@box@body}{
\begin{beamercolorbox}[wd=\linewidth,colsep=1mm,leftskip=1mm,rightskip=1mm]{message} \begin{beamercolorbox}[vmode,colsep=1mm,leftskip=1mm,rightskip=1mm]{message}
\setbox0=\hbox{\usebeamertemplate{message symbol}\unskip}% \setbox0=\hbox{\usebeamertemplate{message symbol}\unskip}%
\ifdim\wd0=0pt% \ifdim\wd0=0pt%
\strut\insertmessage \strut\insertmessage
\else \else
\usebeamercolor[fg]{message symbol} \begin{list}
\parbox[t][][t]{1.8ex}{\usebeamertemplate{message symbol}}% {\usebeamercolor[fg]{message symbol}
\usebeamercolor[fg]{message} \usebeamertemplate{message symbol}}
\parbox[t][][t]{\dimexpr\hsize-3.5ex\relax}{\raggedright\insertmessage} {\itemindent 0pt
\labelwidth 1ex
\labelsep 0.6ex
\leftmargin 2.5ex
\rightmargin 1mm}
\item\relax\usebeamercolor[fg]{message}\relax
\insertmessage
\end{list}
\vspace{-0.6ex}
\fi \fi
\end{beamercolorbox} \end{beamercolorbox}
} }
@ -519,19 +508,9 @@
\defbeamertemplate{message}{lines}[2]{% \defbeamertemplate{message}{lines}[2]{%
\par\vskip\medskipamount% \par\vskip\medskipamount%
\usebeamerfont{message}% \usebeamerfont{message}%
\ifbeamercolorempty[fg]{message line top}{}{% \beamer@horizontal@line@top{message line top}{#1}
\nointerlineskip
\begin{beamercolorbox}[wd=\linewidth,ht=#1]{message line top}
\rule{\linewidth}{#1}
\end{beamercolorbox}
\nointerlineskip}%
\message@box@body \message@box@body
\ifbeamercolorempty[fg]{message line bottom}{}{% \beamer@horizontal@line@bottom{message line bottom}{#2}
\nointerlineskip%
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{message line bottom}
\rule{\linewidth}{#2}
\end{beamercolorbox}}%
\medskip
} }
\setbeamertemplate{message}[lines]{1pt}{1pt} \setbeamertemplate{message}[lines]{1pt}{1pt}
@ -549,7 +528,7 @@
% pbk , phv, pnc, qcs % pbk , phv, pnc, qcs
\newcommand{\openquote}[1][4]{\tikz[baseline]{% \newcommand{\openquote}[1][4]{\tikz[baseline]{%
\useasboundingbox (0, 0) rectangle (1ex, 1.7ex); \useasboundingbox (0, 0) rectangle (1ex, 1.7ex);
\node[scale=#1, xshift=-0.6ex, yshift=-0.77ex] at (current bounding box.north east) {\fontfamily{pbk}\selectfont\textquotedblleft}; \node[scale=#1, xshift=-0.45ex, yshift=-0.73ex] at (current bounding box.north east) {\fontfamily{pbk}\selectfont\textquotedblleft};
}} }}
\def\insertquoteauthor{} \def\insertquoteauthor{}
@ -583,7 +562,7 @@
\defbeamertemplate{quotation symbol}{default}{} \defbeamertemplate{quotation symbol}{default}{}
\defbeamertemplate{quotation symbol}{quotes}[1][5]{\usebeamercolor[fg]{quotation symbol}\openquote[#1]} \defbeamertemplate{quotation symbol}{quotes}[1][5]{\usebeamercolor[fg]{quotation symbol}\openquote[#1]}
\setbeamertemplate{quotation symbol}[quotes][6] \setbeamertemplate{quotation symbol}[quotes][4]
\defbeamertemplate{quotation author separator}{default}{} \defbeamertemplate{quotation author separator}{default}{}
\defbeamertemplate{quotation author separator}{dash}{ --- } \defbeamertemplate{quotation author separator}{dash}{ --- }
@ -597,8 +576,13 @@
\setbeamertemplate{quotation author}[rightline] % none, left, right, rightline \setbeamertemplate{quotation author}[rightline] % none, left, right, rightline
\defbeamertemplate*{quotation begin}{none}{} \defbeamertemplate{quotation begin}{none}{}
\defbeamertemplate*{quotation end}{none}{} \defbeamertemplate{quotation begin}{lines}[1][1pt]{\beamer@horizontal@line@top{quotation line top}{#1}\vskip1ex}
\setbeamertemplate{quotation begin}[lines][0.5pt]
\defbeamertemplate{quotation end}{none}{}
\defbeamertemplate{quotation end}{lines}[1][1pt]{\beamer@horizontal@line@bottom{quotation line bottom}{#1}}
\setbeamertemplate{quotation end}[lines][0.5pt]
% see definition in /usr/share/texmf/tex/latex/beamer/base/beamerbaselocalstructure.sty % see definition in /usr/share/texmf/tex/latex/beamer/base/beamerbaselocalstructure.sty
\renewenvironment<>{quotation}[1][] \renewenvironment<>{quotation}[1][]
@ -608,20 +592,33 @@
\usebeamertemplate{quotation begin} \usebeamertemplate{quotation begin}
\usebeamerfont*{quotation}% \usebeamerfont*{quotation}%
\usebeamercolor{quotation}% \usebeamercolor{quotation}%
\list{}{ \setbox0=\hbox{\usebeamertemplate{quotation symbol}\unskip}%
\leftmargin 3em \ifdim\wd0=0pt
\rightmargin 2em \list{}{
\listparindent 1.5em \leftmargin 1em
\itemindent \listparindent \rightmargin 1em
\labelsep \listparindent \listparindent 1.5em
\advance\labelsep by 1.5ex\relax \itemindent \listparindent
\parsep \z@ \@plus\p@ \parsep \z@ \@plus\p@
}% }%
\item[\usebeamertemplate{quotation symbol}]\relax \item\relax
\else
\list{}{
\leftmargin 2.5em
\rightmargin 2em
\listparindent 1.5em
\itemindent \listparindent
\labelsep \listparindent
\advance\labelsep by 1.5ex\relax
\parsep \z@ \@plus\p@
}%
\item[\usebeamertemplate{quotation symbol}]\relax
\fi
} }
{% {%
\usebeamertemplate{quotation author} \usebeamertemplate{quotation author}
\endlist\usebeamertemplate{quotation end} \endlist
\usebeamertemplate{quotation end}
\endbeamercolorbox \endbeamercolorbox
\endactionenv% \endactionenv%
} }
@ -631,7 +628,7 @@
\defbeamertemplate{quote symbol}{default}{} \defbeamertemplate{quote symbol}{default}{}
\defbeamertemplate{quote symbol}{quotes}[1][5]{\usebeamercolor[fg]{quote symbol}\openquote[#1]} \defbeamertemplate{quote symbol}{quotes}[1][5]{\usebeamercolor[fg]{quote symbol}\openquote[#1]}
\setbeamertemplate{quote symbol}[quotes][6] \setbeamertemplate{quote symbol}[quotes][4]
\defbeamertemplate{quote author separator}{default}{} \defbeamertemplate{quote author separator}{default}{}
\defbeamertemplate{quote author separator}{dash}{ --- } \defbeamertemplate{quote author separator}{dash}{ --- }
@ -645,35 +642,56 @@
\setbeamertemplate{quote author}[rightline] % none, left, right, rightline \setbeamertemplate{quote author}[rightline] % none, left, right, rightline
\defbeamertemplate*{quote begin}{none}{} \defbeamertemplate{quote begin}{none}{}
\defbeamertemplate*{quote end}{none}{} \defbeamertemplate{quote begin}{lines}[1][1pt]{\beamer@horizontal@line@top{quote line top}{#1}\vskip1ex}
\setbeamertemplate{quote begin}[lines][0.5pt]
\defbeamertemplate{quote end}{none}{}
\defbeamertemplate{quote end}{lines}[1][1pt]{\beamer@horizontal@line@bottom{quote line bottom}{#1}}
\setbeamertemplate{quote end}[lines][0.5pt]
\renewenvironment<>{quote}[1][] \renewenvironment<>{quote}[1][]
{ \def\insertquoteauthor{#1} { \def\insertquoteauthor{#1}
\actionenv#2% \actionenv#2%
\beamercolorbox[vmode]{quote} \beamercolorbox[vmode]{quote}%
\usebeamertemplate{quote begin} \usebeamertemplate{quote begin}%
\usebeamerfont*{quote}% \usebeamerfont*{quote}%
\usebeamercolor{quote}% \usebeamercolor{quote}%
\list{}{ \setbox0=\hbox{\usebeamertemplate{quote symbol}\unskip}%
\leftmargin 3em \ifdim\wd0=0pt
\rightmargin 2em \list{}{
\labelsep 1.5ex \leftmargin 1em
\parsep 1ex \rightmargin 1em
}% \parsep 1ex
\item[\usebeamertemplate{quote symbol}]\relax }%
\item\relax%
\else
\list{}{
\leftmargin 2.5em
\rightmargin 2em
\labelsep 1.5ex
\parsep 1ex
}%
\item[\usebeamertemplate{quote symbol}]\relax%
\fi%
} }
{% {%
\usebeamertemplate{quote author} \usebeamertemplate{quote author}
\endlist\usebeamertemplate{quote end} \endlist
\endbeamercolorbox \usebeamertemplate{quote end}
\endbeamercolorbox%
\endactionenv% \endactionenv%
} }
% verse environment: % verse environment:
\defbeamertemplate*{verse begin}{none}{} \defbeamertemplate{verse begin}{none}{}
\defbeamertemplate*{verse end}{none}{} \defbeamertemplate{verse begin}{lines}[1][1pt]{\beamer@horizontal@line@top{verse line top}{#1}\vskip1ex}
\setbeamertemplate{verse begin}[lines][0.5pt]
\defbeamertemplate{verse end}{none}{}
\defbeamertemplate{verse end}{lines}[1][1pt]{\beamer@horizontal@line@bottom{verse line bottom}{#1}}
\setbeamertemplate{verse end}[lines][0.5pt]
\renewenvironment<>{verse} \renewenvironment<>{verse}
{ \actionenv#1% { \actionenv#1%
@ -689,7 +707,8 @@
\item\relax \item\relax
} }
{% {%
\endlist\usebeamertemplate{verse end} \endlist
\usebeamertemplate{verse end}
\endbeamercolorbox \endbeamercolorbox
\endactionenv% \endactionenv%
} }
@ -699,14 +718,7 @@
%%%%% title page graphic line: %%%%% title page graphic line:
\defbeamertemplate{title page graphic line}{default}[1][1ex]% \defbeamertemplate{title page graphic line}{default}[1][1ex]%
{ {\beamer@horizontal@line@bottom{title page graphic line}{#1}}
\ifbeamercolorempty[fg]{title page graphic line}{}{%
\nointerlineskip%
\begin{beamercolorbox}[wd=1\textwidth,dp=0pt,ht=#1,sep=0pt]{title page graphic line}%
\rule{1\linewidth}{#1}%
\end{beamercolorbox}%
}%
}
\setbeamertemplate{title page graphic line}[default][1.5ex] \setbeamertemplate{title page graphic line}[default][1.5ex]
@ -714,14 +726,7 @@
%%%%% title page title line: %%%%% title page title line:
\defbeamertemplate{title page title line}{default}[1][1ex]% \defbeamertemplate{title page title line}{default}[1][1ex]%
{ {\beamer@horizontal@line@bottom{title page title line}{#1}}
\ifbeamercolorempty[fg]{title page title line}{}{%
\nointerlineskip%
\begin{beamercolorbox}[wd=1\textwidth,dp=0pt,ht=#1,sep=0pt]{title page title line}%
\rule{1\linewidth}{#1}%
\end{beamercolorbox}%
}%
}
\setbeamertemplate{title page title line}[default][0.2ex] \setbeamertemplate{title page title line}[default][0.2ex]
@ -861,10 +866,7 @@
% section page separator: text % section page separator: text
\defbeamertemplate{section name separator}{text}[1][1pt]% \defbeamertemplate{section name separator}{text}[1][1pt]%
{ {{\usebeamercolor[fg]{section name separator}\rule[-0.5ex]{#1}{2.4ex}}}
{\usebeamercolor[fg]{section name separator}
\rule[-0.5ex]{#1}{2.4ex}}
}
\setbeamertemplate{section name separator}[text][1pt] \setbeamertemplate{section name separator}[text][1pt]
@ -907,10 +909,7 @@
% subsection page separator: text % subsection page separator: text
\defbeamertemplate{subsection name separator}{text}[1][1pt]% \defbeamertemplate{subsection name separator}{text}[1][1pt]%
{ {{\usebeamercolor[fg]{subsection name separator}\rule[-0.5ex]{#1}{2.4ex}}}
{\usebeamercolor[fg]{subsection name separator}
\rule[-0.5ex]{#1}{2.4ex}}
}
\setbeamertemplate{subsection name separator}[text][1pt] \setbeamertemplate{subsection name separator}[text][1pt]

View File

@ -238,28 +238,35 @@
\verb!\messagebox{Take home message}! \verb!\messagebox{Take home message}!
\end{block} \end{block}
\vfill \vfill
Hello, you!
\messagebox{Take home message} \messagebox{Take home message}
Did you get it?
\vfill \vfill
Use it! Use it!
\end{frame} \end{frame}
\begin{frame}[fragile]{Quotations} \begin{frame}[fragile]{Quotations}
Let's start with a poem: Quote something of somebody with indentation:
\begin{verse} \begin{quotation}[Me And Myself]
A \verb!verse! environment.\\With a second line. A \verb!quotation! environment. There is a lot to talk about and
\end{verse} it really takes a lot of words to express this. Most likely this
\vfill does not fit into a single line. We might even need yet another
Quote something of somebody: full new line.
\begin{quotation}
A \verb!quotation! environment.\\With a second line. Here we even start a second paragraph.
\end{quotation} \end{quotation}
\vfill \vfill
Quote something else of somebody else: Quote something else of somebody else (empty author argument):
\begin{quote} \begin{quote}
A \verb!quote! environment.\\With a second line. A \verb!quote! environment.
With a second line.
\end{quote} \end{quote}
\vfill \vfill
... to be improved (with huge quotation marks and horizontal lines) Here is a poem:
\begin{verse}
A \verb!verse! environment ---\\with a second line.
\end{verse}
\end{frame} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%