From 64eeb6fa76f5cca3ef7bedf009c7287a45ef1cb0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 1 Dec 2013 23:01:40 +0000 Subject: sslides (1dec13) git-svn-id: svn://tug.org/texlive/trunk@32293 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/sslides/land-sample-slide.pdf | Bin 0 -> 12830 bytes .../doc/latex/sslides/land-sample-slide.tex | 210 +++++++++++++++++++++ .../doc/latex/sslides/port-sample-slide.pdf | Bin 0 -> 12899 bytes .../doc/latex/sslides/port-sample-slide.tex | 210 +++++++++++++++++++++ Master/texmf-dist/tex/latex/sslides/sslides.cls | 52 +++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/sslides.tlpsrc | 0 8 files changed, 474 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/sslides/land-sample-slide.pdf create mode 100644 Master/texmf-dist/doc/latex/sslides/land-sample-slide.tex create mode 100644 Master/texmf-dist/doc/latex/sslides/port-sample-slide.pdf create mode 100644 Master/texmf-dist/doc/latex/sslides/port-sample-slide.tex create mode 100644 Master/texmf-dist/tex/latex/sslides/sslides.cls create mode 100644 Master/tlpkg/tlpsrc/sslides.tlpsrc diff --git a/Master/texmf-dist/doc/latex/sslides/land-sample-slide.pdf b/Master/texmf-dist/doc/latex/sslides/land-sample-slide.pdf new file mode 100644 index 00000000000..dc376ca9d01 Binary files /dev/null and b/Master/texmf-dist/doc/latex/sslides/land-sample-slide.pdf differ diff --git a/Master/texmf-dist/doc/latex/sslides/land-sample-slide.tex b/Master/texmf-dist/doc/latex/sslides/land-sample-slide.tex new file mode 100644 index 00000000000..a86e6b2dcad --- /dev/null +++ b/Master/texmf-dist/doc/latex/sslides/land-sample-slide.tex @@ -0,0 +1,210 @@ +%% land-sample-slide.tex +%% Copyright 2013 Behzad Salimi +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Behzad Salimi +% sites.google.com/site/quadratures +% +% This work consists of the files: +% +% land-sample-slide.pdf +% land-sample-slide.tex +% port-sample-slide.pdf +% port-sample-slide.tex +% sslides.cls + +\documentclass{sslides} +\usepackage{graphics} + + \addtolength{\topmargin}{-15mm} + \setlength{\textheight}{7.00in} + \setlength{\textwidth}{9.50in} + \setlength{\oddsidemargin}{-0.25in} +% \addtolength{\headheight}{4mm} +% \setlength\evensidemargin{0mm} +% \setlength{\parindent}{0mm} +% \addtolength{\parskip}{2mm} + +\renewcommand{\thefootnote}{\fnsymbol{footnote}} +\newcommand{\foot}[1]{\footnote{#1}% +\ifthenelse{\value{footnote}=9}{\setcounter{footnote}{0}}{}} + +\newsavebox{\tl} +\newcommand{\topleft}[1]{\savebox{\tl}{\tiny #1}} +\newcommand{\tleft}{\usebox{\tl}} +\newsavebox{\tc} +\newcommand{\topcenter}[1]{\savebox{\tc}{\tiny #1}} +\newcommand{\tcenter}{\usebox{\tc}} +\newsavebox{\tr} +\newcommand{\topright}[1]{\savebox{\tr}{\tiny #1}} +\newcommand{\tright}{\usebox{\tr}} + +\newsavebox{\bl} +\newcommand{\footleft}[1]{\savebox{\bl}{\tiny #1}} +\newcommand{\bleft}{\usebox{\bl}} +\newsavebox{\bc} +\newcommand{\footcenter}[1]{\savebox{\bc}{\tiny #1}} +\newcommand{\bcenter}{\usebox{\bc}} + +% \newsavebox{\br} +% \newcommand{\footright}[1]{\savebox{\br}{\tiny #1}} +% \newcommand{\bright}{\usebox{\br}} +% uncomment above three lines to use \footright{} + + +% Use this portion to create any header or footer style. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\oddh{% +\parbox[t]{\textwidth}{% +{\makebox[10mm][l]{\tleft}\hfill\makebox[10mm][c]{\tcenter} +\hfill\makebox[10mm][r]{\tright}}\\[-9mm] +\makebox[0mm]{\ }\hrulefill}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\oddf{\parbox[b]{\textwidth}{\hrulefill\vspace{-5mm}\newline% +{\makebox[10mm][l]{\bleft}\hfill\makebox[10mm][c]{\bcenter}\hfill +\makebox[10mm][r]{\tiny\theslide}}}} +% \makebox[10mm][r]{\bright}}}} % replace with the line above, +% then use \footright{...} for a fixed field in the right footer +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% commands to set header/footer: +% \topleft{} +% \topcenter{} +% \topright{} +% \footleft{} +% \footcenter{} +% \footright{} + +% \onlyslides{3} +\begin{document} + + + +\begin{slide} +\thispagestyle{empty} + +\begin{center} +{\large\LaTeX\\ +Slide Class\\ +with\\ +Header and Footer}\\[7mm] +\normalfont\normalsize +Behzad Salimi\\[1mm] +{\small sites.google.com/site/quadratures} +\end{center} + +\ + +\centerline{Abstract} +\vspace{-7mm} +A simple slide ``documentclass" to use the standard \LaTeX\ +slide class with the added option of including header and footer. + +\end{slide} + + + +\topleft{\raisebox{1mm}{\LaTeX}} +\topcenter{sslides class} +\topright{\today} +\footleft{sites.google.com/site/quadratures} +% \footcenter{x} +%\footright{\theslide} % this position is reserved to advance page number +\begin{slide} +\centerline{\textbf{\LaTeX\ slides with header/footer}} + +The standard \LaTeX\ {\tt slide} class offers a very clean, sharp +and easy-to-read font for slides. However, the standard class does +not have a provision for including header and footer on slides. + +The slide class {\tt sslides} allows creation of arbitrary header +and footer while preserving all of the functionality of the +standard {\tt slide} class. + +\LaTeX\ code can be used to generate any header and footer. The +{\tt .tex} file for this manual provides a simple example of +creating a template to independently specify the left-, center-, +or right-region of both header and footer. + +% In the example file, the right footer region is reserved for page number, but this can +% be easily changed. + +\end{slide} + + + + + + + + + + +\topcenter{Example Slide} +% \footcenter{Example Slide} +\begin{slide} + +\centerline{\textbf{How to use}} +Copy the class file {\tt sslides.cls} +% (that came with this package) +in a directory visible to \LaTeX, for example, the current +directory where the slide file is run. The following two commands +in the slide input file generate header and footer:\\ +{\small\verb+\oddh{ . . . }+\hfill +{\footnotesize generates text/objects in the header;}\\ +\verb+\oddf{ . . . }+\hfill +{\footnotesize generates text/objects in the footer}.}\\ +The header/footer specified will show on all slides until they are +changed. + +\ + +\centerline{\textbf{Example}} +{\small +\begin{verbatim} +\documentclass{sslides} +\oddh{ header field } +\oddf{ footer field } +\begin{slide} +. . . body of slide . . . +\end{slide} +\end{document} +\end{verbatim} +} +\end{slide} + + + + + + + + + + + + + + + + + + + + + + + + + +\end{document} + diff --git a/Master/texmf-dist/doc/latex/sslides/port-sample-slide.pdf b/Master/texmf-dist/doc/latex/sslides/port-sample-slide.pdf new file mode 100644 index 00000000000..d7120126ba7 Binary files /dev/null and b/Master/texmf-dist/doc/latex/sslides/port-sample-slide.pdf differ diff --git a/Master/texmf-dist/doc/latex/sslides/port-sample-slide.tex b/Master/texmf-dist/doc/latex/sslides/port-sample-slide.tex new file mode 100644 index 00000000000..50e3bb6ccc1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/sslides/port-sample-slide.tex @@ -0,0 +1,210 @@ +%% port-sample-slide.tex +%% Copyright 2013 Behzad Salimi +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Behzad Salimi +% sites.google.com/site/quadratures +% +% This work consists of the files: +% +% land-sample-slide.pdf +% land-sample-slide.tex +% port-sample-slide.pdf +% port-sample-slide.tex +% sslides.cls + +\documentclass{sslides} +\usepackage{graphics} + + \addtolength{\topmargin}{-15mm} + \setlength{\textheight}{9.25in} + \setlength{\textwidth}{7.00in} + \setlength{\oddsidemargin}{-0.25in} +% \addtolength{\headheight}{4mm} +% \setlength\evensidemargin{0mm} +% \setlength{\parindent}{0mm} +% \addtolength{\parskip}{2mm} + +\renewcommand{\thefootnote}{\fnsymbol{footnote}} +\newcommand{\foot}[1]{\footnote{#1}% +\ifthenelse{\value{footnote}=9}{\setcounter{footnote}{0}}{}} + +\newsavebox{\tl} +\newcommand{\topleft}[1]{\savebox{\tl}{\tiny #1}} +\newcommand{\tleft}{\usebox{\tl}} +\newsavebox{\tc} +\newcommand{\topcenter}[1]{\savebox{\tc}{\tiny #1}} +\newcommand{\tcenter}{\usebox{\tc}} +\newsavebox{\tr} +\newcommand{\topright}[1]{\savebox{\tr}{\tiny #1}} +\newcommand{\tright}{\usebox{\tr}} + +\newsavebox{\bl} +\newcommand{\footleft}[1]{\savebox{\bl}{\tiny #1}} +\newcommand{\bleft}{\usebox{\bl}} +\newsavebox{\bc} +\newcommand{\footcenter}[1]{\savebox{\bc}{\tiny #1}} +\newcommand{\bcenter}{\usebox{\bc}} + +% \newsavebox{\br} +% \newcommand{\footright}[1]{\savebox{\br}{\tiny #1}} +% \newcommand{\bright}{\usebox{\br}} +% uncomment above three lines to use \footright{} + + +% Use this portion to create any header or footer style. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\oddh{% +\parbox[t]{\textwidth}{% +{\makebox[10mm][l]{\tleft}\hfill\makebox[10mm][c]{\tcenter} +\hfill\makebox[10mm][r]{\tright}}\\[-9mm] +\makebox[0mm]{\ }\hrulefill}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\oddf{\parbox[b]{\textwidth}{\hrulefill\vspace{-5mm}\newline% +{\makebox[10mm][l]{\bleft}\hfill\makebox[10mm][c]{\bcenter}\hfill +\makebox[10mm][r]{\tiny\theslide}}}} +% \makebox[10mm][r]{\bright}}}} % replace with the line above, +% then use \footright{...} for a fixed field in the right footer +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% commands to set header/footer: +% \topleft{} +% \topcenter{} +% \topright{} +% \footleft{} +% \footcenter{} +% \footright{} + +% \onlyslides{3} +\begin{document} + + + +\begin{slide} +\thispagestyle{empty} + +\begin{center} +{\large\LaTeX\\ +Slide Class\\ +with\\ +Header and Footer}\\[7mm] +\normalfont\normalsize +Behzad Salimi\\[1mm] +{\small sites.google.com/site/quadratures} +\end{center} + +\ + +\centerline{Abstract} +\vspace{-7mm} +A simple slide ``documentclass" to use the standard \LaTeX\ +slide class with the added option of including header and footer. + +\end{slide} + + + +\topleft{\raisebox{1mm}{\LaTeX}} +\topcenter{sslides class} +\topright{\today} +\footleft{sites.google.com/site/quadratures} +% \footcenter{x} +%\footright{\theslide} % this position is reserved to advance page number +\begin{slide} +\centerline{\textbf{\LaTeX\ slides with header/footer}} + +The standard \LaTeX\ {\tt slide} class offers a very clean, sharp +and easy-to-read font for slides. However, the standard class does +not have a provision for including header and footer on slides. + +The slide class {\tt sslides} allows creation of arbitrary header +and footer while preserving all of the functionality of the +standard {\tt slide} class. + +\LaTeX\ code can be used to generate any header and footer. The +{\tt .tex} file for this manual provides a simple example of +creating a template to independently specify the left-, center-, +or right-region of both header and footer. + +% In the example file, the right footer region is reserved for page number, but this can +% be easily changed. + +\end{slide} + + + + + + + + + + +\topcenter{Example Slide} +% \footcenter{Example Slide} +\begin{slide} + +\centerline{\textbf{How to use}} +Copy the class file {\tt sslides.cls} +% (that came with this package) +in a directory visible to \LaTeX, for example, the current +directory where the slide file is run. The following two commands +in the slide input file generate header and footer:\\ +{\small\verb+\oddh{ . . . }+\hfill +{\footnotesize generates text/objects in the header;}\\ +\verb+\oddf{ . . . }+\hfill +{\footnotesize generates text/objects in the footer}.}\\ +The header/footer specified will show on all slides until they are +changed. + +\ + +\centerline{\textbf{Example}} +{\small +\begin{verbatim} +\documentclass{sslides} +\oddh{ header field } +\oddf{ footer field } +\begin{slide} +. . . body of slide . . . +\end{slide} +\end{document} +\end{verbatim} +} +\end{slide} + + + + + + + + + + + + + + + + + + + + + + + + + +\end{document} + diff --git a/Master/texmf-dist/tex/latex/sslides/sslides.cls b/Master/texmf-dist/tex/latex/sslides/sslides.cls new file mode 100644 index 00000000000..f5feaca8172 --- /dev/null +++ b/Master/texmf-dist/tex/latex/sslides/sslides.cls @@ -0,0 +1,52 @@ +%% +%% LaTeX class file based on slides class. +%% +%% sslides.cls +%% Copyright 2013 Behzad Salimi +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Behzad Salimi +% sites.google.com/site/quadratures +% +% This work consists of the files: +% +% land-sample-slide.pdf +% land-sample-slide.tex +% port-sample-slide.pdf +% port-sample-slide.tex +% sslides.cls + +% This class file is to set up LaTeX-slides with header and footer. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{sslides}[2010/08/22 Custom LaTeX minimal class] + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{slides}} +\ProcessOptions +\LoadClass{slides} + +\newcommand{\oddh}[1]{\def\ohead{#1}} +\newcommand{\oddf}[1]{\def\ofoot{#1}} +\newcommand{\evenh}[1]{\def\ehead{#1}} +\newcommand{\evenf}[1]{\def\efoot{#1}} + +\def\ps@headings{% +\def\ps@slide{\def\@oddhead{\ohead}\def\@oddfoot{\ofoot}% +\def\@evenhead{\ehead}\def\@evenfoot{\efoot}}% +\def\ps@overlay{\def\@oddhead{\ohead}\def\@oddfoot{\ofoot}% +\def\@evenhead{\ehead}\def\@evenfoot{\efoot}}% +\def\ps@note{\def\@oddhead{\ohead}\def\@oddfoot{\ofoot}% +\def\@evenhead{\ehead}\def\@evenfoot{\efoot}}} +% Initialize +\oddh{}\oddf{}\evenh{}\evenf{} +\pagestyle{headings} + diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index b59a9c98070..2a870070567 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -427,7 +427,7 @@ my @TLP_working = qw( songbook songs sort-by-letters soton soul sourcecodepro sourcesanspro spanglish spanish-mx sparklines spath3 spelling spie sphack splines splitbib splitindex spot spotcolor spreadtab spverbatim - srbook-mem srcltx sseq + srbook-mem srcltx sseq sslides stack stackengine stage standalone starfont statistik statex statex2 staves stdclsdv stdpage steinmetz stellenbosch stex stix stmaryrd storebox storecmd stringstrings struktex diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 7a2ac2fb183..bc2bfb4a43c 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -752,6 +752,7 @@ depend spotcolor depend srbook-mem depend srcltx depend sseq +depend sslides depend stack depend stackengine depend standalone diff --git a/Master/tlpkg/tlpsrc/sslides.tlpsrc b/Master/tlpkg/tlpsrc/sslides.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d -- cgit v1.2.3