texlive[45245] Master: fetchcls (8sep17)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 8 23:22:20 CEST 2017


Revision: 45245
          http://tug.org/svn/texlive?view=revision&revision=45245
Author:   karl
Date:     2017-09-08 23:22:20 +0200 (Fri, 08 Sep 2017)
Log Message:
-----------
fetchcls (8sep17)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/fetchcls/
    trunk/Master/texmf-dist/doc/latex/fetchcls/README.md
    trunk/Master/texmf-dist/doc/latex/fetchcls/fetchcls.pdf
    trunk/Master/texmf-dist/source/latex/fetchcls/
    trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.dtx
    trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.ins
    trunk/Master/texmf-dist/tex/latex/fetchcls/
    trunk/Master/texmf-dist/tex/latex/fetchcls/fetchcls.sty
    trunk/Master/tlpkg/tlpsrc/fetchcls.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/fetchcls/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fetchcls/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/fetchcls/README.md	2017-09-08 21:22:20 UTC (rev 45245)
@@ -0,0 +1,35 @@
+# The `fetchcls` package
+
+With standard LaTeX you are able to check for the class in use
+invoking the kernel command `\@ifclassloaded`.
+However, doing so you can't get the explicit class name
+(unless you want to loop over every possible class name
+until `\@ifclassloaded` returns true -- don't do that!)
+With the present package you can get the name with significantly less effort.
+Just load the package as usual:
+
+    \usepackage{fetchcls}
+    
+Then, the control sequence `\classname` will hold the name of the current class.
+
+This is version 1.0 of the package.
+
+Copyright (C) 2015 by Ruben Giannotti
+
+---
+
+This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) 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.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Ruben Giannotti.
+
+This work consists of the files
+  fetchcls.dtx
+  fetchcls.ins
+and the derived file fetchcls.sty.
+
+To install the package
+
+ 1. run `latex fetchcls.ins`
+ 2. move 'fetchcls.sty' to locations where LaTeX will find it


Property changes on: trunk/Master/texmf-dist/doc/latex/fetchcls/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/fetchcls/fetchcls.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/fetchcls/fetchcls.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fetchcls/fetchcls.pdf	2017-09-08 21:21:28 UTC (rev 45244)
+++ trunk/Master/texmf-dist/doc/latex/fetchcls/fetchcls.pdf	2017-09-08 21:22:20 UTC (rev 45245)

Property changes on: trunk/Master/texmf-dist/doc/latex/fetchcls/fetchcls.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.dtx	2017-09-08 21:22:20 UTC (rev 45245)
@@ -0,0 +1,128 @@
+% \iffalse meta-comment
+%
+% Copyright (C) 2015 by Ruben Giannotti 
+% <ruben dot giannotti at gmx dot net>
+% -------------------------------------------------------
+% 
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) 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.
+%
+% This work has the LPPL maintenance status `maintained'.
+% 
+% The Current Maintainer of this work is Ruben Giannotti.
+%
+% This work consists of the files
+%   fetchcls.dtx 
+%   fetchcls.ins
+% and the derived file fetchcls.sty.
+%
+% \fi
+%
+% \iffalse
+%<*driver>
+\ProvidesFile{fetchcls.dtx}
+%</driver>
+%<package>\NeedsTeXFormat{LaTeX2e}[2008/04/05]
+%<package>\ProvidesPackage{fetchcls}
+%<*package>
+    [2015/08/11 v1.0 Fetch the class name (RG)]
+%</package>
+%
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{parskip}
+\setlength\parindent{0pt}
+\providecommand*\pkg{}
+\providecommand*\url{}
+\providecommand*\email{}
+\renewcommand\pkg{\textsf}
+\renewcommand\url{\texttt}
+\renewcommand\email{\texttt}
+\begin{document}
+  \DocInput{fetchcls.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \CheckSum{13}
+%
+% \CharacterTable
+%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%   Digits        \0\1\2\3\4\5\6\7\8\9
+%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%   Dollar        \$     Percent       \%     Ampersand     \&
+%   Acute accent  \'     Left paren    \(     Right paren   \)
+%   Asterisk      \*     Plus          \+     Comma         \,
+%   Minus         \-     Point         \.     Solidus       \/
+%   Colon         \:     Semicolon     \;     Less than     \<
+%   Equals        \=     Greater than  \>     Question mark \?
+%   Commercial at \@     Left bracket  \[     Backslash     \\
+%   Right bracket \]     Circumflex    \^     Underscore    \_
+%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%   Right brace   \}     Tilde         \~}
+%
+%
+% \changes{v1.0}{2015/08/11}{Initial version}
+%
+% \GetFileInfo{fetchcls.dtx}
+%
+% \DoNotIndex{\newcommand,\newenvironment,\!,\@empty,\@gobble,\@gobbletwo}
+% \DoNotIndex{\@ifpackageloaded,\@ifpackagewith,\@ifundefined,\@namedef}
+% \DoNotIndex{\@nil,\@onlypreamble,\@tempa,\@tempb,\@tempswafalse,\def}
+% \DoNotIndex{\@tempswatrue,\^,\-,\active,\begingroup,\catcode,\@car,\@cdr}
+% \DoNotIndex{\edef,\else,\endgroup,\endinput,\expandafter,\fi,\if}
+% \DoNotIndex{\if at tempswa,\ifcase,\ifnum,\ifx,\lccode,\let,\lowercase}
+% \DoNotIndex{\MessageBreak,\next,\number,\numexpr,\or,\PackageError}
+% \DoNotIndex{\PackageWarning,\PackageWarningNoLine,\strip at prefix,\@@end}
+% \DoNotIndex{\relax,\space,\string,\DeclareOption,\ProcessOptions}
+% \DoNotIndex{\meaning,\ifdefined,\csname,\chardef,\endcsname,\protect}
+% \DoNotIndex{\input,\RequirePackage,\global,\ifcsname,\makeatother}
+% \DoNotIndex{\@makeother,\the,\toks@}
+%
+% \title{The \pkg{fetchcls} package\thanks{This document
+%   corresponds to \pkg{fetchcls}~\fileversion, dated \filedate.}}
+% \author{Ruben Giannotti\thanks{\email{ruben dot giannotti at gmx dot net}}}
+% \date{August, 11 2015}
+%
+% \maketitle
+%
+% With standard \LaTeX\ you are able to check for the class in use
+% invoking the kernel command \cs{@ifclassloaded}.
+% However, doing so you can't get the explicit class name
+% (unless you want to loop over every possible class name
+% until \cs{@ifclassloaded} returns true -- don't do that!)
+% With the present package you can get the name with significantly less effort.
+% Just load the package as usual:
+% \begin{flushleft}
+%   \cs{usepackage}\{fetchcls\}
+% \end{flushleft}
+% Then, the control sequence \cs{classname} will hold the name of the current class.
+%
+% \StopEventually{}
+%
+% Let's have a brief look on how the two code lines of this package tackle this task.
+%
+% We will use the \cs{@filelist} to retrive the class name 
+% as it contains the class name as its first entry.
+% Since the class is captured with its extension we define a macro
+% with the explicit class extension of \LaTeX\ as delimiter.
+% Then the rest will be read until the end and thrown away.
+% Everything in front of the delimiter will be written into \cs{classname}.
+%    \begin{macrocode}
+\def\f at tchcls#1.cls#2 {\def\classname{#1}}
+%    \end{macrocode}
+% The next and alredy last step consists in
+% apllying \cs{f at tchcls} to the \cs{@filelist}
+% while ensuring that it gets expanded before \cs{f at tchcls} reads it.
+%    \begin{macrocode}
+\begingroup\edef\x{\endgroup\noexpand\f at tchcls\@filelist\space}\x
+%    \end{macrocode}
+%
+% \Finale
+\endinput


Property changes on: trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/fetchcls/fetchcls.ins	2017-09-08 21:22:20 UTC (rev 45245)
@@ -0,0 +1,74 @@
+% Copyright (C) 2015 by Ruben Giannotti
+% <ruben dot giannotti at gmx dot net>
+% -------------------------------------------------------
+% 
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) 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.
+%
+% This work has the LPPL maintenance status `maintained'.
+% 
+% The Current Maintainer of this work is Ruben Giannotti.
+%
+% This work consists of the files
+%   fetchcls.dtx 
+%   fetchcls.ins
+% and the derived file fetchcls.sty.
+
+\input docstrip.tex
+\keepsilent
+
+\usedir{tex/latex/fetchcls}
+
+\preamble
+
+This is a generated file.
+
+Copyright (C) 2015 by Ruben Giannotti
+<ruben dot giannotti at gmx dot net>
+-------------------------------------------------------
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3c of this license or (at your option) 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.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Enrico Gregorio.
+
+This work consists of the files
+  fetchcls.dtx 
+  fetchcls.ins
+and the derived file fetchcls.sty.
+
+\endpreamble
+
+\generate{\file{fetchcls.sty}{\from{fetchcls.dtx}{package}}}
+
+\def\tmpa{plain}
+\ifx\tmpa\fmtname\endgroup\expandafter\bye\fi
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{*                                                           *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* file into a directory searched by TeX:                    *}
+\Msg{*                                                           *}
+\Msg{*     fetchcls.sty                                          *}
+\Msg{*                                                           *}
+\Msg{* To produce the documentation run the file                 *}
+\Msg{* fetchcls.dtx through LaTeX.                               *}
+\Msg{*                                                           *}
+\Msg{* Happy TeXing!                                             *}
+\Msg{*                                                           *}
+\Msg{*************************************************************}
+
+\endbatchfile

Added: trunk/Master/texmf-dist/tex/latex/fetchcls/fetchcls.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fetchcls/fetchcls.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/fetchcls/fetchcls.sty	2017-09-08 21:22:20 UTC (rev 45245)
@@ -0,0 +1,39 @@
+%%
+%% This is file `fetchcls.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fetchcls.dtx  (with options: `package')
+%% 
+%% This is a generated file.
+%% 
+%% Copyright (C) 2015 by Ruben Giannotti
+%% <ruben dot giannotti at gmx dot net>
+%% -------------------------------------------------------
+%% 
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) 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.
+%% 
+%% This work has the LPPL maintenance status `maintained'.
+%% 
+%% The Current Maintainer of this work is Enrico Gregorio.
+%% 
+%% This work consists of the files
+%%   fetchcls.dtx
+%%   fetchcls.ins
+%% and the derived file fetchcls.sty.
+%% 
+\NeedsTeXFormat{LaTeX2e}[2008/04/05]
+\ProvidesPackage{fetchcls}
+    [2015/08/11 v1.0 Fetch the class name (RG)]
+\def\f at tchcls#1.cls#2 {\def\classname{#1}}
+\begingroup\edef\x{\endgroup\noexpand\f at tchcls\@filelist\space}\x
+\endinput
+%%
+%% End of file `fetchcls.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/fetchcls/fetchcls.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-09-08 21:21:28 UTC (rev 45244)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-09-08 21:22:20 UTC (rev 45245)
@@ -256,7 +256,8 @@
     fancyref fancyslides fancytabs fancytooltips fancyvrb fandol
     FAQ-en fast-diagram fbb fbithesis fbs
     fc fcavtex fcltxdoc fcolumn fdsymbol featpost fei fenixpar
-    fetamont feupphdteses feyn feynmf feynmp-auto ffslides fge fgruler
+    fetamont fetchcls feupphdteses feyn feynmf feynmp-auto
+    ffslides fge fgruler
     fibeamer fifinddo-info fifo-stack fig4latex figbas figbib figflow figsize
     filecontents filecontentsdef filedate filehook fileinfo filemod
     findhyph fink finstrut fira first-latex-doc fitbox fithesis

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2017-09-08 21:21:28 UTC (rev 45244)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2017-09-08 21:22:20 UTC (rev 45245)
@@ -388,6 +388,7 @@
 depend fancytabs
 depend fancytooltips
 depend fcolumn
+depend fetchcls
 depend ffslides
 depend fgruler
 depend fibeamer

Added: trunk/Master/tlpkg/tlpsrc/fetchcls.tlpsrc
===================================================================


More information about the tex-live-commits mailing list