[NTG-context] Running a couple of context statements in a linux bash shell heredocument?

Aditya Mahajan adityam at umich.edu
Thu Apr 1 18:22:21 CEST 2021


On Thu, 1 Apr 2021, Henri Menke wrote:

> On Thu, 2021-04-01 at 16:23 +0200, Alexander Rosenstock wrote:
> > Hi all,
> >  
> > is it possible running a couple of context statements as a
> > heredocument integrated in a - for example linux bash - shellscript?
> > Do you have any experience or idea or alternative solution?
> >  
> 
> This will work, but only if file_that_does_not_exist (possibly with
> additional file extensions) does not exist:
> 
> $ cat <<'EOF' | context file_that_does_not_exist
> \starttext
> Hello world!
> \stoptext
> EOF
 
I couldn't get that to work but this works ...

$cat <<'EOF' | context --pipe 
\starttext
Hello world!
\stoptext
EOF

Generates a file called cont-new.pdf. I could not change it using --result or --jobname.

Aditya



More information about the ntg-context mailing list