From 70e387eb63ce4723858c48592208e193dec294f3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 12 Nov 2010 00:31:31 +0000 Subject: stex 0.9.3 (11nov10) git-svn-id: svn://tug.org/texlive/trunk@20410 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/stex/mikoslides/mikoslides.dtx | 61 ++++++++++++++++++++-- 1 file changed, 56 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/source/latex/stex/mikoslides') diff --git a/Master/texmf-dist/source/latex/stex/mikoslides/mikoslides.dtx b/Master/texmf-dist/source/latex/stex/mikoslides/mikoslides.dtx index 3840ff87e4e..e5aad153e3b 100644 --- a/Master/texmf-dist/source/latex/stex/mikoslides/mikoslides.dtx +++ b/Master/texmf-dist/source/latex/stex/mikoslides/mikoslides.dtx @@ -16,15 +16,18 @@ \documentclass{ltxdoc} \usepackage{url,array,float} \usepackage[show]{ed} +\usepackage[hyperref=auto,style=alphabetic]{biblatex} +\bibliography{kwarc} \makeindex \floatstyle{boxed} \newfloat{exfig}{thp}{lop} \floatname{exfig}{Example} +\def\tracissue#1{\cite{sTeX:online}, \hyperlink{http://trac.kwarc.info/sTeX/ticket/#1}{issue #1}} \begin{document}\DocInput{mikoslides.dtx}\end{document} % % \fi % -% \CheckSum{317} +% \iffalse\CheckSum{317}\fi % % \changes{v0.1}{2005/12/06}{Initial Version} % \changes{v0.2}{2006/01/11}{course notes back on seminar} @@ -75,10 +78,34 @@ % |beamer.cls|. % %\section{The User Interface}\label{sec:user} -% \StopEventually{\newpage\PrintChanges} % +% \subsection{Package Options}\label{sec:user:options} +% +% The |mikoslides| class takes a single option: \DescribeMacro{showmeta}|showmeta|. If +% this is set, then the metadata keys are shown (see~\cite{Kohlhase:metakeys:ctan} for details +% and customization options).\ednote{document the functionality} +% +% +% \section{Limitations}\label{sec:limitations} +% +% In this section we document known limitations. If you want to help alleviate them, +% please feel free to contact the package author. Some of them are currently discussed in +% the \sTeX TRAC~\cite{sTeX:online}. +% \begin{compactenum} +% \item none reported yet +% \end{compactenum} +% +% \StopEventually{\newpage\PrintIndex\newpage\PrintChanges\printbibliography} +% %\section{The Implementation}\label{sec:impl} % +% The |mikoslides| package generates two files: the {\LaTeX} package (all the code between +% {\textsf{$\langle$*package$\rangle$}} and {\textsf{$\langle$/package$\rangle$}}) and the +% {\latexml} bindings (between {\textsf{$\langle$*ltxml$\rangle$ and +% $\langle$/ltxml$\rangle$}}). We keep the corresponding code fragments together, +% since the documentation applies to both of them and to prevent them from getting out of +% sync. +% %\subsection{Initialization and Class Options}\label{sec:impl:init} % % For the {\latexml} bindings, we make sure the right perl packages are loaded. @@ -97,6 +124,7 @@ use LaTeXML::Package; % % \begin{macrocode} %<*cls> +\DeclareOption{showmeta}{\PassOptionsToPackage{\CurrentOption}{metakeys}} \newif\ifnotes\notesfalse \newif\ifproblems\problemstrue \DeclareOption{notes}{\notestrue} @@ -120,6 +148,7 @@ RawTeX('\newif\ifproblems\problemsfalse'); \ifnotes \LoadClass{omdoc} \RequirePackage{a4wide} +\RequirePackage{marginnote} \RequirePackage[notheorems,noamsthm]{beamerarticle} \else \LoadClass[notheorems,noamsthm,10pt]{beamer} @@ -132,6 +161,7 @@ RawTeX('\newif\ifproblems\problemsfalse'); % %<*ltxml> LoadClass('omdoc'); +DefConstructor('\usetheme{}',''); % % \end{macrocode} % @@ -218,6 +248,7 @@ DefEnvironment('{note}','#body'); \def\itemize@level{outer} \def\itemize@outer{outer} \def\itemize@inner{inner} +\renewcommand\metakeys@show@keys[2]{\marginnote{{\scriptsize ##2}}} \renewenvironment{itemize} {\ifx\itemize@level\itemize@outer\def\itemize@label{$\rhd$}\fi \ifx\itemize@level\itemize@inner\def\itemize@label{$\scriptstyle\rhd$}\fi @@ -325,6 +356,7 @@ DefEnvironment('{problems}','#body'); % appearance of line end comments in |\lec|. % % \begin{macrocode} +% \def\STpresent#1{\textcolor{blue}{#1}} \def\defemph#1{{\textcolor{magenta}{#1}}} \def\notemph#1{{\textcolor{magenta}{#1}}} \def\stDMemph#1{{\textcolor{blue}{#1}}} @@ -345,10 +377,25 @@ DefEnvironment('{problems}','#body'); DefMacro('\textwarning',""); % % \end{macrocode} +% +% \subsection{Front Matter, Titles, etc} +% +% We need to redefine the frontmatter macros inherited from the |beamer| class, since +% there they take an optional argument. +% \begin{macrocode} +%<*ltxml> +DefMacro('\title[]{}', '\@add@frontmatter{ltx:title}{#1}'); +DefMacro('\date[]{}', '\@add@frontmatter{ltx:date}[role=creation]{#1}'); +DefMacro('\author[]{}', sub { andSplit(T_CS('\@author'),$_[1]); });#$ +% \end{macrocode} +% +% % Now, we specialize the slide environment that we have implemented above or inherited % from |seminar.cls| for some abbreviations, e.g. separator slides and title slides. % \begin{macrocode} %<*cls> +\newcommand\titleframe{\begin{frame}\titlepage\end{frame}} +\newenvironment{titleframewith}{\begin{frame}\titlepage}{\end{frame}} \newenvironment{ttitle}{\begin{center}\LARGE\begin{tabular}{|c|}\hline}% {\\\hline\end{tabular}\end{center}\vspace{1ex minus 1ex}} \newenvironment{ttitlejoint}[1]% @@ -358,9 +405,14 @@ DefMacro('\textwarning',""); \vspace{1ex minus 1ex}} % %<*ltxml> +DefConstructor('\titleframe',"titleframe elided here"); +DefEnvironment('{titleframewith}', + "begin elided titleframe" + . "#body" + ."end elided titleframe"); DefEnvironment('{titleslide}',""); DefEnvironment('{titleslide}',"#body"); -DefEnvironment('{ttitle}', "\n#body"); +DefEnvironment('{ttitle}', "\n#body"); % % \end{macrocode} % @@ -369,8 +421,7 @@ DefEnvironment('{ttitle}', "\n#body"); %<*cls> \newcommand{\putgraphicsat}[3]{% \begin{picture}(0,0)\put(#1){\includegraphics[#2]{#3}}\end{picture}} -\newcommand{\putat}[2]{% - \begin{picture}(0,0)\put(#1){#2}\end{picture}} +\newcommand{\putat}[2]{\begin{picture}(0,0)\put(#1){#2}\end{picture}} % %<*ltxml> % -- cgit v1.2.3