summaryrefslogtreecommitdiff
path: root/macros/luatex/optex/base/ref-file.opm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-06-16 03:02:40 +0000
committerNorbert Preining <norbert@preining.info>2020-06-16 03:02:40 +0000
commit305bf45bf758ea76ec5be2a737bd8eb491f68921 (patch)
treea0d6ad7bdfc7a258d831c6dd746484263ff66b10 /macros/luatex/optex/base/ref-file.opm
parent539648a9305d6107a588ecdff34b5cdce48fb930 (diff)
CTAN sync 202006160302
Diffstat (limited to 'macros/luatex/optex/base/ref-file.opm')
-rw-r--r--macros/luatex/optex/base/ref-file.opm8
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/luatex/optex/base/ref-file.opm b/macros/luatex/optex/base/ref-file.opm
index 3cf6f6be7d..c5fa396524 100644
--- a/macros/luatex/optex/base/ref-file.opm
+++ b/macros/luatex/optex/base/ref-file.opm
@@ -65,7 +65,7 @@
versa.
\_cod ----------------------
-\_def\_REFversion{3} % actual version of .ref files in OpTeX
+\_def\_REFversion{4} % actual version of .ref files in OpTeX
\_def\_Xrefversion#1{\_ifnum #1=\_REFversion\_relax \_else \_endinput \_fi}
\_public \Xrefversion ; % we want to ignore .ref files generated by OPmac
@@ -107,7 +107,7 @@ The `.ref` file looks like:
\begtt \catcode`\<=13
\Xrefversion{<ref-version>}
\_Xpage{<gpageno>}{<pageno>}
-\_Xtoc{<level>}{<type>}{<text>}{<title>}
+\_Xtoc{<level>}{<type>}{<text>}<title>
\_Xlabel{<label>}{<text>}
\_Xlabel{<label>}{<text>}
...
@@ -118,12 +118,12 @@ The `.ref` file looks like:
%
where <gpageno> is internal page number globally numbered from one and
`<pageno>` is a page number (`\the\pageno`) used in pagination (they may be differ).
-Each page begins with `\_Xpage`.
+Each page begins with \^`\_Xpage`.
The `<label>` is a label used by user in `\label[<label>]` and `<text>` is a
text which should be referenced (the number of section or table, for
example `2.3.14`). The `<title>` is a title of the chapter (`<level>`=1,
`<type>`=`chap`), section (`<level>`=2, `<type>`=`sec`), subsection
-(`<level>`=3, `<type>`=`secc`). The `\_Xpage` is written at begining of each
+(`<level>`=3, `<type>`=`secc`). The \^`\_Xpage` is written at begining of each
page, the `\_Xtoc` is written when chapter or section or subsection title
exists on the page and `\_Xlabel` when labeled object prefixed by
`\label[<label>]` exists on the page.