summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/refstyle/reftmpl.cfg
blob: af0a773f723de0c2e4906d764f568059c4f43cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
%%
%% 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'.