summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/cstex/opmac-u-en.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-13 20:57:13 +0000
committerKarl Berry <karl@freefriends.org>2019-03-13 20:57:13 +0000
commit2a0df47c9a261e34a4071da2134f1efd2b7a55ad (patch)
tree43e762f4d9a6fd9f7109eba1b6e21da86e768b3e /Master/texmf-dist/doc/cstex/opmac-u-en.tex
parentf4bb07267c294f84d8f0656f916930f6883ca6f4 (diff)
cstex (13mar19)
git-svn-id: svn://tug.org/texlive/trunk@50372 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/cstex/opmac-u-en.tex')
-rw-r--r--Master/texmf-dist/doc/cstex/opmac-u-en.tex53
1 files changed, 51 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/cstex/opmac-u-en.tex b/Master/texmf-dist/doc/cstex/opmac-u-en.tex
index 03809c3a482..d448150ab35 100644
--- a/Master/texmf-dist/doc/cstex/opmac-u-en.tex
+++ b/Master/texmf-dist/doc/cstex/opmac-u-en.tex
@@ -20,7 +20,7 @@
\tit OPmac -- macros for plain\TeX\fnotemark1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\centerline{\it Petr Ol\v s\'ak, 2012 -- 2016}
+\centerline{\it Petr Ol\v s\'ak, 2012 -- 2019}
\bigskip
\centerline{\url{http://petr.olsak.net/opmac-e.html}}
@@ -1414,11 +1414,58 @@ as dot and dot is ignored by sorting algorithm. You can redefine this macro,
but you must keep the format, keep "\setlccodes" in the front and "{}{}" in
the end.
+\sec Pre-defined styles
+
+OPmac defines two style-declaration macros "\report" and "\letter" since
+Mar.~2019. You can use them at the beginning of your document if you are
+preparing these types of document and you don't need to create your own
+macros.
+
+The "\report" declaration is intended to create reports. It
+sets default font size to 11\,pt and "\parindent" to 1.2\,em.
+The "\tit" macro uses smaller font because we assume that ``chapter'' level
+will be not used in reports. The first page has no page number, but next pages
+are numbered (from number 2). The footnotes are numbered from one in whole
+document. The macro "\author <authors><end-line>" can be used when
+"\report" is declared. It prints "<authors>" in italics at center of the
+line. You can separate authors by "\nl" to more lines.
+
+The "\letter" declaration is intended to create letters. It sets default
+font size to 11\,pt and "\parindent" to 0\,pt. It sets half-line space
+between paragraphs. The page numbers are not printed. The "\subject" macro
+can be used, it prints the word ``Subject:'' or ``V\v{e}c'' in bold
+depending on used language. Moreover, the "\address" macro
+can be used when "\letter" is declared. The usage of the "\address" macro
+looks like:
+
+\begtt
+\address
+ <first line of address>
+ <second line of address>
+ <etc.>
+ <empty line>
+\endtt
+
+It means that you need not to use any special mark at the end of lines: end
+of lines in the source file are the same as in printed output. The
+"\address" macro creates "\vtop" with address lines. The width of such
+"\vtop" is equal to the most wide line used in it. So, you can use
+"\hfill\address..." in order to put the address box to the right side of the
+document. Or you can use "<prefixed text>\address..." to put
+"<prefixed text>" before first line of the address.
+
+Analogical declaration macros "\book" or "\slides" are not prepared. Each
+book needs an individual typographical care so you need to cerate specific
+macros for design. And you can find an inspiration of slides in OPmac tricks
+\ulink[http://petr.olsak.net/opmac-tricks-e.html\#slidy]{0017 and 0022}.
+
+
+\vfil\break
\sec Summary
%%%%%%%%%%%%
-\def\tthook{\adef!{\string\endtt}\adef&{\kern.25em}}
+\def\tthook{\typosize[10/12]\adef!{\string\endtt}\adef&{\kern.25em}}
\begtt
\tit Title (terminated by end of line)
\chap Chapter Title (terminated by end of line)
@@ -1471,6 +1518,8 @@ the end.
\magscale[factor] % resize typesetting, line/page breaking unchanged
\margins/pg format (left, right, top, bottom)unit % margins setting
+
+\report \letter % style declaration macros
\endtt
\end