summaryrefslogtreecommitdiff
path: root/info/components-of-TeX/texrep.sty
blob: b5096c4e53762d5444469052510bc1f47cd571a3 (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
% texrep.sty					14 Nov 90
%------------------------------------------------------------
% (c) 1990 by J.Schrod (TeXsys).

%
% markups for my articles about TeX
%
% ILaTeX style option
%     testet with: article
%
% ATTENTION:
%     After loading ^ can not be used for exponents any more, use \sp !


\input names.sty        % Logos


% abbrevations

\chardef\bs=`\\                % backslash

\def\dh{d.\,h.\spacefactor\@m} % kerning!  (Spatium)
\def\zb{z.\,B.}
\def\ZB{Z.\,B.}

\def\eg{e.\,g.\spacefactor\@m}
\def\ie{i.\,e.\spacefactor\@m}


%
% consistent formatting
%

% first time a file type is mentioned it is marked with \ftype.
\def\ftype#1{{\tt \marginpar{\uppercase{#1}}\uppercase{#1}\/}}

% split ligatures with \| (if not in math mode)
%	is already defined in local.tex but this is often not used!
\def\allowhyphens{\penalty\@M \hskip\z@skip}
\def\|{%                
   \relax
   \ifmmode  \Vert
   \else  \allowhyphens\-\allowhyphens
   \fi
   }


%
% pictures
%

\unitlength=5mm           % may be changed for DINA5
\let\w=\@wholewidth       % width of a rule
\let\k=\unitlength        % a box (in German: Kasten) on my drawing-paper...


%
% title notes are footnotes on the title page without any marker
%

\def\titlenote#1{%
   \begingroup
      \def\@makefntext##1{\noindent ##1}%
      \footnotetext{#1}%
   \endgroup
   }


% marginal notes, for easier input
%		(idea taken from manmac.tex)
%
% usage:
%       ^|rem1|  for remark rem1, which is also printed (loud).
%       ^^|rem2| for remark rem2, which is not printed (silent).
% implementation:
%	look at next char; if ^, then do not print it.
%	with this char determin macro to expand
%	   macro is defined accordingly
%	marginal note is created by \marginpar.
% attention:
%       ^ can not be used for creating an exponent any more (but \sp!)

\catcode`\^=\active
\def^{\futurelet\next \check@silent}
\def\check@silent{%
   \ifx \next^%
      \let\next\silent@margin
   \else  \let\next\print@margin
   \fi
   \next
   }

\def\silent@margin^|#1|{\marginpar{\rm #1}}
\def\print@margin|#1|{#1\marginpar{\rm #1}}


\endinput