summaryrefslogtreecommitdiff
path: root/tex/context/base/node-rul.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/node-rul.mkiv')
-rw-r--r--tex/context/base/node-rul.mkiv40
1 files changed, 17 insertions, 23 deletions
diff --git a/tex/context/base/node-rul.mkiv b/tex/context/base/node-rul.mkiv
index 54a43a006..1f1ac20ec 100644
--- a/tex/context/base/node-rul.mkiv
+++ b/tex/context/base/node-rul.mkiv
@@ -21,14 +21,15 @@
%D overstrike,overstrikes,
%D setupbar}
%D
-%D In the rare case that we need undelined words, for instance because all font
-%D alternatives are already in use, one can use \type {\underbar} and \type
-%D {\overstrike} and their plural forms.
+%D In the rare case that we need undelined words, for instance
+%D because all font alternatives are already in use, one can
+%D use \type{\underbar} and \type{\overstrike} and their plural
+%D forms.
%D
%D \startbuffer
-%D \underbars {drawing \underbar{bars} under words is a typewriter leftover}
-%D \overstrikes {striking words makes them \overstrike {unreadable} but
-%D sometimes even \overbar {top lines} come into view.}
+%D \underbars{drawing \underbar{bars} under words is a typewriter leftover}
+%D \overstrikes{striking words makes them \overstrike{unreadable} but
+%D sometimes even \overbar{top lines} come into view.}
%D \stopbuffer
%D
%D \typebuffer
@@ -37,9 +38,9 @@
%D \getbuffer
%D \stoplines
%D
-%D The next macros are derived from the \PLAIN\ \TEX\ one, but also supports
-%D nesting. The \type{$} keeps us in horizontal mode and at the same time
-%D applies grouping.
+%D The next macros are derived from the \PLAIN\ \TEX\ one, but
+%D also supports nesting. The \type{$} keeps us in horizontal
+%D mode and at the same time applies grouping.
%D
%D \showsetup{underbar}
%D \showsetup{underbars}
@@ -50,19 +51,9 @@
%D
%D \showsetup{setupunderbar}
%D
-%D Nested bars can be configured by appending \type {:<index>} to the category.
-%D Normally units in combination with a unitless thickness specification but
-%D there units can be used too.
-%D
-%D \startbuffer
-%D \setupbars[unit=mm,rulethickness=1] bar\startbar[underbar]foo\stopbar bar\blank
-%D \setupbars[unit=ex,rulethickness=1] bar\startbar[underbar]foo\stopbar bar\blank
-%D \setupbars[unit=pt,rulethickness=1] bar\startbar[underbar]foo\stopbar bar\blank
-%D \setupbars[unit=pt,rulethickness=10pt] bar\startbar[underbar]foo\stopbar bar
-%D \stopbuffer
-%D
-%D \typebuffer \blank \getbuffer \blank
-%D
+%D Nested bars can be configured by appending \type {:<index>} to the
+%D category.
+
%D As with many early usage of \LUA\ in \MKIV\ this mechanism explores a way
%D to deal with local settings at the \TEX\ end and remembering parameters
%D at the \LUA\ end. We might do things differently now, but as settings normally
@@ -116,7 +107,7 @@
offset = \barparameter\c!offset,
continue = "\barparameter\c!continue",
dy = \barparameter\c!dy,
- rulethickness = "\barparameter\c!rulethickness",
+ rulethickness = \barparameter\c!rulethickness,
unit = "\barparameter\c!unit",
order = "\barparameter\c!order",
max = \barparameter\c!max,
@@ -295,6 +286,9 @@
\c!style=,
\c!color=]
+\def\v!shiftup {shiftup}
+\def\v!shiftdown{shiftdown}
+
\defineshift [\v!shiftup] [\c!method=0,\c!dy=-1,\c!unit=ex,\c!continue=\v!yes,\c!style=\txx,\c!color=]
\defineshift [\v!shiftdown] [\c!method=1,\c!dy=.3,\c!unit=ex,\c!continue=\v!yes,\c!style=\txx,\c!color=]