summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/mikoslides
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-11-12 00:31:31 +0000
committerKarl Berry <karl@freefriends.org>2010-11-12 00:31:31 +0000
commit70e387eb63ce4723858c48592208e193dec294f3 (patch)
tree61ec42df871a70687151ed4a6d1bc6a5c81dc53c /Master/texmf-dist/source/latex/stex/mikoslides
parent2cee8f6dcf8e9596b5cfe9d1f3e55c61b261a320 (diff)
stex 0.9.3 (11nov10)
git-svn-id: svn://tug.org/texlive/trunk@20410 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/mikoslides')
-rw-r--r--Master/texmf-dist/source/latex/stex/mikoslides/mikoslides.dtx61
1 files changed, 56 insertions, 5 deletions
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}
%</driver>
% \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');
%</cls>
%<*ltxml>
LoadClass('omdoc');
+DefConstructor('\usetheme{}','');
%</ltxml>
% \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',"");
%</ltxml>
% \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}
+%</ltxml>
+%
% 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}}
%</cls>
%<*ltxml>
+DefConstructor('\titleframe',"<omdoc:ignore>titleframe elided here</omdoc:ignore>");
+DefEnvironment('{titleframewith}',
+ "<omdoc:ignore>begin elided titleframe</omdoc:ignore>"
+ . "#body"
+ ."<omdoc:ignore>end elided titleframe</omdoc:ignore>");
DefEnvironment('{titleslide}',"");
DefEnvironment('{titleslide}',"<omdoc:omgroup ?#locator(stex:srcref='#locator')()>#body</omdoc:omgroup>");
-DefEnvironment('{ttitle}', "\n<Title>#body</Title>");
+DefEnvironment('{ttitle}', "\n<dc:title>#body</dc:title>");
%</ltxml>
% \end{macrocode}
%
@@ -369,8 +421,7 @@ DefEnvironment('{ttitle}', "\n<Title>#body</Title>");
%<*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}}
%</cls>
%<*ltxml>
%</ltxml>