diff options
author | Marius <mariausol@gmail.com> | 2013-04-09 22:00:18 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-04-09 22:00:18 +0300 |
commit | f42ba8cf42e75d6f1749d677d847e49afebc3747 (patch) | |
tree | 1d5a7e3fc113071fc0b7e3ceacbc744b8a0eadf7 /tex/context/base/strc-ref.mkvi | |
parent | 6448b726ded4b6f912a588e8f0bafb6182ca5db1 (diff) | |
download | context-f42ba8cf42e75d6f1749d677d847e49afebc3747.tar.gz |
beta 2013.04.09 19:57
Diffstat (limited to 'tex/context/base/strc-ref.mkvi')
-rw-r--r-- | tex/context/base/strc-ref.mkvi | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/tex/context/base/strc-ref.mkvi b/tex/context/base/strc-ref.mkvi index 54f180d8e..c82a09d20 100644 --- a/tex/context/base/strc-ref.mkvi +++ b/tex/context/base/strc-ref.mkvi @@ -259,12 +259,26 @@ \fi} \def\strc_references_set_page_only_destination_box_attribute#cs#labels% - {\strc_references_set_page_only_destination_attribute{#labels}% - \ifnum\lastdestinationattribute>\zerocount - \edef#cs{attr \destinationattribute\number\lastdestinationattribute}% - \else - \let#cs\empty - \fi} + {\strc_references_set_page_only_destination_attribute{#labels}% + \ifnum\lastdestinationattribute>\zerocount + \edef#cs{attr \destinationattribute\number\lastdestinationattribute}% + \else + \let#cs\empty + \fi} + +%D It's about time to clean up references .. stable enough now. + +\unexpanded\def\boxreference[#1]% + {\begingroup + \dowithnextbox + {\strc_references_set_page_only_destination_attribute{#1}% + \hbox + \ifnum\lastdestinationattribute=\attributeunsetvalue\else attr \destinationattribute \lastdestinationattribute \fi + {\box\b_strc_destination_nodes\box\nextbox}% + \endgroup}} + +\unexpanded\def\hboxreference[#1]{\boxreference[#1]\hbox} +\unexpanded\def\vboxreference[#1]{\boxreference[#1]\vbox} % \ifx\currentdestinationattribute\empty % \begingroup\attribute\destinationattribute\currentdestinationattribute\emptyhbox\endgroup % todo |