summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ltxtools/ltxtools.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ltxtools/ltxtools.sty')
-rw-r--r--macros/latex/contrib/ltxtools/ltxtools.sty71
1 files changed, 71 insertions, 0 deletions
diff --git a/macros/latex/contrib/ltxtools/ltxtools.sty b/macros/latex/contrib/ltxtools/ltxtools.sty
new file mode 100644
index 0000000000..d0ffcb0b3a
--- /dev/null
+++ b/macros/latex/contrib/ltxtools/ltxtools.sty
@@ -0,0 +1,71 @@
+%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
+% %
+% This is file 'ltxtools.sty', version 0.0.1a, December 2011. %
+% %
+% This package and accompanying files 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. %
+% %
+% The LPPL maintenance status of this software is 'author-maintained'. %
+% %
+% This software is provided 'as it is', without warranty of any kind, %
+% either expressed or implied, including, but not limited to, the %
+% implied warranties of merchantability and fitness for a particular %
+% purpose. %
+% %
+% Copyright (c) 2011 Ahmed Musa (amusa22@gmail.com). %
+% %
+%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
+
+\@ifpackageloaded{catoptions}{%
+ \@ifpackagelater{catoptions}{2011/12/12}{}{%
+ \@latex@error{Loaded version of catoptions package is
+ not current}\@ehc
+ }%
+}{%
+ \RequirePackage{catoptions}[2011/12/12]%
+}
+\UseNormalCatcodes
+\StyleFilePurpose{A collection of (La)TeX utilities (AM)}
+\StyleFileRCSInfo
+$Id: ltxtools.sty,v 0.0.1a 2011/12/12 09:00:00 Ahmed Musa Exp $
+\ProvidesPackage{ltxtools}[\StyleFileInfo]
+\NeedsTeXFormat{LaTeX2e}[2011/06/27]
+\SetStyleFileMessages[LTS@]{info}{warn}{err}
+\robust@def*\LTS@verbosewarn#1{\ifLTS@verbose\LTS@warn{#1}\fi}
+\robust@def*\LTS@verboseinfo#1{\ifLTS@verbose\LTS@info{#1}\fi}
+\cptloadpackages{%
+ ltxtools-base||2011/12/12;
+}
+\robust@def*\LTS@inputmodule{\LTS@testopt\LTS@inp@tmodule{}}
+\robust@def*\LTS@inp@tmodule[#1]#2{%
+ \AfterProcessOptions{\RequirePackage[#1]{ltxtools-#2}}%
+}
+\robust@def*\ltsdeclaremodules#1{%
+ \XDeclareCommandOptions{#1}(LTS@){%
+ \cptexpandbracenext{\LTS@inputmodule[##1]}\cpt@curropt
+ }%
+}
+\ltsdeclaremodules{base,environ,doc,index,incluput,review,trace}
+\XDeclareBiBooleanOptions{draft,final}[true](LTS@){}{}
+\XDeclareBooleanOption{verbose}[true](LTS@){%
+ \ifLTS@verbose\cpt@verbosetrue\else\cpt@verbosefalse\fi
+}
+\XDeclareSwitchOption{tracepatches}[true](LTS@){%
+ \ifdefswitchTF{LTS@tracepatches}{%
+ \LTS@info{'tracepatches' set true\on@line}%
+ }{}%
+}
+\XDeclareBooleanOption{fp}[true](LTS@){%
+ \ifboolTF{LTS@fp}{%
+ \AfterProcessOptions{\RequirePackage[nomessages]{fp}}%
+ }{}%
+}
+\XDeclareOption*{\LTS@warn{Unknown option '\CurrentOption' ignored}}
+\XExecuteOptions{verbose=false,final=true,tracepatches=false}
+\XProcessOptions*\relax
+
+\endinput