⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texpower.sty

📁 幻灯片模板
💻 STY
📖 第 1 页 / 共 5 页
字号:
% $Id: texpower.sty,v 1.22 2003/05/01 17:02:04 stephanlehmke Exp $%  % TeXPower bundle - dynamic online presentations with LaTeX% Copyright (C) 1999-2002 Stephan Lehmke% % This program is free software; you can redistribute it and/or% modify it under the terms of the GNU General Public License% as published by the Free Software Foundation; either version 2% of the License, or (at your option) any later version.% % This program is distributed in the hope that it will be useful,% but WITHOUT ANY WARRANTY; without even the implied warranty of% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the% GNU General Public License for more details.%%=======================================================================================================================% File: texpower.sty%% LaTeX Package for creating `dynamic' presentations.%%% DISCLAIMER: This is a PRE-ALPHA release of the texpower package, mainly for getting feedback on the%             implementation. %%             During the subsequent error correction and extension of the functionality, the syntax and implementation%             of the macros are liable to change. %%             So far, the texpower package itself contains only scarce inline documentation, as the code is too%             much of a moving target to make rigorous documentation a sensible endeavour. As soon as the%             texpower package is ready for beta release, it will be made into a fully documented dtx file.%%             The TeXPower Bundle can be found at%             http://texpower.sourceforge.net/%%             Some documentation, examples and an FAQ list are%             contained in the docs, available at%             http://prdownloads.sourceforge.net/texpower/texpower-doc-pdf-0.0.8f.tar.gz%             %=======================================================================================================================% Author: Stephan Lehmke <Stephan.Lehmke@cs.uni-dortmund.de>%% v0.0.1 Oct 26, 1999 First pre-alpha version.% % v0.0.2 Feb 15, 2000 Squashing a bug...% % v0.0.3 Mar 13, 2000 Tidying up command syntax; adding some in-line documentation.% % v0.0.4 Mar 17, 2000 In-line documentation for the first pre-alpha version completed.% % v0.0.5 Mar 17, 2000 Fixed some problems with incompatible versions of hyperref (spotted by Marc van Dongen).%                     (Apr 14: this code no longer exists)% % v0.0.6 Mar 20, 2000 Added papersize settings. (Mar 28: these are now in fixseminar.sty)%% v0.0.7 Apr 07, 2000 Removed dependency on hyperref; added support for color emphasis; respect the display option;%                     now loading tpsettings.cfg and tpoptions.cfg; added \bstep, \switch, \rebstep, \reswitch.%% v0.0.7a Apr 28, 2000 \pause and \stepwise now use \leaders for inserting duplicated parts of pages. This way,%                      processing of whatsits is turned off in the duplicates so that table of contents entries are no%                      longer duplicated when a section occurs on a page where \pause or \stepwise is used (spotted by%                      heiner richter). Thanks to Heiko Oberdiek for his suggestion how \leaders can be successfully%                      applied for this purpose.%                      \stepwise now does the right thing if no \step command occurs in <contents>.%                      There was a bug in \save@TP which would become apparent if \stepwise was the first thing on a%                      page. Spotted and fixed by Ross Moore (thanks!).%% v0.0.7b May 04, 2000 \@ifpackagelater{hyperref}{2000/03/22} changed to \@ifpackagelater{hyperref}{2000/03/23}. Spotted%                      by Ross Moore. %% v0.0.7c May 06, 2000 \eject changed to \newpage in \stepwise to cure some problems with the foils package. Spotted%                      by Ross Moore. %% v0.0.7d May 18, 2000 \everydisplay finally removed from colormath option because it only causes trouble. Maybe I%                      should look for a less fragile solution for the whole thing. Fixed a bug in texpower's definition%                      of \set@page@color (used only if pdftex.def doesn't define it) which would cause a fatal error if%                      two \pagecolor commands occur. Added command \replacecolor.%% v0.0.8  May 24, 2000 Now providing two methods for creating duplicates of page contents (used by \pause and%                      \stepwise). The former default method using \leaders, which leads to problems with footnotes%                      (spotted by heiner richter), is now activated by the newly introduced option%                      robustduplicates. The new default method uses \unvbox as the \pause command from texpause.sty,%                      but redefines \write for suppressing duplicate toc and bookmark entries due to duplicated%                      whatsits. %                      Changed the way \liststepwise and \parstepwise are implemented. Instead of wrapping the whole%                      <contents> in a minipage (which caused a lot of problems), an invisible \hrule is inserted in%                      front of <contents>, which seems to do the job as well. With option robustduplicates, this seems%                      to be unneccessary for \parstepwise.%                      Now all counters are saved before \stepwise starts and restored for every \step. This remedies%                      problems with equation numbers etc.%                      Added a modification for the slides class so that slides are not centered if the display option%                      is given.%                      Option slifonts now also handles math fonts.%                      Added a \hidetext command which respects line breaks (needs soul package).%% v0.0.8a Jun 02, 2000 Fixed a bug in the code which disables \pageDuration if the pdfpageduration key doesn't exist%                      (spotted by Friedrich Eisenbrand).%% v0.0.8b Jun 09, 2000 Added additional `dimmed' and `enhanced' color sets for all standard colors, with corresponding%                      commands \dimcolors and \enhancecolors.%                      Added a `color stack correction' option fixcolorstack, which should avoid that the duplication of%                      ``color push'' and ``color pop'' specials confuses the driver's color stack%                      (spotted by Ross Moore).%                      Added new display commands \hidedimmed, \hidevanish, \highlightenhanced.%                      Added \step variants \dstep and \vstep.%                      Added patches for \[, equation, eqnarray, and eqnarray* when the colormath option is used.%                      Now also saving and restoring footnotes at \pause and \stepwise.%                      Added a command \releasecounter to keep a counter from `freezing' during the execution of%                      \stepwise. %% v0.0.8c Jun 13, 2000 The default duplication method will now (only) attack \protected@write. There's a new option%                      hackwrite which restores the former default method (of attacking \write).%                      Corrected a bug newly introduced into \switch with version 0.0.8b.%                      Corrected a bug in the color correction code (spotted by Ross Moore).%% v0.0.8d Jun 15, 2000 Corrected a minor quirk in \hidetext.%                      Added a command \addTPcolor for defining new `standard' colors.%                      In printout versions, the last step will no longer think it's `first activated'.%% v0.0.8e Jun 21, 2000 Yet another rewrite of the page duplication code. I hope it's perfect this time :)%                      The options robustduplicates and hackwrite are obsolete now.%                      Thanks to Martin Schroeder for permission to use his everyshi code.%                      Fixed a small quirk in \dstep and \vstep.%                      \darkbackground and relatives now set both page and text color.%% v0.0.8f Jun 27, 2000 A small change in the definition of \liststepwise to enhance vertical spacing.%% v0.0.8g Jul 19, 2000 Color management extended and largely rewritten.% NEVER RELEASED       A small change to make page transition and page duration settings local to groups.%                      \dstep and \vstep now understand the usual optional arguments.%% v0.0.9  Oct 17, 2000 Added support for structured backgrounds (command \backgroundstyle).% NEVER RELEASED       New commands for gradient rules and boxes.%                      Added a hack to keep hyperref from producing duplicate page anchors (suggested by Thomas Emmel).%                      Some slight changes in the mode of accounting in \step to hopefully give better results for%                      `complicated' orders of activating steps using \step's optional arguments.%                      Added (experimental) commands \multistep and \movie for aiding in (simple) animations.%                      \pagecolor hack removed, as pdftex.def on CTAN now supports \pagecolor.%                      \set@color hack for seminar removed (made unneccessary by enhancements to powersem).%                      Added rudimentary support for panels.%                      Added rudimentary support for navigation elements.%                      Now put a hyper anchor ``firstpage.n'' on the first element of the sequence for page n.%% v0.0.9a Feb 01, 2002 Tidying up the inline documentation.% NEVER RELEASED       When the color package is loaded before texpower, texpower's color management is no longer%                      activated automatically.%                      Definitions of standard colors moved to file tpcolors.cfg.%                      Option `slifonts' is obsolete now. The code is now part of the much more sophisticated package%                      ``tpslifonts''.%                      Now the `colormath' option cooperates with array.sty (and thus colortbl.sty).%                      New option ``nineminutes'' to circumvent a strange behaviour of acrobat/acroread v4.05 and later%                      wrt. page duration.%                      Option `fixcolorstack' now checks also for VTeX.%                      \hidedimmed, \highlightenhanced and \dstep now check for math mode.%                      Now using ifpdf package if available.%% v0.0.9b Nov 13, 2002 colormath adapted to different handling of `equation' by amsmath 2.x.% NEVER RELEASED       Adapted for new version of soul package.%                      Added another patch to colormath for handling array package's ``m'' columns without color change.%                      `Turn on' seminar parameters in panel boxes even before \begin{document}.%                      Added a command \overlays, sibling of \multistep, which prints all steps over each other.%                      Added a command \steponce, sibling of \step, which is active only for one step.%                      Removed a bug in color correction code introduced in v0.0.8g.%% v0.0.9c Apr 29, 2003 A small fix to give \overlays a width.%                      \mklength is now a user command.%                      The \@nobreak switch and \everypar are now saved and restored by \stepwise, hopefully enhancing%                      cooperation with section headings and list environments.%                      Changed \newcommand to \providecommand to allow background.sty to be loaded in parallel (thanks%                      to Hans Fr. Nordhaug for the original patch).\NeedsTeXFormat{LaTeX2e}\ProvidesPackage%{texpower}%[2003/04/29 v0.0.9c Create Dynamic Presentations with LaTeX.]%=======================================================================================================================% We need the programming tools provided by these packages.\RequirePackage{ifthen}\RequirePackage{calc}\RequirePackage{keyval}%=======================================================================================================================% Options and general setup.%-----------------------------------------------------------------------------------------------------------------------% General options.% The option verbose turns on some automatic messages.\newboolean{verbose@TP}\DeclareOption{verbose}{\setboolean{verbose@TP}{true}}% The (global) option display is respected and turns on the `dynamic' features.\provideboolean{display}\DeclareOption{display}{\setboolean{display}{true}}% The option printout turns off the `dynamic' features. Can be used to undo a default setting of display.\DeclareOption{printout}{\setboolean{display}{false}}\ifthenelse{\boolean{display}}{\PackageInfo{texpower}{Producing display version. Dynamic features activated.}}{\PackageInfo{texpower}{Producing printout version. Dynamic features inactive.}}% The option fixcolorstack switches on a `color stack correction' method which undoes damage to the driver's color stack% when ``color push'' and ``color pop'' specials are duplicated.\newboolean{fixcolorstack@TP}\DeclareOption{fixcolorstack}{\setboolean{fixcolorstack@TP}{true}}% The option nineminutes sets the page duration of every single page to a high value (of about nine minutes; this seems% to be a hardcoded upper limit in acrobat 5; see below). This way, a setting in acrobat reader's fullscreen dialogue% is masked. Otherwise, pages without an explicit page duration setting don't get any page duration setting at all, so% they will follow the dialogue setting.\newboolean{nineminutes@TP}\DeclareOption{nineminutes}{\setboolean{nineminutes@TP}{true}}%-----------------------------------------------------------------------------------------------------------------------% Options for setting the base font.% The option sans makes sans serif the standard Text font.\newboolean{sans@TP}\DeclareOption{sans}{\setboolean{sans@TP}{true}}% The option slifonts makes L. Lamports ``slifonts'' the standard text and math fonts.\newboolean{slifonts@TP}\DeclareOption{slifonts}{\setboolean{slifonts@TP}{true}}%-----------------------------------------------------------------------------------------------------------------------% Color options.% The following switch indicates whether color management should be turned on at all.\newboolean{TPcolor}%                                   Are we using colors at all?% The option coloremph makes \em and \emph switch the text color instead of the font shape.\newboolean{coloremph@TP}\DeclareOption{coloremph}{\setboolean{TPcolor}{true}\setboolean{coloremph@TP}{true}}% The option colormath makes math formulae be color highlighted.\newboolean{colormath@TP}\DeclareOption{colormath}{\setboolean{TPcolor}{true}\setboolean{colormath@TP}{true}}% The option colorhighlight makes highlighting commands use colors.\newboolean{colorhighlight@TP}\DeclareOption{colorhighlight}{\setboolean{TPcolor}{true}\setboolean{colorhighlight@TP}{true}}% The option whitebackground selects standard colors for white backgrounds.\newboolean{whitebackground@TP}\setboolean{whitebackground@TP}{true}% This is the default.\DeclareOption{whitebackground}{\setboolean{TPcolor}{true}\setboolean{whitebackground@TP}{true}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -