summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fncylab
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-14 03:00:50 +0000
committerNorbert Preining <norbert@preining.info>2019-09-14 03:00:50 +0000
commit0eea86bf18826522b3686f54fc3afb8ddc31e62a (patch)
tree297ca130d9a87803b835596c3a194841045cce43 /macros/latex/contrib/fncylab
parent215532ea28200f7e90dd8339cf62a8d6dc746bc6 (diff)
CTAN sync 201909140300
Diffstat (limited to 'macros/latex/contrib/fncylab')
-rw-r--r--macros/latex/contrib/fncylab/README.md6
-rw-r--r--macros/latex/contrib/fncylab/fncylab.pdfbin210727 -> 204325 bytes
-rw-r--r--macros/latex/contrib/fncylab/fncylab.sty15
-rw-r--r--macros/latex/contrib/fncylab/fncylab.tex30
4 files changed, 45 insertions, 6 deletions
diff --git a/macros/latex/contrib/fncylab/README.md b/macros/latex/contrib/fncylab/README.md
new file mode 100644
index 0000000000..35efe448c8
--- /dev/null
+++ b/macros/latex/contrib/fncylab/README.md
@@ -0,0 +1,6 @@
+# fncylab
+Alter the format of \label references
+
+Since the 2019 LaTeX release the functionality of this package is
+included in the LaTeX kernel so this package is only necessary on old
+installations.
diff --git a/macros/latex/contrib/fncylab/fncylab.pdf b/macros/latex/contrib/fncylab/fncylab.pdf
index 93d495f05f..4e074bbaf3 100644
--- a/macros/latex/contrib/fncylab/fncylab.pdf
+++ b/macros/latex/contrib/fncylab/fncylab.pdf
Binary files differ
diff --git a/macros/latex/contrib/fncylab/fncylab.sty b/macros/latex/contrib/fncylab/fncylab.sty
index b28439bcec..17c086da16 100644
--- a/macros/latex/contrib/fncylab/fncylab.sty
+++ b/macros/latex/contrib/fncylab/fncylab.sty
@@ -1,5 +1,6 @@
-% FNCYLAB.STY v1.0
+% FNCYLAB.STY v1.1
% Copyright 2000,2003 Robin Fairbairns (robin.fairbairns@cl.cam.ac.uk)
+% Copyright 2019 LaTeX Team
%
% This program can redistributed and/or modified under the terms
% of the LaTeX Project Public License; either version 1.2 of the
@@ -41,6 +42,12 @@
% which will typeset as
% ... Section 3 shows us that ...
+% as 2019 the modification (and \labelformat and \Ref) has been added
+% to the LaTeX kernel, so there is nothing to do for this package any more
+% unless it is run using an older kernel.
+
+\ifx\labelformat\@undefined % if defined we assume a newer kernel
+
% this check and redefinition is suggested in the latex source
% (ltxref.dtx)
\CheckCommand*\refstepcounter[1]{\stepcounter{#1}%
@@ -57,5 +64,11 @@
\DeclareRobustCommand\Ref[1]{\protected@edef\@tempa{\ref{#1}}%
\expandafter\MakeUppercase\@tempa
}
+\else
+\PackageWarningNoLine{fncylab}{%
+fncylab is not required with releases after 2019.\MessageBreak
+All its functionality is now in the LaTeX kernel}
+
+\fi
\endinput
diff --git a/macros/latex/contrib/fncylab/fncylab.tex b/macros/latex/contrib/fncylab/fncylab.tex
index 1faab4c28f..271cc3029c 100644
--- a/macros/latex/contrib/fncylab/fncylab.tex
+++ b/macros/latex/contrib/fncylab/fncylab.tex
@@ -1,16 +1,36 @@
\documentclass[a4paper]{article}
\usepackage[a4paper]{geometry}
-\usepackage{miscdoc}
-\usepackage[scaled=0.85]{luximono}
+
+%\usepackage{miscdoc} % no idea where that package is (maybe just on Robin's home machine)
+%
+% so go manual ...
+
+\newcommand\Package[1]{\texttt{#1}}
+\newcommand\cs[1]{\texttt{\textbackslash#1}}
+\newcommand\meta[1]{$\langle$\textnormal{\itshape#1}$\rangle$}
+\newcommand\marg[1]{\texttt{\{\meta{#1}\}}}
+
+\usepackage[T1]{fontenc} % needed for \textbackslash
+
+%\usepackage[scaled=0.85]{luximono}
+
+\def\labelformat{} \usepackage{fncylab} % testing
+
\begin{document}
\title{The \Package{fncylab} package}
\author{Robin Fairbairns\thanks{Email:
- \emph{robin.fairbairns@cl.cam.ac.uk}}}
-\date{2003-08-13, version 1.0}
+ \emph{robin.fairbairns@cl.cam.ac.uk} --- no longer active}}
+\date{2019-08-23, version 1.1}
\maketitle
+As of 2019 the \LaTeX{} kernel already contains these extra commands
+and the modification to \cs{refstepcounter}. So on nevery kernels
+this package is no longer necessary and will silently exit.
+
+\section{Introduction}
+
The package provides support for arbitrary structuring of the way
-label references look. The command \cmdinvoke*{labelformat}{ctr}{defn}
+label references look. The command \cs{labelformat}\marg{ctr}\marg{defn}
specifies the structure of a label:
\begin{description}
\item[\emph{\texttt{ctr}}] the counter that will define the label