summaryrefslogtreecommitdiff
path: root/tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-07-19 22:16:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-07-19 22:16:00 +0200
commit1b91c0960a750cd80f426200db51bf10f33f8fc3 (patch)
treefb9461fba0c3a3ad49897020e49fb965178e714c /tex
parent4e5eed06ffd2d61e809babcdedd5d37fa8f6c97f (diff)
downloadcontext-1b91c0960a750cd80f426200db51bf10f33f8fc3.tar.gz
beta 2012.07.19 22:16
Diffstat (limited to 'tex')
-rw-r--r--tex/context/base/cont-new.mkii2
-rw-r--r--tex/context/base/cont-new.mkiv2
-rw-r--r--tex/context/base/context-version.pdfbin4085 -> 4083 bytes
-rw-r--r--tex/context/base/context-version.pngbin106701 -> 106343 bytes
-rw-r--r--tex/context/base/context.mkii2
-rw-r--r--tex/context/base/context.mkiv2
-rw-r--r--tex/context/base/status-files.pdfbin24359 -> 24339 bytes
-rw-r--r--tex/context/base/status-lua.pdfbin184336 -> 184336 bytes
-rw-r--r--tex/context/base/tabl-xtb.mkvi63
-rw-r--r--tex/generic/context/luatex/luatex-fonts-merged.lua2
10 files changed, 52 insertions, 21 deletions
diff --git a/tex/context/base/cont-new.mkii b/tex/context/base/cont-new.mkii
index e6b0d555a..4307f908b 100644
--- a/tex/context/base/cont-new.mkii
+++ b/tex/context/base/cont-new.mkii
@@ -11,7 +11,7 @@
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
-\newcontextversion{2012.07.19 17:52}
+\newcontextversion{2012.07.19 22:16}
%D This file is loaded at runtime, thereby providing an
%D excellent place for hacks, patches, extensions and new
diff --git a/tex/context/base/cont-new.mkiv b/tex/context/base/cont-new.mkiv
index b7561d9fe..0c5a4f121 100644
--- a/tex/context/base/cont-new.mkiv
+++ b/tex/context/base/cont-new.mkiv
@@ -11,7 +11,7 @@
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
-\newcontextversion{2012.07.19 17:52}
+\newcontextversion{2012.07.19 22:16}
%D This file is loaded at runtime, thereby providing an
%D excellent place for hacks, patches, extensions and new
diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf
index 2d139e24e..f7e9cc638 100644
--- a/tex/context/base/context-version.pdf
+++ b/tex/context/base/context-version.pdf
Binary files differ
diff --git a/tex/context/base/context-version.png b/tex/context/base/context-version.png
index dbc393baa..2ec566803 100644
--- a/tex/context/base/context-version.png
+++ b/tex/context/base/context-version.png
Binary files differ
diff --git a/tex/context/base/context.mkii b/tex/context/base/context.mkii
index c59ca3c06..e3aaf557e 100644
--- a/tex/context/base/context.mkii
+++ b/tex/context/base/context.mkii
@@ -20,7 +20,7 @@
%D your styles an modules.
\edef\contextformat {\jobname}
-\edef\contextversion{2012.07.19 17:52}
+\edef\contextversion{2012.07.19 22:16}
%D For those who want to use this:
diff --git a/tex/context/base/context.mkiv b/tex/context/base/context.mkiv
index 94d6d8343..f79983667 100644
--- a/tex/context/base/context.mkiv
+++ b/tex/context/base/context.mkiv
@@ -25,7 +25,7 @@
%D up and the dependencies are more consistent.
\edef\contextformat {\jobname}
-\edef\contextversion{2012.07.19 17:52}
+\edef\contextversion{2012.07.19 22:16}
%D For those who want to use this:
diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf
index 55b3277fe..889326aeb 100644
--- a/tex/context/base/status-files.pdf
+++ b/tex/context/base/status-files.pdf
Binary files differ
diff --git a/tex/context/base/status-lua.pdf b/tex/context/base/status-lua.pdf
index 0919a564f..6520200b5 100644
--- a/tex/context/base/status-lua.pdf
+++ b/tex/context/base/status-lua.pdf
Binary files differ
diff --git a/tex/context/base/tabl-xtb.mkvi b/tex/context/base/tabl-xtb.mkvi
index b5f123f43..ae65acdb7 100644
--- a/tex/context/base/tabl-xtb.mkvi
+++ b/tex/context/base/tabl-xtb.mkvi
@@ -59,8 +59,6 @@
\unprotect
-% \def\v!xtable{xtable}
-
% option=stretch : equal distribution
% option={stretch,width} : proportional distribution
% option={max} : prefer max over forced width/height
@@ -126,7 +124,7 @@
% \c!bodyfont=,
\c!width=\v!fit,
\c!height=\v!fit,
- \c!maxwidth=8em,
+ \c!maxwidth=8\emwidth,
\c!autowidth=\v!yes, % controls framed
\c!rulethickness=\linewidth,
\c!strut=\v!yes,
@@ -139,8 +137,8 @@
% \c!footer=,
% \c!header=,
\c!spaceinbetween=,
- \c!textwidth=\v!local, % was \hsize,
- \c!textheight=\vsize,
+ \c!textwidth=\v!local, % was \hsize,
+ \c!textheight=\vsize, % used for vertical spread
\c!distance=\zeropoint, % individual column
\c!columndistance=\zeropoint, % each column (whole table)
\c!leftmargindistance=\zeropoint, % whole table
@@ -308,15 +306,56 @@
\else\ifinsidefloat
\tabl_x_flush_float_normal
\else
- \doifelse{\xtableparameter\c!split}\v!yes
- \tabl_x_flush_flow_split
- \tabl_x_flush_flow_normal
+ \tabl_x_flush_text_checked
\fi\fi
\ctxcommand{x_table_cleanup()}%
\dostoptagged
\resetbuffer[\tabl_x_current_buffer]%
\egroup}
+\installcorenamespace{xtableflushsplit}
+
+\def\tabl_x_flush_text_checked
+ {\expandcheckedcsname\??xtableflushsplit{\xtableparameter\c!split}\v!no}
+
+\setvalue{\??xtableflushsplit\v!yes}%
+ {\ctxcommand{x_table_flush{ method = "\v!split" }}}
+
+\setvalue{\??xtableflushsplit\v!no}%
+ {\dontleavehmode % else no leftskip etc
+ \ctxcommand{x_table_flush{ method = "\v!normal" }}}
+
+\setvalue{\??xtableflushsplit\v!repeat}%
+ {\doloop
+ {\ctxcommand{x_table_flush{ method = "\v!split", vsize = \number\ifdim\pagegoal=\maxdimen\textheight\else\pagegoal\fi }}%
+ \ifcase\c_tabl_x_state
+ \exitloop
+ \else
+ \page
+ \fi}}
+
+% \setvalue{\??xtableflushsplit\v!setups}%
+% {\directsetup{xtable:split:user}}
+%
+% \startsetups[xtable:split:user]
+% \doloop {
+% \xtablesplitflush % uses \xtablesplitvsize (a macro)
+% \ifcase\xtablesplitstate
+% \exitloop
+% \else
+% \page
+% \fi
+% }
+% \stopsetups
+%
+% \unexpanded\def\xtablesplitflush
+% {\ctxcommand{x_table_flush{ method = "\v!split", vsize = \number\dimexpr\xtablesplitvsize\relax}}\relax}
+%
+% \def\xtablesplitvsize
+% {\ifdim\pagegoal=\maxdimen\textheight\else\pagegoal\fi}
+%
+% \let\xtablesplitstate\c_tabl_x_state
+
\let\extratxtablesplitheight\zeropoint % might disappear so don't depend on it
\def\tabl_x_flush_float_normal
@@ -331,14 +370,6 @@
\let\tsplitdirectwidth \d_tabl_x_final_width
\handledirecttsplit}
-
-\def\tabl_x_flush_flow_normal
- {\dontleavehmode % else no leftskip etc
- \ctxcommand{x_table_flush{ method = "\v!normal" }}}
-
-\def\tabl_x_flush_flow_split
- {\ctxcommand{x_table_flush{ method = "\v!split" }}}
-
\def\tabl_x_split_splitter#vsize%
{\setbox\tsplitresult\vbox
{\ctxcommand{x_table_flush{ method = "\v!split", vsize = \number\dimexpr#vsize }}}%
diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua
index c29f9563e..de0aaf5a5 100644
--- a/tex/generic/context/luatex/luatex-fonts-merged.lua
+++ b/tex/generic/context/luatex/luatex-fonts-merged.lua
@@ -1,6 +1,6 @@
-- merged file : luatex-fonts-merged.lua
-- parent file : luatex-fonts.lua
--- merge date : 07/19/12 17:52:05
+-- merge date : 07/19/12 22:16:49
do -- begin closure to overcome local limits and interference