Re: [NTG-context] Problem with the environment {\quotation}

2016-07-20 Thread Aditya Mahajan

On Thu, 21 Jul 2016, Fabrice Couvreur wrote:


Hello,
With the latest version of Standalone Context, environment {\quotation}
causes a compilation error but with texlive 2016, no problem.
thanks,
Fabrice


\mainlanguage[fr]

\starttext

Seuls les nombres vont servir aux calculs, le gérant peut donc résumer ce
tableau à l'aide du seul tableau de nombres suivant, appelé {\quotation la
matrice \math{A}}.

\stoptext


Use \quotation{} rather than {\quotation ...}

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Problem with the environment {\quotation}

2016-07-20 Thread Fabrice Couvreur
Hello,
With the latest version of Standalone Context, environment {\quotation}
causes a compilation error but with texlive 2016, no problem.
thanks,
Fabrice


\mainlanguage[fr]

\starttext

Seuls les nombres vont servir aux calculs, le gérant peut donc résumer ce
tableau à l'aide du seul tableau de nombres suivant, appelé {\quotation la
matrice \math{A}}.

\stoptext



tex error   > tex error on line 3 in file /home/fab/ntg47.tex: ! Extra
}, or forgotten \endgroup

l.3 ...ant, appelé {\quotation la matrice \math{A}}
___
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
___

Re: [NTG-context] emergency stretch not taken in account in some cases

2016-07-20 Thread Wolfgang Schuster

josephcan...@gmail.com 
20. Juli 2016 um 20:48
I think I could figure out the reason of this problem. Actually 
emergency stretch is broken in all cases it seems. In luatex source 
code I see:


source/texk/web2c/luatexdir/tex/commands.w:
primitive_tex("emergencystretch",

 assign_dimen_cmd, *dimen_base *+ emergency_stretch_code, dimen_base);

source/texk/web2c/luatexdir/tex/equivalents.h:#define 
emergency_stretch_par

*glue_par*(emergency_stretch_code)

source/texk/web2c/luatexdir/tex/equivalents.h:#  define glue_par(A)  
equiv(*glue_base*+(A))


I could be wrong but to me it seems we assign some value to emergency 
stretch “variable” setting using “emergencystretch” command and we use 
another via emergency_stretch_par.


Unfortunately I am not able to build luatex locally on Windows 
Platform, only sync code from SVN repository.

This produces three different paragraphs.

\setupwhitespace[line]

\starttext

\input tufte

\startalignment[stretch]
\input tufte
\stopalignment

\startalignment[extremestretch]
\input tufte
\stopalignment

\stoptext

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
___

Re: [NTG-context] emergency stretch not taken in account in some cases

2016-07-20 Thread josephcanedo
I think I could figure out the reason of this problem. Actually emergency 
stretch is broken in all cases it seems. In luatex source code I see:


source/texk/web2c/luatexdir/tex/commands.w:primitive_tex("emergencystretch",
 assign_dimen_cmd, dimen_base + emergency_stretch_code, dimen_base);


source/texk/web2c/luatexdir/tex/equivalents.h:#define emergency_stretch_par
 glue_par(emergency_stretch_code)


source/texk/web2c/luatexdir/tex/equivalents.h:#  define glue_par(A)  
equiv(glue_base+(A))


I could be wrong but to me it seems we assign some value to emergency stretch 
“variable” setting using “emergencystretch” command and we use another via 
emergency_stretch_par.


Unfortunately I am not able to build luatex locally on Windows Platform, only 
sync code from SVN repository.


Thanks a lot,


Joseph Canedo





From: schuster.wolfg...@gmail.com
Sent: ‎Tuesday‎, ‎July‎ ‎19‎, ‎2016 ‎12‎:‎10‎ ‎AM
To: ntg-context@ntg.nl








josephcan...@gmail.com

18. Juli 2016 um 23:21


Dear all,




In some cases specifying \setupalign[stretch] does not seem to have any effect 
with latest betas (live, 2016.06.20 22:14 version are fine, but 2016.07.18 is 
not), and the output has now overfulls instead of (admitedly a bit large) 
underfulls.




Attached  simple (albeit bit extreme) MWE. Sorry for the relatively large MWE 
but could not figure out how to make it shorter.




emergency_stretch.pdf produced with latest beta (updated with first-setup.bat 
today).

emergency_stretch_ok.pdf produced with 2016.06.20 22:14 version.
I can’t reproduce your problem but justified text isn’t the best option in 
narrow columns.

Below is a simplified version of your code which doesn’t use the parent setting 
from margindata and marginframed setups, there is also no need to set the 
alignment twice and marginframed has no method key (the source is wrong).

\definemargindata
  [InOuter]
  [method=first,
   location=outer,
   margin=margin,
   width=\outermarginwidth,
   style=\tf,
   stack=continue,
   align={normal,hanging,morehyphenation,hz,verytolerant,stretch}]

\definemargindata
  [InInner]
  [method=first,
   location=inner,
   margin=margin, 
   width=\innermarginwidth,
   style=\tf,
   align=outer]

\definemarginframed[InOuter]
\definemarginframed[InInner]

%\setuplayout[width=12cm,rightmargin=4cm]

\starttext

Foo \InOuter{\input knuth } Bar.

\stoptext

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
___

Re: [NTG-context] Setting \textrules

2016-07-20 Thread Fabrice Couvreur
Hi Wolfgang,
Is there a simple way to add a light gray background ?
thanks,
Fabrice

2016-07-14 11:57 GMT+02:00 Fabrice Couvreur :

> Hi Wolfgang,
> it's perfect !
> thanks,
> Fabrice
>
> 2016-07-14 6:41 GMT+02:00 Wolfgang Schuster :
>
>> Fabrice Couvreur 
>> 13. Juli 2016 um 01:02
>> Hello,
>> I would like the text of the property is in italic without using the
>> environment {\it}.
>>
>> Use the enumeration environment.
>>
>> Is this the best way when I use \setuptextrules[width=-1ex] ?
>>
>> You can set the width and distance values to 0pt and put a space after
>> the counter.
>>
>>  begin example
>> \setupbodyfont[pagella,11pt]
>>
>> \define[1]\ProprieteHeadcommand
>>   {\textrule[top]{#1}}
>>
>> \defineenumeration
>>   [propriete]
>>   [text=Propriété ,
>>style=italic,
>>headcommand=\ProprieteHeadcommand,
>>numbercommand=\groupedcommand{}{\nbsp},
>>after=\textrule]
>>
>> \setuptextrules[width=0pt,distance=0pt]
>>
>> \starttext
>>
>> \startpropriete
>> Soit \math{q} un réel \math{\neq 1}, alors pour tout entier naturel
>> \math{n\geqslant 1} on a :
>> \startformula
>> S=1+q+q^2+\dots+q^n=\frac{1-q^{n+1}}{1-q}.
>> \stopformula
>> \stoppropriete
>>
>> \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
>>
>> ___
>>
>
>
___
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
___

[NTG-context] Wrong output for \ruledvbox and \ruledvtop

2016-07-20 Thread Wolfgang Schuster

Hi Hans,

the frames for both boxes are lowered by the depth of the descenders.

\starttext
\ruledvbox{\input ward }
\blank
\ruledvbox{\input ward }
\stoptext

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
___

Re: [NTG-context] Go to odd page, use an empty page eventually?

2016-07-20 Thread Procházka Lukáš Ing .

That's it, thank you! Lukas


On Wed, 20 Jul 2016 10:37:04 +0200, Wolfgang Schuster 
 wrote:


Procházka Lukáš Ing. 
20. Juli 2016 um 09:37
Hello,

is there a way to tell ConTeXt "go to odd page, insert empty page to
reach the next odd page" eventually?

(IOW:
When currently on odd page, break page and insert one empty
(blank) (= even) page; continue on the next (= odd) page.
When currently on even page, break page (and do nothing more) (and
continue on the next (= odd) page).
)

In the following example:


\starttext
  Page 1
  \page[odd]
  %\page[odd,empty]
  %\page[odd,header,footer]
  Page 3
\stoptext


- \page[odd]: page 2 holds header and footer (unwanted)
- \page[odd,empty]: adds one page with header and footer (unwanted),
then inserts an empty page (unwanted)
- \page[odd,header,footer] = \page[odd]

You need "\page[yes,header,footer,odd]".

\starttext
   Page 1\page[yes,header,footer,odd]
  %Page 2
   Page 3\page
   Page 4\page[yes,header,footer,odd]
   Page 5
\stoptext

The keywords have the following effect:

   - yes: force a page break
   - header: sets \setupheader[state=emty] on the following page
   - footer: sets \setupfooter[state=empty] on the following page
   - odd: forces another pagebreak if the current page is even and
resets the header/footer states

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___
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
___

[NTG-context] columnset and placefigure

2016-07-20 Thread Henri Menke
Dear list,

I'm using columnsets to typeset stuff for a conference poster.  I can't
use paragraphs or columns, because these do not allow to set frames or
backgrounds.  Currently I do not use the column-spanning features, but I
might in the future.

The thing is, when I place a figure using `\placefigure` and the column
distance is too large (i.e. the columns too narrow), the figure is not
placed on spot but flushed to the next page.  I'm unsure what the exact
value for this threshold is and based on which criteria the figure is
flushed.  While this is not a problem in a normal document, it is for
sure for a poster (I have not seen any multi-page posters yet).

Please find below an example to illustrate my problem (with version
2016.05.17 19:20 from TL2016).

Cheers, Henri

---

\definecolumnset[threecolumn][n=3]
\startmode[bug]
  \setupcolumnset[threecolumn][each][distance=3cm,frame=on]
\stopmode
\startnotmode[bug]
  \setupcolumnset[threecolumn][each][distance=2.999cm,frame=on]
\stopnotmode
\setupcolumnset[threecolumn][1][distance=0pt]

\starttext

\startcolumnset[threecolumn]
  \placefigure[force,here]{}{\externalfigure[cow][width=\textwidth]}
\column
\stopcolumnset

\stoptext
___
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
___

Re: [NTG-context] Go to odd page, use an empty page eventually?

2016-07-20 Thread Wolfgang Schuster

Procházka Lukáš Ing. 
20. Juli 2016 um 09:37
Hello,

is there a way to tell ConTeXt "go to odd page, insert empty page to 
reach the next odd page" eventually?


(IOW:
When currently on odd page, break page and insert one empty 
(blank) (= even) page; continue on the next (= odd) page.
When currently on even page, break page (and do nothing more) (and 
continue on the next (= odd) page).

)

In the following example:


\starttext
  Page 1
  \page[odd]
  %\page[odd,empty]
  %\page[odd,header,footer]
  Page 3
\stoptext


- \page[odd]: page 2 holds header and footer (unwanted)
- \page[odd,empty]: adds one page with header and footer (unwanted), 
then inserts an empty page (unwanted)

- \page[odd,header,footer] = \page[odd]

You need "\page[yes,header,footer,odd]".

\starttext
  Page 1\page[yes,header,footer,odd]
 %Page 2
  Page 3\page
  Page 4\page[yes,header,footer,odd]
  Page 5
\stoptext

The keywords have the following effect:

  - yes: force a page break
  - header: sets \setupheader[state=emty] on the following page
  - footer: sets \setupfooter[state=empty] on the following page
  - odd: forces another pagebreak if the current page is even and 
resets the header/footer states


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
___

Re: [NTG-context] first-setup.bat weirdness II: xetex etc.

2016-07-20 Thread Hans Hagen

On 7/20/2016 1:42 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear syndicate,

As mentioned in my other message, "first-setup.bat weirdness I: cloned
system" I've now switched to the first-setup.bat way of updating. Two
pieces of weirdness on the main machine:

1. mtx-context | running command: xetex --ini --etex --8bit
cont-en.mkii \dump

makes vista complain:

=
xetex.exe - Unable to Locate Component

This application has failed to start because xetex.dll was not found.

=

Pressing OK, xetex crashes and things continue until

2. mtx-context | running command: xetex --ini --etex --8bit
cont-nl.mkii \dump

Then the same error occurs.

After xetex crashes things continue briefly till first-setup.bat exits.

Everything works fine, except that every now and then the following
happens when I run a file:

=
This is LuaTeX, Version 0.97.0 (TeX Live 2016/W32TeX)
 system commands enabled.
.
<*>
 cont-yes.mkiv
?
=

A fresh run of first-setup.bat makes the problem go away but it is
annoying. After getting even more weirdness when cloning to another
machine -- see "first-setup.bat weirdness I: cloned system" -- it seems
appropriate to put this one out to the forum as well.

Any explanations and advice would be appreciated. Never had these
problems using when updating manually... Thanks in advance and


if you do a fresh install with

--engine=luatex

then you'll never run into xetex or pdftex issues as they will not get 
installed (you get a smaller footprint too)


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Go to odd page, use an empty page eventually?

2016-07-20 Thread Procházka Lukáš Ing .

Hello,

is there a way to tell ConTeXt "go to odd page, insert empty page to reach the next 
odd page" eventually?

(IOW:
When currently on odd page, break page and insert one empty (blank) (= 
even) page; continue on the next (= odd) page.
When currently on even page, break page (and do nothing more) (and 
continue on the next (= odd) page).
)

In the following example:


\starttext
  Page 1
  \page[odd]
  %\page[odd,empty]
  %\page[odd,header,footer]
  Page 3
\stoptext


- \page[odd]: page 2 holds header and footer (unwanted)
- \page[odd,empty]: adds one page with header and footer (unwanted), then 
inserts an empty page (unwanted)
- \page[odd,header,footer] = \page[odd]

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___
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
___

Re: [NTG-context] Restoring/switching paper size?

2016-07-20 Thread Procházka Lukáš Ing .

Great, thank you! Lukas


On Mon, 18 Jul 2016 17:12:04 +0200, Wolfgang Schuster 
 wrote:


A normal environment should be enough (push and pop are used to save and
restore states etc.) which inserts are the necessary page breaks.

\unprotect

\def\startpapersize
   {\page
\pushmacro\page_paper_restore
\setuppapersize}

\def\stoppapersize
   {\page
\popmacro\page_paper_restore
\setuppapersize}

\protect

\starttext
 Page 1. \page
 Page 2. \page
 \startpapersize[A4,landscape]
 Page 3. \page
 Page 4. \page
 \stoppapersize
 Page 5. \page
 Page 6. \page
\stoptext

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___
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
___