Skip to content
Tcl Source Code Changes To How to edit/test tcl man pages
Login

Changes To How to edit/test tcl man pages

Changes to "How to edit/test tcl man pages" between 2015-06-22 19:54:10 and 2015-06-29 12:09:23



1
2
3
4
5
6
7
1
2
3
4
5
6
7
8
9
+
+







2015-06-18 Donal K. Fellows posted on the core list the following text:

<h1>Editor</h1>

I use emacs but you can use anything you want I suppose. Probably best to not use MS Word; Notepad would be a better choice. :-)

99% of what you might ever want to do when just editing docs can be done without putting a lot of effort into rendering; that's what I usually do.

<h1>Check formatting</h1>
︙
20
21
22
23
24
25
26

27






















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







+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Please avoid using anything too exotic unless you update the HTML generator to support it.
Because of this, ‘make html’ is actually the check to use; it's pretty strict about diagnostics.

I don't bother with the winhelp converter these days; the HTML is better (as in “more recently maintained”) and everyone has a reader for the format it produces.

<hr />

Some additional resources:
from a core list post 2015-06-18 by Donal K. Fellows

   *   Mentioned file: [https://core.tcl.tk/tcl/artifact/0341d457d89f756d|man.macros]
   *   Groff help: [http://man7.org/linux/man-pages/man7/groff_man.7.html]
   *   A Groff manual: [http://www.premvet.co.uk/premvet/faq/roff.html]

File structure:
   *   Commands like .xx always at the beginning of a line.
   *   Comands like \xx may be within the text.

Some used markup:
   *   .TP : Paragraph label, start of indented text, text included in html TOC
   *   \fBText\fR : Bold font
   *   \fIText\fR : Italic font (\fR (for Roman font) must always follow)
   *   .RS : Indent paragraph 3 to right start
   *   .RE : Indent end
   *   .VS "Text": Mark as new version, "Text" describes version
   *   .VE "Text": End of mark
   *   .CS : Source code examples
   *   .CE : Source code example end
   *   .SS : Text for a heading
   *   .SP : Subsection (probably)
   *   .PP : New line and reset font, margin and indent to default values