[go: up one dir, main page]

File: manual.sty

package info (click to toggle)
advi 1.10.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 15,008 kB
  • sloc: ml: 12,279; sh: 1,032; ansic: 1,016; makefile: 705; perl: 55
file content (62 lines) | stat: -rw-r--r-- 1,944 bytes parent folder | download | duplicates (5)
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
\expandafter \ifx \csname driver\endcsname\relax \def \driver{}\fi
\def \advidriver {ignore}
\def \dvipsdriver{dvips}
\def \dvipdfmdriver{dvipdfm}
\ifx \driver \dvipsdriver 
\else \ifx \driver \dvipdfmdriver 
\else \let \advidriver \empty \fi \fi

\def \cmdindex #1{\index{\string\cmdtt \string #1}}
\def \cmdtt #1{\texttt{\string #1}}
\def \docdef #1{\cmdindex{#1}{\tt \string #1}}
\def \docenv #1#2{\index{#1}{\cmdtt{\begin}\{\doctt{#1}\}#2%
                             \cmdtt{\end}\{\doctt{#1}\}}}
\def \docid #1{$\langle\hbox{\rm\em#1}\rangle$}
\def \doctt #1{\texttt{#1}}
\def \docarg #1{{\texttt {\{\docid{#1}\}}}}
\def \docopt #1{{\texttt {[\docid{#1}]}}}
\def \docpar #1{{\texttt {(\docid{#1})}}}
\def \doc@empty {}
\newcommand \dockey[3][]{{\tt#2\def\@test {#3}\ifx \@test \doc@empty \else
  =\docid{#3}\fi}\def \@test {#1}\ifx \@test \doc@empty \else
  \quad (default value is {\tt #1})\fi}

\edef\hyper@quote{\string"}
\edef\hyper@sharp{\string#}
\edef\hyper@colon{\string:}

\newcommand{\softtarget}[2]%
  {\special{html:<a name=\hyper@quote#1\hyper@quote>}#2%
   \special{html:</a>}}
\newcommand{\softlink}[2]%
  {\special{html:<a href=\hyper@quote\hyper@sharp#1\hyper@quote>}#2%
   \special{html:</a>}}
\newcommand{\furl}[2]%
  {\special{html:<a href=\hyper@quote http\hyper@colon//#1\hyper@quote>}#2%
   \special{html:</a>}}

\newenvironment{citemize}%
{\begin{list}{$\bullet$}{\itemsep 0pt \topsep 5pt}}{\end{list}}

\newenvironment{cenumerate}%
{\begin{list}{-}{\itemsep 0pt \topsep 5pt}}{\end{list}}


% to be added in xxx.sty
\makeatletter
\begingroup
\catcode `\| 0
\catcode `|\ 11%
|xdef|special@backslash{\}%
|endgroup%
\def\back{\special@backslash}
%\makeatother
% pour tester
%\special{foo:\special@backslash t}

% Macros specific to splash.tex
\def\key#1{\textcolor{red}{#1}}
\def\ikey#1#2#3{\key{#1} & #2 & -- & #3\\}
\def\arg{\textcolor{blue}{arg }}
\def \Stretch {\vspace{\stretch{1}}}
\def \Medskip {\par\medskip}