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

2021-04-01 Thread Henri Menke
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


Cheers, Henri

> If needed, I will deliver a - not yet runnable - minimal example
> here, of course ...
>  
> Thanks a lot in advance for any support!
>  
> Alexander
> _
> __
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> _
> __

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Floating objects next to text mess up paragraph spacing

2021-04-01 Thread Hans Hagen

On 4/1/2021 6:25 PM, Daniel Barker wrote:

Hi all,

I have noticed that placing a floating object next to text with location 
"left", "right", etc. seems to move the current paragraph slightly up, 
resulting in too little space between the current and previous paragraph.


This can be seen quite clearly in the output of the following example:

\setupbodyfont[dejavu, serif, 12pt]

\starttext

   \samplefile{lorem}

   \startplacefigure[location={right, none}]

     \framed[width=3cm, height=2cm]{graphic}

   \stopplacefigure

   \samplefile{lorem}

   \samplefile{lorem}

\stoptext

I am using the current (2021.03.31 18:04) version of ConTeXt LMTX. On 
ConTeXt live, which seems to be running an older version, this does not 
occur, i.e. the spacing is even, as I would expect it to be.


I assume this is a bug, or am I doing something wrong?


fixed in next upload (i overloaded a shortcut when i added something else)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-04-01 Thread a . rosenstock
Thank you, Henri and Aditya! With the "-pipe" I get it to work, too. And the last line of my shellscript - "mv cont-new.pdf my-file.pdf", "my-file" given as a position parameter, I've got my output name ...

 

Cheers, Alexander

 
 

Gesendet: Donnerstag, 01. April 2021 um 18:22 Uhr
Von: "Aditya Mahajan" 
An: "mailing list for ConTeXt users" 
Betreff: Re: [NTG-context] Running a couple of context statements in a linux bash shell heredocument?

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

___
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Floating objects next to text mess up paragraph spacing

2021-04-01 Thread Daniel Barker
Hi all,

 

I have noticed that placing a floating object next to text with location
"left", "right", etc. seems to move the current paragraph slightly up,
resulting in too little space between the current and previous paragraph. 

This can be seen quite clearly in the output of the following example:

 

\setupbodyfont[dejavu, serif, 12pt]

\starttext

  \samplefile{lorem}

 

  \startplacefigure[location={right, none}]

\framed[width=3cm, height=2cm]{graphic}

  \stopplacefigure

 

  \samplefile{lorem}

 

  \samplefile{lorem}

\stoptext

 

I am using the current (2021.03.31 18:04) version of ConTeXt LMTX. On
ConTeXt live, which seems to be running an older version, this does not
occur, i.e. the spacing is even, as I would expect it to be.

I assume this is a bug, or am I doing something wrong?

 

Thank you,

Daniel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-04-01 Thread Aditya Mahajan
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

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] README for pending new subscribers March 2021

2021-04-01 Thread Taco Hoekwater
Hi all,

Regretfully, we have had problems with a hacker messing with the html 
subscription page of this mailing list. In mitigation, we have disabled web - 
based subscription requests completely. 

From now on, subscription to this mailing list can only be requested by sending 
an email message to ntg-context-requ...@ntg.nl with “subscribe" as the Subject.

Unfortunately, it was impossible for us to differentiate between "hacked" and 
“legit” subscription requests made during the month of March 2021 so to prevent 
our mail server from being blacklisted as email sender we have had to discard 
all pending subscription requests. 

This means that anyone that has tried to subscribe to ntg-context during the 
past month (that has not received a confirmation message from mailman welcoming 
them to the mailing list) will have to re-start the subscription process. 

Apologetically,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


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

2021-04-01 Thread Alexander Rosenstock

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?

 

If needed, I will deliver a - not yet runnable - minimal example here, of course ...

 

Thanks a lot in advance for any support!

 

Alexander

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] KeenWrite + ConTeXt: a sneak peek

2021-04-01 Thread Thangalin
Hi all!

Here's a screenshot showing a PDF file created using ConTeXt, exported from
my text editor, KeenWrite:

https://ibb.co/SNg19Sn

Notice the areas highlighted with rounded red rectangles:

* Export PDF button (top-left)
* Exported file name and ConTeXt processing time (lower-left)
* Settings for the --path option (preferences dialog, top)
* Settings for the --environment option (preferences dialog, bottom)
* Document stats (lower-right)

The app has a preview tab that is updated in real-time, which can be
repositioned or closed and is shown to the left. Shown on the right is the
PDF document generated using ConTeXt by clicking the export PDF button.

App screenshots: https://github.com/DaveJarvis/keenwrite#screenshots

Thoughts? Ideas for ConTeXt integration features?

P.S.
Thank you for all the hard work that has gone into ConTeXt: it's truly a
splendid piece of software to use.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___