Take account of change from tcrfenum to crossrefenum

This commit is contained in:
Bastien Dumont
2022-11-06 21:51:12 +01:00
parent ac7abe5ef0
commit aeb693793b
5 changed files with 56 additions and 56 deletions

View File

@ -11,7 +11,7 @@
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "context")
"\\tcrfenum{{toc-notes-begin to toc-notes-end}}"
"\\crossrefenum{{toc-notes-begin to toc-notes-end}}"
]
, Str ".)"
]
@ -77,7 +77,7 @@
, Space
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline (Format "context") "\\tcrfenum{{publication}}" ]
[ RawInline (Format "context") "\\crossrefenum{{publication}}" ]
, Space
, Str "for"
, Space
@ -104,7 +104,7 @@
, Span
( "" , [ "tcrf" ] , [ ( "reftype" , "pagenote" ) ] )
[ RawInline
(Format "context") "\\tcrfenum[pagenote]{{my-evaluation}}"
(Format "context") "\\crossrefenum[pagenote]{{my-evaluation}}"
]
, Str "."
]
@ -131,7 +131,7 @@
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "context") "\\tcrfenum{{publication to reception}}"
(Format "context") "\\crossrefenum{{publication to reception}}"
]
, Str "."
]
@ -255,7 +255,7 @@
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "context") "\\tcrfenum{{refer-to-note}}"
(Format "context") "\\crossrefenum{{refer-to-note}}"
]
, Str "."
]
@ -275,7 +275,7 @@
, Space
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline (Format "context") "\\tcrfenum{{format}}" ]
[ RawInline (Format "context") "\\crossrefenum{{format}}" ]
, Str "."
]
]
@ -305,7 +305,7 @@
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "context") "\\tcrfenum{{which-identifier}}"
(Format "context") "\\crossrefenum{{which-identifier}}"
]
, Str "."
]
@ -338,7 +338,7 @@
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "context") "\\tcrfenum{{nested-spans}}"
(Format "context") "\\crossrefenum{{nested-spans}}"
]
, Str "."
]
@ -358,7 +358,7 @@
( "" , [ "tcrf" ] , [ ( "reftype" , "note" ) ] )
[ RawInline
(Format "context")
"\\tcrfenum[note]{{my-evaluation}{format}{refer-to-note}}"
"\\crossrefenum[note]{{my-evaluation}{format}{refer-to-note}}"
]
]
]
@ -377,7 +377,7 @@
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "context")
"\\tcrfenum{{my-evaluation}{format}}"
"\\crossrefenum{{my-evaluation}{format}}"
]
]
]

View File

@ -11,7 +11,7 @@
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "latex")
"\\tcrfenum{{toc-notes-begin to toc-notes-end}}"
"\\crossrefenum{{toc-notes-begin to toc-notes-end}}"
]
, Str ".)"
]
@ -77,7 +77,7 @@
, Space
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline (Format "latex") "\\tcrfenum{{publication}}" ]
[ RawInline (Format "latex") "\\crossrefenum{{publication}}" ]
, Space
, Str "for"
, Space
@ -104,7 +104,7 @@
, Span
( "" , [ "tcrf" ] , [ ( "reftype" , "pagenote" ) ] )
[ RawInline
(Format "latex") "\\tcrfenum[pagenote]{{my-evaluation}}"
(Format "latex") "\\crossrefenum[pagenote]{{my-evaluation}}"
]
, Str "."
]
@ -131,7 +131,7 @@
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "latex") "\\tcrfenum{{publication to reception}}"
(Format "latex") "\\crossrefenum{{publication to reception}}"
]
, Str "."
]
@ -254,7 +254,7 @@
, Space
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline (Format "latex") "\\tcrfenum{{refer-to-note}}"
[ RawInline (Format "latex") "\\crossrefenum{{refer-to-note}}"
]
, Str "."
]
@ -274,7 +274,7 @@
, Space
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline (Format "latex") "\\tcrfenum{{format}}" ]
[ RawInline (Format "latex") "\\crossrefenum{{format}}" ]
, Str "."
]
]
@ -304,7 +304,7 @@
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "latex") "\\tcrfenum{{which-identifier}}"
(Format "latex") "\\crossrefenum{{which-identifier}}"
]
, Str "."
]
@ -336,7 +336,7 @@
, Space
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline (Format "latex") "\\tcrfenum{{nested-spans}}"
[ RawInline (Format "latex") "\\crossrefenum{{nested-spans}}"
]
, Str "."
]
@ -356,7 +356,7 @@
( "" , [ "tcrf" ] , [ ( "reftype" , "note" ) ] )
[ RawInline
(Format "latex")
"\\tcrfenum[note]{{my-evaluation}{format}{refer-to-note}}"
"\\crossrefenum[note]{{my-evaluation}{format}{refer-to-note}}"
]
]
]
@ -374,7 +374,7 @@
, Span
( "" , [ "tcrf" ] , [] )
[ RawInline
(Format "latex") "\\tcrfenum{{my-evaluation}{format}}"
(Format "latex") "\\crossrefenum{{my-evaluation}{format}}"
]
]
]

View File

@ -5,27 +5,27 @@ assert(#refs == 1)
assert(refs[1].anchor == 'mylabel')
assert(not refs[1].end_of_range)
assert(make_raw_content_tex(refs, 'page', true)
== '\\tcrfenum{{mylabel}}')
== '\\crossrefenum{{mylabel}}')
assert(make_raw_content_tex(refs, 'page', false)
== '\\tcrfenum[noprefix]{{mylabel}}')
== '\\crossrefenum[noprefix]{{mylabel}}')
assert(make_raw_content_tex(refs, 'note', true)
== '\\tcrfenum[note]{{mylabel}}')
== '\\crossrefenum[note]{{mylabel}}')
assert(make_raw_content_tex(refs, 'note', false)
== '\\tcrfenum[note][noprefix]{{mylabel}}')
== '\\crossrefenum[note][noprefix]{{mylabel}}')
refs = parse_references_enum('rangebeg>rangeend')
assert(#refs == 1)
assert(refs[1].anchor == 'rangebeg')
assert(refs[1].end_of_range == 'rangeend')
assert(make_raw_content_tex(refs, 'page', true)
== '\\tcrfenum{{rangebeg to rangeend}}')
== '\\crossrefenum{{rangebeg to rangeend}}')
refs = parse_references_enum('first, second')
assert(#refs == 2)
assert(refs[1].anchor == 'first')
assert(refs[2].anchor == 'second')
assert(make_raw_content_tex(refs, 'page', true)
== '\\tcrfenum{{first}{second}}')
== '\\crossrefenum{{first}{second}}')
refs = parse_references_enum('first, rangebeg>rangeend')
assert(#refs == 2)
@ -33,4 +33,4 @@ assert(refs[1].anchor == 'first')
assert(refs[2].anchor == 'rangebeg')
assert(refs[2].end_of_range == 'rangeend')
assert(make_raw_content_tex(refs, 'page', true)
== '\\tcrfenum{{first}{rangebeg to rangeend}}')
== '\\crossrefenum{{first}{rangebeg to rangeend}}')