• No results found

\refstepcounter. So on nevery kernels this package is no longer necessary and will silently exit.

N/A
N/A
Protected

Academic year: 2021

Share "\refstepcounter. So on nevery kernels this package is no longer necessary and will silently exit."

Copied!
2
0
0

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

Hele tekst

(1)

The fncylab package

Robin Fairbairns 2019-08-23, version 1.1

As of 2019 the L

A

TEX kernel already contains these extra commands and the modification to

\refstepcounter. So on nevery kernels this package is no longer necessary and will silently exit.

1 Introduction

The package provides support for arbitrary structuring of the way label references look. The command \labelformat{hctr i}{hdefni} specifies the structure of a label:

ctr the counter that will define the label (e.g., section, figure, enumi for outer level list label references, etc.)

defn the definition of how the counter will be formatted in a reference. In this argument, #1 (not ##1 as one might expect) substitutes the ‘raw’ value of the thing which is the source of the label.

The package makes use of a built-in LaTeX facility (which actually needs a bit of patching before it’s usable); this allows the precise layout of the references to labels generated from any LaTeX counter to be altered. Note that the way in which the counter itself is represented in references depends on \thehcounter i — it’s the same as the way the counter gets printed.

2 An example

The L

A

TEX code:

\labelformat{section}{section #1}

...

\section{The Blah Field}\label{blah}

...

... As we saw above in~\ref{blah} ...

will typeset its last line as

. . . As we saw above in section 3 . . .

For references at the start of a sentence, the package defines a command \Ref, which is used as one might expect:

... \Ref{blah} shows us that ...

Email: robin.fairbairns@cl.cam.ac.uk — no longer active

1

(2)

which will typeset as

. . . Section 3 shows us that . . .

A demonstration of \labelformat, using the enumerate package, may be found in the file fncylab-example.tex, which is part of the distribution.

2

Referenties

GERELATEERDE DOCUMENTEN

Aliquam pellentesque, augue quis sagittis posuere, turpis lacus congue quam, in hendrerit risus eros eget felis.. Maecenas eget erat in sapien

either duplex printing or printing two pages on one side of a sheet of paper with blank back side).. (These are the

Because the compilation time for this example is usually quite short, option timer is not demonstrated very

(Or move the table in the source code near the position where it floats to or use the optional footnote marks.).. Table 5 (page 6) uses float specifier H from the float package and

However, remember that texsurgery is a python project whose main focus is on evaluating code inside a jupyter kernel, and this is only achieved by installing the python package

We look whether the token list contains the bizarre list followed by \protect and the same name (with two spaces) which happens if #2 is a control sequence defined

Praesent pretium, magna in eleifend egestas, pede pede pretium lorem, quis consectetuer tortor sapien facilisis magna.. Mauris quis magna varius nulla

commentchar (character) : character to define comments in the verbatim code, so that lines starting with this character will not be printed (Default: empty).. 2 For clarification