summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/s-faq-03.tex
blob: b1e1ef2c2e0a2977d20d8ea1b5038df8d0bda2be (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
%D \module
%D   [      file=s-faq-03,
%D        version=1997.21.08,
%D          title=\CONTEXT\ Style File,
%D       subtitle=FAQ General Framework,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 
%C details. 

\def\StartFAQ[#1]%
  {\getrawparameters[FAQ][name=,label=,language=,hyphenation=,url=,#1]
   \let\NameOfFAQ        \FAQname
   \let\TagOfFAQ         \FAQlabel
   \let\LanguageOfFAQ    \FAQlanguage
   \let\HyphenationOfFAQ \FAQhyphenation
   \let\ListOfFAQ        \FAQurl
   \doifmodeelse{screen}
     {\usemodule[faq-01]}
     {\usemodule[faq-02]}
   \starttext 
   \TitlePage
   \StartReadingFAQ}

\def\StopFAQ
  {\StopReadingFAQ
   \IndexPage
   \AllFAQs
   \stoptext}

\def\ProcessFAQ[#1]%
  {\StartFAQ[#1]
   \input \FileNameOfFAQ \relax
   \StopFAQ}

% for old times sake: 

\def\PDFscreenFAQ \name #1 \tag #2 \language #3 \hyphenation #4 \list #5 
  {\def\NameOfFAQ        {#1}
   \def\TagOfFAQ         {#2}
   \def\LanguageOfFAQ    {#3}
   \def\HyphenationOfFAQ {#4}
   \def\ListOfFAQ        {#5}
   \usemodule[faq-01]
   \starttext
     \TitlePage
     \FileWithFAQs
     \IndexPage
     \AllFAQs
   \stoptext}

\def\PDFpaperFAQ \name #1 \tag #2 \language #3 \hyphenation #4 \list #5 
  {\def\NameOfFAQ        {#1}
   \def\TagOfFAQ         {#2}
   \def\LanguageOfFAQ    {#3}
   \def\HyphenationOfFAQ {#4}
   \def\ListOfFAQ        {#5}
   \usemodule[faq-02]
   \starttext
     \TitlePage
     \FileWithFAQs
     \IndexPage
   \stoptext}

\let\DVIpaperFAQ\PDFscreenFAQ 

\endinput