diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-07-28 23:22:53 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-07-28 23:22:53 +0200 |
commit | 56ea25ca228844e8b89e0a03a6cbcff1759d4384 (patch) | |
tree | 639b5383edae5eda514414d36f73c3e01d5d78bc /tex/context/base/mkiv/strc-not.mkvi | |
parent | 58f82fce8b1f0aa48e3c1acbeed15dee999f51b9 (diff) | |
download | context-56ea25ca228844e8b89e0a03a6cbcff1759d4384.tar.gz |
2020-07-28 23:04:00
Diffstat (limited to 'tex/context/base/mkiv/strc-not.mkvi')
-rw-r--r-- | tex/context/base/mkiv/strc-not.mkvi | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/tex/context/base/mkiv/strc-not.mkvi b/tex/context/base/mkiv/strc-not.mkvi index bc2fc53eb..2605967c6 100644 --- a/tex/context/base/mkiv/strc-not.mkvi +++ b/tex/context/base/mkiv/strc-not.mkvi @@ -952,13 +952,25 @@ \setupnotes [\c!width=\v!auto] +% \def\strc_notes_set_width +% {\edef\p_width{\noteparameter\c!width}% +% \ifx\p_width\v!auto +% \setnoteparameter\c!width{\ifdim\hsize<\makeupwidth\hsize\else\makeupwidth\fi}% +% \else\ifx\p_width\empty +% \setnoteparameter\c!width{\hsize}% +% \fi\fi} + \def\strc_notes_set_width - {\edef\p_width{\noteparameter\c!width}% - \ifx\p_width\v!auto - \setnoteparameter\c!width{\ifdim\hsize<\makeupwidth\hsize\else\makeupwidth\fi}% - \else\ifx\p_width\empty - \setnoteparameter\c!width{\hsize}% - \fi\fi} + {\ifinsidemulticolumns + \setnoteparameter\c!width{\makeupwidth}% + \else + \edef\p_width{\noteparameter\c!width}% + \ifx\p_width\v!auto + \setnoteparameter\c!width{\ifdim\hsize<\makeupwidth\hsize\else\makeupwidth\fi}% + \else\ifx\p_width\empty + \setnoteparameter\c!width{\hsize}% + \fi\fi + \fi} \appendtoks \strc_notes_set_width @@ -1112,12 +1124,21 @@ \c_strc_notes_columns\plusone \fi} +% \def\strc_notes_set_location_page +% {\setfalse\c_strc_notes_delayed +% \strc_notes_set_distance +% \strc_notes_set_columns +% \page_inserts_set_location\currentnoteinsertion\v!page % \setupinsertion[\currentnote][\c!location=\v!page]% +% \global\count\currentnoteinsertionnumber\numexpr\plusthousand/\c_strc_notes_columns\relax +% \global\dimen\currentnoteinsertionnumber\ifnotelimit\dimexpr\noteparameter\c!height*\c_strc_notes_columns\relax\else\maxdimen\fi +% \global\skip \currentnoteinsertionnumber\s_strc_notes_distance\relax} + \def\strc_notes_set_location_page {\setfalse\c_strc_notes_delayed \strc_notes_set_distance \strc_notes_set_columns \page_inserts_set_location\currentnoteinsertion\v!page % \setupinsertion[\currentnote][\c!location=\v!page]% - \global\count\currentnoteinsertionnumber\numexpr\plusthousand/\c_strc_notes_columns\relax + \global\count\currentnoteinsertionnumber\numexpr(\plusthousand/\c_strc_notes_columns)*\nofmulticolumns\relax \global\dimen\currentnoteinsertionnumber\ifnotelimit\dimexpr\noteparameter\c!height*\c_strc_notes_columns\relax\else\maxdimen\fi \global\skip \currentnoteinsertionnumber\s_strc_notes_distance} @@ -2043,4 +2064,3 @@ % \stoptext \protect \endinput - |