diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/refstyle/refstyle.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/refstyle/refstyle.cfg | 263 |
1 files changed, 196 insertions, 67 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'. |