Re: [NTG-context] combinations

2021-05-22 Thread Willi Egger
Hello everybody,

this example given by Hans is interesting. I added it to the Wiki to the 
command \startcombination.

Willi

> On 14 May 2021, at 11:39, Hans Hagen  wrote:
> 
> On 5/14/2021 6:30 AM, Benny Schurig wrote:
>> Hi Julian,
>> for me first reply ever with a suggestion:
>> You have to set a caption
>> https://wiki.contextgarden.net/Command/startcombination
>> That worked fine for me:
>> \startplacefigure[location=here]
>>   \setupcombination[distance=0mm,after=]
>>   {\startcombination[2*1]
>> {\externalfigure[res1.jpg][width=.4\textwidth]} {pic 1}
>> {\externalfigure[res2.jpg][width=.4\textwidth]} {pic 2}
>>   \stopcombination}
>> \stopplacefigure
>> Best, Benny
>> Am 14.05.21 um 05:27 schrieb jbf:
>>> Hi list,
>>> 
>>> The following MWE is giving me two photos under each other, not beside 
>>> each. What am I doing wrong?
>>> 
>>> Julian
>>> 
>>> 
>>> \startplacefigure[location=here]
>>> \setupcombination[distance=0mm,after=]
>>> {\startcombination[2*1]
>>> {\externalfigure[res1.jpg][width=.4\textwidth]}
>>> {\externalfigure[res2.jpg][width=.4\textwidth]} \stopcombination}
>>> \stopplacefigure
> You can also do this:
> 
> \startplacefigure[location=here]
>\startcombination[distance=2mm,after=,nx=2,ny=1,location=middle]
>\startcontent
>\externalfigure[mill.png]  [width=.4\textwidth]
>\stopcontent
>\startcaption
>pic 1
>\stopcaption
>\startcontent
>\externalfigure[hacker.jpg][width=.4\textwidth]
>\stopcontent
>\startcaption
>pic 2
>\stopcaption
>\stopcombination
> \stopplacefigure
> 
> 
> -
>  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
> ___

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

2021-05-14 Thread Hans Hagen

On 5/14/2021 6:30 AM, Benny Schurig wrote:

Hi Julian,

for me first reply ever with a suggestion:

You have to set a caption

https://wiki.contextgarden.net/Command/startcombination

That worked fine for me:

\startplacefigure[location=here]
   \setupcombination[distance=0mm,after=]
   {\startcombination[2*1]
     {\externalfigure[res1.jpg][width=.4\textwidth]} {pic 1}
     {\externalfigure[res2.jpg][width=.4\textwidth]} {pic 2}
   \stopcombination}
\stopplacefigure

Best, Benny

Am 14.05.21 um 05:27 schrieb jbf:

Hi list,

The following MWE is giving me two photos under each other, not beside 
each. What am I doing wrong?


Julian


\startplacefigure[location=here]
\setupcombination[distance=0mm,after=]
{\startcombination[2*1]
{\externalfigure[res1.jpg][width=.4\textwidth]}
{\externalfigure[res2.jpg][width=.4\textwidth]} \stopcombination}
\stopplacefigure

You can also do this:

\startplacefigure[location=here]
\startcombination[distance=2mm,after=,nx=2,ny=1,location=middle]
\startcontent
\externalfigure[mill.png]  [width=.4\textwidth]
\stopcontent
\startcaption
pic 1
\stopcaption
\startcontent
\externalfigure[hacker.jpg][width=.4\textwidth]
\stopcontent
\startcaption
pic 2
\stopcaption
\stopcombination
\stopplacefigure


-
  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] combinations

2021-05-13 Thread jbf
Wonderful Benny! Congrats on your first ever suggestion. I didn't need a 
caption so I had left it out, but I see that I now need at least an 
empty {} after each item for it to work.


Thanks

Julian

On 14/5/21 2:30 pm, Benny Schurig wrote:

{pic 1}

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

2021-05-13 Thread Benny Schurig

Hi Julian,

for me first reply ever with a suggestion:

You have to set a caption

https://wiki.contextgarden.net/Command/startcombination

That worked fine for me:

\startplacefigure[location=here]
  \setupcombination[distance=0mm,after=]
  {\startcombination[2*1]
{\externalfigure[res1.jpg][width=.4\textwidth]} {pic 1}
{\externalfigure[res2.jpg][width=.4\textwidth]} {pic 2}
  \stopcombination}
\stopplacefigure

Best, Benny

Am 14.05.21 um 05:27 schrieb jbf:

Hi list,

The following MWE is giving me two photos under each other, not beside 
each. What am I doing wrong?


Julian


\startplacefigure[location=here]
\setupcombination[distance=0mm,after=]
{\startcombination[2*1]
{\externalfigure[res1.jpg][width=.4\textwidth]}
{\externalfigure[res2.jpg][width=.4\textwidth]} \stopcombination}
\stopplacefigure

___ 

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] combinations

2021-05-13 Thread jbf

Hi list,

The following MWE is giving me two photos under each other, not beside 
each. What am I doing wrong?


Julian


\startplacefigure[location=here]
\setupcombination[distance=0mm,after=]
{\startcombination[2*1]
{\externalfigure[res1.jpg][width=.4\textwidth]}
{\externalfigure[res2.jpg][width=.4\textwidth]} \stopcombination}
\stopplacefigure

___
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] Combinations not working as expected

2020-12-01 Thread Hans Hagen

On 12/1/2020 9:02 AM, Christoph Reller wrote:

Dear list,

In the latest version 2020.11.28 13:18 of ConTeXt LMTX, combinations 
don't seem to work as expected. Example:


\starttext
\startcombination[2*1]
   {first}{a}
   {second}{b}
\stopcombination
\blank[big]
\startcombination[1*2]
   {first}{a}
   {second}{b}
\stopcombination
\stoptext

The output is
image.png
The layout argument [2*1] or [1*2] does not seem to have an effect and 
the caption placement for "b" is strange.

Am I doing something wrong?

fixed in next upload


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


[NTG-context] Combinations not working as expected

2020-12-01 Thread Christoph Reller
Dear list,

In the latest version 2020.11.28 13:18 of ConTeXt LMTX, combinations don't
seem to work as expected. Example:

\starttext
\startcombination[2*1]
  {first}{a}
  {second}{b}
\stopcombination
\blank[big]
\startcombination[1*2]
  {first}{a}
  {second}{b}
\stopcombination
\stoptext

The output is
[image: image.png]
The layout argument [2*1] or [1*2] does not seem to have an effect and the
caption placement for "b" is strange.
Am I doing something wrong?

Cheers,
Christoph
___
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] combinations

2013-04-16 Thread Hans Hagen

On 4/15/2013 6:45 PM, Sietse Brouwer wrote:

Perhaps the default for the label could be numberconversion=character
--- subfigures are more commonly numbered a, b, c, I think.


ok

-
  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] combinations

2013-04-15 Thread Hans Hagen

Hi,

As follow up on the combinations tread I made this:

\useMPlibrary[dum]

\starttext

\definecombination[mycombi][alternative=label]

\setuplabel[combination:mycombi][text={Item 
},numberconversion=character,stopper=!]


\startcombination[mycombi][2*2]
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
\stopcombination

\blank[2*big]

\startcombination[mycombi][nx=2,ny=1,continue=yes]
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
\stopcombination

\blank[2*big]

\startcombination[mycombi][alternative=text,nx=2,ny=2]
{\externalfigure[dummy][width=4cm,height=1cm]} {alpha}
{\externalfigure[dummy][width=4cm,height=1cm]} {beta}
{\externalfigure[dummy][width=4cm,height=1cm]} {gamma}
{\externalfigure[dummy][width=4cm,height=1cm]} {delta}
\stopcombination

\blank[2*big]

\startcombination[mycombi][2*2]
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
{\externalfigure[dummy][width=4cm,height=1cm]}
\stopcombination

\stoptext

A relative simple extension but probably useful.
--

-
  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] combinations

2013-04-15 Thread Sietse Brouwer
Hi Hans,

Is the following correct?
(1) [alternative=...] is a new key for \definecombination

(2) \definecombination[mycombiA][alternative=text] means you specify
the combination's contents as item, caption, item, caption, etc.

\startcombination[mycombiA][nx=2,ny=1]
 {item}{caption}
 {another item}{another caption}
\stopcombination

(3) \definecombination[mycombiB][alternative=label] means you specify
the combination's contents as item, item, item, etc.
\startcombination[mycombiB][nx=2,ny=1]
 {item}
 {another item}
\stopcombination
and the caption (label) will be placed automatically.

(4) You can setup the mycombiB labels like so:
\setuplabel[combination:mycombiB][
text={Item },
numberconversion=character,
stopper=!
]
(If you do not setup the mycombiB label, each item's label will be a
bold number.)

Cheers,
Sietse

On 15 April 2013 10:50, Hans Hagen pra...@wxs.nl wrote:

 Hi,

 As follow up on the combinations tread I made this:

 \useMPlibrary[dum]

 \starttext

 \definecombination[mycombi][alternative=label]

 \setuplabel[combination:mycombi][text={Item 
 },numberconversion=character,stopper=!]

 \startcombination[mycombi][2*2]
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 \stopcombination

 \blank[2*big]

 \startcombination[mycombi][nx=2,ny=1,continue=yes]
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 \stopcombination

 \blank[2*big]

 \startcombination[mycombi][alternative=text,nx=2,ny=2]
 {\externalfigure[dummy][width=4cm,height=1cm]} {alpha}
 {\externalfigure[dummy][width=4cm,height=1cm]} {beta}
 {\externalfigure[dummy][width=4cm,height=1cm]} {gamma}
 {\externalfigure[dummy][width=4cm,height=1cm]} {delta}
 \stopcombination

 \blank[2*big]

 \startcombination[mycombi][2*2]
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 {\externalfigure[dummy][width=4cm,height=1cm]}
 \stopcombination

 \stoptext

 A relative simple extension but probably useful.
 --

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

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 15:40 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Hi Hans,
 
 Is the following correct?
 (1) [alternative=...] is a new key for \definecombination

Yes but you can also change the alternative with \startcombination.

 (2) \definecombination[mycombiA][alternative=text] means you specify
 the combination's contents as item, caption, item, caption, etc.
 
 \startcombination[mycombiA][nx=2,ny=1]
 {item}{caption}
 {another item}{another caption}
 \stopcombination

Yes, alternative=text is the old combination mechanism which takes two
arguments for each entry for the content and the caption.

 (3) \definecombination[mycombiB][alternative=label] means you specify
 the combination's contents as item, item, item, etc.
 \startcombination[mycombiB][nx=2,ny=1]
 {item}
 {another item}
 \stopcombination
 and the caption (label) will be placed automatically.

Yes.

 (4) You can setup the mycombiB labels like so:
 \setuplabel[combination:mycombiB][
text={Item },
numberconversion=character,
stopper=!
 ]
 (If you do not setup the mycombiB label, each item's label will be a
 bold number.)

When you don’t set individual settings for a combination label the global
values from \setuplabel are used which are bold text and numbers.

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] combinations

2013-04-15 Thread Hans Hagen

On 4/15/2013 3:40 PM, Sietse Brouwer wrote:


Is the following correct?


indeed

-
  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] combinations

2013-04-15 Thread Sietse Brouwer
Perhaps the default for the label could be numberconversion=character
--- subfigures are more commonly numbered a, b, c, I think.

Wikified at
http://wiki.contextgarden.net/Command/setupcombinations
http://wiki.contextgarden.net/Command/startcombination

Cheers,
Sietse

On 15 April 2013 16:04, Hans Hagen pra...@wxs.nl wrote:

 On 4/15/2013 3:40 PM, Sietse Brouwer wrote:

 Is the following correct?


 indeed


 -
   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] combinations

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 18:45 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Perhaps the default for the label could be numberconversion=character
 --- subfigures are more commonly numbered a, b, c, I think.


To set default values it can be usefull to add a unnamed “combination” label, 
i.e.

  \definelabel[\v!combination]

and \definecombination is changed to

\appendtoks
\edef\p_pack_combinations_alternative{\combinationparameter\c!alternative}%
\setfalse\c_str_define_commands_label % no helper commands
\ifx\currentcombinationparent\empty
- 
\normalexpanded{\definelabel[\v!combination:\currentcombination]}[\c!text=]%
+ 
\normalexpanded{\definelabel[\v!combination:\currentcombination][\v!combination]}[\c!text=]%
\else
  
\normalexpanded{\definelabel[\v!combination:\currentcombination][\currentcombinationparent]}[\c!text=]%
\fi
\to \everydefinecombination

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] combinations

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote:

 As follow up on the combinations tread I made this:
 
 …
 
 A relative simple extension but probably useful.

How about making the first bracket pair optional if key-value
options are passed? This would allow for the following syntax:

\starttext

%% works:
%% \startcombination [][nx=3, ny=1]

%% suggestion, fails at the moment
\startcombination [nx=3, ny=1]
  {a}{x}
  {b}{x}
  {c}{x}
\stopcombination

\stoptext

Marco


signature.asc
Description: Digital signature
___
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] combinations

2013-04-15 Thread Hans Hagen

On 4/15/2013 7:23 PM, Marco Patzer wrote:

On 2013–04–15 Hans Hagen wrote:


As follow up on the combinations tread I made this:

…

A relative simple extension but probably useful.


How about making the first bracket pair optional if key-value
options are passed? This would allow for the following syntax:

\starttext

%% works:
%% \startcombination [][nx=3, ny=1]

%% suggestion, fails at the moment
\startcombination [nx=3, ny=1]
   {a}{x}
   {b}{x}
   {c}{x}
\stopcombination

\stoptext


ok
-
  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] combinations

2013-04-15 Thread Hans Hagen

On 4/15/2013 6:58 PM, Wolfgang Schuster wrote:


Am 15.04.2013 um 18:45 schrieb Sietse Brouwer sbbrou...@gmail.com:


Perhaps the default for the label could be numberconversion=character
--- subfigures are more commonly numbered a, b, c, I think.



To set default values it can be usefull to add a unnamed “combination” label, 
i.e.

   \definelabel[\v!combination]

and \definecombination is changed to

\appendtoks
 \edef\p_pack_combinations_alternative{\combinationparameter\c!alternative}%
 \setfalse\c_str_define_commands_label % no helper commands
 \ifx\currentcombinationparent\empty
- 
\normalexpanded{\definelabel[\v!combination:\currentcombination]}[\c!text=]%
+ 
\normalexpanded{\definelabel[\v!combination:\currentcombination][\v!combination]}[\c!text=]%
 \else
   
\normalexpanded{\definelabel[\v!combination:\currentcombination][\currentcombinationparent]}[\c!text=]%
 \fi
\to \everydefinecombination


ok, but

\normalexpanded
  {\definelabel
 [\v!combination:\currentcombination]%

[\v!combination\ifx\currentcombinationparent\empty\else:\currentcombinationparent\fi]}%
 [\c!text=]%

-
  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] Combinations without any vertical space

2011-11-23 Thread Aditya Mahajan

How do I create combinations without any vertical space?

The following test file

\definecombination
[overviewpage]
[distance=\zeropoint,
 inbetween=,
]

\starttext
\startcombination[overviewpage][2*2]
  {\framed{Hello}}{}%
  {\framed{Hello}}{}%
  {\framed{Hello}}{}%
  {\framed{Hello}}{}%
\stopcombination
\stoptext

gives the attached result. Note that there is still vertical space between 
the two rows. How can I get rid of this space?


Aditya

test.pdf
Description: Adobe PDF document
___
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] Combinations without any vertical space

2011-11-23 Thread Wolfgang Schuster

Am 24.11.2011 um 00:29 schrieb Aditya Mahajan:

 How do I create combinations without any vertical space?
 
 The following test file
 
 \definecombination
[overviewpage]
[distance=\zeropoint,
 inbetween=,
]
 
 \starttext
 \startcombination[overviewpage][2*2]
  {\framed{Hello}}{}%
  {\framed{Hello}}{}%
  {\framed{Hello}}{}%
  {\framed{Hello}}{}%
 \stopcombination

\startcombination[overviewpage][2*1]
 {\framed{Hello}}{\framed{Hello}}
 {\framed{Hello}}{\framed{Hello}}
\stopcombination

or use a natural table.

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] Combinations without any vertical space

2011-11-23 Thread Aditya Mahajan

On Thu, 24 Nov 2011, Wolfgang Schuster wrote:


Am 24.11.2011 um 00:29 schrieb Aditya Mahajan:


How do I create combinations without any vertical space?

The following test file

\definecombination
   [overviewpage]
   [distance=\zeropoint,
inbetween=,
   ]

\starttext
\startcombination[overviewpage][2*2]
 {\framed{Hello}}{}%
 {\framed{Hello}}{}%
 {\framed{Hello}}{}%
 {\framed{Hello}}{}%
\stopcombination


\startcombination[overviewpage][2*1]
{\framed{Hello}}{\framed{Hello}}
{\framed{Hello}}{\framed{Hello}}
\stopcombination


Well, the example was too simplistic. After a bit of trial and error, the 
following gives the desired effect.


\setupcombinations[...][before=,after=]

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


Re: [NTG-context] Combinations without any vertical space

2011-11-23 Thread Jaroslav Hajtmar

Hello ConTeXist.

The thing I'm interested.
It is possible to achieve that arose at the bottom of an emptyspace and 
was fully utilized the entire page?

Here is an minimal example:

\definecombination
[overviewpage]
[distance=\zeropoint,
 inbetween=,
]
\setuplayout[page]
\startTEXpage
\startcombination[overviewpage][2*1]
{\framed{Hello}}{\framed{Hello}}
{\framed{Hello}}{\framed{Hello}}
\stopcombination
\stopTEXpage


Thanx Jaroslav

Dne 24.11.2011 7:25, Aditya Mahajan napsal(a):

On Thu, 24 Nov 2011, Wolfgang Schuster wrote:


Am 24.11.2011 um 00:29 schrieb Aditya Mahajan:


How do I create combinations without any vertical space?

The following test file

\definecombination
   [overviewpage]
   [distance=\zeropoint,
inbetween=,
   ]

\starttext
\startcombination[overviewpage][2*2]
 {\framed{Hello}}{}%
 {\framed{Hello}}{}%
 {\framed{Hello}}{}%
 {\framed{Hello}}{}%
\stopcombination


\startcombination[overviewpage][2*1]
{\framed{Hello}}{\framed{Hello}}
{\framed{Hello}}{\framed{Hello}}
\stopcombination


Well, the example was too simplistic. After a bit of trial and error, 
the following gives the desired effect.


\setupcombinations[...][before=,after=]

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





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

2006-10-09 Thread Pepe Barbe
On 10/8/06, Aditya Mahajan [EMAIL PROTECTED] wrote:
 You can center it on your own by \midaligned.

Thanks, works like a charm.

Pepe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Combinations

2006-10-08 Thread Aditya Mahajan
On Sat, 7 Oct 2006, Pepe Barbe wrote:

 Hello everyone,

 I have 14 graphs that I want to arrange in a single page. I've found
 the best wat to do that is with a 3 by 5 combination. Yet, it would
 look better if I had a 3 by 4 combination and a 2 by 1 centered
 underneath the preveious. Is there some simple way to do that?

Not that I know of. It may be possible to expand \start stop 
combination to work with

\startcombination[3*4,2*1] but then you will have to count on your 
own.

Perhaps, you can define (untested)

\def\resetcombination{\stopcomination\startcombination} and then

\startcombination[3*4]
  
  
\resetcombination[2*1]


\stopcombination


 Also, a while ago I asked about the font size of the captions in the
 combinations, which wasn't being respected in Math mode. I've tried in
 the latest beta and the problem persists. Any ideas?

The problem, if any, is with \tfx. This demonstrates it

\tfx Test $Test$

Perhaps a cleaner way to do this is

\switchtobodyfont[small] Test $Test$

I do not know why is this not equivalent to

\small Test $Test$

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Combinations

2006-10-08 Thread Pepe Barbe
Aditya,

Thanks for the help.

On 10/8/06, Aditya Mahajan [EMAIL PROTECTED] wrote:
 \startcombination[3*4,2*1] but then you will have to count on your
 own.

That is what I wanted to avoid, I don't know ConTeXt very well, and less TeX.

 Perhaps, you can define (untested)

 \def\resetcombination{\stopcomination\startcombination} and then

I tried a similar idea. But it didn't work. If I start with 2*1 and
then 3*4 it shows everything but the first two are not centered, so
its the same. If I do 3*4 and then 2*1 it just shows the 3*4 and thend
the figure ends for some reason.


 The problem, if any, is with \tfx. This demonstrates it

Thanks for this info!

Pepe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Combinations

2006-10-08 Thread Aditya Mahajan
On Sun, 8 Oct 2006, Pepe Barbe wrote:

 Aditya,

 Thanks for the help.

 On 10/8/06, Aditya Mahajan [EMAIL PROTECTED] wrote:
 \startcombination[3*4,2*1] but then you will have to count on your
 own.

 That is what I wanted to avoid, I don't know ConTeXt very well, and less TeX.

 Perhaps, you can define (untested)

 \def\resetcombination{\stopcomination\startcombination} and then

 I tried a similar idea. But it didn't work. If I start with 2*1 and
 then 3*4 it shows everything but the first two are not centered, so
 its the same. If I do 3*4 and then 2*1 it just shows the 3*4 and thend
 the figure ends for some reason.

That was because you do not have proper grouping in your \placefigure 
definition. Try

\placefigure[tag][here] {Caption}
{% -- Note this
\startcombination[3*4]

\stopcombination
\startcombination[2*1]

\stopcombination
} % Note this

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Combinations

2006-10-08 Thread Pepe Barbe
On 10/8/06, Aditya Mahajan [EMAIL PROTECTED] wrote:
 That was because you do not have proper grouping in your \placefigure
 definition. Try

 \placefigure[tag][here] {Caption}
 {% -- Note this
 \startcombination[3*4]
 
 \stopcombination
 \startcombination[2*1]
 
 \stopcombination
 } % Note this

Thanks. It does work, but is the same as doing 3*5. The last line does
not show centered.

Pepe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Combinations

2006-10-08 Thread Aditya Mahajan
On Sun, 8 Oct 2006, Pepe Barbe wrote:

 On 10/8/06, Aditya Mahajan [EMAIL PROTECTED] wrote:
 That was because you do not have proper grouping in your \placefigure
 definition. Try

 \placefigure[tag][here] {Caption}
 {% -- Note this
 \startcombination[3*4]
 
 \stopcombination
 \startcombination[2*1]
 
 \stopcombination
 } % Note this

 Thanks. It does work, but is the same as doing 3*5. The last line does
 not show centered.

You can center it on your own by \midaligned.

\placefigure {Combinations}
{
\startcombination [3*4]
   {\externalfigure[unknown]}{1}
   {\externalfigure[unknown]}{2}
   {\externalfigure[unknown]}{3}
   {\externalfigure[unknown]}{4}
   {\externalfigure[unknown]}{5}
   {\externalfigure[unknown]}{6}
   {\externalfigure[unknown]}{7}
   {\externalfigure[unknown]}{8}
   {\externalfigure[unknown]}{9}
   {\externalfigure[unknown]}{10}
   {\externalfigure[unknown]}{11}
   {\externalfigure[unknown]}{12}
\stopcombination
\blank[medium] %-- This is the default inbetween for
%  \setupcombinations
\midaligned{\startcombination[2*1]
   {\externalfigure[unknown]}{1}
   {\externalfigure[unknown]}{2}
\stopcombination}}


Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Combinations

2006-10-07 Thread Pepe Barbe
Hello everyone,

I have 14 graphs that I want to arrange in a single page. I've found
the best wat to do that is with a 3 by 5 combination. Yet, it would
look better if I had a 3 by 4 combination and a 2 by 1 centered
underneath the preveious. Is there some simple way to do that?

Also, a while ago I asked about the font size of the captions in the
combinations, which wasn't being respected in Math mode. I've tried in
the latest beta and the problem persists. Any ideas?

Example:

\setupcaptions[ headstyle=\ss\bf,style=\tfx ]
\setupcombinations[ style=\tfx\em ]

\starttext

\placefigure [center] {Combination Caption}
   \startcombination [2*1]
   {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
1}}{Text: Test. Math: $Test$}
   {\framed[height=.45\textwidth,width=.45\textwidth]{My Graphic
2}}{Text: Test. Math: $Test$}
   \stopcombination

\stoptext

Thanks,
Pepe
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] combinations and captions

2006-02-15 Thread Taco Hoekwater


Hans van der Meer wrote:

 I have a feeling that these captions also can be generally setup, but  
 I cannot find the corresponding macros.
 Someone who can point me to these?

There is a \setupcombinations, but it is not nearly as powerful as
the \setupcaptions command for standalone captions.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] combinations and captions

2006-02-14 Thread Hans van der Meer
The setup of captions (\setupcaptions) seems to be independent of the  
captions in the members placed within \startcombination ...  
\stopcombination.
I have a feeling that these captions also can be generally setup, but  
I cannot find the corresponding macros.
Someone who can point me to these?

yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context