• No results found

This is a test of the

N/A
N/A
Protected

Academic year: 2021

Share "This is a test of the"

Copied!
1
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

This is a test of the numberedblock style packcage, which is specially de-signed to produce sequentially numbered BLOCKS of code (note the individual code lines are not numbered, but the whole block gets a single number, for later reference (much in the same way that equations can get numbered in a document). While specialized for numbering code blocks, the commands can actually number other items, as well, in fact anything that fits in a LATEX box.

If the code block contains no special characters (or is already a box), one can simply use the command form, called \numblock. It cannot handle verbatim text, but must use standard LATEX escape sequences (for line breaks, contiguous

spaces, special characters, etc.). It puts the output in a tt font, which is the same as used in the verbatim environment:

This text is the

argument to the command

where double slashes have been used for line breaks

[1 ]

Most useful, however, there is also the numVblock environment, which han-dles verbatim text, as seen in the next example:

This is a labeled numVblock

environment, which (<--see contiguous spaces here) succeeds in

incorporating verbatim text like @##$%*$%$()||}{?><\\\

[2 ]

As envisioned the numVblock environment would be ideally suited for dis-playing small code blocks as part of documentation, and I can (NEW!!) even reference the numbered blocks 1 and 2. The code can contain contiguous spaces and special characters:

program test implicit none integer a, x c$$$$$$$$$$$$$$$$$$$$$$$$$ a = 0 x = 1 10 a = a + x if (a .eq. 100) stop goto 10 end [3 ]

Below, I test the \numblock command with the argument as a box, rather than as formatted text.

Testing, 1,2,3 testing a box [4 ]

Don’t forget, there are settable parameters to define the block left-indent, the format of the label, and (if needed) the labels’ max width/placement.

Referenties

GERELATEERDE DOCUMENTEN

If this option is enabled, such citations get an extra letter which identifies the member (it is also printed in the bibliography): [4a,c, 5, 7b,c].. This option is disabled by

“Palladium pincer complexes with reduced bond angle strain: efficient catalysts for the Heck reaction.” In: Organometallics 25.10 (2006), pp. Hostetler

This style is similar to alphabetic except that a list of multiple citations is printed in a slightly more verbose format..

Since this style prints the date label after the author/editor in the bibliography, there are effectively two dates in the bibliography: the full date specification (e.g., “2001”,

Since this style prints the date label after the author/editor in the bibliography, there are effectively two dates in the bibliography: the full date specification (e.g., “2001”,

Immediately repeated citations are replaced by the abbreviation ‘ibidem’ unless the citation is the first one on the current page or double page spread (depending on the setting of

This style is a compact version of the authortitle style which prints the author only once if subsequent references passed to a single citation command share the same author..

By default, this style does not add a page reference to the footnote pointers, i.e., they are rendered as ‘see note 3’.. If you want such references to be rendered as ‘see note 3,