On 3/8/2015 12:26 PM, Wolfgang Schuster wrote:
Am 08.03.2015 um 11:11 schrieb Hans Hagen
mailto:pragma@wxs.nl>: this should help:
\unexpanded\def\writeviatex#1#2% {\ifx\normalwrite\relax\else % the \detokenize makes sure we don't expand \noexpanded macros \normalwrite#1{\detokenize{#2}}% \fi}
(in future version i might replace write completely)
Only partially because the saved positions from \pdfsavepos are wrong.
in what sense wrong?
%%%% begin example \newwrite\testwrite
\immediate\openout\testwrite=\jobname-testwrite.tmp
\parindent=1cm
\starttext
\indent\pdfsavepos\write\testwrite{1:\number\pdflastxpos:\number\pdflastypos}
\noindent\pdfsavepos\write\testwrite{2:\number\pdflastxpos:\number\pdflastypos}
\page
\indent\pdfsavepos\write\testwrite{3:\number\pdflastxpos:\number\pdflastypos}
\noindent\pdfsavepos\write\testwrite{4:\number\pdflastxpos:\number\pdflastypos}
\page
\indent\pdfsavepos\write\testwrite{5:\number\pdflastxpos:\number\pdflastypos}
\noindent\pdfsavepos\write\testwrite{6:\number\pdflastxpos:\number\pdflastypos}
\stoptext %%%% end example
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------