]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/docs/latex/fl/readme.txt
added a hack to work around the dummy kill focus messages under GTK
[wxWidgets.git] / contrib / docs / latex / fl / readme.txt
... / ...
CommitLineData
1Generating the FL Reference Manual
2===================================
3
4Like the wxWindows manual, the FL manual uses Tex2RTF to
5generate HTML, MS HTML Help, wxHTML Help, WinHelp, RTF, and PDF
6formats.
7
8VC++ users can use makefile.vc in this directory, e.g.:
9
10 nmake -f makefile.vc docs ; Create directories and
11 ; all formats
12
13or
14
15 nmake -f makefile.vc dirs html ; Create directories, then
16 ; HTML files
17
18The targets that the makefile supports are:
19
20html ; HTML
21htb ; wxHTML Help: the HTML files + hhp, hhc files,
22 ; archived in a fl.htb (zip format) file
23htmlhelp ; MS HTML Help: the HTML files + hhp, hhc files
24 ; then processed with hhc to produce fl.chm
25winhelp ; WinHelp format: Tex2RTF produces RTF and CNT
26 ; files, then the makefile invokes hc.exe to produce
27 ; the fl.hlp file
28rtf: ; WinHelp RTF (intermediate stage for winhelp)
29pdfrtf ; Makes an RTF file suitable for loading into
30 ; MS Word and generating a PDF via Adobe Acrobat
31
32If you wish to run Tex2RTF directly, you can do e.g.
33
34 tex2rtf $(DOCDIR)\latex\FL\manual.tex $(DOCDIR)\html\FL\fl.htm -twice -html
35
36For more information on using Tex2RTF, please see:
37
38 docs/tech/tn0003.txt: Adding wxWindows class documentation
39
40in the wxWindows hierarchy, and also utils/tex2rtf. The Tex2RTF
41manual is supplied with wxWindows documentation, in (for example)
42docs/html/tex2rtf/t2rtf.htm or docs/htmlhelp/tex2rtf.chm.
43
44You can configure the way Tex2RTF works with tex2rtf.ini in
45docs/latex/fl.
46
47Generating HTML format
48======================
49
50To generate HTML documentation, you need to use the -html
51argument to Tex2RTF. A whole directory of files will be
52generated.
53
54Generating MS HTML Help format
55==============================
56
57To generate MS HTML Help documentation, you need to generate
58the HTML files as above and then run
59
60 hhc fl.hhp
61
62You'll need the MS HTML Help compiler, obtainable from Microsoft
63or bundled with your C++ compiler.
64
65Generating wxHTML Help format
66=============================
67
68To generate wxHTML Help documentation, you need to generate
69the HTML files as above and then archive the HTML, image,
70hhc, hhp and optionally hhk files into fl.htb.
71
72The helpview program can be used to view fl.htb
73on supported platforms. Get it from the wxWindows web site
74or compile it with samples/html/helpview in the wxWindows
75distribution.
76
77Generating WinHelp format
78=========================
79
80To generate Windows Help documentation, you need to generate
81the RTF file and contents file (.cnt) using --winhelp and
82then run hc.exe to produce the .hlp file
83
84Generating PDF format
85=====================
86
87Run Tex2RTF with the -rtf argument, load the RTF into MS Word,
88select the whole document, press F9, then apply wordstyle.dot
89found in distrib/msw in the wxWindows distribution.
90Then generate the PDF using Adobe Acrobat PDFWriter.
91
92Note that for the contents to be formatted correctly,
93each class section should end with a blank line. Otherwise
94the contents will have bits of the reference in it.
95
96Generating .tex files from .h files
97===================================
98
99Much of the class reference is generated from the headers.
100The intention is to comment the headers more thoroughly, then
101regenerate the .tex files, before working directly on the
102.tex files.
103
104To regenerate .tex files, you'll need the HelpGen utility from
105latest wxWindows CVS, in utils/helpgen/src. Compile wxBase,
106then HelpGen. Run helpgen with e.g.
107
108 helpgen dump file.h
109
110and a separate .tex file for each class will appear in the
111current directory.
112
113--
114Julian Smart, January 3rd 2002
115julian.smart@btopenworld.com
116