summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/TeXemplar/readme
blob: 70287653a8eef475f9045c4764cd64116de21d0b (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
TeXemplar.cls
~~~~~~~~

This is the style file for "TeXemplares", the journal of CervanTeX, 
the Spanish TeX User's Group.

There is nothing new in it except a few new commands and a new 
implemetations of the verbatim environment.

It is far from finished and is very likely to change.

New commands
~~~~~~~~~~~~
- \issue{<issue>}{<from>}{<to>}

  The issue number and the page range

- \articlemark{<Title>}

  The title to be used un headers

- |<verb>|

  The text enclosed is typeset verbatim, with line breaking allowed.

Verbatim
~~~~~~~

This environment is reimplemented to overcome the problems of the 
standard verbatim or the reimplemetation in the verbatim package:
- the space before \end{verbatim} which could produced unwanted
  blank lines is ignored,
- the text is typeset as read, and not first read in full
  (or line by line) and then typeset,
- the text following \end{verbatim} is not removed,
- spaces and even a line-feed are allowed between \end and {verbatim}.

You may introduce changes inside the verbatim environment with 
one-letter commands defined with \verbcommand{letter}{definition}.  
The changes introduced are in effect immediatly and these commands are 
independent from the `standard' definitions.  Spaces following them 
are not ignored.  The letter `e' is not allowed!

Examples:

\verbcommand{1}{\bgroup\itshape}
\verbcommand{0}{\egroup}

\begin{verbatim}
Type answer (y/n): \1y\0
\end{verbatim}

---

\verbcommand{1}{\bgroup\rmfamily\itshape\catcode`\ =12}
\verbcommand{0}{\egroup}

\begin{verbatim}
\def\hello{hello}   % \1A silly assignment\0
\end{verbatim}