Anonymous avatar Anonymous committed cc9ab27

*** empty log message ***

Comments (0)

Files changed (11)

 	- Added a small tutorial to help new users.
 	- Extracted all "guidelines" and "recommendations" and put them in
 	  a "guidelines" section. Also added lots of guidelines on fonts.
+	- Added an index (though it's pretty poor, still).
 
 	
 	Solutions:
 	- Fixed color problem in itemize in conjunction with evil use of
 	  \everymath. 
 	- Fixed bug with shrink + t options.
+	- Fixed lot's of other small things.
 	
 2004-07-06 Till Tantau <tantau@users.sourceforge.net>
 

base/beamerbaseauxtemplates.sty

 % Buttons
 %
 
-\newdimen\beamer@dima%
-\newdimen\beamer@dimb%
 \newdimen\beamer@blockheadheight%
 
-\newcommand{\beamertemplateroundedbuttons}
-{\usebuttontemplate{%
-  \usebeamercolor[fg]{button}
-  \setbox\beamer@tempbox=\hbox{\usebeamerfont{button}\insertbuttontext}%
-  \ht\beamer@tempbox=6pt%
-  \dp\beamer@tempbox=0pt%
-  \setbox\beamer@tempbox=\vbox{\box\beamer@tempbox\vskip2pt}%
-  \beamer@tempdim=\wd\beamer@tempbox%
-  \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2pt
-  \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4pt
-  \begin{pgfpicture}{-4pt}{0pt}{\the\beamer@tempdim}{8pt}
-    \color{bg}
-    \pgfsetlinewidth{0.8pt}
-    \pgfqmoveto{0}{0}
-    \pgfqcurveto{-2.2}{0}{-4}{1.8}{-4}{4}
-    \pgfqcurveto{-4}{6.2}{-2.2}{8}{0}{8}
-    \pgflineto{\pgfpoint{\the\beamer@tempdim}{8pt}}
-    \pgfcurveto%
-    {\pgfpoint{\the\beamer@dima}{8pt}}%
-    {\pgfpoint{\the\beamer@dimb}{6.2pt}}%
-    {\pgfpoint{\the\beamer@dimb}{4pt}}
-    \pgfcurveto%
-    {\pgfpoint{\the\beamer@dimb}{1.8pt}}%
-    {\pgfpoint{\the\beamer@dima}{0pt}}%
-    {\pgfpoint{\the\beamer@tempdim}{0pt}}
-    \pgfclosepath
-    \pgffill
-    \colorlet{bg}{parent.bg}
-    \usebeamercolor[fg]{button border}
-    \pgfqmoveto{0}{0}
-    \pgfqcurveto{-2.2}{0}{-4}{1.8}{-4}{4}
-    \pgfqcurveto{-4}{6.2}{-2.2}{8}{0}{8}
-    \pgflineto{\pgfpoint{\the\beamer@tempdim}{8pt}}
-    \pgfcurveto%
-    {\pgfpoint{\the\beamer@dima}{8pt}}%
-    {\pgfpoint{\the\beamer@dimb}{6.2pt}}%
-    {\pgfpoint{\the\beamer@dimb}{4pt}}
-    \pgfcurveto%
-    {\pgfpoint{\the\beamer@dimb}{1.8pt}}%
-    {\pgfpoint{\the\beamer@dima}{0pt}}%
-    {\pgfpoint{\the\beamer@tempdim}{0pt}}
-    \pgfclosepath
-    \pgfstroke
-  \end{pgfpicture}%
-  \hskip-\beamer@tempdim%
-  \box\beamer@tempbox%
-  \kern4pt}}
 
-\newcommand{\beamertemplateoutlinebuttons}
-{\setbeamercolor*{button outline}{parent=structure,use=structure,fg=structure.fg!50!bg}}
-
-\newcommand{\beamertemplatesolidbuttons}
-{\setbeamercolor*{button}{use=structure,bg=structure.fg!50!bg,fg=white}
- \setbeamercolor*{button outline}{use=structure,fg=structure.fg!50!bg}}
 
 \newcommand{\beamertemplatenavigationsymbolsempty}{
   \usenavigationsymbolstemplate{}}

base/beamerbasecolor.sty

     \ifbeamer@colbox@ignorebg\@tempswafalse\fi%
     \def\beamer@colbox@color{#2}%
     \hsize=\beamer@colbox@wd%
-    \setbox\beamer@tempbox=\hbox\bgroup\vbox\bgroup\begingroup%
+    \setbox\beamer@tempbox=\hbox\bgroup\vbox\bgroup%
       \leftskip=\beamer@colbox@ls%
       \advance\leftskip by\beamer@colbox@sep%
       \rightskip=\beamer@colbox@rs%
       \ifdim\beamer@colbox@sep=0pt\else\vskip\beamer@colbox@sep\fi%
       \if@tempswa\ifdim\beamer@colbox@colsep=0pt\else\vskip\beamer@colbox@colsep\fi\fi%
       \if@tempswa\ifdim\beamer@colbox@colseps=0pt\else\vskip\beamer@colbox@colseps\fi\fi%
-    \endgroup\egroup\egroup%
+    \egroup\egroup%
     \wd\beamer@tempbox=\hsize%
     \@tempdima=\wd\beamer@tempbox%
     \ifx\beamer@colbox@ht\@empty%

base/beamerbasecompatibility.sty

   \setbeamertemplate{bibliography entry title}{#2}%
   \setbeamertemplate{bibliography entry location}{#3}%
   \setbeamertemplate{bibliography entry note}{#4}}
+\def\usebuttontemplate{\setbeamertemplate{button}}
 
 
 
 \def\usecontinuationtemplate{\setbeamertemplate{frametitle continuation}}
 \def\beamertemplatecontinuationroman{\setbeamertemplate{frametitle continuation}[default]}
 \def\beamertemplatecontinuationtext{\setbeamertemplate{frametitle continuation}[from second]}
+\def\beamertemplateroundedbuttons{\setbeamertemplate{button}[default]}
+\def\beamertemplateoutlinebuttons{\setbeamercolor*{button border}{parent=structure,use=structure,fg=structure.fg!50!bg}}
+\def\beamertemplatesolidbuttons{\setbeamercolor*{button}{use=structure,bg=structure.fg!50!bg,fg=white}
+ \setbeamercolor*{button border}{use=structure,fg=structure.fg!50!bg}}
 
 \mode
 <all>

base/beamerbasenavigation.sty

   \end{pgfpicture}}
 
 
-\def\usebuttontemplate#1{%
-  \def\beamer@buttontemplate{#1}}
-
-\def\beamerbutton#1{%
-  \def\insertbuttontext{#1}%
-  {\beamer@buttontemplate}}
-\def\beamergotobutton#1{%
-  \def\insertbuttontext{\insertgotosymbol#1}%
-  {\beamer@buttontemplate}}%
-\def\beamerskipbutton#1{%
-  \def\insertbuttontext{\insertskipsymbol#1}%
-  {\beamer@buttontemplate}}%
-\def\beamerreturnbutton#1{%
-  \def\insertbuttontext{\insertreturnsymbol#1}%
-  {\beamer@buttontemplate}}%
+\def\beamerbutton#1{\def\insertbuttontext{#1}\usebeamertemplate**{button}}
+\def\beamergotobutton#1{\beamerbutton{\insertgotosymbol#1}}
+\def\beamerskipbutton#1{\beamerbutton{\insertskipsymbol#1}}
+\def\beamerreturnbutton#1{\beamerbutton{\insertreturnsymbol#1}}
 
 \mode
 <article>

doc/beamerug-customization.tex

 
 
 
-\subsection{Buttons}
-\label{section-navigation-buttons}
+%% \subsection{Buttons}
+%% \label{section-navigation-buttons}
 
-\paragraph{Predefined Templates}\ 
+%% \paragraph{Predefined Templates}\ 
 
-\begin{command}{\beamertemplateoutlinebuttons}
-  Renders buttons as rectangles with rounded left and right
-  border. Only the border (outline) is painted.
-\end{command}
+%% \begin{command}{\beamertemplateoutlinebuttons}
+%%   Renders buttons as rectangles with rounded left and right
+%%   border. Only the border (outline) is painted.
+%% \end{command}
 
-\begin{command}{\beamertemplatesolidbuttons}
-  Renders buttons as filled rectangles with rounded left and right
-  border.
-\end{command}
+%% \begin{command}{\beamertemplatesolidbuttons}
+%%   Renders buttons as filled rectangles with rounded left and right
+%%   border.
+%% \end{command}
 
 
-\paragraph{Template Installation Commands}\ 
+%% \paragraph{Template Installation Commands}\ 
 
-\begin{command}{\usebuttontemplate\marg{button template}}
-  Installs a new button template. This template is invoked whenever a
-  button should be rendered.
-  \example
-\begin{verbatim}
-\usebuttontemplate{\color{structure}\insertbuttontext}
-\end{verbatim}
-\end{command}
+%% \begin{command}{\usebuttontemplate\marg{button template}}
+%%   Installs a new button template. This template is invoked whenever a
+%%   button should be rendered.
+%%   \example
+%% \begin{verbatim}
+%% \usebuttontemplate{\color{structure}\insertbuttontext}
+%% \end{verbatim}
+%% \end{command}
 
 
-\paragraph{Inserts}\ 
+%% \paragraph{Inserts}\ 
 
-Inside the button template, the button text can be accessed via the
-following command:
+%% Inside the button template, the button text can be accessed via the
+%% following command:
 
-\begin{command}{\insertbuttontext}
-  Inserts the text of the current button into a template. When called
-  by  button creation commands, like |\beamerskipbutton|, the symbol
-  will be part of this text.
-\end{command}
+%% \begin{command}{\insertbuttontext}
+%%   Inserts the text of the current button into a template. When called
+%%   by  button creation commands, like |\beamerskipbutton|, the symbol
+%%   will be part of this text.
+%% \end{command}
 
-The button creation commands automatically add the following three
-inserts to the text to be rendered by |\insertbuttontext|:
+%% The button creation commands automatically add the following three
+%% inserts to the text to be rendered by |\insertbuttontext|:
 
-\begin{command}{\insertgotosymbol}
-  Inserts a small right-pointing arrow.
-\end{command}
+%% \begin{command}{\insertgotosymbol}
+%%   Inserts a small right-pointing arrow.
+%% \end{command}
 
-\begin{command}{\insertskipsymbol}
-  Inserts a double right-pointing arrow.
-\end{command}
+%% \begin{command}{\insertskipsymbol}
+%%   Inserts a double right-pointing arrow.
+%% \end{command}
 
-\begin{command}{\insertreturnsymbol}
-  Inserts a small left-pointing arrow.
-\end{command}
+%% \begin{command}{\insertreturnsymbol}
+%%   Inserts a small left-pointing arrow.
+%% \end{command}
 
-You can redefine these commands to change these symbols.
+%% You can redefine these commands to change these symbols.
 
 
 

doc/beamerug-interaction.tex

 
 
 The following commands can be used to specify in an abstract way what
-a button will be used for. How exactly these buttons are rendered is
-governed by a template, see Section~\ref{section-navigation-buttons}.
+a button will be used for.
 
 \begin{command}{\beamerbutton\marg{button text}}
   Draws a button with the given \meta{button text}.
   \articlenote
   This command (and the following) just insert their argument in
   |article| mode.
+
+  \begin{element}{button}\yes\yes\yes
+    When the |\beamerbutton| command is called, this template is used
+    to render the button. Inside the template you can use the command
+    |\insertbuttontext| to insert the argument that was passed to
+    |\beamerbutton|.
+    \begin{templateoptions}
+      \itemoption{default}{}
+      Typesets the button with rounded corners. The fore- and
+      background of the \beamer-color |button| are used and also the
+      \beamer-font |button|. The border of the button gets the
+      foreground of the \beamer-color |button border|.
+    \end{templateoptions}
+    The following inserts are useful for this element:
+    \begin{itemize}
+      \iteminsert{\insertbuttontext} inserts the text of the current
+      button. Inside ``Goto-Buttons'' (see below) this text is
+      prefixed by the insert |\insertgotosymbol| and similarly for
+      skip and return buttons.
+
+      \iteminsert{\insertgotosymbol} This text is inserted at the
+      beginning of goto buttons. Redefine this command to change the
+      symbol.
+      \example
+      |\renewcommand{\insertgotosymbol}{\somearrowcommand}|
+
+      \iteminsert{\insertskipsymbol} This text is inserted at the
+      beginning of skip buttons.
+
+      \iteminsert{\insertreturnsymbol} This text is inserted at the
+      beginning of return buttons.
+    \end{itemize}
+  \end{element}
+
+  \begin{element}{button border}\no\yes\no
+    The foreground of this color is used to render the border of
+    buttons. 
+  \end{element}
 \end{command}
 
 \begin{command}{\beamergotobutton\marg{button text}}

doc/beamerug-macros.tex

 \def\templateinserts{\begin{itemize}}
 \def\endtemplateinserts{\end{itemize}}
 
-\def\iteminsert#1{\item {\texttt{\declare{\string#1}}}}
-  
+\def\iteminsert#1{\item {\texttt{\declare{\string#1}}}%
+  \index{Inserts!\stripcommand#1@\protect\myprintocmmand{\stripcommand#1}}}
 
 \newcommand\opt[1]{{\color{black!50!green}#1}}
 \renewcommand\oarg[1]{\opt{{\ttfamily[}\meta{#1}{\ttfamily]}}}

doc/beameruserguide.tex

 \begin{document}
 
 \index{Themes|see{Presentation themes}}
-
 \index{Templates|see{Beamer templates}}
 \index{Colors|see{Beamer colors}}
 \index{Fonts|see{Beamer fonts}}
-
 \index{Beamer elements|see{Beamer templates, colors, and fonts}}
 \index{Elements|see{Beamer templates, colors, and fonts}}
+\index{Template inserts|see{Inserts}}
 
 \title{User's Guide to the Beamer Class, Version \version\\
 \Large\href{http://latex-beamer.sourceforge.net}{\texttt{http://latex-beamer.sourceforge.net}}}

examples/beamerexample1.tex

   \usefonttheme[onlysmall]{structurebold}
 }
 
-\setbeamercolor{math text}{fg=green!50!black}
-\setbeamercolor{normal text in math text}{parent=math text}
+%\setbeamercolor{math text}{fg=green!50!black}
+%\setbeamercolor{normal text in math text}{parent=math text}
 
 \usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
 \usepackage{amsmath,amssymb}
 
     \column{6cm}
       \begin{block}{Algorithm}
-        \vskip1em
-
         \alert<1| handout:0| trans:1>{Phase 1:\\
         Compare first and last bit}
 
 \begin{frame}
   \frametitle{Relationships among Overhead-Free Computation Classes}
 
-  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6.5cm}
+  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{5cm}
     \pgfsetlinewidth{0.8pt}
     \pgfxyline(-5,0)(5,0)
     
 \begin{frame}
   \frametitle{Relationships among Overhead-Free Computation Classes}
 
-  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6.5cm}
+  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{5cm}
     \pgfsetlinewidth{0.8pt}
     \pgfxyline(-5,0)(5,0)
     
 \begin{frame}
   \frametitle{Relationships among Overhead-Free Computation Classes}
 
-  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6.5cm}
+  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{5cm}
     \pgfsetlinewidth{0.8pt}
     \pgfxyline(-5,0)(5,0)
     
 \begin{frame}
   \frametitle{Relationships among Overhead-Free Computation Classes}
 
-  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6.5cm}
+  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6cm}
     \pgfsetlinewidth{0.8pt}
     \pgfxyline(-5,0)(5,0)
     
 \begin{frame}
   \frametitle{Relationships among Overhead-Free Computation Classes}
 
-  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6.5cm}
+  \begin{pgfpicture}{-5.4cm}{0cm}{5.4cm}{6cm}
     \pgfsetlinewidth{0.8pt}
     \pgfxyline(-5,0)(5,0)
     

themes/inner/beamerinnerthemedefault.sty

 \defbeamertemplate*{bibliography entry note}{default}{\par}
 
 
+% Buttons
+
+\newdimen\beamer@dima%
+\newdimen\beamer@dimb%
+
+\defbeamertemplate*{button}{default}
+{%
+  \setbox\beamer@tempbox=\hbox{{\insertbuttontext}}%
+  \ht\beamer@tempbox=6pt%
+  \dp\beamer@tempbox=0pt%
+  \setbox\beamer@tempbox=\vbox{\box\beamer@tempbox\vskip2pt}%
+  \beamer@tempdim=\wd\beamer@tempbox%
+  \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2pt
+  \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4pt
+  \begin{pgfpicture}{-4pt}{0pt}{\the\beamer@tempdim}{8pt}
+    \color{bg}
+    \pgfsetlinewidth{0.8pt}
+    \pgfqmoveto{0}{0}
+    \pgfqcurveto{-2.2}{0}{-4}{1.8}{-4}{4}
+    \pgfqcurveto{-4}{6.2}{-2.2}{8}{0}{8}
+    \pgflineto{\pgfpoint{\the\beamer@tempdim}{8pt}}
+    \pgfcurveto%
+    {\pgfpoint{\the\beamer@dima}{8pt}}%
+    {\pgfpoint{\the\beamer@dimb}{6.2pt}}%
+    {\pgfpoint{\the\beamer@dimb}{4pt}}
+    \pgfcurveto%
+    {\pgfpoint{\the\beamer@dimb}{1.8pt}}%
+    {\pgfpoint{\the\beamer@dima}{0pt}}%
+    {\pgfpoint{\the\beamer@tempdim}{0pt}}
+    \pgfclosepath
+    \pgffill
+    \colorlet{bg}{parent.bg}
+    \usebeamercolor[fg]{button border}
+    \pgfqmoveto{0}{0}
+    \pgfqcurveto{-2.2}{0}{-4}{1.8}{-4}{4}
+    \pgfqcurveto{-4}{6.2}{-2.2}{8}{0}{8}
+    \pgflineto{\pgfpoint{\the\beamer@tempdim}{8pt}}
+    \pgfcurveto%
+    {\pgfpoint{\the\beamer@dima}{8pt}}%
+    {\pgfpoint{\the\beamer@dimb}{6.2pt}}%
+    {\pgfpoint{\the\beamer@dimb}{4pt}}
+    \pgfcurveto%
+    {\pgfpoint{\the\beamer@dimb}{1.8pt}}%
+    {\pgfpoint{\the\beamer@dima}{0pt}}%
+    {\pgfpoint{\the\beamer@tempdim}{0pt}}
+    \pgfclosepath
+    \pgfstroke
+  \end{pgfpicture}%
+  \hskip-\beamer@tempdim%
+  \box\beamer@tempbox%
+  \kern4pt%
+}
+
+
 \beamertemplatedefaultblocks
 
                                 % Theorems
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.