%% to use per-document settings copy this file to the document directory and %% rename it to refstyle.def %% %% ------------------------------------------------------------------- %% Original by Danie Els %% ------------------------------------------------------------------- %% \ProvidesFile{refstyle.cfg}[2011/05/18\space r10260\space Configuration file for refstyle] %%-- ENGLISH ------------------------------------ \newcommand\RSukenglish{% \def\RSrngtxt{\space to~}%........... Range: figures 5 to 6 \def\RSlsttwotxt{\space and~}%....... List two: figures 5 and 6 \def\RSlsttxt{, and~}%............... List more: figures 5, 6, and 7 \def\RSparttxt{Part~}%............... Part lowercase singular \def\RSpartstxt{Parts~}%............. lowercase plural \def\RSParttxt{Part~}%............... uppercase singular (sentence start) \def\RSPartstxt{Parts~}%............. uppercase plural (sentence start) \def\RSappendixname{appendix~}%...... Appendix lowercase singular \def\RSappendicesname{appendices~}%.. lowercase plural \def\RSAppendixname{Appendix~}%...... uppercase singular (sentence start) \def\RSAppendicesname{Appendices~}%.. uppercase plural (sentence start) \def\RSchaptername{chapter~}%........ Chapter lowercase singular \def\RSchaptersname{chapters~}%...... lowercase plural \def\RSChaptername{Chapter~}%........ uppercase singular (sentence start) \def\RSChaptersname{Chapters~}%...... uppercase plural (sentence start) \def\RSsectxt{section~}%............. Section lowercase singular \def\RSsecstxt{sections~}%........... lowercase plural \def\RSSectxt{Section~}%............. uppercase singular (sentence start) \def\RSSecstxt{Sections~}%........... uppercase plural (sentence start) \def\RSssectxt{section~}%............ Sub-Section lowercase singular \def\RSssecstxt{sections~}%.......... lowercase plural \def\RSSsectxt{Section~}%............ uppercase singular (sentence start) \def\RSSsecstxt{Sections~}%.......... uppercase plural (sentence start) \def\RSsssectxt{section~}%............ Sub-Sub-Section lowercase singular \def\RSsssecstxt{sections~}%.......... lowercase plural \def\RSSssectxt{Section~}%............ uppercase singular (sentence start) \def\RSSssecstxt{Sections~}%.......... uppercase plural (sentence start) \def\RSeqtxt{equation~}%............. Equation lowercase singular \def\RSeqstxt{equations~}%........... lowercase plural \def\RSEqtxt{Equation~}%............. uppercase singular (sentence start) \def\RSEqstxt{Equations~}%........... uppercase plural (sentence start) \def\RSfigtxt{figure~}%.............. Figure lowercase singular \def\RSfigstxt{figures~}%............ lowercase plural \def\RSFigtxt{Figure~}%.............. uppercase singular (sentence start) \def\RSFigstxt{Figures~}%............ uppercase plural (sentence start) \def\RSpostxt{position~}% \def\RSposstxt{positions~}% \def\RSPostxt{Position~}% \def\RSPosstxt{Positions~}% \def\RStabtxt{table~}%............... Table lowercase singular \def\RStabstxt{tables~}%............. lowercase plural \def\RSTabtxt{Table~}%............... uppercase singular (sentence start) \def\RSTabstxt{Tables~}%............. uppercase plural (sentence start) \def\RSfootntxt{footnote~}%.......... Footnote lowercase singular \def\RSfootnstxt{footnotes~}%........ lowercase plural \def\RSFootntxt{Footnote~}%.......... uppercase singular (sentence start) \def\RSFootnstxt{Footnotes~}%........ uppercase plural (sentence start) } \newcommand\RSenglish{% \def\RSrngtxt{\space to~}% \def\RSlsttwotxt{\space and~}% \def\RSlsttxt{\space and~}% \def\RSparttxt{Part~}% \def\RSpartstxt{Parts~}% \def\RSParttxt{Part~}% \def\RSPartstxt{Parts~}% \def\RSappendixname{appendix~}% \def\RSappendicesname{appendices~}% \def\RSAppendixname{Appendix~}% \def\RSAppendicesname{Appendices~}% \def\RSchaptername{chapter~}% \def\RSchaptersname{chapters~}% \def\RSChaptername{Chapter~}% \def\RSChaptersname{Chapters~}% \def\RSsectxt{section~}% \def\RSsecstxt{sections~}% \def\RSSectxt{Section~}% \def\RSSecstxt{Sections~}% \def\RSssectxt{section~}% \def\RSssecstxt{sections~}% \def\RSSsectxt{Section~}% \def\RSSsecstxt{Sections~}% \def\RSsssectxt{section~}% \def\RSsssecstxt{sections~}% \def\RSSssectxt{Section~}% \def\RSSssecstxt{Sections~}% \def\RSeqtxt{equation~}% \def\RSeqstxt{equations~}% \def\RSEqtxt{Equation~}% \def\RSEqstxt{Equations~}% \def\RSfigtxt{figure~}% \def\RSfigstxt{figures~}% \def\RSFigtxt{Figure~}% \def\RSFigstxt{Figures~}% \def\RSpostxt{position~}% \def\RSposstxt{positions~}% \def\RSPostxt{Position~}% \def\RSPosstxt{Positions~}% \def\RStabtxt{table~}% \def\RStabstxt{tables~}% \def\RSTabtxt{Table~}% \def\RSTabstxt{Tables~}% \def\RSfootntxt{footnote~}% \def\RSfootnstxt{footnotes~}% \def\RSFootntxt{Footnote~}% \def\RSFootnstxt{Footnotes~}% } \RSenglish% Default \DeclareLangOpt{english}{\RSenglish} \DeclareLangOpt{USenglish}{\RSenglish} \DeclareLangOpt{american}{\RSenglish} \DeclareLangOpt{canadian}{\RSenglish} \DeclareLangOpt{UKenglish}{\RSukenglish} \DeclareLangOpt{british}{\RSukenglish} %%-- GERMAN ------------------------------------- \newcommand\RSgerman{% \def\RSrngtxt{\space bis~}% \def\RSlsttwotxt{\space und~}% \def\RSlsttxt{\space und~}% \def\RSparttxt{Teil~}% \def\RSpartstxt{Teile~}% \def\RSParttxt{Teil~}% \def\RSPartstxt{Teile~}% \def\RSappendixname{Anhang~}% \def\RSappendicesname{Anh\"{a}nge~}% \def\RSAppendixname{Anhang~}% \def\RSAppendicesname{Anh\"{a}nge~}% \def\RSchaptername{Kapitel~}% \def\RSchaptersname{Kapitel~}% \def\RSChaptername{Kapitel~}% \def\RSChaptersname{Kapitel~}% \def\RSsectxt{Abschnitt~}% \def\RSsecstxt{Abschnitt~}% \def\RSSectxt{Abschnitt~}% \def\RSSecstxt{Abschnitt~}% \def\RSssectxt{Abschnitt~}% \def\RSssecstxt{Abschnitt~}% \def\RSSsectxt{Abschnitt~}% \def\RSSsecstxt{Abschnitt~}% \def\RSsssectxt{Abschnitt~}% \def\RSsssecstxt{Abschnitt~}% \def\RSSssectxt{Abschnitt~}% \def\RSSssecstxt{Abschnitt~}% \def\RSpartxt{Abschnitt~}% \def\RSparstxt{Abschnitt~}% \def\RSPartxt{Abschnitt~}% \def\RSParstxt{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\RSpostxt{Position~}% \def\RSposstxt{Positionen~}% \def\RSPostxt{Position~}% \def\RSPosstxt{Positionen~}% \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~}% } \DeclareLangOpt{german}{\RSgerman} \DeclareLangOpt{ngerman}{\RSgerman} \DeclareLangOpt{austrian}{\RSgerman} \DeclareLangOpt{naustrian}{\RSgerman} %%-- TEMPLATE FOR PARTS ------------------------- \newref{part}{% name = \RSparttxt, names = \RSpartstxt, Name = \RSPparttxt, Names = \RSPartstxt, rngtxt = \RSrngtxt, lsttxt = \RSlsttxt} %%-- 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 }% } \newcommand*{\chpname}[1]{} \newcommand*{\RS@chpname}[1]{% \ifRSnameon \edef\RS@tmpa{#1}% \edef\RS@tmpb{\appendixname}% \ifx\RS@tmpa\RS@tmpb\relax% \ifRSplural \ifRScapname \RSAppendicesname \else \RSappendicesname \fi \else \ifRScapname \RSAppendixname \else \RSappendixname \fi \fi \else \ifRSplural \ifRScapname \RSChaptersname \else \RSchaptersname \fi \else \ifRScapname \RSChaptername \else \RSchaptername \fi \fi \fi \fi} \newref{chap}{% refcmd = {{\let\chpname=\RS@chpname\ref{#1}}}, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR SECTIONS ---------------------- \newref{sec}{% name = \RSsectxt, names = \RSsecstxt, Name = \RSSectxt, Names = \RSSecstxt, refcmd = \ref{#1}, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR SUBSECTIONS ------------------- \newref{ssec}{% name = \RSssectxt, names = \RSssecstxt, Name = \RSSsectxt, Names = \RSSsecstxt, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR SUBSUBSECTIONS ---------------- \newref{sssec}{% name = \RSsssectxt, names = \RSsssecstxt, Name = \RSSssectxt, Names = \RSSssecstxt, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR PARAGRAPHS -------------------- \newref{par}{% name = \RSpartxt, names = \RSparstxt, Name = \RSPartxt, Names = \RSParstxt, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR EQUATIONS --------------------- \newcommand*{\RSeqrefform}[1]{\textup{(\ref{#1})}} \@ifpackageloaded{amsmath}% {\let\AMSeqref\eqref \let\eqref\relax}% {} \newref{eq}{% name = \RSeqtxt, names = \RSeqstxt, Name = \RSEqtxt, Names = \RSEqstxt, refcmd = \RSeqrefform{#1}, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} \let\RSeqref\eqref \let\eqref\relax \AtBeginDocument{% \@ifpackageloaded{amsmath}% {\RS@ifundefined{AMSeqref}{\let\AMSeqref\eqref}{}% \let\RSeqrefform\AMSeqref}% {}% \let\eqref=\RSeqref } %%-- TEMPLATE FOR FIGURES ----------------------- \newref{fig}{% name = \RSfigtxt, names = \RSfigstxt, Name = \RSFigtxt, Names = \RSFigstxt, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR POSITIONS --------------------- \newref{pos}{% name = \RSpostxt, names = \RSposstxt, Name = \RSPostxt, Names = \RSPosstxt, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR TABLES ------------------------ \newref{tab}{% name = \RStabtxt, names = \RStabstxt, Name = \RSTabtxt, Names = \RSTabstxt, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} %%-- TEMPLATE FOR FOOTNOTES --------------------- \newcommand{\RSfnmark}[1]{% \begingroup \unrestored@protected@xdef\@thefnmark{\ref{#1}}% \endgroup \@footnotemark} \newref{fn}{% name = \RSfootntxt, names = \RSfootnstxt, Name = \RSFootntxt, Names = \RSFootnstxt, refcmd = {\ifRSstar\RSfnmark{#1}\else(\ref{#1})\fi}, rngtxt = \RSrngtxt, lsttwotxt = \RSlsttwotxt, lsttxt = \RSlsttxt} \endinput %% %% End of file `refstyle.cfg'.