1
0
Fork 0
doc/about/contribute/documentation/tmdoc-style.en.tm

112 lines
4.2 KiB
Plaintext
Raw Normal View History

2011-09-02 06:57:35 +08:00
<TeXmacs|1.0.7.12>
2011-08-28 15:59:50 +08:00
<style|tmdoc>
<\body>
2011-09-02 06:57:35 +08:00
<tmdoc-title|Using the tmdoc style>
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
Besides the <hlink|copyright information|copyright.en.tm> macros and
<hlink|traversal macros|traversal.en.tm>, which have been documented
before, the <tmstyle|tmdoc> style comes with a certain number of other
macros and functions, which you should use whenever appropriate:
2011-08-28 15:59:50 +08:00
<\description>
2011-09-02 06:57:35 +08:00
<item*|<markup|shortcut>>This macro is used to indicate a keyboard
shortcut for a <scheme> command. For instance, the shortcut for
<scm|(new-buffer)> is <shortcut|(new-buffer)>.
<item*|<markup|key>>This unary macro is used for explicit keyboard input.
For instance, when giving <rigid|<verbatim|A C-b return>> as argument,
the result is <key|A C-b return>.
<item*|<markup|menu>>This function with an arbitrary number of arguments
indicates a menu like <menu|File> or <menu|Document|Language>. Menu
entries are automatically translated by this function.
<item*|<markup|markup>>This macro is used in order to indicate a macro or
a function like <markup|section>.
<item*|<markup|tmstyle>>This macro indicates the name of a <TeXmacs>
style file or package like <tmstyle|article>.
<item*|<markup|tmpackage>>This macro indicates the name of a <TeXmacs>
package like <tmpackage|std-markup>.
<item*|<markup|tmdtd>>This macro indicates the name of a <TeXmacs>
2011-08-28 15:59:50 +08:00
<abbr|d.t.d.> like <tmdtd|number-env>.
</description>
Notice that the contents of none of the above tags should be translated
into foreign languages. Indeed, for menu tags, the translations are done
automatically, so as to keep the translations synchronized with the
translations of the actual <TeXmacs> menus. In the cases of markup, styles,
packages and <abbr|d.t.d.>s, it is important to keep the original name,
because it often corresponds to a file name.
The following macros and functions are used for linking and indexing
purposes, although they should be improved in the future:
<\description>
2011-09-02 06:57:35 +08:00
<item*|<markup|simple-link>>This macro takes an URL <math|x> as argument
and is a hyperlink with name and destination <math|x>.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|hyper-link>>This macro is a usual hyperlink.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|concept-link>>This macro takes a concept as argument.
Later on an appropriate hyperlink might be created automatically from
this and the other documentation.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|only-index>>Index a simple string.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|def-index>>Definition of a new concept; the text is
2011-08-28 15:59:50 +08:00
printed in italic and indexed.
2011-09-02 06:57:35 +08:00
<item*|<markup|re-index>>Reappearance of an already defined concept; the
text is printed in roman and put in the index.
2011-08-28 15:59:50 +08:00
</description>
The following tags are also frequently used:
<\description>
2011-09-02 06:57:35 +08:00
<item*|<markup|scheme>>The <scheme> language.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|c++>>The <c++> language.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|framed-fragment>>For displaying a piece of code in a nice
frame.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|tm-fragment>>Single out a fragment of a <TeXmacs>
document.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|scm-code>>For multi-paragraph <scheme> code.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|cpp-code>>For multi-paragraph <c++> code.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|scm>>For a short piece of <scheme> code.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|cpp>>For a short piece of <c++> code.
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<item*|<markup|descriptive-table>>For descriptive tables; such tables can
be used to document lists of keyboard shortcuts, different types of
markup, <abbr|etc.>
2011-08-28 15:59:50 +08:00
</description>
The <tmstyle|tmdoc> style inherits from the <tmstyle|generic> style and you
should use macros like <markup|em>, <markup|verbatim>, <markup|itemize>,
<abbr|etc.> from this style whenever appropriate.
2011-09-02 06:57:35 +08:00
<tmdoc-copyright|1998--2011|Joris van der Hoeven>
2011-08-28 15:59:50 +08:00
2011-09-02 06:57:35 +08:00
<tmdoc-license|Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
2011-08-28 15:59:50 +08:00
</body>
<\initial>
<\collection>
<associate|language|english>
</collection>
2011-09-02 06:57:35 +08:00
</initial>