File: definitions.tex

package info (click to toggle)
doc-linux-nl 20051127-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 16,408 kB
  • ctags: 94
  • sloc: xml: 47,403; makefile: 312; perl: 193; sh: 116; ansic: 12; csh: 9
file content (129 lines) | stat: -rw-r--r-- 4,401 bytes parent folder | download | duplicates (2)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
% Color Definitions
\definecolor{darkgreen}{rgb}{0,.3,0}
\definecolor{gray}{rgb}{.8,.8,.8}
\definecolor{darkred}{rgb}{.5,0,0}
\definecolor{darkblue}{rgb}{0,0,.5}
\definecolor{lightblue}{rgb}{0.7,0.9,1}
\definecolor{lightgreen}{rgb}{0.7,1.0,.7}

% Experimantal Defs
\makeatletter
  \newenvironment{indentation}[2]%
    {\par\setlength{\leftmargin}{#1}       \setlength{\rightmargin}{#2}%
     \advance\linewidth -\leftmargin       \advance\linewidth -\rightmargin%
     \advance\@totalleftmargin\leftmargin  \@setpar{{\@@par}}%
     \parshape 1\@totalleftmargin \linewidth\ignorespaces}{\par}%
\makeatother

% Device Definitions
\def\DEVICE{eth0} 
\def\IPADDR{{\normalsize{}192.168.1.4}}
\def\NETMASK{{\normalsize{}255.255.255.0}}
\def\BROADCAST{{\normalsize{}192.168.1.255}}
   
%\def\xspace{%
%  \ifx\@let@token\bgroup\else
%  \ifx\@let@token\egroup\else
%  \ifx\@let@token\/\else
%  \ifx\@let@token\ \else
%  \ifx\@let@token~\else
%  \ifx\@let@token.\else
%  \ifx\@let@token!\else
%  \ifx\@let@token,\else
%  \ifx\@let@token:\else
%  \ifx\@let@token;\else
%  \ifx\@let@token?\else
%  \ifx\@let@token/\else
%  \ifx\@let@token'\else
%  \ifx\@let@token)\else
%  \ifx\@let@token-\else
%  \ifx\@let@token\@xobeysp\else
%  \ifx\@let@token\space\else
%  \ifx\@let@token\@sptoken\else
%   \space
%   \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}

\def\group{users\null}
\def\home{/home/\user\xspace}

% \def\command#1{{\ttfamily\bfseries#1}}
% \def\file#1{{\bf#1}\xspace}
\def\br{\hfill\break}
% \def\command#1{\textbf{#1}}
\def\command#1{{\large\ttfamily\bfseries#1}}
\def\comment#1{{\small\emph#1}}
\def\file#1{\underline{\tt{}#1}}
\def\idea#1{{\small\emph#1}}
\def\key#1{$[$#1$]$}
\def\option#1{\hbox{\ttfamily\slshape#1}}
\def\program#1{{\large\ttfamily\bfseries#1}}
% \def\ptcsh#1{{\bf#1\null}\phantom{[tcsh]/home/\user: x}}
\def\term#1{{\em#1}}
\def\user{joe\null}
\def\tilde{\raisebox{.3ex}{$\sim$}\hspace{-0.15em}}

% Unix related def
\def\Linux{{\tt Linux}\xspace}
\def\Unix{{\tt UNIX}\xspace}
\def\computer#1{{\large\bf#1}\xspace}
% \def\bash#1{[bash]\user:{\bf#1}}
\def\bs#1{\texttt{\char`\\}#1}
\def\fim{{\vrule height8pt width6pt depth3pt}}
\def\gt{{\tt>}}
\def\lt{{\tt<}}
\def\pipe{\textbar}
\def\pipe{{\tt|}\xspace}
\def\redhat{{\normalsize\em RedHat}\xspace}
\def\mandrake{{\normalsize\em Mandrake}\xspace}
\def\turbolinux{{\normalsize\em TurboLinux}\xspace}
\def\remote{RemoteHost}
\def\local{LocalHost}
\def\localhost#1{{[\local]/home/\user:{\bf#1\null}}}
\def\remotehost#1{{[\remote]/home/\user:{\bf#1\null}}}
\def\rootsh#1{{\large\tt\colorbox{yellow}{\textcolor{darkred}{{\tt<}{\bf{}Super}{\tt>:}}}{\bf#1}}}
\def\root{{\bf{}root}\xspace}
\def\rv#1{{\colorbox{black}{\color{white}#1}}}
\def\shell#1{{/home/\user: {\bf#1\null}}}
\def\unshell#1{{\bf#1\null}\phantom{/home/\user: x}}
\def\stderr{\term{stderr}}
\def\stdin{\term{stdin}}
\def\stdout{\term{stdout}}
% \def\tcsh#1{{[tcsh]/home/\user: {\bf#1\null}}}
\def\bash#1{{\large\tt\colorbox{lightblue}{\textcolor{darkblue}{{\tt<}{\bf{}bash}{\tt>:}}}{\bf#1}}}
\def\tcsh#1{{\large\tt\colorbox{lightgreen}{{\tt<}{\bf{}tcsh}{\tt>:}}{\bf#1}}}
\def\zeppo{{\bf Zeppo}\xspace}
\def\groucho{{\bf Groucho\xspace}}
\def\astro{{\bf Astro\xspace}}
\def\man{{\bf{}man}}
\def\host#1{{\bf#1}}
\def\at{$@$\xspace}
   
   
% For Table Rules...
\newdimen\thickarrayrulewidth
  \thickarrayrulewidth=1pt
  \def\thickhline{\noalign{\hrule height\thickarrayrulewidth}}
\def\hhline{\noalign{\hrule height.35mm}} %%% thick hline
   
\def\heading#1{\vskip9pt{\bf\Large#1}\vskip-5pt}
\def\kbd#1{{\bf#1}\null}
\def\key#1#2{\leavevmode\hbox to \hsize{\vtop
  {\hsize=.75\hsize\rightskip=1em
  \hskip1em\relax#1}\kbd{#2}\hfil}}
\def\dkey#1#2{\leavevmode\hbox to \hsize{\vtop
  {\hsize=.2\hsize\rightskip=1em
  \hskip1em\relax\bf#1}\kbd{#2}\hfil}}
\def\gloss#1#2{\leavevmode\hbox to \hsize{\vtop
  {\hsize=.3\hsize\rightskip=1.1em
  \hskip1em\relax{\bf#1}\ \dotfill}\kbd{#2}\hfil}}
%\def\defcom#1#2#3{\leavevmode\hbox to \hsize{\vtop
%  {\hsize=.35\hsize\rightskip=1em
%  \hskip1em\relax{\bf#1} \emph{#2}}{\rm#3}\hfil}}
\def\defsh#1#2{\leavevmode\hbox to \hsize{\vtop
  {\hsize=.50\hsize\rightskip=1em
   \relax{\large\tt\colorbox{yellow}{\textcolor{darkred}{{\tt<}{\bf{}Super}{\tt>:}}}}{\large\bf#1}}{\# \tt#2}\hfil}}
\def\shcom#1#2{\leavevmode\hbox to \hsize{\vtop
  {\hsize=.55\hsize\rightskip=1em
   \relax{/home/\user: }{\bf#1}}{\# \tt#2}\hfil}}