diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-12-03 20:57:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-12-03 20:57:00 +0100 |
commit | 285b43a5386d2559e44b19434eb61773ed9dcfe1 (patch) | |
tree | e140b1f95d538d36ea1e85aece556522c58a463b | |
parent | a0b8219c62b19c148cab790a4a1a97eff0600936 (diff) | |
download | context-285b43a5386d2559e44b19434eb61773ed9dcfe1.tar.gz |
beta 2012.12.03 20:57
-rw-r--r-- | tex/context/base/chem-str.lua | 4 | ||||
-rw-r--r-- | tex/context/base/chem-str.mkiv | 9 | ||||
-rw-r--r-- | tex/context/base/cont-new.mkii | 2 | ||||
-rw-r--r-- | tex/context/base/cont-new.mkiv | 2 | ||||
-rw-r--r-- | tex/context/base/context-version.pdf | bin | 4140 -> 4143 bytes | |||
-rw-r--r-- | tex/context/base/context-version.png | bin | 40011 -> 40394 bytes | |||
-rw-r--r-- | tex/context/base/context.mkii | 2 | ||||
-rw-r--r-- | tex/context/base/context.mkiv | 2 | ||||
-rw-r--r-- | tex/context/base/meta-ini.mkiv | 6 | ||||
-rw-r--r-- | tex/context/base/mlib-run.lua | 4 | ||||
-rw-r--r-- | tex/context/base/status-files.pdf | bin | 24488 -> 24488 bytes | |||
-rw-r--r-- | tex/context/base/status-lua.pdf | bin | 199214 -> 199225 bytes | |||
-rw-r--r-- | tex/generic/context/luatex/luatex-fonts-merged.lua | 2 |
13 files changed, 26 insertions, 7 deletions
diff --git a/tex/context/base/chem-str.lua b/tex/context/base/chem-str.lua index 8c154cc36..0ca82d2e1 100644 --- a/tex/context/base/chem-str.lua +++ b/tex/context/base/chem-str.lua @@ -577,7 +577,11 @@ function chemistry.stop() if trace_metapost then report_chemistry("metapost code:\n%s", mpcode) end + if metapost.instance(chemistry.instance) then + t_initialize = "" + end metapost.graphic(chemistry.instance,chemistry.format,mpcode,"","",t_initialize) + t_initialize = "" metacode = nil end diff --git a/tex/context/base/chem-str.mkiv b/tex/context/base/chem-str.mkiv index 0fc2a2bee..a2b0f135f 100644 --- a/tex/context/base/chem-str.mkiv +++ b/tex/context/base/chem-str.mkiv @@ -62,6 +62,15 @@ %D a historical and practical reason (like shared keys with different meaning %D that could clash, e.g.\ align). + +\defineMPinstance + [chemistry] + [\s!format=metafun] + +\startMPdefinitions{chemistry} + input mp-chem.mpiv ; +\stopMPdefinitions + \defineframed [\??chemicalframed] [\c!align=\v!normal, diff --git a/tex/context/base/cont-new.mkii b/tex/context/base/cont-new.mkii index 83c27547e..35dbc92d2 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.12.03 11:33} +\newcontextversion{2012.12.03 20:57} %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 75f387e59..e294d9e0a 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.12.03 11:33} +\newcontextversion{2012.12.03 20:57} %D This file is loaded at runtime, thereby providing an excellent place for %D hacks, patches, extensions and new features. diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf Binary files differindex 4f4f7a4d8..92465ce97 100644 --- a/tex/context/base/context-version.pdf +++ b/tex/context/base/context-version.pdf diff --git a/tex/context/base/context-version.png b/tex/context/base/context-version.png Binary files differindex bb7d07636..86464708b 100644 --- a/tex/context/base/context-version.png +++ b/tex/context/base/context-version.png diff --git a/tex/context/base/context.mkii b/tex/context/base/context.mkii index 08ee26d3f..a5fcad1af 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.12.03 11:33} +\edef\contextversion{2012.12.03 20:57} %D For those who want to use this: diff --git a/tex/context/base/context.mkiv b/tex/context/base/context.mkiv index 60260f68f..c1480397d 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.12.03 11:33} +\edef\contextversion{2012.12.03 20:57} %D For those who want to use this: diff --git a/tex/context/base/meta-ini.mkiv b/tex/context/base/meta-ini.mkiv index e81206cd1..55080c78c 100644 --- a/tex/context/base/meta-ini.mkiv +++ b/tex/context/base/meta-ini.mkiv @@ -122,9 +122,11 @@ \ifx\currentMPgraphicname\empty \edef\currentMPgraphicname{#1}% \let\currentMPinstance\defaultMPinstance - \else + \else\ifcsname\??mpinstancetokens#1\endcsname \edef\currentMPinstance{#1}% - \fi + \else + \let\currentMPinstance\defaultMPinstance + \fi\fi \edef\currentMPformat{\MPinstanceparameter\s!format}} \def\currentMPinstance{\defaultMPinstance} diff --git a/tex/context/base/mlib-run.lua b/tex/context/base/mlib-run.lua index 25e74790a..62203e95e 100644 --- a/tex/context/base/mlib-run.lua +++ b/tex/context/base/mlib-run.lua @@ -354,6 +354,10 @@ function metapost.format(instance,name) return mpx end +function metapost.instance(instance) + return mpxformats[instance] +end + function metapost.reset(mpx) if not mpx then -- nothing diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf Binary files differindex 905dd140f..5b7000428 100644 --- a/tex/context/base/status-files.pdf +++ b/tex/context/base/status-files.pdf diff --git a/tex/context/base/status-lua.pdf b/tex/context/base/status-lua.pdf Binary files differindex cdc59418d..f7d44e59f 100644 --- a/tex/context/base/status-lua.pdf +++ b/tex/context/base/status-lua.pdf diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua index 75d8ab775..5ff674552 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 : 12/03/12 11:33:58 +-- merge date : 12/03/12 20:57:03 do -- begin closure to overcome local limits and interference |