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 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] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
Hi Tomáš,

Thank you very much for your answer: you solved my problem perfectly!
I didn't know that one could use several nested 
\startplacefigure...\stopplacefigure.

Best regards: Otared

> On 1 Jun 2020, at 21:05, Tomas Hala  wrote:
> 
> Hi Otared,
> 
> the question is how complicated structures you are going to have... 
> Try the following code, I guess it works.
> (I did not solve distances between objects.)
> 
> Tomáš 
> 
> %%%
> 
> \setuppapersize[A2][A2]
> \setupcombination[offset=0cc,location=top,distance=1cc]
> 
> \starttext
> 
> \startplacefigure
> {\startplacefigure[location=none]
>  \startcombination[2*1]%
>{\startcombination[1*2]%
>  {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]}{}{} 
> %{a}
>\stopcombination%
> % OR
> %   {\startcombination[1*2]%
> % 
> {\framed[width=6cm]{a}}{}{\externalfigure[image-1.pdf][width=6cm]}{} %{a}
> %   \stopcombination%
>}{}%
>{\startcombination[1*2]%
>  
> {\framed[width=10cm]{b}}{}{\externalfigure[image-2.pdf][width=10cm]}{} %{b}
>  
> {\framed[width=10cm]{c}}{}{\externalfigure[-image-3.pdf][width=10cm]}{} %{c}  
>\stopcombination%
>}{}%
>  \stopcombination
> \stopplacefigure}
> {\startplacefigure[location=none]
>\startcombination[1*2]%
>  
> {\framed[width=20cm]{d}}{}{\externalfigure[image-4.pdf][width=20cm]}{}%{d}
>  {}%
>  {\startcombination[2*1]
>
> {\framed[width=10cm]{e}}{\externalfigure[image-5.pdf][width=10cm]} %{e}
>
> {\framed[width=10cm]{f}}{\externalfigure[-image-6.pdf][width=10cm]} %{f}  
>   
>  \stopcombination}
>  {}%
>   \stopcombination
> \stopplacefigure}
> \stopplacefigure
> 
> \stoptext
> 
> %%
> 
> 
> Mon, Jun 01, 2020 ve 04:58:52PM +0200 Otared Kavian napsal(a):
> # Hi Tomás,
> # 
> # Thank you for your help. That works for the simple combination I sent to 
> the list, but it does not work for another case in my document where I have 
> several combinations, as in the following:
> # 
> # \startplacefigure[location=none]
> # \startcombination[1*2]
> # {\startcombination[2*1]
> # 
> {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]} %{a} 
> # {\startcombination[1*2]
> # 
> {\framed[width=10cm]{b}}{\externalfigure[image-2.pdf][width=10cm]} %{b}
> # 
> {\framed[width=10cm]{c}}{\externalfigure[-image-3.pdf][width=10cm]} %{c}
> # \stopcombination}{}
> # \stopcombination}{}
> # {\startcombination[1*2]
> # 
> {\framed[width=20cm]{d}}{\externalfigure[image-4.pdf][width=20cm]} %{d}
> # {\startcombination[2*1]
> # 
> {\framed[width=7cm]{e}}{\externalfigure[image-5.pdf][width=7cm]} %{e}
> # 
> {\framed[width=8cm]{f}}{\externalfigure[image-6.pdf][width=8cm]} %{f}
> # \stopcombination}{}
> # \stopcombination}{}
> # \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
___


Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Tomas Hala
Hi Otared,

the question is how complicated structures you are going to have... 
Try the following code, I guess it works.
(I did not solve distances between objects.)

Tomáš 

%%%

\setuppapersize[A2][A2]
\setupcombination[offset=0cc,location=top,distance=1cc]

\starttext

\startplacefigure
{\startplacefigure[location=none]
  \startcombination[2*1]%
{\startcombination[1*2]%
  {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]}{}{} 
%{a}
\stopcombination%
% OR
%   {\startcombination[1*2]%
% {\framed[width=6cm]{a}}{}{\externalfigure[image-1.pdf][width=6cm]}{} 
%{a}
%   \stopcombination%
}{}%
{\startcombination[1*2]%
  
{\framed[width=10cm]{b}}{}{\externalfigure[image-2.pdf][width=10cm]}{} %{b}
  
{\framed[width=10cm]{c}}{}{\externalfigure[-image-3.pdf][width=10cm]}{} %{c}  
\stopcombination%
}{}%
  \stopcombination
\stopplacefigure}
{\startplacefigure[location=none]
\startcombination[1*2]%
  
{\framed[width=20cm]{d}}{}{\externalfigure[image-4.pdf][width=20cm]}{}%{d}
  {}%
  {\startcombination[2*1]

{\framed[width=10cm]{e}}{\externalfigure[image-5.pdf][width=10cm]} %{e}

{\framed[width=10cm]{f}}{\externalfigure[-image-6.pdf][width=10cm]} %{f}
  \stopcombination}
  {}%
   \stopcombination
\stopplacefigure}
\stopplacefigure

\stoptext

%%


Mon, Jun 01, 2020 ve 04:58:52PM +0200 Otared Kavian napsal(a):
# Hi Tomás,
# 
# Thank you for your help. That works for the simple combination I sent to the 
list, but it does not work for another case in my document where I have several 
combinations, as in the following:
# 
# \startplacefigure[location=none]
#   \startcombination[1*2]
#   {\startcombination[2*1]
#   
{\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]} %{a} 
#   {\startcombination[1*2]
#   
{\framed[width=10cm]{b}}{\externalfigure[image-2.pdf][width=10cm]} %{b}
#   
{\framed[width=10cm]{c}}{\externalfigure[-image-3.pdf][width=10cm]} %{c}
#   \stopcombination}{}
#   \stopcombination}{}
#   {\startcombination[1*2]
#   
{\framed[width=20cm]{d}}{\externalfigure[image-4.pdf][width=20cm]} %{d}
#   {\startcombination[2*1]
#   
{\framed[width=7cm]{e}}{\externalfigure[image-5.pdf][width=7cm]} %{e}
#   
{\framed[width=8cm]{f}}{\externalfigure[image-6.pdf][width=8cm]} %{f}
#   \stopcombination}{}
#   \stopcombination}{}
#   \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] align figures verticaly centered in \startcombination mode

2019-08-08 Thread Wolfgang Schuster

Jeong Dal schrieb am 08.08.2019 um 21:02:

Dear all,

In the following example, “align=middle” works for horizontal center.
Is there any way to align two figures with different height in vertically 
centered?

Thank you.

Best regards,

Dalyoung

\useMPlibrary[dum]
\setupinteraction[state=start]
\usemodule[pre-60]
\setupcombination[align=middle]
\starttext
\StartSteps
\startplacefigure[]
{\startcombination[2*2]
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][height=.1\makeupheight]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
\stopcombination}
\stopplacefigure
\StopSteps

\stoptext
Each entry in the combination environment consists of the content and a 
caption
but in your example you omitted the caption for each figures and as a 
result the second

and figure graphics are taken as caption.

To get the expected output you can provide a empty argument for the caption
of each graphic or use a table to arrange the images.

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


[NTG-context] align figures verticaly centered in \startcombination mode

2019-08-08 Thread Jeong Dal

Dear all,

In the following example, “align=middle” works for horizontal center.
Is there any way to align two figures with different height in vertically 
centered?

Thank you.

Best regards,

Dalyoung

\useMPlibrary[dum]
\setupinteraction[state=start]
\usemodule[pre-60]
\setupcombination[align=middle]
\starttext
\StartSteps
\startplacefigure[]
{\startcombination[2*2]
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][height=.1\makeupheight]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
{{\externalfigure[bogus][width=.3\makeupwidth]}{}\FlushStep}
\stopcombination}
\stopplacefigure
\StopSteps

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


Re: [NTG-context] Question to a table

2019-08-07 Thread Wolfgang Schuster

Ursula Hermann schrieb am 07.08.2019 um 11:22:


Hello list!

I have:

\starttext

\setupcombination

   [location=top,

    distance=\spaceamount]

\bTABLE[align=flushleft,columndistance=0.1em]

   \bTR

 \bTD[width=2cm] Small \eTD

     \bTD[width=0.05\textwidth] \eTD

   \eTR

\eTABLE

\stoptext

I have a question tot he sencond bTD [with 0.05\textwidth] \eTD, because:

I would like to know:

how can I put two different colors in this second bTD, should I do 
this like an overlay?


There is not any text there.

So that i have as an example to the list, pink and mystirose together, 
in one peace of the table without any text.


Can you be more concrete what you try to achieve. Do want different 
colors for the borders or just two rules with different colors, the 
first can be achieved with a background graphics while the second can be 
done with the \blackrule command.


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


[NTG-context] Question to a table

2019-08-07 Thread Ursula Hermann
Hello list!

I have:
\starttext
\setupcombination
   [location=top,
distance=\spaceamount]
\bTABLE[align=flushleft,columndistance=0.1em]
   \bTR
 \bTD[width=2cm] Small \eTD
 \bTD[width=0.05\textwidth] \eTD
   \eTR
\eTABLE
\stoptext

I have a question tot he sencond bTD [with 0.05\textwidth] \eTD, because:
I would like to know:
how can I put two different colors in this second bTD, should I do this like an 
overlay?
There is not any text there.
So that i have as an example to the list, pink and mystirose together, in one 
peace of the table without any text.

Many thanks to the list

Uschi
___
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] Spacing after combination

2019-07-16 Thread Wolfgang Schuster

Willi Egger schrieb am 16.07.2019 um 20:46:

Marco,

there is a \setupcombination command:

\setupcombination [...,...] [..,..=..,..]
1 NAME
2 nx
ny
width height location distance alternative align continue before after 
inbetween style
color
OPT
= NUMBER
= NUMBER
= fit DIMENSION
= fit DIMENSION
= left middle right top bottom = DIMENSION
= label text
= inherits: \setupalign
= yes no
= COMMAND
= COMMAND
= COMMAND
= STYLE COMMAND
= COLOR

I hope this will enable you to get what you want.
None of these options is applied at the begin or end of the environment 
(use the following setup in the example).


\setupcombination
  [   before={\endgraf{\tttf    [before]}\endgraf},
   after={\endgraf{\tttf [after]}\endgraf},
   inbetween={\endgraf{\tttf [inbetween]}\endgraf}]


A alternative to using floats is to put the combination in a 
linecorrection environment, i.e.


\startlinecorrection
  \startcombination [2*2]
  ...
  \stopcombination
\stoplinecorrection

or

\startlinecorrection[blank]
  \startcombination [2*2]
  ...
  \stopcombination
\stoplinecorrection

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


Re: [NTG-context] Spacing after combination

2019-07-16 Thread Willi Egger
Marco,

there is a \setupcombination command:

\setupcombination [...,...] [..,..=..,..]
1 NAME
2 nx
ny
width height location distance alternative align continue before after 
inbetween style
color
OPT
= NUMBER
= NUMBER
= fit DIMENSION
= fit DIMENSION
= left middle right top bottom = DIMENSION
= label text
= inherits: \setupalign
= yes no
= COMMAND
= COMMAND
= COMMAND
= STYLE COMMAND
= COLOR

I hope this will enable you to get what you want.

Willi

> On 16 Jul 2019, at 17:08, Marco Patzer  wrote:
> 
> Hi!
> 
> Is there a way to influence the spacing after a combination is
> placed?
> 
> \useMPlibrary [dum]
> 
> \starttext
> 
> \startcombination [2*2]
>  \startcontent \externalfigure  \stopcontent
>  \startcaption Foo\stopcaption
>  \startcontent \externalfigure  \stopcontent
>  \startcaption Bar\stopcaption
>  \startcontent \externalfigure  \stopcontent
>  \startcaption Lorem  \stopcaption
>  \startcontent \externalfigure  \stopcontent
>  \startcaption Ipsum  \stopcaption
> \stopcombination
> 
> \samplefile{knuth}
> 
> \stoptext
> 
> I know I could wrap it in a float and use the float to control the
> spacing, but it would be great if I could do without that float.
> 
> Marco
> ___
> 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] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Wolfgang Schuster

Ursula Hermann schrieb am 12.06.2019 um 11:55:


Hello List!

\setuppapersize[A4]

\setupexternalfigures

  [location=default]

\setupbodyfont[Computer Modern Roman ,rm, tfx 7pt]


\setupbodyfont[7pt]

everything else can be removed because

1. "rm" is the default style in most typescripts

2. there is no typescript with the name "Computer Modern Roman"

3. "tfx" is a font switch in the document


\setupindenting

  [yes, small]

\setupwhitespace

  [small]

\setupcombination

   [location=top,

    distance=\spaceamount]

\bTABLE[align=flushleft,columndistance=0.1em]

   \bTR

 \bTD[width=.2\textwidth]Small \eTD

 \bTD[width=0.05\textwidth] \eTD

   \eTR

\eTABLE

\setupexternalfigures

  [location=default]

\setupindenting

  [yes, small]

\setupwhitespace

  [small]

\definecolor [rosybrown:1][h=FFBCB3]

\defineframedtext

[prettyblock]

  [width=10cm,

   indenting={yes, small},

   background=color, backgroundcolor=rosybrown:1,

   foreground=color, foregroundcolor=black,

   offset=2mm,

   align=flushleft]

\starttext

\startprettyblock[width=7.5 cm,align={flushleft}]

\noindentation  The Earth, as a habitat for animal life, is in old age 
and has a fatal illness. Several, in fact.


\stopprettyblock

Below, we have two separate columns; but up here, for the nonce, we 
have but the one.


\startcolumns [n=2]

  Text, text, text \dots

  all in the first column

\column

  Words, words, words \dots

  all in the second column.

\stopcolumns

\stoptext

\startcolumns[n=2]

\input ward

\column

\input weisman

\stopcolumns

After installing ConTeXt in WinEdt:

Command Line: C:\Users\Hermann\Downloads\context-mswin\bin\mtxrun.exe 
--synctex=-1 "melon.tex"



Change "mtxrun.exe" to "context.exe" or "mtxrun.exe --script context".

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


Re: [NTG-context] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Ursula Hermann
I have forgotten: As Editor I have WinEdt.

Uschi

Von: ntg-context  Im Auftrag von Ursula Hermann
Gesendet: Mittwoch, 12. Juni 2019 11:55
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Something wrong after ConTeXt installation, could 
somebody help me please?

Hello List!

\setuppapersize[A4]
\setupexternalfigures
  [location=default]

\setupbodyfont[Computer Modern Roman ,rm, tfx 7pt]
\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\setupcombination
   [location=top,
distance=\spaceamount]
\bTABLE[align=flushleft,columndistance=0.1em]
   \bTR
 \bTD[width=.2\textwidth]Small \eTD
 \bTD[width=0.05\textwidth] \eTD
   \eTR
\eTABLE

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\definecolor [rosybrown:1][h=FFBCB3]
\defineframedtext
[prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=rosybrown:1,
   foreground=color, foregroundcolor=black,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock[width=7.5 cm,align={flushleft}]
\noindentation  The Earth, as a habitat for animal life, is in old age and has 
a fatal illness. Several, in fact.
\stopprettyblock
Below, we have two separate columns; but up here, for the nonce, we have but 
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
\stopcolumns
\stoptext

\startcolumns[n=2]
\input ward
\column
\input weisman
\stopcolumns

After installing ConTeXt in WinEdt:
Command Line:   C:\Users\Hermann\Downloads\context-mswin\bin\mtxrun.exe 
--synctex=-1 "melon.tex"
Startup Folder: 
\\ub.univie.ac.at\U_Dom\Users 
G-L\Hermann\Documents\My Documents

mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-base.lua' using hash 
'lua::mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-bases.lua' using hash 
'lua::mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-base.lua' using hash 
'lua::mtx-t-mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-bases.lua' using hash 
'lua::mtx-t-mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-base.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
mtxrun  | unknown script 'mtx-base.lua' or 'mtx-mtx-base.lua'

There's something wrong, but I don't know what.
_

ConTeXt Compilation Report (Pages: 0)

Errors: 0   Warnings: 0   Ba

[NTG-context] Something wrong after ConTeXt installation, could somebody help me please?

2019-06-12 Thread Ursula Hermann
Hello List!

\setuppapersize[A4]
\setupexternalfigures
  [location=default]

\setupbodyfont[Computer Modern Roman ,rm, tfx 7pt]
\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\setupcombination
   [location=top,
distance=\spaceamount]
\bTABLE[align=flushleft,columndistance=0.1em]
   \bTR
 \bTD[width=.2\textwidth]Small \eTD
 \bTD[width=0.05\textwidth] \eTD
   \eTR
\eTABLE

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]
\definecolor [rosybrown:1][h=FFBCB3]
\defineframedtext
[prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=rosybrown:1,
   foreground=color, foregroundcolor=black,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock[width=7.5 cm,align={flushleft}]
\noindentation  The Earth, as a habitat for animal life, is in old age and has 
a fatal illness. Several, in fact.
\stopprettyblock
Below, we have two separate columns; but up here, for the nonce, we have but 
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
\stopcolumns
\stoptext

\startcolumns[n=2]
\input ward
\column
\input weisman
\stopcolumns

After installing ConTeXt in WinEdt:
Command Line:   C:\Users\Hermann\Downloads\context-mswin\bin\mtxrun.exe 
--synctex=-1 "melon.tex"
Startup Folder: \\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\My Documents

mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-local/web2c' from specification 
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-context/web2c' from specification 
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf-dist/web2c' from specification 
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
path 'C:/Users/Hermann/Downloads/texmf/web2c' from specification 
'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-base.lua' using hash 
'lua::mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-bases.lua' using hash 
'lua::mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-base.lua' using hash 
'lua::mtx-t-mtx-base.lua'
resolvers   | resolving | using suffix based filetype 'scripts'
resolvers   | resolving | remembering file 'mtx-t-mtx-bases.lua' using hash 
'lua::mtx-t-mtx-bases.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-base.lua'
resolvers   | resolving | remembered file 'mtx-base.lua'
mtxrun  | unknown script 'mtx-base.lua' or 'mtx-mtx-base.lua'

There's something wrong, but I don't know what.
_

ConTeXt Compilation Report (Pages: 0)

Errors: 0   Warnings: 0   Bad Boxes: 0
___
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
archiv

Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Wolfgang Schuster

Ursula Hermann schrieb am 28.02.19 um 11:43:

Dear List!

I have the following example. I would like to have two columns that are 
in the distance small. So I have tried:


\setuppapersize[A5]

\startcolumns

\defineframed

    [tightframed][width=5cm,width.1\textwidth,align=right]

\tightframed{Small}

\column

\tightframed{A really really long line that is split at 5cm}

If I take the example with only \tightframed, without the columns, I 
have the small distance, but I would like to have a left and right 
column with small distance.


Are you looking for something like the examples below?

\setupcombination
  [location=top,
   distance=\spaceamount]

\starttext

\startcombination[2*1]
{\framed[width=5cm,align=flushleft]{Small}}{}
	{\framed[width=5cm,align=flushleft]{A really really long line that is 
split at 5cm}}{}

\stopcombination

\blank

\placesidebyside
{\framed[width=5cm,align=flushleft]{Small}}
	{\framed[width=5cm,align=flushleft]{A really really long line that is 
split at 5cm}}


\blank

\bTABLE[width=5cm,align=flushleft,columndistance=\spaceamount]
  \bTR
\bTD Small \eTD
\bTD A really really long line that is split at 5cm \eTD
  \eTR
\eTABLE

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


Re: [NTG-context] \setupcombinations and the after-key

2017-08-09 Thread Pablo Rodriguez
On 08/09/2017 11:31 PM, Mathias Schickel wrote:
> Hi Pablo,
> 
> thank you a lot! This was really helpful. Maybe the garden page should
> be altered then. If you have a look at
> 
> http://wiki.contextgarden.net/Command/setupcombinations
> 
> you get the impression that „after“ is the key I was looking for because
> the page says:
> 
>   * Suppressing both the horizontal and vertical gap between cells:
> 
> \setupcombinations[distance=0mm,after=]
> 
>   * a 10mm horizontal and vertical gap between cells:
> 
> \setupcombinations[distance=10mm,after={\blank[10mm]}]
Please, update the wiki, but first consider this:

\setupexternalfigures[location={local, default}]
\setupcombination
[distance=5em,
 inbetween={\blackrule[width=.5\textwidth, color=red, height=1em]},
 after={\blackrule[width=.5\textwidth, color=green, height=5em]}]
\starttext
\placefigure
[here]   % figure placement
[fig:combinations]   % figure reference
{An example of combination.} % figure caption
{\startcombination[3*2]  % contents of the figure: a combination
% first row
{\externalfigure[cow][height=1cm]}{a}   % subfigure and subcaption
{\externalfigure[cow][height=1cm]}{b}
{\externalfigure[cow][height=1cm]}{c}
% second row
{\externalfigure[cow][height=1cm]}{d}
{\externalfigure[cow][height=1cm]}{e}
{\externalfigure[cow][height=1cm]}{f}
 \stopcombination}
\stoptext

Probably adding a sample similar to this makes sense.

Just in case it helps,

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

Re: [NTG-context] \defineparagraphs

2016-07-09 Thread Wolfgang Schuster

John Kitzmiller <mailto:k...@inradius.net>
9. Juli 2016 um 14:48


Thank you Wolfgang. I had to change .5\localhsize to .5\textwidth for 
it to work here (and scale down the cow to make it fit in the barn.)


I am looking into combinations to center the graphic in the second x 
box, and make a \setupcombination[mycombination] similar to 
\defineparagraph[Mypar] to reduce typing.

\definecombination[john][nx=2,ny=1,width=.5\textwidth]

\startcombination[john]
{...}{}
{...}{}
\stopcombination

\tbox is new to me. Is that a ConTeXt macro of TEX \vtop{\hbox}?
The command changes the vertical position of the content (by putting it 
into an \hbox and changing the height/depth values).


\setupblackrules[width=2cm,height=2cm]

\setuplayout[grid=yes]\showgrid

\starttext
XXX  {\blackrule}
XXX \tbox{\blackrule}
XXX \bbox{\blackrule}
XXX
\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] \defineparagraphs

2016-07-09 Thread John Kitzmiller

> On 8Jul, 2016, at 09:20, Wolfgang Schuster <schuster.wolfg...@gmail.com> 
> wrote:
> 
>> The code below works with context2016.02.15, but fails with 
>> context2016.05.19.
>> 
>> Itemize within the defined paragraph (Mypar) no longer puts the thinrule in 
>> the margin (see the third question.) The \ansblank command seems to the 
>> second part of Mypar is 
>> the margin? Pdf of the success and fail attached.
>> 
>> Thanks! John
>> 
>> \startMypar
>> \item Third question refers to graphic at right. 
>> \Mypar
>> 
>> \stopMypar
> \item
> \startcombination[nx=2,ny=1]
> 
> {\framed[frame=off,align=flushleft,location=top,width=.5\localhsize]{Third 
> question refers to graphic at right.}}{}
> {\tbox{\externalfigure[cow]}}{}
> \stopcombination

Thank you Wolfgang. I had to change .5\localhsize to .5\textwidth for it to 
work here (and scale down the cow to make it fit in the barn.)

I am looking into combinations to center the graphic in the second x box, and 
make a \setupcombination[mycombination] similar to \defineparagraph[Mypar] to 
reduce typing.

\tbox is new to me. Is that a ConTeXt macro of TEX \vtop{\hbox}?

Thanks again, John___
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] Styling captions inside \startcombination ... \stopcombination

2015-03-16 Thread Mojca Miklavec
On Sat, Mar 14, 2015 at 1:10 PM, Hans Hagen pra...@wxs.nl wrote:
 On 3/14/2015 10:50 AM, Mojca Miklavec wrote:

 Hello,

 I'm using the following code to make the figure captions smaller:
  \setupcaptions[style={\switchtobodyfont[8pt]}]

 Now I'm looking for the magic keywoard to also decrease the size of
 captions inside combinations, as in the following case for example
 (otherwise the subcaptions are too big in comparison):

 \setupcaptions[style={\switchtobodyfont[8pt]}]
 \setupexternalfigures[location={default}]
 \starttext
\placefigure{Cows in \ConTeXt}
  {\startcombination[2*1]
{\mirror{\externalfigure[cow][width=4cm]}}{First cow}
{\externalfigure[cow][width=4cm]}{Second cow}
\stopcombination}
 \stoptext


 the obvious:

 \setupcombinations[style={\switchtobodyfont[8pt]}]

I'm sorry and thank you. Blush. I feel ashamed that I actually looked
into the source code and found the following inside pack-com.mkiv:

\setupcombination
  [\c!width=\v!fit,
   \c!height=\v!fit,
   \c!distance=\emwidth,
   \c!location=\v!bottom, % can be something {top,left}
   \c!before=\blank,
   \c!after=,
   \c!inbetween={\blank[\v!medium]},
  %\c!style=,
  %\c!color=,
   \c!nx=2, % new
   \c!ny=1, % new
   \c!align=\v!middle]

However I failed to notice the commented-out command style=. Luckily
I can blame the syntax highlighting that makes the comments more
hidden than the rest of the code ;)

Mojca
___
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] Vertical location of combinations

2013-04-15 Thread Wolfgang Schuster

Am 15.04.2013 um 06:34 schrieb Aditya Mahajan adit...@umich.edu:

 How do I control the vertical location of combinations?
 
 I want output similar to
 
 ABC
 \framed[frame=no, location=top]}\startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
 \stopcombination}
 DEF
 
 without having to explictly add a \frame.
 
 Looking at pack-com, I tried
 
 \useMPlibrary[dum]
 \setupcombination[location=top]
 
 \starttext
 ABC
 \startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
 \stopcombination
 DEF
 
 ABC
 \framed[frame=no, location=top]}\startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
 \stopcombination}
 DEF
 \stoptext
 
 but the combination is still aligned to the baseline of the caption.

The location-key controls the vertical alignment of the images in the 
combination
and I think the environment is meant as display element and not for inline as 
you 
try to use it. As you can see in pack-com.mkiv the content of the environment
is put a \vbox which explains the location when you use it in your text.

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] Vertical location of combinations

2013-04-15 Thread Aditya Mahajan

On Mon, 15 Apr 2013, Wolfgang Schuster wrote:



Am 15.04.2013 um 06:34 schrieb Aditya Mahajan adit...@umich.edu:


How do I control the vertical location of combinations?

I want output similar to

ABC
\framed[frame=no, location=top]}\startcombination[2]
 {\externalfigure[dummay][width=2cm]}{One}
 {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination}
DEF

without having to explictly add a \frame.

Looking at pack-com, I tried

\useMPlibrary[dum]
\setupcombination[location=top]

\starttext
ABC
\startcombination[2]
 {\externalfigure[dummay][width=2cm]}{One}
 {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination
DEF

ABC
\framed[frame=no, location=top]}\startcombination[2]
 {\externalfigure[dummay][width=2cm]}{One}
 {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination}
DEF
\stoptext

but the combination is still aligned to the baseline of the caption.


The location-key controls the vertical alignment of the images in the 
combination
and I think the environment is meant as display element and not for inline as 
you
try to use it. As you can see in pack-com.mkiv the content of the environment
is put a \vbox which explains the location when you use it in your text.


Thanks. I'll just create a macro to wrap everything around a framed.

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] Vertical location of combinations

2013-04-14 Thread Aditya Mahajan

How do I control the vertical location of combinations?

I want output similar to

ABC
\framed[frame=no, location=top]}\startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination}
DEF

without having to explictly add a \frame.

Looking at pack-com, I tried

\useMPlibrary[dum]
\setupcombination[location=top]

\starttext
ABC
\startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination
DEF

ABC
\framed[frame=no, location=top]}\startcombination[2]
  {\externalfigure[dummay][width=2cm]}{One}
  {\externalfigure[dummay][width=2cm]}{Two}
\stopcombination}
DEF
\stoptext

but the combination is still aligned to the baseline of the caption.

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] align and location in \setupcombination

2012-10-31 Thread Alan BRASLAU
On Tue, 30 Oct 2012 19:39:33 +0100
Hans Hagen pra...@wxs.nl wrote:

 On 30-10-2012 18:57, Wolfgang Schuster wrote:
 
  Not all people on the list to read the dev list :)  
 
 maybe we need a warning (like the mandate 'this site uses cookies' in 
 NL) like 'if you read this message you agree not to complain about an 
 undocumented feature'

So, basically you don't want any complaints at all
(as the list of undocumented features now far outweighs the list of
documented features!) :)

Of course, ConTeXt is use at your own risk
even though I find it to be more use to your great benefit.

Alan
___
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] align and location in \setupcombination

2012-10-30 Thread Wolfgang Schuster

Am 28.10.2012 um 15:59 schrieb Marco Patzer home...@lavabit.com:

 So I have to enclose \startcombination … \stopcombination in 
 \placefigure[][]{}.
 How to locate the combined figures at the horizontal center?
 
 \midaligned
  {\startcombination[2*1]
{\externalfigure[dummy][]}{aa}
{\externalfigure[dummy][]}{bb}
   \stopcombination}

With the new beta you can replace

\midaligned{…}

with

\startmidaligned
…
\stopmidaligned

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] align and location in \setupcombination

2012-10-30 Thread Marco Patzer
2012-10-30 Wolfgang Schuster:

  \midaligned
   {\startcombination[2*1]
 {\externalfigure[dummy][]}{aa}
 {\externalfigure[dummy][]}{bb}
\stopcombination}
 
 With the new beta you can replace
 
 \midaligned{…}
 
 with
 
 \startmidaligned
 …
 \stopmidaligned

I already noted that. I appreciate the movement to a more uniform
\start…\stop syntax.

Just a random thought: Would it be possible or even make sense to
uniform the syntax even further and maybe merge the functionality
into \startalignment? At the moment we have one command with an
argument for alignments:

\startalignment [right|middle|left]
\input knuth
\stopalignment

however three different command for boxed alignments (furthermore,
\startrightaligned works just the opposite of \startalignment[right]):

\startrightaligned
FooBar
\stoprightaligned

\startmidaligned
FooBar
\stopmidaligned

\startleftaligned
FooBar
\stopleftaligned

This might be easy to remember for us who still know the
\midaligned{} syntax, but I guess for new users it's confusing.
Additionally, the difference between the commands is unclear. What
about an interface like this:

\startlinealignment [right|middle|left]
FooBar
\stoplinealignment

Taking this one step further would be to merge both into one
command:

\startalignment [align=left, alternative=???]
\input knuth
\stopalignment

\startalignment [align=left, alternative=!!!]
FooBar
\stopalignment


Marco

___
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] align and location in \setupcombination

2012-10-30 Thread Wolfgang Schuster

Am 30.10.2012 um 13:36 schrieb Marco Patzer home...@lavabit.com:

 2012-10-30 Wolfgang Schuster:
 
 \midaligned
 {\startcombination[2*1]
   {\externalfigure[dummy][]}{aa}
   {\externalfigure[dummy][]}{bb}
  \stopcombination}
 
 With the new beta you can replace
 
\midaligned{…}
 
 with
 
\startmidaligned
…
\stopmidaligned
 
 I already noted that. I appreciate the movement to a more uniform
 \start…\stop syntax.

Not all people on the list to read the dev list :)

 Just a random thought: Would it be possible or even make sense to
 uniform the syntax even further and maybe merge the functionality
 into \startalignment? At the moment we have one command with an
 argument for alignments:
 
 \startalignment [right|middle|left]
   \input knuth
 \stopalignment
 
 however three different command for boxed alignments (furthermore,
 \startrightaligned works just the opposite of \startalignment[right]):
 
 \startrightaligned
   FooBar
 \stoprightaligned
 
 \startmidaligned
   FooBar
 \stopmidaligned
 
 \startleftaligned
   FooBar
 \stopleftaligned
 
 This might be easy to remember for us who still know the
 \midaligned{} syntax, but I guess for new users it's confusing.
 Additionally, the difference between the commands is unclear. What
 about an interface like this:
 
 \startlinealignment [right|middle|left]
   FooBar
 \stoplinealignment

+1

 Taking this one step further would be to merge both into one
 command:
 
 \startalignment [align=left, alternative=???]
   \input knuth
 \stopalignment
 
 \startalignment [align=left, alternative=!!!]
   FooBar
 \stopalignment


Not sure if this method is too complicated for a few people.

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] align and location in \setupcombination

2012-10-30 Thread Hans Hagen

On 30-10-2012 18:57, Wolfgang Schuster wrote:


Not all people on the list to read the dev list :)


maybe we need a warning (like the mandate 'this site uses cookies' in 
NL) like 'if you read this message you agree not to complain about an 
undocumented feature'



Just a random thought: Would it be possible or even make sense to
uniform the syntax even further and maybe merge the functionality
into \startalignment? At the moment we have one command with an
argument for alignments:

\startalignment [right|middle|left]
\input knuth
\stopalignment

however three different command for boxed alignments (furthermore,
\startrightaligned works just the opposite of \startalignment[right]):

\startrightaligned
FooBar
\stoprightaligned

\startmidaligned
FooBar
\stopmidaligned

\startleftaligned
FooBar
\stopleftaligned

This might be easy to remember for us who still know the
\midaligned{} syntax, but I guess for new users it's confusing.
Additionally, the difference between the commands is unclear. What
about an interface like this:

\startlinealignment [right|middle|left]
FooBar
\stoplinealignment


+1


I've added something for you to check.


Taking this one step further would be to merge both into one
command:

\startalignment [align=left, alternative=???]
\input knuth
\stopalignment

\startalignment [align=left, alternative=!!!]
FooBar
\stopalignment



Not sure if this method is too complicated for a few people.


Indeed,

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
___


Re: [NTG-context] align and location in \setupcombination

2012-10-30 Thread Wolfgang Schuster

Am 30.10.2012 um 19:39 schrieb Hans Hagen pra...@wxs.nl:

 Additionally, the difference between the commands is unclear. What
 about an interface like this:
 
 \startlinealignment [right|middle|left]
 FooBar
 \stoplinealignment
 
 +1
 
 I've added something for you to check.


I found a typo:

\unexpanded\def\leftaligned  {\spac_align_wrapper_handle\v!left  }
-\unexpanded\def\midaligned   {\spac_align_wrapper_handle\v!middle}
+\unexpanded\def\middlealigned{\spac_align_wrapper_handle\v!middle}
\unexpanded\def\rightaligned {\spac_align_wrapper_handle\v!right }
\unexpanded\def\maxaligned   {\spac_align_wrapper_handle\v!max   }

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] align and location in \setupcombination

2012-10-30 Thread Hans Hagen

On 30-10-2012 20:04, Wolfgang Schuster wrote:


I found a typo:


fixed

-
  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] align and location in \setupcombination

2012-10-29 Thread Jeong Dal
Dear Marco and Wolfgang,

Thank you for solutions. 

I have tried \startalignment … \stopalignment, but it is not working.
Does it work as same as \midaligned?

\startcontent … \stopcontent, \startcaption … \stopcaption seem to me a new 
commands. 
Is every command in ConTeXt changed as a form of \start … \stop?

Thank you again.

Best regards,

Dalyoung

 
___
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] align and location in \setupcombination

2012-10-29 Thread Wolfgang Schuster

Am 29.10.2012 um 13:31 schrieb Jeong Dal hak...@me.com:

 Dear Marco and Wolfgang,
 
 Thank you for solutions. 
 
 I have tried \startalignment … \stopalignment, but it is not working.
 Does it work as same as \midaligned?

No, both commands work different. With \startalignment you can set a different 
\setupalign
setting for a certain part of your document and it does work for longer text 
but \midaligned
works only for content which fits on a single line. In the following example 
you can see
the text in the alignment environment is broken across line but the text in 
\midaligned is
placed in one long line which exceeds the page dimensions.

\starttext

\startalignment[middle]
\input ward
\stopalignment

\blank

\midaligned{\input ward }

\stoptext

 \startcontent … \stopcontent, \startcaption … \stopcaption seem to me a new 
 commands. 
 Is every command in ConTeXt changed as a form of \start … \stop?

No, not all commands are available in a start/stop form and even when it doesn’t
mean you can replace a command with a environment, e.g. \quotation{…} is
different from \startquotation … \stopquotation but there will be more commands
in the future which can be used as \start… and \stop…

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] align and location in \setupcombination

2012-10-28 Thread Marco Patzer
2012-10-27 Jeong Dal:

 In the output of the following sample, figures are left flushed.
 I found some discussions about the align and location in \setupcombination.
 align= is for caption and location=middle is for figures' location.
 
 But align=worked while location=  has no effect at all.

location is the vertical location of the element within the
combination. Compare:

\startcombination[2*1]
  {\externalfigure[dummy][height=1cm]}{aa}
  {\externalfigure[dummy][height=4cm]}{bb}
\stopcombination

\setupcombination
  [location=middle]

\startcombination[2*1]
  {\externalfigure[dummy][height=1cm]}{aa}
  {\externalfigure[dummy][height=4cm]}{bb}
\stopcombination

 So I have to enclose \startcombination … \stopcombination in 
 \placefigure[][]{}.
 How to locate the combined figures at the horizontal center?

\midaligned
  {\startcombination[2*1]
{\externalfigure[dummy][]}{aa}
{\externalfigure[dummy][]}{bb}
   \stopcombination}


Marco

___
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] align and location in \setupcombination

2012-10-28 Thread Wolfgang Schuster

Am 28.10.2012 um 15:59 schrieb Marco Patzer home...@lavabit.com:

 So I have to enclose \startcombination … \stopcombination in 
 \placefigure[][]{}.
 How to locate the combined figures at the horizontal center?
 
 \midaligned
  {\startcombination[2*1]
{\externalfigure[dummy][]}{aa}
{\externalfigure[dummy][]}{bb}
   \stopcombination}


When there are more combinations in the document I would create a named 
framedtext to align them.

\defineframedtext
  [centered]
  [frame=off,
   width=fit,
   offset=overlay,
   location=middle]

\useMPlibrary[dum]

\starttext

\startcentered
\startcombination[2*1]
\startcontent
\externalfigure[dummy]%
\stopcontent
\startcaption
aa
\stopcaption
\startcontent
\externalfigure[dummy]%
\stopcontent
\startcaption
bb
\stopcaption
\stopcombination
\stopcentered

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


[NTG-context] align and location in \setupcombination

2012-10-27 Thread Jeong Dal
Dear all,

In the output of the following sample, figures are left flushed.
I found some discussions about the align and location in \setupcombination.
align= is for caption and location=middle is for figures' location.

But align=worked while location=  has no effect at all.
So I have to enclose \startcombination … \stopcombination in \placefigure[][]{}.
How to locate the combined figures at the horizontal center?

Thank you for reading.

Best regards,

\starttext
\setupcombination[align=leftflush, location=middle]
\startcombination[2*1]
{\externalfigure[dummy][]}{aa}
{\externalfigure[dummy][]}{bb}
\stopcombination
\stoptext


* my system:
Mac OS 10.8

This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
\write18 enabled.
(/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2012.10.19 00:06 MKIV fmt: 2012.10.19 int: english/english
___
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] Alignment in combination

2012-10-03 Thread Wolfgang Schuster

Am 03.10.2012 um 13:47 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 how to left align the elements of a combination?
 
 \useMPlibrary [dum]
 \setupexternalfigures [height=2cm]
 \starttext
 
 %% does nothing: \setupcombinations [align=flushleft]
 \startcombination [2*2]
  {\externalfigure[dummy][width=2cm]} {}
  {\externalfigure[dummy][width=2cm]} {}
  {\externalfigure[dummy][width=4cm]} {}
  {\externalfigure[dummy][width=3cm]} {}
 \stopcombination \blank[2cm]
 
 %% desired:
 \startcombination [2*2]
  {\kern-2cm\externalfigure[dummy][width=2cm]} {}
  {\kern-1cm\externalfigure[dummy][width=2cm]} {}
  {\externalfigure[dummy][width=4cm]} {}
  {\externalfigure[dummy][width=3cm]} {}
 \stopcombination
 
 \stoptext

The align key controls the alignment of the caption, to change the position
of the content you need the location key, e.g. \setupcombination [location=left]

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] Nested floats

2012-03-10 Thread Marco
On 2012-03-09 Prashanth prash.n@gmail.com wrote:

 I need to create some small tables that are (possibly) next to each other.
 Though I could make text flow around tables and appear to the left or
 to the right of the table, I could not manage something like this:

I would use combinations for that (see example below).

 So I tried to use nested floats to achieve this

Nesting floats is not a good idea.

 (floats because I want each to have its own number and title).

There are other ways to achieve that.


\setupheads [chapter] [page=no]

\startbuffer
  \bTABLE [frame=off, align=center]
\bTR \bTD abc \eTD \bTD def \eTD \eTR
\bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
  \eTABLE
\stopbuffer

\starttext

\startchapter [title=First]
  \startsection [title=1st Section]
\startplacetable
  \startcombination [2*1]
{\getbuffer} {(a)}
{\getbuffer} {(b)}
  \stopcombination
\stopplacetable
  \stopsection
\stopchapter

\startchapter [title=Second]
  \startplacetable [location=right]
\setupcombination [distance=2cm]
\startcombination [2*2]
  {\getbuffer} {(a)}
  {\getbuffer} {(b)}
  {\getbuffer} {(c)}
  {\getbuffer} {(d)}
\stopcombination
  \stopplacetable
  \input knuth
\stopchapter

\stoptext


Marco


___
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] Nested floats

2012-03-10 Thread Prashanth

Hi Marco,
I hesitate to use combinations because Table 1.1 (a) and Table 1.1 (b) 
are not always related to each other. But I will use combinations if 
everything else fails.


Do you have any intuitions as to why the numbering begins at 7? I tried 
to not use the outermost float (\placetable[here,none][]{}{ ) and it 
still started numbering at 7. I believe this is an issue with nested 
tables, not nested floats.

Best regards,
Prash

On 10/03/12 14:29, Marco wrote:

On 2012-03-09 Prashanthprash.n@gmail.com  wrote:


I need to create some small tables that are (possibly) next to each other.
Though I could make text flow around tables and appear to the left or
to the right of the table, I could not manage something like this:

I would use combinations for that (see example below).


So I tried to use nested floats to achieve this

Nesting floats is not a good idea.


(floats because I want each to have its own number and title).

There are other ways to achieve that.


\setupheads [chapter] [page=no]

\startbuffer
   \bTABLE [frame=off, align=center]
 \bTR \bTD abc \eTD \bTD def \eTD \eTR
 \bTR \bTD ghi \eTD \bTD jkl \eTD \eTR
   \eTABLE
\stopbuffer

\starttext

\startchapter [title=First]
   \startsection [title=1st Section]
 \startplacetable
   \startcombination [2*1]
 {\getbuffer} {(a)}
 {\getbuffer} {(b)}
   \stopcombination
 \stopplacetable
   \stopsection
\stopchapter

\startchapter [title=Second]
   \startplacetable [location=right]
 \setupcombination [distance=2cm]
 \startcombination [2*2]
   {\getbuffer} {(a)}
   {\getbuffer} {(b)}
   {\getbuffer} {(c)}
   {\getbuffer} {(d)}
 \stopcombination
   \stopplacetable
   \input knuth
\stopchapter

\stoptext


Marco


___
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] Space betwenn graphics in a combination

2007-07-07 Thread Aditya Mahajan
On Sat, 7 Jul 2007, Steffen Fritzsche wrote:

 Hi,

 is there a possiblity to adjust the space between graphics in a
 combination? In my case I have to graphics and I want a larger gap
 between them.

See \setupcombination in the manual (page 227-228)

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