summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/refstyle
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-09-12 18:40:59 +0000
committerKarl Berry <karl@freefriends.org>2006-09-12 18:40:59 +0000
commit456c20e609053864c16be27c145973041b52a359 (patch)
tree38fee1351515b23864cf6816e338b764133d0df6 /Master/texmf-dist/tex/latex/refstyle
parent6ab497ae05df040bd2c38540fbe0b6bcac7e66cb (diff)
refstyle update (8sep06)
git-svn-id: svn://tug.org/texlive/trunk@2111 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/refstyle')
-rw-r--r--Master/texmf-dist/tex/latex/refstyle/refstyle.cfg263
-rw-r--r--Master/texmf-dist/tex/latex/refstyle/refstyle.sty60
-rw-r--r--Master/texmf-dist/tex/latex/refstyle/reftmpl.cfg102
3 files changed, 230 insertions, 195 deletions
diff --git a/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg b/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg
index 79444d69491..2be30920636 100644
--- a/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg
+++ b/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg
@@ -1,29 +1,24 @@
%%
%% This is file `refstyle.cfg',
+%% generated with the docstrip utility.
%%
-%% Configuration file for use with the refstyle package
+%% The original source files were:
%%
-%%
-%% (c) 2003 Danie Els
-%%
-%% This file is distributed under the terms of the LaTeX Project Public
-%% License from CTAN archives in directory macros/latex/base/lppl.txt.
-%% Either version 1.0 or, at your option, any later version.
-%%
-%% This file is completely free and comes without any warranty.
-%%
-%% Send comments and ideas or error reports on the package to
-%% Danie Els <dnjels@sun.ac.za>
-%%
-
-\ProvidesFile{refstyle.cfg}
- [2003/04/23 v0.1 %
- Configuration file for refstyle
- (DNJ Els)]
-
-
-%%--- DEFAULT LANGUAGE OPTIONS -------------------
-
+%% refconfig.dtx (with options: `cfg')
+%%
+%% -------------------------------------------------------------------
+%% Refstyle package to format references
+%% -------------------------------------------------------------------
+%%
+%% This file may be customized to suit specific
+%% user requirements.
+%%
+%% Original by Danie Els <dnjels@sun.ac.za>
+%% -------------------------------------------------------------------
+%%
+\ProvidesFile{refstyle.cfg}[2006/09/07 v0.3
+ Configuration file for refstyle (DNJ Els)]
+%%-- AFRIKAANS ----------------------------------
\newcommand\RSafrikaans{%
\def\RSrngtxt{\space tot~}%
\def\RSlsttxt{\space en~}%
@@ -60,7 +55,44 @@
\def\RSFootntxt{Footnota~}%
\def\RSFootnstxt{Footnotas~}%
}
-
+%%-- DANISH -------------------------------------
+\newcommand\RSdanish{%
+ \def\RSrngtxt{\space til~}%
+ \def\RSlsttxt{\space og~}%
+ \def\RSparttxt{del~}%
+ \def\RSpartstxt{del~}%
+ \def\RSParttxt{Del~}%
+ \def\RSPartstxt{Del~}%
+ \def\RSappendixname{bilag~}% % 'appendiks' is also possible,
+ \def\RSAppendixname{Bilag~}% % but 'bilag' is used in Babel
+ \def\RSappendicesname{bilag~}%
+ \def\RSAppendicesname{Bilag~}%
+ \def\RSchaptername{kapitel~}%
+ \def\RSChaptername{Kapitel~}%
+ \def\RSchaptersname{kapitel~}%
+ \def\RSChaptersname{Kapitel~}%
+ \def\RSsectxt{afsnit~}%
+ \def\RSsecstxt{afsnit~}%
+ \def\RSSectxt{Afsnit~}%
+ \def\RSSecstxt{Afsnit~}%
+ \def\RSeqtxt{ligning~}%
+ \def\RSeqstxt{ligning~}%
+ \def\RSEqtxt{Ligning~}%
+ \def\RSEqstxt{Ligning~}%
+ \def\RSfigtxt{figur~}%
+ \def\RSfigstxt{figur~}%
+ \def\RSFigtxt{Figur~}%
+ \def\RSFigstxt{Figur~}%
+ \def\RStabtxt{tabel~}%
+ \def\RStabstxt{tablel~}%
+ \def\RSTabtxt{Tabel~}%
+ \def\RSTabstxt{Tabel~}%
+ \def\RSfootntxt{fodnote~}%
+ \def\RSfootnstxt{fodnote~}%
+ \def\RSFootntxt{Fodnote~}%
+ \def\RSFootnstxt{Fodnote~}%
+ }
+%%-- ENGLISH ------------------------------------
\newcommand\RSenglish{%
\def\RSrngtxt{\space to~}%
\def\RSlsttxt{\space and~}%
@@ -97,19 +129,137 @@
\def\RSFootntxt{Footnote~}%
\def\RSFootnstxt{Footnotes~}%
}
-\RSenglish% Default
-
-\DeclareLangOpt{afrikaans}{\RSafrikaans}
-\DeclareLangOpt{english}{\RSenglish}
+%%-- GERMAN -------------------------------------
+\newcommand\RSgerman{%
+ \def\RSrngtxt{\space bis~}%
+ \def\RSlsttxt{\space und~}%
+ \def\RSparttxt{Teil~}%
+ \def\RSpartstxt{Teile~}%
+ \def\RSParttxt{Teil~}%
+ \def\RSPartstxt{Teile~}%
+ \def\RSappendixname{Anhang~}%
+ \def\RSAppendixname{Anhang~}%
+ \def\RSappendicesname{Anh\"{a}nge~}%
+ \def\RSAppendicesname{Anh\"{a}nge~}%
+ \def\RSchaptername{Kapitel~}%
+ \def\RSChaptername{Kapitel~}%
+ \def\RSchaptersname{Kapitel~}%
+ \def\RSChaptersname{Kapitel~}%
+ \def\RSsectxt{Abschnitt~}%
+ \def\RSsecstxt{Abschnitt~}%
+ \def\RSSectxt{Abschnitt~}%
+ \def\RSSecstxt{Abschnitt~}%
+ \def\RSeqtxt{Gleichung~}%
+ \def\RSeqstxt{Gleichungen~}%
+ \def\RSEqtxt{Gleichung~}%
+ \def\RSEqstxt{Gleichungen~}%
+ \def\RSfigtxt{Abbildung~}%
+ \def\RSfigstxt{Abbildung~}%
+ \def\RSFigtxt{Abbildung~}%
+ \def\RSFigstxt{Abbildung~}%
+ \def\RStabtxt{Tabelle~}%
+ \def\RStabstxt{Tabellen~}%
+ \def\RSTabtxt{Tabelle~}%
+ \def\RSTabstxt{Tabellen~}%
+ \def\RSfootntxt{Fu\ss note~}%
+ \def\RSfootnstxt{Fu\ss noten~}%
+ \def\RSFootntxt{Fu\ss note~}%
+ \def\RSFootnstxt{Fu\ss noten~}%
+ }
+%%-- NORWEGIAN -------------------------------------
+\newcommand\RSnorwegian{%
+ \def\RSrngtxt{\space til~}%
+ \def\RSlsttxt{\space og~}%
+ \def\RSparttxt{del~}%
+ \def\RSpartstxt{del~}%
+ \def\RSParttxt{Del~}%
+ \def\RSPartstxt{Del~}%
+ \def\RSappendixname{tillegg~}%
+ \def\RSAppendixname{Tillegg~}%
+ \def\RSappendicesname{tillegg~}%
+ \def\RSAppendicesname{Tillegg~}%
+ \def\RSchaptername{kapittel~}%
+ \def\RSChaptername{Kapittel~}%
+ \def\RSchaptersname{kapittel~}%
+ \def\RSChaptersname{Kapittel~}%
+ \def\RSsectxt{avsnitt~}%
+ \def\RSsecstxt{avsnitt~}%
+ \def\RSSectxt{Avsnitt~}%
+ \def\RSSecstxt{Avsnitt~}%
+ \def\RSeqtxt{formel~}%
+ \def\RSeqstxt{formel~}%
+ \def\RSEqtxt{Formel~}%
+ \def\RSEqstxt{Formel~}%
+ \def\RSfigtxt{figur~}%
+ \def\RSfigstxt{figur~}%
+ \def\RSFigtxt{Figur~}%
+ \def\RSFigstxt{Figur~}%
+ \def\RStabtxt{tabell~}%
+ \def\RStabstxt{tabell~}%
+ \def\RSTabtxt{Tabell~}%
+ \def\RSTabstxt{Tabell~}%
+ \def\RSfootntxt{fotnote~}%
+ \def\RSfootnstxt{fotnote~}%
+ \def\RSFootntxt{Fotnote~}%
+ \def\RSFootnstxt{Fotnote~}%
+ }
+%%-- SWEDISH ------------------------------------
+\newcommand\RSswedish{%
+ \def\RSrngtxt{\space till~}%
+ \def\RSlsttxt{\space och~}%
+ \def\RSparttxt{del~}%
+ \def\RSpartstxt{del~}%
+ \def\RSParttxt{Del~}%
+ \def\RSPartstxt{Del~}%
+ \def\RSappendixname{appendix~}%
+ \def\RSAppendixname{appendix~}%
+ \def\RSappendicesname{Appendix~}%
+ \def\RSAppendicesname{Appendix~}%
+ \def\RSchaptername{kapitel~}%
+ \def\RSChaptername{kapitel~}%
+ \def\RSchaptersname{Kapitel~}%
+ \def\RSChaptersname{Kapitel~}%
+ \def\RSsectxt{sektion~}%
+ \def\RSsecstxt{sektion~}%
+ \def\RSSectxt{Sektion~}%
+ \def\RSSecstxt{Sektion~}%
+ \def\RSeqtxt{ekvation~}%
+ \def\RSeqstxt{ekvation~}%
+ \def\RSEqtxt{Ekvation~}%
+ \def\RSEqstxt{Ekvation~}%
+ \def\RSfigtxt{figur~}%
+ \def\RSfigstxt{figur~}%
+ \def\RSFigtxt{Figur~}%
+ \def\RSFigstxt{Figur~}%
+ \def\RStabtxt{tabell~}%
+ \def\RStabstxt{tabell~}%
+ \def\RSTabtxt{Tabell~}%
+ \def\RSTabstxt{Tabell~}%
+ \def\RSfootntxt{fotnot~}%
+ \def\RSfootnstxt{fotnot~}%
+ \def\RSFootntxt{Fotnot~}%
+ \def\RSFootnstxt{Fotnot~}%
+}
+%%-- OPTIONS ------------------------------------
+\RSenglish% Default
+\DeclareLangOpt{afrikaans}{\RSafrikaans}
+\DeclareLangOpt{danish}{\RSdanish}
+\DeclareLangOpt{english}{\RSenglish}
\DeclareLangOpt{USenglish}{\RSenglish}
-\DeclareLangOpt{american}{\RSenglish}
-\DeclareLangOpt{UKenglish}{\RSenglish}
+\DeclareLangOpt{american}{\RSenglish}
+\DeclareLangOpt{UKenglish}{\RSenglish}
\DeclareLangOpt{british}{\RSenglish}
\DeclareLangOpt{canadian}{\RSenglish}
-
-
-%%--- TEMPLATE FOR PARTS -------------------------
-
+\DeclareLangOpt{german}{\RSgerman}
+\DeclareLangOpt{ngerman}{\RSgerman}
+\DeclareLangOpt{austrian}{\RSgerman}
+\DeclareLangOpt{naustrian}{\RSgerman}
+\DeclareLangOpt{norwegian}{\RSnorwegian}
+\DeclareLangOpt{nynorsk}{\RSnorwegian}
+\DeclareLangOpt{bokmal}{\RSnorwegian}% Not in babel yet
+\DeclareLangOpt{norsk}{\RSnorwegian}
+\DeclareLangOpt{swedish}{\RSswedish}
+%%-- TEMPLATE FOR PARTS -------------------------
\newref{part}{%
name = \RSparttxt,
names = \RSpartstxt,
@@ -117,19 +267,16 @@
Names = \RSPartstxt,
rngtxt = \RSrngtxt,
lsttxt = \RSlsttxt}
-
-%%--- TEMPLATE FOR CHAPTERS & APPENDIXES --------
+%%-- TEMPLATE FOR CHAPTERS & APPENDIXES ---------
\providecommand*{\p@chapter}{}
\AtBeginDocument{%
-\RS@ifundefined{chapter}{}{%
- \RS@ifundefined{@chapapp}%
- {\renewcommand*{\p@chapter}{\string\chpname{\chaptername}}}% AMS
- {\renewcommand*{\p@chapter}{\string\chpname{\@chapapp}}}% Normal
- }%
-}
-
+ \RS@ifundefined{chapter}{}{%
+ \RS@ifundefined{@chapapp}%
+ {\renewcommand*{\p@chapter}{\string\chpname{\chaptername}}}%AMS
+ {\renewcommand*{\p@chapter}{\string\chpname{\@chapapp}}}% Normal
+ }%
+ }
\newcommand*{\chpname}[1]{}
-
\newcommand*{\RS@chpname}[1]{%
\ifRSnameon
\edef\RS@tmpa{#1}%
@@ -137,7 +284,7 @@
\ifx\RS@tmpa\RS@tmpb\relax%
\ifRSplural
\ifRScapname \RSAppendicesname \else \RSappendicesname \fi
- \else
+ \else
\ifRScapname \RSAppendixname \else \RSappendixname \fi
\fi
\else
@@ -148,14 +295,11 @@
\fi
\fi
\fi}
-
\newref{chap}{%
refcmd = {{\let\chpname=\RS@chpname\ref{#1}}},
rngtxt = \RSrngtxt,
lsttxt = \RSlsttxt}
-
-%%--- TEMPLATE FOR SECTIONS ---------------------
-
+%%-- TEMPLATE FOR SECTIONS ----------------------
\newref{sec}{%
name = \RSsectxt,
names = \RSsecstxt,
@@ -164,15 +308,12 @@
refcmd = {\S\ref{#1}},
rngtxt = \RSrngtxt,
lsttxt = \RSlsttxt}
-
-%%--- TEMPLATE FOR EQUATIONS --------------------
+%%-- TEMPLATE FOR EQUATIONS ---------------------
\newcommand*{\RSeqrefform}[1]{\textup{(\ref{#1})}}
-
\@ifpackageloaded{amsmath}%
{\let\AMSeqref\eqref
\let\eqref\relax}%
{}
-
\newref{eq}{%
name = \RSeqtxt,
names = \RSeqstxt,
@@ -181,10 +322,8 @@
refcmd = \RSeqrefform{#1},
rngtxt = \RSrngtxt,
lsttxt = \RSlsttxt}
-
\let\RSeqref\eqref
\let\eqref\relax
-
\AtBeginDocument{%
\@ifpackageloaded{amsmath}%
{\RS@ifundefined{AMSeqref}{\let\AMSeqref\eqref}{}%
@@ -192,11 +331,7 @@
{}%
\let\eqref=\RSeqref
}
-
-
-
-%%--- TEMPLATE FOR FIGURES ----------------------
-
+%%-- TEMPLATE FOR FIGURES -----------------------
\newref{fig}{%
name = \RSfigtxt,
names = \RSfigstxt,
@@ -204,9 +339,7 @@
Names = \RSFigstxt,
rngtxt = \RSrngtxt,
lsttxt = \RSlsttxt}
-
-%%--- TEMPLATE FOR TABLES -----------------------
-
+%%-- TEMPLATE FOR TABLES ------------------------
\newref{tab}{%
name = \RStabtxt,
names = \RStabstxt,
@@ -214,15 +347,12 @@
Names = \RSTabstxt,
rngtxt = \RSrngtxt,
lsttxt = \RSlsttxt}
-
-%%--- TEMPLATE FOR FOOTNOTES --------------------
-
+%%-- TEMPLATE FOR FOOTNOTES ---------------------
\newcommand{\RSfnmark}[1]{%
\begingroup
\unrestored@protected@xdef\@thefnmark{\ref{#1}}%
\endgroup
\@footnotemark}
-
\newref{fn}{%
name = \RSfootntxt,
names = \RSfootnstxt,
@@ -231,7 +361,6 @@
refcmd = {\ifRSstar\RSfnmark{#1}\else(\ref{#1})\fi},
rngtxt = \RSrngtxt,
lsttxt = \RSlsttxt}
-
\endinput
%%
%% End of file `refstyle.cfg'.
diff --git a/Master/texmf-dist/tex/latex/refstyle/refstyle.sty b/Master/texmf-dist/tex/latex/refstyle/refstyle.sty
index cba88645c90..69391d53256 100644
--- a/Master/texmf-dist/tex/latex/refstyle/refstyle.sty
+++ b/Master/texmf-dist/tex/latex/refstyle/refstyle.sty
@@ -4,29 +4,42 @@
%%
%% The original source files were:
%%
-%% refstyle.dtx (with options: `package')
+%% refstyle.dtx (with options: `pkg')
%%
-%% This is a generated file.
+%% -------------------------------------------------------------------
+%% Refstyle package to format references
+%% -------------------------------------------------------------------
%%
-%% Copyright (C) 2003 by Danie Els <dnjels@sun.ac.za>
+%% Author: Danie Els
%%
-%% This file may be distributed and/or modified under the conditions of
-%% the LaTeX Project Public License, either version 1.2 of this license
-%% or (at your option) any later version. The latest version of this
-%% license is in:
+%% Copyright (C) 2002--2006 Danie Els
+%% All rights reserved.
%%
-%% http://www.latex-project.org/lppl.txt
+%% This work may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.3 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
+%% 2003/12/01 or later.
%%
-%% and version 1.2 or later is part of all distributions of LaTeX version
-%% 1999/12/01 or later.
+%% This work has the LPPL maintenance status "maintained".
%%
-
+%% This Current Maintainer of this work is Danie Els (dnjels@sun.ac.za)
+%% -------------------------------------------------------------------
+%%
+\newcommand*{\RefstyleFileDate}{2006/09/09}
+\newcommand*{\RefstyleFileVersion}{v0.3}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{refstyle}
- [2003/04/23 v0.1 Reference formatting (DNJ Els)]
+\ProvidesPackage{refstyle}[\RefstyleFileDate\space
+ \RefstyleFileVersion\space
+ Reference formatting (DNJ Els)]
\newcommand*{\RS@pkgname}{refstyle}
\RequirePackage{keyval}
+\def\RS@setkeys#1#2{%
+ \def\KV@prefix{KV@#1@}%
+ \let\@tempc\relax
+ \KV@do#2,\relax,}
\@ifundefined{vref@space}{\let\vref@space\space}{}
\newcommand*{\RS@namelet}[1]{\expandafter\let\csname #1\endcsname}
\newcommand*{\RS@nameuse}[1]{\csname #1\endcsname}
@@ -100,14 +113,14 @@
\define@key{RS@#1}{refcmd}[\ref{####1}]{\RS@namedef{RS@#1@rcmd}####1{##1}}%
\define@key{RS@#1}{xr}[]{\RS@namedef{RS@#1@xr}{##1}}%
\define@key{RS@#1}{vref}[true]{\RS@namedef{RS@#1vref}{##1}}%
- \setkeys{RS@#1}{key,
+ \RS@setkeys{RS@#1}{key,
s=false,
name,names,Name,Names,
rngtxt,lsttxt,
refcmd,
xr,
vref=false}%
- \setkeys{RS@#1}{#2}%
+ \RS@setkeys{RS@#1}{#2}%
\RS@buildref{#1}%
}
\newcommand*{\RS@clearref}[1]{%
@@ -130,7 +143,7 @@
\newcommand*{\RS@buildref}[1]{%
\RS@firstcap#1\@nil
\RS@testednamedef{#1key}{\RS@nameuse{RS@#1@key}}
- \RS@testedrobustnamedef{#1label}{\RS@cmd{label}{#1}}
+ \RS@testednamedef{#1label}##1{\label{\RS@nameuse{RS@#1@key}##1}}
\RS@testedrobustnamedef{#1ref}{\RScapnamefalse\RS@cmd{ref}{#1}}
\RS@testedrobustnamedef{\RS@cap ref}{\RScapnametrue\RS@cmd{ref}{#1}}
\RS@testedrobustnamedef{#1rangeref}{\RScapnamefalse\RS@cmd{rangeref}{#1}}
@@ -146,7 +159,7 @@
{\RS@nameuse{RS@#1}{#2}[]}}
\def\RS@ref#1[#2]#3{%
\begingroup
- \setkeys{RS@#1}{#2}%
+ \RS@setkeys{RS@#1}{#2}%
\edef\RS@tmpa{\zap@space#3 \@empty}%
\edef\RS@tmpa{\noexpand\RS@@ref{#1} \RS@tmpa,\relax\noexpand\@eolst}%
\RS@tmpa%
@@ -177,7 +190,7 @@
\fi}
\def\RS@rangeref#1[#2]#3#4{%
\begingroup
- \setkeys{RS@#1}{#2}%
+ \RS@setkeys{RS@#1}{#2}%
\RSpluraltrue%
\RS@makename{#1}%
\RS@makeref{#1}{#3}%
@@ -188,17 +201,12 @@
\endgroup}
\def\RS@pageref#1[#2]#3{%
\begingroup%
- \setkeys{RS@#1}{#2}%
+ \RS@setkeys{RS@#1}{#2}%
\RS@ifvref{#1}%
{\mbox{}\vpageref*{\RS@lbl{#1}{#3}}}%
{\reftextfaraway{\RS@lbl{#1}{#3}}}%
{\pageref{\RS@lbl{#1}{#3}}}%
\endgroup}
-\def\RS@label#1[#2]#3{%
- \begingroup%
- \setkeys{RS@#1}{#2}%
- \label{\RS@nameuse{RS@#1@key}#3}%
- \endgroup}
\newcommand*{\RS@true}{true}
\newcommand*{\RS@false}{false}
\newcommand*{\RS@far}{far}
@@ -263,7 +271,7 @@
{The vref option used, but varioref.sty not loaded.}%
{Load varioref.sty}}
}
-\def\RS@addto#1#2{%
+\def\RSaddto#1#2{%
#2%
\@temptokena{#2}%
\ifx#1\relax
@@ -282,7 +290,7 @@
{\PackageError{\RS@pkgname}%
{Unknown definitions \@backslashchar\RS@tempa\MessageBreak
for language option `#1'}{}}%
- {\DeclareOption{#1}{\expandafter\RS@addto\csname extras#1\endcsname #2}}%
+ {\DeclareOption{#1}{\expandafter\RSaddto\csname extras#1\endcsname #2}}%
}
\newcommand*{\RS@cfgfile}{refstyle.cfg}
\@ifpackagewith{\@currname}{noconfig}
diff --git a/Master/texmf-dist/tex/latex/refstyle/reftmpl.cfg b/Master/texmf-dist/tex/latex/refstyle/reftmpl.cfg
deleted file mode 100644
index af0a773f723..00000000000
--- a/Master/texmf-dist/tex/latex/refstyle/reftmpl.cfg
+++ /dev/null
@@ -1,102 +0,0 @@
-%%
-%% This is file `reftmpl.cfg',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% refstyle.dtx (with options: `tmpl')
-%%
-%% This is a generated file.
-%%
-%% This is an example of a template configuration file
-%% for the refstyle package. The user may redefine it
-%% to suit his or her own needs.
-%%
-
-
-%%--- TEMPLATE FOR PARTS -------------------------
- \newref{part}{%
- name = {Part~},
- names = {Parts~},
- Name = {Part~},
- Names = {Parts~},
- rngtxt = {\space to~},
- lsttxt = {\space and~}}
-%%--- TEMPLATE FOR CHAPTERS & APPENDIXES --------
- \makeatletter
- \providecommand*{\p@chapter}{}
- \renewcommand*{\p@chapter}{\string\chpname{\@chapapp}}
- \makeatother
- \newcommand*{\chpname}[1]{}
-\newcommand*{\RSchpname}[1]{%
- \ifRSnameon
- \edef\RStmpa{#1}%
- \edef\RStmpb{\appendixname}%
- \ifx\RStmpa\RStmpb\relax%
- \ifRSplural \ifRScapname Appendices~\else appendices~\fi
- \else \ifRScapname Appendix~\else appendix~\fi
- \fi
- \else
- \ifRSplural \ifRScapname Chapters~\else chapters~\fi
- \else \ifRScapname Chapter~\else chapter~\fi
- \fi
- \fi
- \fi}
- \newref{chap}{%
- refcmd = {\let\chpname=\RSchpname\ref{#1}},
- rngtxt = {\space to~},
- lsttxt = {\space and~}}
-%%--- TEMPLATE FOR SECTIONS ---------------------
- \newref{sec}{%
- name = {section~},
- names = {sections~},
- Name = {Section~},
- Names = {Sections~},
- refcmd = {\S\ref{#1}},
- rngtxt = {\space to~},
- lsttxt = {\space and~}}
-%%--- TEMPLATE FOR EQUATIONS --------------------
- \let\eqref\relax
- \newref{eq}{%
- name = {equation~},
- names = {equations~},
- Name = {Equation~},
- Names = {Equations~},
- refcmd = \textup{(\ref{#1})},
- rngtxt = {\space to~},
- lsttxt = {\space and~}}%
-%%--- TEMPLATE FOR FIGURES ----------------------
- \newref{fig}{%
- name = {figure~},
- names = {figures~},
- Name = {Figure~},
- Names = {Figures~},
- rngtxt = {\space to~},
- lsttxt = {\space and~}}
-%%--- TEMPLATE FOR TABLES -----------------------
- \newref{tab}{%
- name = {table~},
- names = {tables~},
- Name = {Table~},
- Names = {Tables~},
- rngtxt = {\space to~},
- lsttxt = {\space and~}}
-%%--- TEMPLATE FOR FOOTNOTES --------------------
- \makeatletter
- \newcommand{\RSfnmark}[1]{%
- \begingroup
- \unrestored@protected@xdef\@thefnmark{#1}%
- \endgroup
- \@footnotemark}
- \makeatother
- \newref{fn}{%
- name = {footnote~},
- names = {footnotes~},
- Name = {Footnote~},
- Names = {Footnotes~},
- refcmd = {\ifRSstar\RSfnmark{\ref{#1}}\else(\ref{#1})\fi},
- rngtxt = {\space to~},
- lsttxt = {\space and~}}
-\endinput
-%%
-%% End of file `reftmpl.cfg'.