Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Aditya Mahajan
On Fri, 17 Jun 2016, Wolfgang Schuster wrote: Pavneet Arora 17. Juni 2016 um 14:22 I tried to use Aditya's suggestion (which was for Natural Tables) to keep paragraphs on the same page: \noindent{\blank[samepage]} but I don't seem to have much success with the

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Mojca Miklavec
On 17 June 2016 at 14:16, Pavneet Arora wrote: > I am stuggling with getting ConTeXt to run from inside a php script > under Apache. First off, let me say that the installation works fine > from the command line as a logged in user. > > Initially, I tried to do it inline: > > cmd = ". /opt/conte

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Henning Hraban Ramm
Am 2016-06-17 um 20:57 schrieb Pavneet Arora : > $ chmod -R www-data:www-data context > > So ConTeXt is installed in .../www/public/context. > > Now I can source: > > $ . .../www/public/context/tex/setuptex .../www/public/context/tex > > and it all works. Please document this in the wiki (I

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
Ah, we were thinking along the same lines! ;) I had just initiated a local install inside .../www/public when I received your email, which is in fact the DocumentRoot for this website, and did: $ chmod -R www-data:www-data context So ConTeXt is installed in .../www/public/context. Now I can s

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Hans Hagen
On 6/17/2016 3:39 PM, Pavneet Arora wrote: That is really the crux of the issue, since www-data does *not* have a login shell. It is used only by apache. Can setuptex be made to point to the home directory explicitly where the website is housed, e.g., '/home/wwwuser' with user 'wwwuser'? On 17

Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Wolfgang Schuster
Pavneet Arora 17. Juni 2016 um 14:22 I tried to use Aditya's suggestion (which was for Natural Tables) to keep paragraphs on the same page: \noindent{\blank[samepage]} but I don't seem to have much success with the MWE I posted earlier. Try as a might, I cannot

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
That is really the crux of the issue, since www-data does *not* have a login shell. It is used only by apache. Can setuptex be made to point to the home directory explicitly where the website is housed, e.g., '/home/wwwuser' with user 'wwwuser'? On 17Jun16, luigi scarso wrote: > Is texmf-cach

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread luigi scarso
On Fri, Jun 17, 2016 at 2:42 PM, Pavneet Arora wrote: > Unfortunately, while the mtxrun command works for a shell user: > > $ mtxrun -script base --variables | grep cache > resolvers | lists | env: $SELFAUTOPARENT/texmf-cache > resolvers | lists | var: $SELFAUTOPARENT/texmf-

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
Unfortunately, while the mtxrun command works for a shell user: $ mtxrun -script base --variables | grep cache resolvers | lists | env: $SELFAUTOPARENT/texmf-cache resolvers | lists | var: $SELFAUTOPARENT/texmf-cache resolvers | lists | exp: /opt/context/tex/texmf-c

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread luigi scarso
On Fri, Jun 17, 2016 at 2:25 PM, Pavneet Arora wrote: > That is what I suspect as well. How do I find out which cache path is > being used? > > Thanks. > > $ mtxrun --script base --variables |grep cache -- luigi

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
That is what I suspect as well. How do I find out which cache path is being used? Thanks. On 17Jun16, luigi scarso wrote: > On Fri, Jun 17, 2016 at 2:16 PM, Pavneet Arora > wrote: ... > > > When I trap the output, I get the following error in the log file: > > > > resolvers | caches |

Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Pavneet Arora
I tried to use Aditya's suggestion (which was for Natural Tables) to keep paragraphs on the same page: \noindent{\blank[samepage]} but I don't seem to have much success with the MWE I posted earlier. Try as a might, I cannot seem to keep the paragraph head "{\ss\tfc English (Grade 12)}" and

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread luigi scarso
On Fri, Jun 17, 2016 at 2:16 PM, Pavneet Arora wrote: > I am stuggling with getting ConTeXt to run from inside a php script > under Apache. First off, let me say that the installation works fine > from the command line as a logged in user. > > Initially, I tried to do it inline: > > cmd = ". /

[NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Pavneet Arora
I am stuggling with getting ConTeXt to run from inside a php script under Apache. First off, let me say that the installation works fine from the command line as a logged in user. Initially, I tried to do it inline: cmd = ". /opt/context/tex/setuptex /opt/context/tex/setuptex; cd $spool_dir;

Re: [NTG-context] Latin setupmathematics

2016-06-17 Thread Hans ร…berg
> On 17 Jun 2016, at 06:20, Alan BRASLAU wrote: > > On Fri, 17 Jun 2016 01:02:48 +0200 > Hans ร…berg wrote: > >> The idea is avoiding clashes between variables and constants, like >> this: >> >> \starttext >> >> \setupmathematics[default=normal] >> >> $๐‘’ = โˆ‘_{๐‘–=1}^โˆž e^{i-๐‘–}$ >> >> \setupmat

Re: [NTG-context] Flushleft formula

2016-06-17 Thread Hans Hagen
On 6/17/2016 12:18 AM, Aditya Mahajan wrote: On Thu, 16 Jun 2016, Hans Hagen wrote: On 6/16/2016 6:58 PM, Aditya Mahajan wrote: Hi, Something has changed with respect to the align=flushleft option for formulas. Earlier (tested with 2016.05.08), align=flushleft did not remove the leftskip,