summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/context/third/filter/filter.txt7
-rw-r--r--Master/texmf-dist/tex/context/third/filter/t-filter.tex14
2 files changed, 18 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/context/third/filter/filter.txt b/Master/texmf-dist/doc/context/third/filter/filter.txt
index 942882d89d6..f4a52eebb6c 100644
--- a/Master/texmf-dist/doc/context/third/filter/filter.txt
+++ b/Master/texmf-dist/doc/context/third/filter/filter.txt
@@ -261,6 +261,9 @@ and `after` options. These are executed before and after the output file is read
using `readcommand`. Typically, these options are used to set the spacing around
the environment or enclose the output in a frame, etc.
+`style` and `color` options set the style and color of the processed
+content. Currently, these options only work with MkIV.
+
`\defineexternalfilter` also accepts a `setups` option to specify a list of
setups (defined using `\startsetup`). These setups may be used to define
commands that are needed inside the environment.
@@ -270,6 +273,8 @@ The order in which these options are executed is:
\def\dodoreadprocessedfile
{\externalfilterparameter\c!before
\begingroup
+ \doifmode\s!mkiv
+ {\dosetexternalfilterattributes\c!style\c!color}
\processcommacommand[\externalfilterparameter\c!setups]\directsetup
\externalfilterparameter\c!readcommand\externalfilteroutputfile
\endgroup
@@ -473,3 +478,5 @@ Version History
- **2011.01.28**
- Bugfix. The filter counter was not incremented inside a group. Made the
increment global.
+- **2011.02.21**
+ - Added `style` and `color` options.
diff --git a/Master/texmf-dist/tex/context/third/filter/t-filter.tex b/Master/texmf-dist/tex/context/third/filter/t-filter.tex
index b9ec5d5e5f2..a05fa94324e 100644
--- a/Master/texmf-dist/tex/context/third/filter/t-filter.tex
+++ b/Master/texmf-dist/tex/context/third/filter/t-filter.tex
@@ -1,6 +1,6 @@
%D \module
%D [ file=t-filter,
-%D version=2011.02.05,
+%D version=2011.02.21,
%D title=\CONTEXT\ User Module,
%D subtitle=Filter,
%D author=Aditya Mahajan,
@@ -51,8 +51,12 @@
\ifx\undefined\normalexpanded \let\normalexpanded\expanded \fi
-\installparameterhandler \????externalfilter \!!!!externalfilter
-\installsetuphandler \????externalfilter {externalfilters} %Note the plural
+\installparameterhandler \????externalfilter \!!!!externalfilter
+\installparameterhashhandler \????externalfilter \!!!!externalfilter
+\installsetuphandler \????externalfilter {externalfilters} %Note the plural
+
+\doifmode\s!mkiv
+ {\installattributehandler \????externalfilter \!!!!externalfilter}
%D \section {Tracing Macros}
@@ -319,6 +323,8 @@
\def\dodoreadprocessedfile
{\externalfilterparameter\c!before
\begingroup
+ \doifmode\s!mkiv
+ {\dosetexternalfilterattributes\c!style\c!color}
\processcommacommand[\externalfilterparameter\c!setups]\directsetup
\externalfilterparameter\c!readcommand\externalfilteroutputfile
\endgroup
@@ -330,6 +336,8 @@
[
\c!before=,
\c!after=,
+ \c!style=,
+ \c!color=,
\c!setups=,
\c!continue=\v!no,
\c!read=\v!yes,