[NTG-context] columns

2013-10-03 Thread H. van der Meer
I have some difficulties with columns inside a framedtext. The example below 
shows that columns does not work inside framedtext, whereas simplecolumns does. 
However, the latter does not show rules between the columns. Can I have both?

Is columns definitely not working here or is it temporarily until something is 
fixed? Or will simplecolumns be extended to show the rules?

% test columns within framedtext
\starttext
\startframedtext[width=\makeupwidth]
\startcolumns[n=2,rule=on,balance=yes]
\input tufte
\stopcolumns
\stopframedtext
\startframedtext[width=\makeupwidth]
\blank
\startsimplecolumns[n=2,rule=on,balance=yes]
\input tufte
\stopsimplecolumns
\stopframedtext
\stoptext


Hans van der Meer


column-sinside.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] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 10:21 schrieb H. van der Meer :

> I have some difficulties with columns inside a framedtext. The example below 
> shows that columns does not work inside framedtext, whereas simplecolumns 
> does. However, the latter does not show rules between the columns. Can I have 
> both?
> 
> Is columns definitely not working here or is it temporarily until something 
> is fixed? Or will simplecolumns be extended to show the rules?
> 
> % test columns within framedtext
> \starttext
> \startframedtext[width=\makeupwidth]
> \startcolumns[n=2,rule=on,balance=yes]
> \input tufte
> \stopcolumns
> \stopframedtext
> \startframedtext[width=\makeupwidth]
> \blank
> \startsimplecolumns[n=2,rule=on,balance=yes]
> \input tufte
> \stopsimplecolumns
> \stopframedtext
> \stoptext

The new mixedcolumns environment can be used to the typeset columns in a frame.

There is also a predefined bolxedcolumns environment which changes the width of
the columns when you use it in \startframed etc.

\setupalign[verytolerant]

\starttext

\startboxedcolumns[separator=rule]
\input tufte
\stopboxedcolumns

\startframedtext[width=max,align=verytolerant]
\startboxedcolumns[separator=rule]
\input tufte
\stopboxedcolumns
\stopframedtext

\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] columns

2013-10-03 Thread H. van der Meer
Thanks, 

But I think mixedcolumns has to solve a problem width the width of the 
frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, 
mixedcolumns does not. See the example.

% NOT OK WIDTH NOT RESPECTED
\startframedtext[width=.8\makeupwidth,align=verytolerant]
\startmixedcolumns[n=2,separator=rule,balance=yes]
\input tufte
\stopmixedcolumns
\stopframedtext
\blank
% OK
\startframedtext[width=.8\makeupwidth,align=verytolerant]
\startboxedcolumns[n=2,separator=rule,balance=yes]
\input tufte
\stopboxedcolumns
\stopframedtext

Hans van der Meer



columns-inside.pdf
Description: Adobe PDF document

On 3 okt. 2013, at 11:09, Wolfgang Schuster  wrote:

> 
> Am 03.10.2013 um 10:21 schrieb H. van der Meer :
> 
>> I have some difficulties with columns inside a framedtext. The example below 
>> shows that columns does not work inside framedtext, whereas simplecolumns 
>> does. However, the latter does not show rules between the columns. Can I 
>> have both?
>> 
>> Is columns definitely not working here or is it temporarily until something 
>> is fixed? Or will simplecolumns be extended to show the rules?
>> 
>> % test columns within framedtext
>> \starttext
>> \startframedtext[width=\makeupwidth]
>> \startcolumns[n=2,rule=on,balance=yes]
>> \input tufte
>> \stopcolumns
>> \stopframedtext
>> \startframedtext[width=\makeupwidth]
>> \blank
>> \startsimplecolumns[n=2,rule=on,balance=yes]
>> \input tufte
>> \stopsimplecolumns
>> \stopframedtext
>> \stoptext
> 
> The new mixedcolumns environment can be used to the typeset columns in a 
> frame.
> 
> There is also a predefined bolxedcolumns environment which changes the width 
> of
> the columns when you use it in \startframed etc.
> 
> \setupalign[verytolerant]
> 
> \starttext
> 
> \startboxedcolumns[separator=rule]
> \input tufte
> \stopboxedcolumns
> 
> \startframedtext[width=max,align=verytolerant]
> \startboxedcolumns[separator=rule]
> \input tufte
> \stopboxedcolumns
> \stopframedtext
> 
> \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
> ___

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

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 12:02 schrieb "H. van der Meer" :

> Thanks, 
> 
> But I think mixedcolumns has to solve a problem width the width of the 
> frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, 
> mixedcolumns does not. See the example.

Boxedcolumns are a instance of mixedcolumns and are defined as

   \definemixedcolumns[boxedcolumns]


You can also use them this way:

   \startmixedcolumns[boxedcolumns]
   …
   \stopmixedcolumns


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

2013-10-03 Thread H. van der Meer
If I remember well, framedtext sets a localhsize for the width of its content. 
I guess that is why boxedcolumns stays within the width specified. But is there 
a specific reason why mixedcolumns in general does not?

Hans van der Meer



On 3 okt. 2013, at 12:07, Wolfgang Schuster 
 wrote:

> 
> Am 03.10.2013 um 12:02 schrieb "H. van der Meer" :
> 
>> Thanks, 
>> 
>> But I think mixedcolumns has to solve a problem width the width of the 
>> frametext. Whereas boxedcolumns honors the width of the enclosing 
>> framedtext, mixedcolumns does not. See the example.
> 
> Boxedcolumns are a instance of mixedcolumns and are defined as
> 
>   \definemixedcolumns[boxedcolumns]
> 
> 
> You can also use them this way:
> 
>   \startmixedcolumns[boxedcolumns]
>   …
>   \stopmixedcolumns
> 
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 12:26 schrieb H. van der Meer :

> If I remember well, framedtext sets a localhsize for the width of its 
> content. I guess that is why boxedcolumns stays within the width specified. 
> But is there a specific reason why mixedcolumns in general does not?

The global settings for mixedcolumns are

   \setupmixedcolumns
 [maxwidth=\makeupwidth]

which forces columns to use the width of the textblock but boxedcolumns uses 
this

   \definemixedcolumns
 [boxedcolumns]
 [maxwidth=\availablehsize]

where the width of the columns depends on the available width of the 
environment,
e.g. in a narrower environment or in a frame the you get shorter columns.

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] once from the inside?

2013-10-03 Thread H. van der Meer
I know how to force ConTeXt doing not more then one run with the --once 
parameter on the call. Is it, however, possible to do the same from within the 
ConTeXt document? Some of my documents do not need a second but still get one.

Hans van der Meer



___
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] once from the inside?

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 14:49 schrieb "H. van der Meer" :

> I know how to force ConTeXt doing not more then one run with the --once 
> parameter on the call. Is it, however, possible to do the same from within 
> the ConTeXt document? Some of my documents do not need a second but still get 
> one.


There a few parameters which can be set with the first line of your document,
e.g. to control the number of runs you can use this:

% nofruns=1

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] Using Nibus Roman with MkIV

2013-10-03 Thread Aditya Mahajan

On Wed, 2 Oct 2013, Hans Hagen wrote:


On 10/2/2013 9:47 PM, Aditya Mahajan wrote:

Hi,

Is it possible to use Nibus Roman with MkIV.

I have to send a document where the font used **must** be Times New
Roman or Nimbus Roman. I tried using a clone (Termes), but I was told
that I must use Times New Roman or Nimbus Roman. (It is a matter of
regulations, so it is not possible for me to explain that Termes and
Nibmus Roman are essentially the same).

So, is it possible to use Nimbus Roman (type1 font) in MkIV?


you can just force "file:somename.afm" .. mkiv will make a wide font of it 
(map onto unicode) so you should be fine


Thanks of lot!

I could not get protrosion to work (against a deadline, so I did not try 
too hard), but the basic mechanism works well. For anyone else interested 
in this, here is the typescript that I used:


\starttypescript [\s!serif] [times] [\s!name]
\definefontsynonym [\s!Serif] [file:utmr8a.afm]
\definefontsynonym [\s!SerifItalic]   [file:utmri8a.afm]
\definefontsynonym [\s!SerifBold] [file:utmb8a.afm]
\definefontsynonym [\s!SerifBoldItalic]   [file:utmbi8a.afm]
\definefontsynonym [\s!SerifSlanted]  [file:utmri8a.afm]
\definefontsynonym [\s!SerifBoldSlanted]  [file:utmbi8a.afm]
\definefontsynonym [\s!SerifCaps] [file:texgyretermes-regular] 
[\s!features=\s!smallcaps]
\stoptypescript

ConTeXt does not ship with these afm files, so I just copied them from the 
texlive directory to current working directory.


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
___


[NTG-context] re-\place figure using the original figure number

2013-10-03 Thread Stephens, Kenny
I would like to have the same figure in multiple places in my document, but 
each instance should use the same figure number.

\starttext

\placefigure[right][fig-3-36]{}{\externalfigure[cow.pdf][width=2cm]}
Here is the first instance of a figure, \in{Figure}[fig-3-36].
\placefigure[right][fig-4-200]{}{\externalfigure[mill.png][width=2cm]}
Here is \in{Figure}[fig-4-200], just to spread things out.
\placefigure[right][fig-3-36]{}{\externalfigure[cow.pdf][width=2cm]}
Here is the original \in{Figure}[fig-3-36], but I would like for it to show the 
same figure number as the first instance

\stoptext

But I want the figure to be associated with certain text so that the user 
doesn't have to flip back to the original instance (it's a workbook of physics 
problems so certain setups get re-used).

Any thoughts or suggestions would be great.

___
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] Offlist: Using Nibus Roman with MkIV

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 16:29 schrieb Aditya Mahajan :

> On Wed, 2 Oct 2013, Hans Hagen wrote:
> 
>> On 10/2/2013 9:47 PM, Aditya Mahajan wrote:
>>> Hi,
>>> Is it possible to use Nibus Roman with MkIV.
>>> I have to send a document where the font used **must** be Times New
>>> Roman or Nimbus Roman. I tried using a clone (Termes), but I was told
>>> that I must use Times New Roman or Nimbus Roman. (It is a matter of
>>> regulations, so it is not possible for me to explain that Termes and
>>> Nibmus Roman are essentially the same).
>>> So, is it possible to use Nimbus Roman (type1 font) in MkIV?
>> 
>> you can just force "file:somename.afm" .. mkiv will make a wide font of it 
>> (map onto unicode) so you should be fine
> 
> Thanks of lot!
> 
> I could not get protrosion to work (against a deadline, so I did not try too 
> hard), but the basic mechanism works well. For anyone else interested in 
> this, here is the typescript that I used:
> 
> \starttypescript [\s!serif] [times] [\s!name]
>\definefontsynonym [\s!Serif] [file:utmr8a.afm]
>\definefontsynonym [\s!SerifItalic]   [file:utmri8a.afm]
>\definefontsynonym [\s!SerifBold] [file:utmb8a.afm]
>\definefontsynonym [\s!SerifBoldItalic]   [file:utmbi8a.afm]
>\definefontsynonym [\s!SerifSlanted]  [file:utmri8a.afm]
>\definefontsynonym [\s!SerifBoldSlanted]  [file:utmbi8a.afm]
>\definefontsynonym [\s!SerifCaps] [file:texgyretermes-regular] 
> [\s!features=\s!smallcaps]
> \stoptypescript
> 
> ConTeXt does not ship with these afm files, so I just copied them from the 
> texlive directory to current working directory.

Hi Aditya,

why don’t you use the version of Times New Roman which is available with the 
mscore fonts* package,
it’s one the best ways to bet access to the fonts on a Linux machine.

* http://corefonts.sourceforge.net/

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] [***SPAM***] Fonts

2013-10-03 Thread hwitloc

Is there any utility available that can display the different fonts available 
for viewing.  I'm not that familiar with what's available but I would like to 
see what fonts are already loaded and can be used by the ConteXt macro 
processor.

Thanks
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [***SPAM***] Fonts

2013-10-03 Thread Hans Hagen

On 10/3/2013 6:26 PM, hwit...@gmail.com wrote:


Is there any utility available that can display the different fonts available 
for viewing.  I'm not that familiar with what's available but I would like to 
see what fonts are already loaded and can be used by the ConteXt macro 
processor.


mtxrun --script fonts --list --files --all --pattern=*

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

2013-10-03 Thread Hans Hagen

On 10/3/2013 12:35 PM, Wolfgang Schuster wrote:


Am 03.10.2013 um 12:26 schrieb H. van der Meer :


If I remember well, framedtext sets a localhsize for the width of its content. 
I guess that is why boxedcolumns stays within the width specified. But is there 
a specific reason why mixedcolumns in general does not?


The global settings for mixedcolumns are

\setupmixedcolumns
  [maxwidth=\makeupwidth]

which forces columns to use the width of the textblock but boxedcolumns uses 
this

\definemixedcolumns
  [boxedcolumns]
  [maxwidth=\availablehsize]

where the width of the columns depends on the available width of the 
environment,
e.g. in a narrower environment or in a frame the you get shorter columns.


also, boxedcolumns, as the name says, are for use in boxes while by 
default mixedcolumns (unless set up as boxed) are operating at the page 
level (the so called mvl)


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] error when installing ConTeXt Standalone

2013-10-03 Thread Pablo Rodríguez
On 09/26/2013 07:44 AM, Thomas A. Schmitz wrote:
> On 25.09.2013 22:50, Pablo Rodríguez wrote:
>> It worked with Fedora 16, but after installing Fedora 19 it doesn’t work.
> 
> http://thread.gmane.org/gmane.comp.tex.context/83357

[Sorry for the much delayed reply, Thomas. One of the mail servers seem
to be rejecting messages from the SMTP server I used. So I had to open
a new account to maili the ConTeXt list.]

Installing zsh gives the same error, but I don’t have zsh installed (I
removed after installing it to test this).


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] a question on coloring \tex and \var

2013-10-03 Thread Pablo Rodríguez
Dear list,

I have this sample:

\definetype[TeXcode][option=TEX]
\starttext
\TeXcode{\mainlanguage[la]},
but \tex{ConTeXt} and \arg{option=value}.
\stoptext

I need ot have \tex and \arg colored with [option=TeX] (and I would
avoid having \type colored).

How can I do that?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread luigi scarso
On Thu, Oct 3, 2013 at 6:55 PM, Hans Hagen  wrote:

> On 10/3/2013 12:35 PM, Wolfgang Schuster wrote:
>
>>
>> Am 03.10.2013 um 12:26 schrieb H. van der Meer :
>>
>>  If I remember well, framedtext sets a localhsize for the width of its
>>> content. I guess that is why boxedcolumns stays within the width specified.
>>> But is there a specific reason why mixedcolumns in general does not?
>>>
>>
>> The global settings for mixedcolumns are
>>
>> \setupmixedcolumns
>>   [maxwidth=\makeupwidth]
>>
>> which forces columns to use the width of the textblock but boxedcolumns
>> uses this
>>
>> \definemixedcolumns
>>   [boxedcolumns]
>>   [maxwidth=\availablehsize]
>>
>> where the width of the columns depends on the available width of the
>> environment,
>> e.g. in a narrower environment or in a frame the you get shorter columns.
>>
>
> also, boxedcolumns, as the name says, are for use in boxes while by
> default mixedcolumns (unless set up as boxed) are operating at the page
> level (the so called mvl)
>
> For the curious:
mvl is the main vertical list ,
see
books.google.com
"The advanced Texbook"
pag 295


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