Re: [NTG-context] help on def & buffer

2016-03-30 Thread Erik Margraf
Ups, didn't expect that ... ;-) Thanks Wolfgang! Actually your version works, Hans' version does not ... (could try them only now) Kind regards Erik On Wed, Mar 30, 2016 at 2:46 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Hans Hagen > 30. März 2016 um 10:11 >

Re: [NTG-context] help on def & buffer

2016-03-30 Thread Wolfgang Schuster
Hans Hagen 30. März 2016 um 10:11 \startbuffer .. \stopbuffer is parsed special so use: \def\Buffer#1#2 {\setbuffer[#1]{\input #2\relax}} \def\Buffer#1#2% {\setbuffer[#1]\input{#2}\endbuffer} Wolfgang

Re: [NTG-context] help on def & buffer

2016-03-30 Thread Marco Patzer
On Wed, 30 Mar 2016 10:34:46 +0200 Erik Margraf wrote: > My plan is simply to use the output of a sagemath run in this way. A > run should produce > several files containing TeX code. I only wanted to shorten the > \startbuffer \input ... \stopbuffer > sequence. Maybe

Re: [NTG-context] help on def & buffer

2016-03-30 Thread Erik Margraf
Than you Hans! My plan is simply to use the output of a sagemath run in this way. A run should produce several files containing TeX code. I only wanted to shorten the \startbuffer \input ... \stopbuffer sequence. Maybe this (including sagemath output) could be done differently, but this was the

Re: [NTG-context] help on def & buffer

2016-03-30 Thread Hans Hagen
On 3/30/2016 9:27 AM, Erik Margraf wrote: Dear List, please help me with my problem here I - probably naively - tried the following: \starttext \def\Buffer#1#2 { \startbuffer[#1] \input #2 \stopbuffer } \Buffer{bla}{knuth} \stoptext

[NTG-context] help on def & buffer

2016-03-30 Thread Erik Margraf
Dear List, please help me with my problem here I - probably naively - tried the following: \starttext \def\Buffer#1#2 { \startbuffer[#1] \input #2 \stopbuffer } \Buffer{bla}{knuth} \stoptext - Context gives me the following