Re: [NTG-context] Font affects columnar list layout

2014-02-23 Thread Hans Hagen

On 2/22/2014 10:56 PM, Thangalin wrote:

I've posted the same question (with a bit more information on the
fixes I've attempted) on SE:

http://tex.stackexchange.com/questions/161711/context-font-change-shifts-column-content


such examples need to be real minimal and use fonts that are in the 
distribution


btw, using vskip is not recommended, better use

  before={\blank[halfline]},
  after={\blank[halfline]},



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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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
___


Re: [NTG-context] Protrusion cancellation by index term

2014-02-23 Thread Hans Hagen

On 2/22/2014 2:38 PM, Jan Tosovsky wrote:

On 2014-02-22 Jan Tosovsky wrote:


when a punctuated phrase appears at the beginning of the line, it is
not protruded correctly when preceded by an index term.

... \index{foo}Bar ...

A minimal example is available at
http://drifted.in/other/sample.tex

I cannot place the space character between these two parts (which
helps) as I sometimes need to join this and the previous phrase with
the non-breaking space.



It is more serious issue than expected. Consider next two variants:

(1) sentence, \index{primary}Primary
(2) sentence,\index{primary} Primary

When the line is broken after a comma:
ad 1) starting guillemet is not protruded
ad 2) ending comma is not protruded

When \index is surrounded by spaces from both sides, the space is rendered
at the beginning of the next line (resulting in 'indenting').

:-S

I'd be grateful for ignoring any non document content preceding punctuation
to avoid its influence on protrusion.


well, think of it like this:

[something]text[something else]

with [something] being bound to  ... so that is then the boundary of 
the word, not  ... i might know a solution (but such -major- changes 
have to fit into my schedule)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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] \definefallbackfamily issues

2014-02-23 Thread Pablo Rodriguez
Hi Wolfgang,

sorry for asking about the \definefallbackfamily again, but I have the
impression that the more I use, the less I understand it.

Here is the sample:

\setuplanguage[en][patterns={en,agr,ru}]
\definefallbackfamily[mainface][serif][CMU Serif][preset={range:greek,
range:cyrillic}, it={DejaVu Serif-Italic, scale:0.935}]
\definefontfamily[mainface][serif][TeX Gyre Pagella]
\setupbodyfont[mainface,14pt]
\starttext
Mixing scripts.

В начале июля

Λόγος δέ ἐστι {\em φωνὴ σημαντική}.
\stoptext

I have three questions:

How can I define one fallback with more than one range preset? (I tried
many combinations, but none of them worked.)

I cannot get a different italic fallback font if the fallback typeface
specified in the third argument has an italic font. What am I doing
wrong here?

Is it possible to scale only the italic font in a fallback definition
and not whole typeface? (In some cases, the feature is extremely handy.)

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] how to set the CropBox in MkIV?

2014-02-23 Thread Sanjoy Mahajan
What is the MkIV/LuaTeX way to set the CropBox?
In MkII/PDFTeX, I used

  \pdfpagesattr = {/CropBox [54 72 558 720]}

With MkIV, I've tried 

  \pdfcompresslevel 0
  \pdfbackendsetpagesattribute{CropBox}{[54 72 558 720]}
  \starttext
  \input knuth
  \stoptext

but that set the CropBox as a string, and didn't override the A4 setting:

  /Type/Pages /CropBox ([54 72 558 720])/Count 1/Kids[16 0 R]

I also tried

  \pdfcompresslevel 0
  \startluacode
  local box = lpdf.array{54, 72, 558, 720}
  lpdf.addtopagesattributes(CropBox,box)
  \stopluacode

  \starttext
  \input knuth
  \stoptext

and that produced an improved line in the Pages object:

  /Type/Pages /CropBox [ 54 72 558 720 ]/Count 1/Kids[16 0 R]

but the actual cropbox for the page is unchanged (A4), probably because
the page object itself (object #16) overrides the CropBox with this:

  /CropBox [ 0. 0. 595.2756 841.8898 ]

(This is all with the 2014.02.14 beta.)

Regards,
-Sanjoy
___
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] \definefallbackfamily issues

2014-02-23 Thread Wolfgang Schuster

Am 23.02.2014 um 11:00 schrieb Pablo Rodriguez oi...@gmx.es:

 Hi Wolfgang,
 
 sorry for asking about the \definefallbackfamily again, but I have the
 impression that the more I use, the less I understand it.
 
 Here is the sample:
 
 \setuplanguage[en][patterns={en,agr,ru}]
 \definefallbackfamily[mainface][serif][CMU Serif][preset={range:greek,
 range:cyrillic}, it={DejaVu Serif-Italic, scale:0.935}]
 \definefontfamily[mainface][serif][TeX Gyre Pagella]
 \setupbodyfont[mainface,14pt]
 \starttext
 Mixing scripts.
 
 В начале июля
 
 Λόγος δέ ἐστι {\em φωνὴ σημαντική}.
 \stoptext
 
 I have three questions:
 
 How can I define one fallback with more than one range preset? (I tried
 many combinations, but none of them worked.)

Your example above uses two presets and both are used, the problem is that both 
presets set a value for the range key and you end up with this setup:

  \definefallbackfamily[…][…][…][range=range setup for greek,range=range 
setup for cyrillic]

When you have now multiple settings for the same key only the last setting is 
used and all of the previous ones are ignored. What you can foo in this case
is to set either the range value by yourself or add multiple fallback setting 
where you load only one preset, e.g.

  \definefallbackfamily[…][…][…][preset=range:greek]
  \definefallbackfamily[…][…][…][preset=range:cyrillic]

 I cannot get a different italic fallback font if the fallback typeface
 specified in the third argument has an italic font. What am I doing
 wrong here?

The \em command uses the slanted alternative by default, to use italic for \em 
add this to your document:

  \setupbodyfontenvironment[default][em=italic]

 Is it possible to scale only the italic font in a fallback definition
 and not whole typeface? (In some cases, the feature is extremely handy.)

Not yet, I can add this feature but it will only work for fallback fonts and 
not for the normal fonts which are set with \definefontfamily.

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] Hanging punctuation misalignment in footnotes

2014-02-23 Thread Wolfgang Schuster

Am 22.02.2014 um 01:25 schrieb Jan Tosovsky j.tosov...@email.cz:

 On 2014-02-22 Jan Tosovsky wrote:
 
 when hanging in footnotes is enabled and the starting character is a
 punctuation, it is not protruded. However, the same character in the
 footnote body works fine. When both cases are close each other, it
 looks weird, see the screenshot:
 
 http://drifted.in/other/footnote_alignment.png
 
 Would it be possible make this behaviour uniform - either do not
 protrude it
 on the starting (left) edge or protrude it everywhere?
 
 
 A minimal example is available at 
 http://drifted.in/other/sample.tex

There are two things which prevent the protrusion of the opening quote at the 
begin of the paragraph. One of these can be avoided with a change in the setup 
for footnotes but not the other without destroying the layout of the footnote 
text.


One problem is the way how context places the footnote number in front of the 
text, by default context uses the \llap command to move the number into the 
left margin but this prevents also the protrusion of the opening quote. You can 
avoid this problem when you change the footnote setup to 
\setupnotation[footnote][alternative=margin].

example
\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupbodyfont[modern]

\setupalign[hanging]

\showframe[text][text]

\starttext

»Text«

\noindent\hbox to 0pt{}»Text«

\noindent\hbox to 0pt{\hss}»Text«

\stoptext
/example


The second problem which prevents the opening quote to protrude are the struts 
which are added by context at the begin and end of the footnote content and 
there is no way to disable them because they are needed to have proper spacing 
between the individual footnote texts on the same page.

example
\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupbodyfont[modern]

\setupalign[hanging]

\showframe[text][text]

\starttext

»Text«

\strut »Text«

\stoptext
/example


In the example below where I took care of these two problems (don’t take care 
of \begstrut in this way in your real document because it will cause many 
problems, it’s just for educational purpose) to show you this is what caused 
the unwanted output.

example
\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupbodyfont[modern]

\setupalign[hanging]

\showframe[text][text]

\setupnotation[footnote][alternative=margin,align=hanging]

\starttext

\let\begstrut\relax

First Footnote.\footnote{»\input{ward}«}

Second Footnote.\footnote{»\input{ward}«}

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


Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
 Am 22.02.2014 um 18:45 schrieb Xan dxpublica at telefonica.net:
 
  No, it does not work.
  
  I have this:
  
  % Questions
  \defineenumeration
   [exercici]
   
  [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}]
  
  % Answers
  \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici 
  \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no]
  
  \defineblock[resposta]
  \hideblocks[resposta]
  
  
  % Exercises
  
  \startexercici Bla...
  \beginresposta
  \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, 
  \item No té relació, \item D, \item D, \item No té relació, \item No té 
  relació, \item D.\stopitemize) \par
  \endresposta
  \stopexercici
  
  \startexercici Bla 2
  \stopexercici
  
  \startexercici Bla 3
  \beginresposta
  \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, 
  \item No té relació, \item D, \item D, \item No té relació, \item No té 
  relació, \item D.\stopitemize) \par
  \endresposta
  \stopexercici
  
  \subject{Answers}
  
  \selectblocks[resposta][criterium=section]
  
  
  I get \getnumber[exercici] as the last, not the counter of 'exercici' in 
  which I have the answer. How can I do thaT?
 
 Make a complete minimal example.
 
 Wolfgang


Simply put starttext and stoptext. Here it's:

% Questions
\defineenumeration
  [exercici]
  
[alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}]

% Answers
\defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici 
\getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no]

\defineblock[resposta]
\hideblocks[resposta]


% Exercises

\starttext
\startexercici Bla...
\beginresposta
\resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No 
té relació, \item D, \item D, \item No té relació, \item No té relació, \item 
D.\stopitemize) \par
\endresposta
\stopexercici

\startexercici Bla 2
\stopexercici

\startexercici Bla 3
\beginresposta
\resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No 
té relació, \item D, \item D, \item No té relació, \item No té relació, \item 
D.\stopitemize) \par
\endresposta
\stopexercici

\subject{Answers}

\selectblocks[resposta][criterium=section]
\stoptext


Can you help me?
Thanks,
___
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] solutions and problems

2014-02-23 Thread Wolfgang Schuster

Am 23.02.2014 um 20:09 schrieb Xan dxpubl...@telefonica.net:

 Am 22.02.2014 um 18:45 schrieb Xan dxpublica at telefonica.net:
 
 No, it does not work.
 
 I have this:
 
 % Questions
 \defineenumeration
 [exercici]
 [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}]
 
 % Answers
 \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici 
 \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no]
 
 \defineblock[resposta]
 \hideblocks[resposta]
 
 
 % Exercises
 
 \startexercici Bla...
 \beginresposta
 \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, 
 \item No té relació, \item D, \item D, \item No té relació, \item No té 
 relació, \item D.\stopitemize) \par
 \endresposta
 \stopexercici
 
 \startexercici Bla 2
 \stopexercici
 
 \startexercici Bla 3
 \beginresposta
 \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, 
 \item No té relació, \item D, \item D, \item No té relació, \item No té 
 relació, \item D.\stopitemize) \par
 \endresposta
 \stopexercici
 
 \subject{Answers}
 
 \selectblocks[resposta][criterium=section]
 
 
 I get \getnumber[exercici] as the last, not the counter of 'exercici' in 
 which I have the answer. How can I do thaT?
 
 Make a complete minimal example.
 
 Wolfgang
 
 
 Simply put starttext and stoptext. Here it’s:

For a minimal example you don’t need so many setups for the enumerations and 
also text should be kept to a minimum.

 Can you help me?

Your counter settings are useless because context stores only the environment 
plus content for the answers, nothing is done with them at this point. When you 
flush the answer blocks context sees them for the first time and the counter 
for the questions is 3 at this point and this is why you get always the same 
value.

\defineenumeration[exercici][text=Exercici]
\defineenumeration[resposta][text=Solucions]

\defineblock[resposta]
\hideblocks[resposta]

\starttext

\startexercici Question 1
\beginresposta
\resposta Answer 1 \par
\endresposta
\stopexercici

\startexercici Question 2
\beginresposta
\incrementcounter[resposta]
\endresposta
\stopexercici

\startexercici Question 3
\beginresposta
\resposta Answer 3 \par
\endresposta
\stopexercici

\subject{Answers}

\selectblocks[resposta]

\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] solutions and problems

2014-02-23 Thread Xan
  Can you help me?
 
 Your counter settings are useless because context stores only the environment 
 plus content for the answers, nothing is done with them at this point. When 
 you flush the answer blocks context sees them for the first time and the 
 counter for the questions is 3 at this point and this is why you get always 
 the same value.

Is there any way of first evaluate \getnumber[exercici] and then store the 
content, and not inversely (as context does now)?

 
 \defineenumeration[exercici][text=Exercici]
 \defineenumeration[resposta][text=Solucions]
 
 \defineblock[resposta]
 \hideblocks[resposta]
 
 \starttext
 
 \startexercici Question 1
 \beginresposta
 \resposta Answer 1 \par
 \endresposta
 \stopexercici
 
 \startexercici Question 2
 \beginresposta
 \incrementcounter[resposta]
 \endresposta
 \stopexercici
 
 \startexercici Question 3
 \beginresposta
 \resposta Answer 3 \par
 \endresposta
 \stopexercici
 
 \subject{Answers}
 
 \selectblocks[resposta]
 
 \stoptext
 
 Wolfgang

Increment counter *every* time is possible option, but in fact very annoying: 
if I have 100 exercises (now I have more than this) and I have only 20 
exercises, then I have to put \incrementcounter in 80 exercises. It's a 
tedious thing.

Is there any more relaxing thing: assuming that I have 'resposta' nested in 
'exercici' like

\startexercici
\beginresposta
\resposta Answer X
\endresposta
\stopexercici

?


Thanks another time,
Xan
___
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] \definefallbackfamily issues

2014-02-23 Thread Pablo Rodriguez
On 02/23/2014 07:26 PM, Wolfgang Schuster wrote:
 Am 23.02.2014 um 11:00 schrieb Pablo Rodriguez oi...@gmx.es:

 How can I define one fallback with more than one range preset? (I tried
 many combinations, but none of them worked.)
 
 Your example above uses two presets and both are used, the problem
 is that both presets set a value for the range key and you end up
 with this setup:
 
   \definefallbackfamily[…][…][…][range=range setup for
greek,range=range setup for cyrillic]
 
 When you have now multiple settings for the same key only the last
 setting is used and all of the previous ones are ignored. What you can
 foo in this caseis to set either the range value by yourself or add
 multiple fallback setting where you load only one preset, e.g.
 
   \definefallbackfamily[…][…][…][preset=range:greek]
   \definefallbackfamily[…][…][…][preset=range:cyrillic]

Many thanks for your reply and the explanation, Wolfgang.

Now it is clear to me what was wrong with my presets.

 I cannot get a different italic fallback font if the fallback typeface
 specified in the third argument has an italic font. What am I doing
 wrong here?
 
 The \em command uses the slanted alternative by default, to use
 italic for \em add this to your document:
 
   \setupbodyfontenvironment[default][em=italic]

My fault. And a very silly one. This is something I knew, but I didn’t
realize it was the missing piece in this context.

 Is it possible to scale only the italic font in a fallback definition
 and not whole typeface? (In some cases, the feature is extremely handy.)
 
 Not yet, I can add this feature but it will only work for fallback
 fonts and not for the normal fonts which are set with \definefontfamily.

It would be great to have such a feature.

Many thanks for your help again,


Pablo
-- 
http://www.ousia.tk
___
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] Interaction's focus for footnotes/index entries

2014-02-23 Thread Jan Tosovsky
Dear All,

'focus=standard' settings for interaction seems to be supported for ToC
only...
When any hyperlink for footnote or index is clicked, the zoom is set to
FitPage:

\setupinteraction[state=start,focus=standard]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\section{Primary}\index{primary}
Dummy text\footnote{footnote}.
\stopbodymatter
\startbackmatter
\completeindex
\stopbackmatter
\stoptext

Just generate the output, zoom the second or third page in and click any
hyperlink on that scaled page. It points to the correct location, but the
original page zoom is discarded...

Is there something else to switch on?

Thanks, Jan

___
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] Interaction's focus for footnotes/index entries

2014-02-23 Thread Rik Kabel

On 2014-02-23 17:24, Jan Tosovsky wrote:

Dear All,

'focus=standard' settings for interaction seems to be supported for ToC
only...
When any hyperlink for footnote or index is clicked, the zoom is set to
FitPage:

\setupinteraction[state=start,focus=standard]
\starttext
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\section{Primary}\index{primary}
Dummy text\footnote{footnote}.
\stopbodymatter
\startbackmatter
\completeindex
\stopbackmatter
\stoptext

Just generate the output, zoom the second or third page in and click any
hyperlink on that scaled page. It points to the correct location, but the
original page zoom is discarded...

Is there something else to switch on?

Thanks, Jan

___
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
___
Works as expected here with Sumatra PDF on Windows 8.1. Zoom does not 
change from any link.


--
rik
___
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] different page sizes on one sheet

2014-02-23 Thread amerke

hi,

i'm new to the list and also pretty new to ConTeXt (but I used LaTeX for 
a lot of years), but need a quite complicated

page setup right in the beginning:

i have a combination of two A5 pages and four A6 pages and i'd like to 
put them on one double

sided A4 paper sheet (please use monotyped font to see the scheme correctly)

+--+--+
|  |  |
|   A6 |  |
|  |  |
+--+A5+
|  |  |
|   A6 |  |
|  |  |
+--+--+

the same for the back page.

in the end cutting the A4 sheet should let the A5 pages and A6 pages 
undestroyed :-)


i have tried combining

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]

but didn't get a satisfying result because of different page sizes 
involved ...


any ideas?

cheers

artur

ps. here my starting point:

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]
\showframe[cut=true]

\setuppapersize[A5][A4,landscape]
\starttext
Page 1. A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. A5 Portrait \page
Page 3. A6 Portrait \page
\setuppapersize[A5][A4,landscape]
Page 1. backside A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. backside A5 Portrait \page
Page 3. backside A6 Portrait \page
\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
___

[NTG-context] different page sizes on one sheet

2014-02-23 Thread Artur Merke
hi,

i'm new to the list and also pretty new to ConTeXt (but I used LaTeX for 
a lot of years), but need a quite complicated
page setup right in the beginning:

i have a combination of two A5 pages and four A6 pages and i'd like to 
put them on one double
sided A4 paper sheet (please use monotyped font to see the scheme correctly)

+--+--+
|  |  |
|   A6 |  |
|  |  |
+--+A5+
|  |  |
|   A6 |  |
|  |  |
+--+--+

the same for the back page.

in the end cutting the A4 sheet should let the A5 pages and A6 pages 
undestroyed :-)

i have tried combining

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]

but didn't get a satisfying result because of different page sizes 
involved ...

any ideas?

cheers

artur

ps. here my starting point:

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]
\showframe[cut=true]

\setuppapersize[A5][A4,landscape]
\starttext
Page 1. A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. A5 Portrait \page
Page 3. A6 Portrait \page
\setuppapersize[A5][A4,landscape]
Page 1. backside A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. backside A5 Portrait \page
Page 3. backside A6 Portrait \page
\stoptext




  
  
hi,

i'm new to the list and also pretty new to ConTeXt (but I used LaTeX
for a lot of years), but need a quite complicated
page setup right in the beginning:

i have a combination of two A5 pages and four A6 pages and i'd like
to put them on one double
sided A4 paper sheet (please use monotyped font to see the scheme
correctly)

+--+--+
  | | |
  | A6 | |
  | | |
  +--+ A5 +
  | | |
  | A6 | |
  | | |
  +--+--+

the same for the back page. 

in the end cutting the A4 sheet should let the A5 pages and A6 pages
undestroyed :-)

i have tried combining 

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]

but didn't get a satisfying result because of different page sizes
involved ...

any ideas?

cheers

artur

ps. here my starting point:

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]
\showframe[cut=true]

\setuppapersize[A5][A4,landscape]
\starttext
Page 1. A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. A5 Portrait \page
Page 3. A6 Portrait \page
\setuppapersize[A5][A4,landscape]
Page 1. backside A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. backside A5 Portrait \page
Page 3. backside A6 Portrait \page
\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] Colored cell background in Table

2014-02-23 Thread Flavien Lambert
Hi all, following the piece of advice, I tried to use tabulate but got an
error message with the following code:
\starttext
\startcombination[1]{
\starttabulate[|r|l|]
\NC c \NC centered  \NC \AR
\NC l \NC left aligned  \NC \AR
\NC r \NC right aligned \NC \AR
\stoptabulate
}{a}
\stopcombination
\stoptext

! Missing } inserted.

system   tex  error on line 7 in file /tmp/test.tex: Missing  ...

 1 \starttext
 2 \startcombination[1]{
 3 \starttabulate[|r|l|]
 4 \NC c \NC centered  \NC \AR
 5 \NC l \NC left aligned  \NC \AR
 6 \NC r \NC right aligned \NC \AR
 7   \stoptabulate
 8 }{a}
 9 \stopcombination
10 \stoptext

inserted text
}
to be read again
\halign
to be read again
{
inserted text
\aligntab \tabl_tabulate_flush_indent \strut \alignmark \aligntab
\alignmark \t
\tabl_tabulate_process ..._tabl_tabulate_preamble
  \crcr
\tabl_tabulate_inser...
l.7 \stoptabulate

Thanks,
F.


On 21 February 2014 17:15, Thangalin thanga...@gmail.com wrote:

 Hi Flavlen,

 See these threads:

 https://www.mail-archive.com/ntg-context@ntg.nl/msg51252.html
 http://www.ntg.nl/pipermail/ntg-context/2010/054614.html

 Looks like the wiki is out of date and the CL command has been
 deprecated. Hans wrote, ok, thanks for testing it ... I'm stripping
 that old code so bugs can creep in; I'm also considering removing the
 CL and such.

 See the tabulate command:

 http://wiki.contextgarden.net/Tabulate

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

Re: [NTG-context] Colored cell background in Table

2014-02-23 Thread Wolfgang Schuster

Am 24.02.2014 um 08:40 schrieb Flavien Lambert petit.lep...@gmail.com:

 Hi all, following the piece of advice, I tried to use tabulate but got an 
 error message with the following code:
 \starttext
 \startcombination[1]{
 \starttabulate[|r|l|]
 \NC c \NC centered  \NC \AR
 \NC l \NC left aligned  \NC \AR
 \NC r \NC right aligned \NC \AR
 \stoptabulate
 }{a}
 \stopcombination
 \stoptext


When you have content which covers multiple lines you have to put \framed 
around it.

\starttext

\startcombination[nx=1,ny=1]
  \startcontent
\startframed[frame=off,align=normal,width=fit]
  \starttabulate[|r|l|]
  \NC c \NC centered  \NC \AR
  \NC l \NC left aligned  \NC \AR
  \NC r \NC right aligned \NC \AR
  \stoptabulate
\stopframed
  \stopcontent
  \startcaption
Tabulate
  \stopcaption
\stopcombination

\stoptext

PS. When you have a new question start a new thread and do not only change the 
subject of a old thread.

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
___