diff options
author | Karl Berry <karl@freefriends.org> | 2010-12-14 00:04:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-12-14 00:04:29 +0000 |
commit | 581e7e3e5b43c9ba405fb1c20c96c27b6b726d89 (patch) | |
tree | fb3bb3b1471302caf384fd0a612f0786d7f18266 /Master/texmf-dist/tex/latex/ifmslide/ifmslide.sty | |
parent | 0f0bf188b8ee31d894ae1224828e9d687d93e064 (diff) |
ifmslide (13dec10)
git-svn-id: svn://tug.org/texlive/trunk@20727 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ifmslide/ifmslide.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ifmslide/ifmslide.sty | 78 |
1 files changed, 58 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/ifmslide/ifmslide.sty b/Master/texmf-dist/tex/latex/ifmslide/ifmslide.sty index 3a2c2a28212..9c3d0ed5b8f 100644 --- a/Master/texmf-dist/tex/latex/ifmslide/ifmslide.sty +++ b/Master/texmf-dist/tex/latex/ifmslide/ifmslide.sty @@ -1,11 +1,10 @@ -%$Id: ifmslide.sty,v 1.6 2001/06/24 15:58:53 emmel Exp $ %% %% %% This is file `ifmslide.sty', %% -%% File: ifmslide.sty Copyright (c) 2000-2001, Thomas Emmel -%% ifmslide.cfg Copyright (c) 2000-2001, Thomas Emmel -%% <emmel@mechanik.tu-darmstadt.de> +%% File: ifmslide.sty Copyright (c) 2000-2010, Thomas Emmel +%% ifmslide.cfg Copyright (c) 2000-2010, Thomas Emmel +%% <thomas@family-emmel.de> %% %% with ideas and parts from: %% File: pdfslide.dtx Copyright (c) 1999, C. V. Radhakrishnan @@ -30,6 +29,7 @@ % 3. the hyperref-package v6.70u or later is recommended % 4. a working .(e)ps to .pdf translator (distiller or epstopdf) % is recommended too +% 5. ifpdf which should be now default for all latex installations % %% % HISTORY: @@ -71,9 +71,27 @@ % submitted by Hans Fredrik Nordhaug. % changed the loading of the color-package (also from Hans) % +% v0.46 2001 (not released) +% Fixes and additions in ifmman.tex and ifmslide.sty +% submitted by David Cyganski and others. +% /markright? +% /marginpar? +% new commands \nodvipagenumbers and \nodvijobname +% to disable extra info at the bottom of every printed slide +% paragraph, subparagraph and subsubsection fixed +% +% v0.47 2010/12/13 +% Fix for the pdfoutput which doesn't work anymore +% use ifpdf instead +% +% NOTE: THIS IS THE FINAL RELEASE +% I will not add more features to this package, only small +% bugfixes if anyone is really asking for them +% Please use the beamer-class instead! +% \ProvidesPackage{ifmslide} - [2001/06/24 v0.45 slides for printout AND screen (Thomas Emmel)] + [2010/12/13 v0.47 (FINAL, see NOTE) slides for printout AND screen (Thomas Emmel)] \newif\if@draft \@draftfalse \DeclareOption{draft}{\@drafttrue} @@ -145,12 +163,15 @@ \RequirePackage[bookmarksopen,colorlinks,urlcolor=url]{hyperref} +% check for pdf or dvi output +\RequirePackage{ifpdf} + % need to redefine pagecolor from color.sty to enable colorhighlight from texpower % this first "rough" version disables \pagecolor after color.sty and before % texpower use it to set the pagecolor... % the problem is that this puts a colored box over the complete ifmslide-environment! % (should be evaluated...) -\@ifundefined{pdfoutput}{\RequirePackage{color}}{\RequirePackage[pdftex]{color}} +\ifpdf\RequirePackage[pdftex]{color}\else\RequirePackage{color}\fi %\def\pagecolor#1{}% simple %\def\pagecolor{% original % \begingroup @@ -170,15 +191,15 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % global settings, colors etc. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %% latex or pdflatex? - \@ifundefined{pdfoutput}{%latex-mode + \ifpdf + \RequirePackage[pdftex]{graphicx} + \else \@dvitrue \def\hypersetup#1{}% - \newlength\pdfpageheight% + \@ifundefined{pdfpageheight}{\newlength\pdfpageheight}{}% \RequirePackage{graphicx} - }{%pdflatex-mode - \RequirePackage[pdftex]{graphicx}} + \fi %%%% %% put colored marks for \pause statements in draft-mode @@ -201,6 +222,14 @@ %% dummy \def\LastSlide{100} +%% add extra info for dvi or not + +\newif\if@dvipagenumber \@dvipagenumbertrue +\newif\if@dvijobname \@dvijobnametrue + +\def\nodvipagenumbers{\@dvipagenumberfalse} +\def\nodvijobname{\@dvijobnamefalse} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% sizes and format of the slides (see seminar.cls) @@ -276,7 +305,7 @@ \setslidelength{\@slm}{#1}% \setslidelength{\@srm}{#2}% \setslidelength{\@stm}{#3}% - \setslidelength{\@sbm}{#4}} + \setslidelength{\@sbm}{#4}\@calcframe} % \setInsideMargin{6mm}{6mm}{4mm}{6mm} @@ -468,10 +497,14 @@ \end{picture}}% \put(\pos@panel@x,\pos@panel@y){\set@panel}% \if@dvi% - \put(\pos@jobname@x,\pos@jobname@y){% - \makebox(0,0)[tr]{\ifont\jobname.tex -- \today}}% \the\time}}% - \put(0,\pos@jobname@y){% - \makebox(0,0)[tl]{\ifont\theslide/\LastSlide}}% + \if@dvijobname% + \put(\pos@jobname@x,\pos@jobname@y){% + \makebox(0,0)[tr]{\ifont\jobname.tex -- \today}}% \the\time}}% + \fi% + \if@dvipagenumber% + \put(0,\pos@jobname@y){% + \makebox(0,0)[tl]{\ifont\theslide/\LastSlide}}% + \fi% \fi% \if@freelogo% \@freelogo% @@ -981,15 +1014,20 @@ {\Large\bfseries\color{section2}}} \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% - {3ex \@plus 1ex \@minus 1ex}% - {-1em}{\large\bfseries\color{section3}}} + {-1.5ex\@plus -0.2ex \@minus -0.2ex}% + {1ex \@plus .1ex}% + {\large\bfseries\color{section3}}} +% {3ex \@plus 1ex \@minus 1ex}% +% {-1em}{\large\bfseries\color{section3}}} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% - {.5\baselineskip\@plus.2\baselineskip\@minus .1\baselineskip}{-.5em}% + {-1ex\@plus -0.1ex \@minus -0.1ex}% + {-1ex \@plus -.1ex}% {\large\itshape\color{section4}}} \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}% - {.5\baselineskip\@plus.2\baselineskip\@minus .1\baselineskip}{-.5em}% + {-1ex\@plus -0.1ex \@minus -0.1ex}% + {-1ex \@plus -.1ex}% {\normalsize\itshape\color{section5}}} \let\scr@section\section |