Re: [NTG-context] New logo proposal

2019-01-30 Thread Floris van Manen
> On Wed, Jan 30, 2019 at 10:15 AM Floris van Manen  wrote:
> If TeX and Context are about typesetting beautiful readable typography,
> the logos as presented do not reflect that thought per se.
> At first glance is is a pile of incoherent letters and colours.
> e.g. difficult to read and memorise.
> 
> 
> perhaps a gradient on background can suggest the right orientation of reading.
> 
> 

Making things complex is easy.
The challenge remains to find a simple solution.

> In fact, having a pictograph instead of / along with
> textual content is probably a good idea.

I do agree ;-)


Here’s an attempt the blend the lines in plain monochrome …
The latter having a naive reference to the typical TeX letter dropping

e.g. always room for improvement ;-)

.F









signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] New logo proposal

2019-01-30 Thread luigi scarso
On Wed, Jan 30, 2019 at 10:15 AM Floris van Manen  wrote:

> If TeX and Context are about typesetting beautiful readable typography,
> the logos as presented do not reflect that thought per se.
> At first glance is is a pile of incoherent letters and colours.
> e.g. difficult to read and memorise.
>


perhaps a gradient on background can suggest the right orientation of
reading.

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

Re: [NTG-context] New logo proposal

2019-01-30 Thread Taco Hoekwater
Hi,

Just a quick note on logo design:

The ConTeXt logo could just as well be a set of tulips or 
some (TeX-styled) lion or a dutch cow or a windmill or
some variation off the Pragma-ADE logo (see pragma-ade.com). 
There is no real need to display the letters “context”.

In fact, having a pictograph instead of / along with 
textual content is probably a good idea.

For use in actual text we already have \CONTEXT.

My 2c,

Taco
___
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] New logo proposal

2019-01-30 Thread Taco Hoekwater
Hi,

While this discussion is going on, it is still the case that Paul’s
new unofficial logo is better than the old green one, so I did 
in fact replace the wiki logo. It will stay up until someone 
comes up with a proposal with a higher level of consensus.

Thanks Paul!

Taco

PS I tried replacing the favicon as well, but the image does
not want to scale down that much, so the favicon is still Patrick’s 
tulips.


> On 30 Jan 2019, at 10:15, Floris van Manen  wrote:
> 
> If TeX and Context are about typesetting beautiful readable typography,
> the logos as presented do not reflect that thought per se.
> At first glance is is a pile of incoherent letters and colours.
> e.g. difficult to read and memorise.


___
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] New logo proposal

2019-01-30 Thread Floris van Manen
If TeX and Context are about typesetting beautiful readable typography,
the logos as presented do not reflect that thought per se.
At first glance is is a pile of incoherent letters and colours.
e.g. difficult to read and memorise.

.F



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] New logo proposal

2019-01-30 Thread Floris van Manen
> @Floris vM: Font, spacing, overall appealingness.
> No Helvetica/Nimbus Sans, which has less meaning to me for ConTeXt than a 
> DIN-ish/technical one.
> Colors are fun.

Could you elaborate on how ‘fun’ in colors is defined?
I see no coherency in the color palet.


> If you don’t see it this way, it’s perfectly fine.
> 

Apparently i see different ;-)
How about a one color logo without any text?


.F



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] New logo proposal

2019-01-30 Thread Paul Schalck
Hello,

thanks for your feedback. Again, I don't want to impose or dismiss anything. I 
wanted to share this because I believed somebody else in the ConTeXt community 
could be interested.

@Taco: Actually, I stumbled upon the nice ConTeXt group logo recently and was 
wondering who made it. To answer your questions: I tried to avoid any logic or 
rainbow-type color sequence to create something more unique. The first square 
had to be in blue and the middle area in a warm color. (I played around a lot 
with the color combinations.) Regarding the outside circle: I tried different 
variations, with and without a surrounding circle or round background, with and 
without rounded squares, and was most pleased with this solution. It's true, 
"clean and simple" can easily lead to "too informal".

@Clyde J: Valid point. I use the logotype with the subscript 'E' whenever I can 
in inline text.

@Floris vM: Font, spacing, overall appealingness. No Helvetica/Nimbus Sans, 
which has less meaning to me for ConTeXt than a DIN-ish/technical one. Colors 
are fun. If you don't see it this way, it's perfectly fine.

@Alan B: I've uploaded MetaPost files of the main version.

Yes, the horizontal version is not very exciting nor very TeX-aware. I made 
this one primarily because I wanted something small for a little GUI script. 
Now I think it's just superfluous.

Greetings!

Paul
___
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] New logo proposal

2019-01-29 Thread Alan Braslau
On Tue, 29 Jan 2019 11:32:40 +0100
Taco Hoekwater  wrote:

> It would be more coherent if the color of the squares and the color of 
> the letters trailed each other around the 7 options in the writing order 
> for the word “CONTEXT” (C = orange+blue, O = blue+green, N = green+red 
> etc.) But perhaps that is not what you wanted? 

AND, any logo should be produced using MetaPost...
___
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] New logo proposal

2019-01-29 Thread Hans Hagen

On 1/29/2019 11:32 AM, Taco Hoekwater wrote:

Hi Paul,

Nice idea, and I actually like the multi-color version although it is a
bit too informal for some uses (but could be nice for the wiki).


which brings us to the wiki ... which still needs a bit more fancy css ...


It would be more coherent if the color of the squares and the color of
the letters trailed each other around the 7 options in the writing order
for the word “CONTEXT” (C = orange+blue, O = blue+green, N = green+red
etc.) But perhaps that is not what you wanted?

On the blue logo I tried a little experiment myself, using the
colors of http://group.contextgarden.net:



WDYT?

Side note: I like what gitlab does with the logo in the circle crop
for its project icon. I believe it would be neat if that could be
formalised into the logo itself, but a simple circle crop does not
quite look right, and more advanced options like distorting the actual
squares are outside of my inkscape knowledge. And it may not look
that good in the end, anyway …

I’ll be pleased to replace the current green logo on the wiki with
your multi-color one, assuming there is a some agreement and no
strong objections.

Best wishes,
Taco


On 29 Jan 2019, at 00:18, Paul Schalck <mailto:schick...@web.de>> wrote:


Dear ConTeXt users and developers,

I want to submit a new ConTeXt logo to you (link to GitLab project):

https://gitlab.com/schickele/new-context-logo

I made this logo in February 2018. At the time, I was planning to do 
some video tutorials on ConTeXt (still work in progress), and I wanted 
a nice looking visual clue for the thumbnails. Recently, I made a few 
minor tweaks and thought it would be the right time to put it out there.


The logo comes in two different layouts (hexagonal and horizontal), 
and each layout comes in two color variations (multicolored and blue).


The hexagonal layout is borrowed from the unofficial ConTeXt logo that 
has been around for some time. I like the idea of a clean geometrical 
form, and the hexagon reminds me of chemistry formulas -- one of the 
many application fields of ConTeXt.


The seven colors have mainly an esthetic purpose. They also denote the 
flexibility of ConTeXt. I've added a monochromatic blue version 
because shiny, saturated colors are not suitable for every case, and 
blue is strongly associated with ConTeXt to me. Blue is also a 
reminder of Mark IV and LuaTeX.


The letters are set in Din17 EF, which I've licensed. I like its 
simple shapes combined with a round and soft touch. It avoids 
consciously the very connoted Computer Modern and can be seen as a 
modernized and also Europeanized interpretation of the TeX tradition.


This logo is just a humble proposal. Perhaps it is of some use to 
someone. It could also make someone else want to create and share his 
or her logo -- that would be great.


I'm using ConTeXt since 2006/07 for almost everything that contains 
text: letters, presentations, invitations, résumés, certificates, 
manuals, reports, flyers, university papers, book typesetting, 
exercise sheets, song sheets, and I'm still amazed by how powerful, 
flexible and reliable it is. Thanks to the whole community -- and 
particularly to the Dutch wizard -- for making this possible!


Greetings from Leimen, Germany

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


Taco Hoekwater
Elvenkind BV





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




--

-
  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

Re: [NTG-context] New logo proposal

2019-01-29 Thread Hans Hagen

On 1/29/2019 11:42 AM, Clyde Johnston wrote:

The design is new, interesting and refreshing but being a traditionalist, I 
can't help think that it steps a little too far away from its TeX roots.  
ConTeXt is a derivation of TeX, a creation of Donald Knuth.  Here is what he 
said about the logo for TeX:

   "English words like 'technology' stem from a Greek root beginning with the 
letters τεχ...; and this same Greek word means art as well as technology.  Hence the name 
TeX, which is an uppercase for of τεχ."

And:

   "... it's important to notice another thing about TeX's name: The 'E' is out of 
kilter. This displaced 'E' is a reminder that TeX is about typesetting, and it 
distinguishes TeX from other system names."

The new design loses this characteristic and therefore does not distinguish it "from 
other system names".  The same could be said for the unofficial logo on wiki.

Personally, I think the ConTeXt logo should maintain the link with TeX and its 
design principles.  After all, that is how ConTeXt derived its name and 
functionality.  But this is just my opinion!
But the \TeX thing is the in running text used one so that will always 
stay texie.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] New logo proposal

2019-01-29 Thread Hans Hagen

On 1/29/2019 2:01 PM, Floris van Manen wrote:

i can imagine these numbers being language dependent .. not all languages have 
the X

https://nl.wikipedia.org/wiki/Scrabble

so you use english .. dutch is not bad either with 20


i agree, we need a native \scrabblescore function to add the total letter score 
at the end of each document typeset by context ;-)


This is the scrabble coun tof the luatex manual:

mkiv lua stats  > scrabble count: 513167 characters with a grand total 
of 790781


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] New logo proposal

2019-01-29 Thread Hans Hagen

On 1/29/2019 12:44 PM, Floris van Manen wrote:

As it is now, to me it is not so much of an improvement.
What are you trying to improve over the original?


(For the horizontal version, i’d prefer at least the correct letter 
values in place ;-)

interesting: it adds up to 16

-
  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] New logo proposal

2019-01-29 Thread Floris van Manen
As it is now, to me it is not so much of an improvement.
What are you trying to improve over the original?


(For the horizontal version, i’d prefer at least the correct letter values in 
place ;-)




.F


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] New logo proposal

2019-01-29 Thread Clyde Johnston
The design is new, interesting and refreshing but being a traditionalist, I 
can't help think that it steps a little too far away from its TeX roots.  
ConTeXt is a derivation of TeX, a creation of Donald Knuth.  Here is what he 
said about the logo for TeX:

  "English words like 'technology' stem from a Greek root beginning with the 
letters τεχ...; and this same Greek word means art as well as technology.  
Hence the name TeX, which is an uppercase for of τεχ."

And:

  "... it's important to notice another thing about TeX's name: The 'E' is out 
of kilter. This displaced 'E' is a reminder that TeX is about typesetting, and 
it distinguishes TeX from other system names."

The new design loses this characteristic and therefore does not distinguish it 
"from other system names".  The same could be said for the unofficial logo on 
wiki.

Personally, I think the ConTeXt logo should maintain the link with TeX and its 
design principles.  After all, that is how ConTeXt derived its name and 
functionality.  But this is just my opinion!

Clyde


-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Paul Schalck
Sent: Tuesday, January 29, 2019 1:18 AM
To: ntg-context@ntg.nl
Subject: [NTG-context] New logo proposal

Dear ConTeXt users and developers,

I want to submit a new ConTeXt logo to you (link to GitLab project):

https://gitlab.com/schickele/new-context-logo

I made this logo in February 2018. At the time, I was planning to do some video 
tutorials on ConTeXt (still work in progress), and I wanted a nice looking 
visual clue for the thumbnails. Recently, I made a few minor tweaks and thought 
it would be the right time to put it out there.

The logo comes in two different layouts (hexagonal and horizontal), and each 
layout comes in two color variations (multicolored and blue).

The hexagonal layout is borrowed from the unofficial ConTeXt logo that has been 
around for some time. I like the idea of a clean geometrical form, and the 
hexagon reminds me of chemistry formulas -- one of the many application fields 
of ConTeXt.

The seven colors have mainly an esthetic purpose. They also denote the 
flexibility of ConTeXt. I've added a monochromatic blue version because shiny, 
saturated colors are not suitable for every case, and blue is strongly 
associated with ConTeXt to me. Blue is also a reminder of Mark IV and LuaTeX.

The letters are set in Din17 EF, which I've licensed. I like its simple shapes 
combined with a round and soft touch. It avoids consciously the very connoted 
Computer Modern and can be seen as a modernized and also Europeanized 
interpretation of the TeX tradition.

This logo is just a humble proposal. Perhaps it is of some use to someone. It 
could also make someone else want to create and share his or her logo -- that 
would be great.

I'm using ConTeXt since 2006/07 for almost everything that contains text: 
letters, presentations, invitations, résumés, certificates, manuals, reports, 
flyers, university papers, book typesetting, exercise sheets, song sheets, and 
I'm still amazed by how powerful, flexible and reliable it is. Thanks to the 
whole community -- and particularly to the Dutch wizard -- for making this 
possible!

Greetings from Leimen, Germany

Paul Schalck
___
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] New logo proposal

2019-01-29 Thread Taco Hoekwater
Hi Paul,

Nice idea, and I actually like the multi-color version although it is a 
bit too informal for some uses (but could be nice for the wiki).

It would be more coherent if the color of the squares and the color of 
the letters trailed each other around the 7 options in the writing order 
for the word “CONTEXT” (C = orange+blue, O = blue+green, N = green+red 
etc.) But perhaps that is not what you wanted? 

On the blue logo I tried a little experiment myself, using the
colors of http://group.contextgarden.net:




WDYT?

Side note: I like what gitlab does with the logo in the circle crop
for its project icon. I believe it would be neat if that could be 
formalised into the logo itself, but a simple circle crop does not
quite look right, and more advanced options like distorting the actual
squares are outside of my inkscape knowledge. And it may not look 
that good in the end, anyway …

I’ll be pleased to replace the current green logo on the wiki with
your multi-color one, assuming there is a some agreement and no
strong objections.

Best wishes,
Taco


> On 29 Jan 2019, at 00:18, Paul Schalck  wrote:
> 
> Dear ConTeXt users and developers,
> 
> I want to submit a new ConTeXt logo to you (link to GitLab project):
> 
> https://gitlab.com/schickele/new-context-logo
> 
> I made this logo in February 2018. At the time, I was planning to do some 
> video tutorials on ConTeXt (still work in progress), and I wanted a nice 
> looking visual clue for the thumbnails. Recently, I made a few minor tweaks 
> and thought it would be the right time to put it out there.
> 
> The logo comes in two different layouts (hexagonal and horizontal), and each 
> layout comes in two color variations (multicolored and blue).
> 
> The hexagonal layout is borrowed from the unofficial ConTeXt logo that has 
> been around for some time. I like the idea of a clean geometrical form, and 
> the hexagon reminds me of chemistry formulas -- one of the many application 
> fields of ConTeXt.
> 
> The seven colors have mainly an esthetic purpose. They also denote the 
> flexibility of ConTeXt. I've added a monochromatic blue version because 
> shiny, saturated colors are not suitable for every case, and blue is strongly 
> associated with ConTeXt to me. Blue is also a reminder of Mark IV and LuaTeX.
> 
> The letters are set in Din17 EF, which I've licensed. I like its simple 
> shapes combined with a round and soft touch. It avoids consciously the very 
> connoted Computer Modern and can be seen as a modernized and also 
> Europeanized interpretation of the TeX tradition.
> 
> This logo is just a humble proposal. Perhaps it is of some use to someone. It 
> could also make someone else want to create and share his or her logo -- that 
> would be great.
> 
> I'm using ConTeXt since 2006/07 for almost everything that contains text: 
> letters, presentations, invitations, résumés, certificates, manuals, reports, 
> flyers, university papers, book typesetting, exercise sheets, song sheets, 
> and I'm still amazed by how powerful, flexible and reliable it is. Thanks to 
> the whole community -- and particularly to the Dutch wizard -- for making 
> this possible!
> 
> Greetings from Leimen, Germany
> 
> Paul Schalck
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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] New logo proposal

2019-01-29 Thread Paul Schalck
Dear ConTeXt users and developers,

I want to submit a new ConTeXt logo to you (link to GitLab project):

https://gitlab.com/schickele/new-context-logo

I made this logo in February 2018. At the time, I was planning to do some video 
tutorials on ConTeXt (still work in progress), and I wanted a nice looking 
visual clue for the thumbnails. Recently, I made a few minor tweaks and thought 
it would be the right time to put it out there.

The logo comes in two different layouts (hexagonal and horizontal), and each 
layout comes in two color variations (multicolored and blue).

The hexagonal layout is borrowed from the unofficial ConTeXt logo that has been 
around for some time. I like the idea of a clean geometrical form, and the 
hexagon reminds me of chemistry formulas -- one of the many application fields 
of ConTeXt.

The seven colors have mainly an esthetic purpose. They also denote the 
flexibility of ConTeXt. I've added a monochromatic blue version because shiny, 
saturated colors are not suitable for every case, and blue is strongly 
associated with ConTeXt to me. Blue is also a reminder of Mark IV and LuaTeX.

The letters are set in Din17 EF, which I've licensed. I like its simple shapes 
combined with a round and soft touch. It avoids consciously the very connoted 
Computer Modern and can be seen as a modernized and also Europeanized 
interpretation of the TeX tradition.

This logo is just a humble proposal. Perhaps it is of some use to someone. It 
could also make someone else want to create and share his or her logo -- that 
would be great.

I'm using ConTeXt since 2006/07 for almost everything that contains text: 
letters, presentations, invitations, résumés, certificates, manuals, reports, 
flyers, university papers, book typesetting, exercise sheets, song sheets, and 
I'm still amazed by how powerful, flexible and reliable it is. Thanks to the 
whole community -- and particularly to the Dutch wizard -- for making this 
possible!

Greetings from Leimen, Germany

Paul Schalck
___
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] definefontfamily use

2019-01-23 Thread Alan Braslau
On Wed, 23 Jan 2019 18:05:59 +0100
Wolfgang Schuster  wrote:

> Maybe you loaded the used the font before with \definefont which put a 
> entry in the database but normally \definefontfamily doesn’t use fonts 
> from a local directory.

No, never used \definefont; the behavior of \definefontfamily must have changed.
(I used this font *only* in one very specific case -in a logo- in one project - 
September-December 2015).

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

[NTG-context] (no subject)

2019-01-03 Thread Lars

Hi there,

somehow floats that I place with keywords location=left or 
location=rightcreate a blank page first. Am I missing anything? I am 
sure that this wasn't the case before 19.12.2018. Right now I have the 
recent 03.01.2019 version.


My MWE and an image of the output:

\starttext

  \startplacefigure[
    title={Caption},
    location=left]
    \externalfigure[logo--context][width=]
  \stopplacefigure

  \input tufte

\stoptext


Greetings, Lars.


___
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] Which color model shall I use

2018-09-30 Thread Hans Hagen

On 9/30/2018 3:46 PM, Jan U. Hasecke wrote:

Hi,

I would like to know, how to define colors to have a good printing quality.

I am currently producing print materials for a company where all colors
were defined for online usage first, so we started with defining RGB
colors and then derived CMYK colors.

What is the best approach for defining colors in print materials? What
color model shall I use? RGB or CMYK?

For the background. We have some SVG graphics we use on the website.
They are defined in RGB color model. And we use them in the print
materials as well.

I tend to define RGB colors in my print documents so that the colors of
the included SVG files match the defined colors I use elsewhere in the
document. Eg. the Corporate-Blue of the Logo (SVG) will match the Blue
of the headlines.

I could as well define CMYK colors in the document but then I have two
different color models in one document and I fear that the colors are
printed in different hues.

What would you do?

rgb for screen and cmyk for print

You can use rgb and in the print version enable cmyk and disable rgb in 
which case context will convert for you.


For most color setups the result is ok (the end users often don't know 
what colors were meant anyway) as long as relative coloring is ok (the 
wierder the colors, the more sensitive for colro spaces).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Which color model shall I use

2018-09-30 Thread Henning Hraban Ramm
Am 2018-09-30 um 15:46 schrieb Jan U. Hasecke :

> Hi,
> 
> I would like to know, how to define colors to have a good printing quality.
> 
> I am currently producing print materials for a company where all colors
> were defined for online usage first, so we started with defining RGB
> colors and then derived CMYK colors.
> 
> What is the best approach for defining colors in print materials? What
> color model shall I use? RGB or CMYK?
> 
> For the background. We have some SVG graphics we use on the website.
> They are defined in RGB color model. And we use them in the print
> materials as well.
> 
> I tend to define RGB colors in my print documents so that the colors of
> the included SVG files match the defined colors I use elsewhere in the
> document. Eg. the Corporate-Blue of the Logo (SVG) will match the Blue
> of the headlines.
> 
> I could as well define CMYK colors in the document but then I have two
> different color models in one document and I fear that the colors are
> printed in different hues.
> 
> What would you do?

Hi juh,

you can define colors in several color models at once; CMYK makes most sense 
for professional printing.

e.g. \definecolor[CompanyBlue][r=0,g=0,b=1,c=1,m=1,y=0,k=0]

and see https://wiki.contextgarden.net/Command/setupcolors
(I would activate rgb or cmyk colors via modes, if you produce different media)

CMYK colors in SVG are difficult (I needed them in 2005, nowadays there’s a 
hardly supported standard for icc profile based colors).
e.g. 
https://stackoverflow.com/questions/3405689/svg-image-with-cmyk-colours-is-it-possible
https://www.w3.org/TR/SVGColor12/#icc-colors

Something about color profile handling in ConTeXt:
https://wiki.contextgarden.net/PDFX

Now you must decide if you want to go the PDF/X-1a route (device dependent CYMK 
values) or PDF/X-3 (profiled colors).

Luckily I never had to match corporate colors of different models in ConTeXt...


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] Which color model shall I use

2018-09-30 Thread Jan U. Hasecke
Hi,

I would like to know, how to define colors to have a good printing quality.

I am currently producing print materials for a company where all colors
were defined for online usage first, so we started with defining RGB
colors and then derived CMYK colors.

What is the best approach for defining colors in print materials? What
color model shall I use? RGB or CMYK?

For the background. We have some SVG graphics we use on the website.
They are defined in RGB color model. And we use them in the print
materials as well.

I tend to define RGB colors in my print documents so that the colors of
the included SVG files match the defined colors I use elsewhere in the
document. Eg. the Corporate-Blue of the Logo (SVG) will match the Blue
of the headlines.

I could as well define CMYK colors in the document but then I have two
different color models in one document and I fear that the colors are
printed in different hues.

What would you do?

TIA
juh
___
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] ConTeXt ignores crop in some pdf graphics

2018-09-05 Thread Mari Voipio
Hello Pablo,

thank you for digging up all of that. What I found out today is that
while a graphic outputted from an old Corel (output e.g. pdf 1.3) has
all that extra whitespace, a graphic outputted from my newish Corel
2017 (pdf 1.7) seems to have  a working cropbox as does the old
graphic recropped with Acrobat as Hraban's Save As trick). I've
included an old graphic (fm.pdf), the same outputted today
(fm_corel_2017) and the old one after recropping it (I reset old
cropbox and cropped again) (fm_cropped), if somebody feels like
investigating further.

While the cropbox problem meant that I had to spend a few hours today
fixing problematic graphics in my big old file, the fact that output
from my current Corel works means that any future graphics will be
fine and I don't have to change my workflows. This reduces the problem
into the level of minor annoyance, assuming it can't be fixed.

Thank you everybody for your help,

Mari
On Wed, Sep 5, 2018 at 5:40 PM Pablo Rodriguez  wrote:
>
> On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote:
> > [...]
> > Hans investigated and could trace my problem to an Acrobat bug (or at
> > least it doesn't adhere to the PDF specs): I had my logo exported from
> > Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if
> > you don't "save as", Acrobat creates a XForm inside a page, but doesn't
> > set the boxes correctly for the page (CropBox missing, Artbox was what I
> > needed).
>
> Hi Hraban,
>
> the document sent by Mari (ex.pdf) contains the following information:
>
> 4 0 obj
>
> <<
>
>   /CropBox [ 265.961 392.102 329.315 445.535 ]
>
>   /Parent 2 0 R
>
>   /Contents 5 0 R
>
>   /BleedBox [ 265.961 392.102 329.315 445.535 ]
>
>   /MediaBox [ -9 -9 604.276 850.89 ]
>
>   /TrimBox [ 265.961 392.102 329.315 445.535 ]
>
>   /Resources <<
>
> /ProcSet [ /PDF ]
>
> /ExtGState <<
>
>   /GS6 6 0 R
>
> >>
>
>   >>
>
>   /Type /Page
>
> >>
>
> endobj
>
>
> I would say, that in the following sample:
>
> \starttext
>
> \externalfigure[ex.pdf][size=crop]
>
> \stoptext
>
>
> the option "size" doesn’t seem to work.
>
> Or is the original ex.pdf document flawed?
>
> 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
> ___


fm.pdf
Description: Adobe PDF document


fm_corel_2017.pdf
Description: Adobe PDF document


fm_cropped.pdf
Description: Adobe PDF document


fm_test.tex
Description: Binary data
___
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] ConTeXt ignores crop in some pdf graphics

2018-09-05 Thread luigi scarso
On Wed, Sep 5, 2018 at 4:37 PM Pablo Rodriguez  wrote:

> On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote:
> > [...]
> > Hans investigated and could trace my problem to an Acrobat bug (or at
> > least it doesn't adhere to the PDF specs): I had my logo exported from
> > Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if
> > you don't "save as", Acrobat creates a XForm inside a page, but doesn't
> > set the boxes correctly for the page (CropBox missing, Artbox was what I
> > needed).
>
> Hi Hraban,
>
> the document sent by Mari (ex.pdf) contains the following information:
>
> 4 0 obj
>
> <<
>
>   /CropBox [ 265.961 392.102 329.315 445.535 ]
>
>   /Parent 2 0 R
>
>   /Contents 5 0 R
>
>   /BleedBox [ 265.961 392.102 329.315 445.535 ]
>
>   /MediaBox [ -9 -9 604.276 850.89 ]
>
>   /TrimBox [ 265.961 392.102 329.315 445.535 ]
>
>   /Resources <<
>
> /ProcSet [ /PDF ]
>
> /ExtGState <<
>
>   /GS6 6 0 R
>
> >>
>
>   >>
>
>   /Type /Page
>
> >>
>
> endobj
>
>
> I would say, that in the following sample:
>
> \starttext
>
> \externalfigure[ex.pdf][size=crop]
>
> \stoptext
>
>
> the option "size" doesn’t seem to work.
>
> Or is the original ex.pdf document flawed?
>

we are working to extend luatex to manage these situations.


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

Re: [NTG-context] ConTeXt ignores crop in some pdf graphics

2018-09-05 Thread Pablo Rodriguez
On 09/04/2018 10:40 PM, Henning Hraban Ramm wrote:
> [...]
> Hans investigated and could trace my problem to an Acrobat bug (or at
> least it doesn't adhere to the PDF specs): I had my logo exported from
> Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if
> you don't "save as", Acrobat creates a XForm inside a page, but doesn't
> set the boxes correctly for the page (CropBox missing, Artbox was what I
> needed).

Hi Hraban,

the document sent by Mari (ex.pdf) contains the following information:

4 0 obj

<<

  /CropBox [ 265.961 392.102 329.315 445.535 ]

  /Parent 2 0 R

  /Contents 5 0 R

  /BleedBox [ 265.961 392.102 329.315 445.535 ]

  /MediaBox [ -9 -9 604.276 850.89 ]

  /TrimBox [ 265.961 392.102 329.315 445.535 ]

  /Resources <<

/ProcSet [ /PDF ]

/ExtGState <<

  /GS6 6 0 R

>>

  >>

  /Type /Page

>>

endobj


I would say, that in the following sample:

\starttext

\externalfigure[ex.pdf][size=crop]

\stoptext


the option "size" doesn’t seem to work.

Or is the original ex.pdf document flawed?

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] ConTeXt ignores crop in some pdf graphics

2018-09-04 Thread Henning Hraban Ramm
Am 04.09.2018 um 21:22 schrieb Pablo Rodriguez:
> On 09/04/2018 09:00 AM, Henning Hraban Ramm wrote:
>> Hi Mari,
>> I can confirm the same behaviour with graphics from other sources like
>> Illustrator - seems like ConTeXt doesn't use the CropBox (visible size)
>> any more, but the MediaBox (full sheet). Or maybe the TrimBox (cut size).
>> It would make sense to have than configurable, but the change in
>> behaviour is really inconvenient.
> 
> Hi Mari and Hraban,
> 
> I have just discovered that \setupexternalfigure has a "size" option
> with values "none media crop trim art".
> 
> They don’t seem to work, but I wonder whether this might be the
> configuration command that you are looking for (which might have a bug).

Hi Pablo,

Hans investigated and could trace my problem to an Acrobat bug (or at
least it doesn't adhere to the PDF specs): I had my logo exported from
Illustrator and changed the boxes in Acrobat Pro 9, then saved. But if
you don't "save as", Acrobat creates a XForm inside a page, but doesn't
set the boxes correctly for the page (CropBox missing, Artbox was what I
needed).

While all(?) viewers work around this, ConTeXt's new PDF handler, the
ppl library, adheres strictly to the PDF specs and falls back to
MediaBox if CropBox is missing.

I tried size=artbox and box=artbox, but size=art actually does what I
need - thanks for the hint!

Greetlings, Hraban
___
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] Logo in the margin at the bottom of the page

2018-08-16 Thread Wolfgang Schuster



Fabrice Couvreur schrieb am 16.08.18 um 11:20:

Hi Henry,
Sorry for the late response. In fact, I want a margin of 20 mm around 
the text box. In addition, playing with the options weight = and 
height = some images are distorted, including the one that I join.

Thank you
Fabrice

[...]

\setupfooter[margin][strut=no]


This has no effect because the strut for the pagenumber text effects all 
entries in the footer area.


The following example to demonstrates this (line 2):

\starttext

\ruledhbox to \hsize{\hbox{A}\hss\hbox{B}}

\ruledhbox to \hsize{\hbox{\strut A}\hss\hbox{B}}

\ruledhbox to \hsize{\hbox{Q}\hss\hbox{B}}

\ruledhbox to \hsize{\hbox{\smash[d]{Q}}\hss\hbox{B}}

\stoptext


\setupfootertexts
[margin]
[]
[{\externalfigure[logo.png][height=]}]
[]
[{\externalfigure[logo.png][height=]}]


\setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}]

\setupfootertexts
  [margin]
  []
  [{\offset[y=\strutdp]{\externalfigure[logo.png][factor=max]}}]
  []
  [{\offset[y=\strutdp]{\externalfigure[logo.png][factor=max]}}]


or


\setupfooter[strut=no]

\setupfootertexts[\undepthed{Page \pagenumber\ of 
\goto{\lastpagenumber}[lastpage]}]


\setupfootertexts
  [margin]
  []
  [{\externalfigure[logo.png][factor=max]}]
  []
  [{\externalfigure[logo.png][factor=max]}]


or


\setupfooter[strut=no]

\setupfootertexts[{\framed[frame=off,offset=0pt]{Page \pagenumber\ of 
\goto{\lastpagenumber}[lastpage]}}]


\setupfootertexts
  [margin]
  []
  [{\externalfigure[logo.png][factor=max]}]
  []
  [{\externalfigure[logo.png][factor=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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Fabrice Couvreur
Hi Henry,
Sorry for the late response. In fact, I want a margin of 20 mm around the
text box. In addition, playing with the options weight = and height = some
images are distorted, including the one that I join.
Thank you
Fabrice

\setuppagenumbering[alternative=doublesided,location=]

  \showframe

  \definelayout
[firstpage]
[topspace=10mm,
 header=10mm,
 footer=10mm,
 height=middle,
 backspace=20mm,
 width=middle]

  \definelayout
[first]
[firstpage]

  \setuplayout
   [topspace=10mm,
header=\zeropoint,
footer=10mm,
height=middle,
backspace=20mm,
width=middle]

  \setupbackgrounds
   [header]
   [text]
   [frame=off,
topframe=on,
bottomframe=on,
framecolor=,
rulethickness=1pt]

  \setupinteraction[state=start]

  \setupfooter[margin][strut=no]

  \setupfootertexts[{Page \pagenumber\ of \goto{\lastpagenumber}[lastpage]}]

  \setupfootertexts
[margin]
[]
[{\externalfigure[logo.png][height=]}]
[]
[{\externalfigure[logo.png][height=]}]

  \starttext
   \dorecurse{20}{\input knuth}
  \stoptext


[image: logo.png]

Le mer. 15 août 2018 à 06:10, Henri Menke  a écrit :

> You have to use the correct margin width, i.e. \rightmarginwidth in the
> right margin and vice versa in the left margin.  You should also scale
> the margins to fit in the backspace/cutspace because by default they
> don't and run off the paper.
>
> \showframe
> \useMPlibrary[dum]
> \setuplayout
>[height=middle,
> width=middle,
> backspace=2cm,
> topspace=10mm,
> bottomspace=10mm,
> header=10mm,
> footer=10mm,
> footerdistance=10mm,
> headerdistance=10mm,
>
>
> leftmargin=\dimexpr\layoutparameter{backspace}-\layoutparameter{leftmargindistance}\relax,
>
>
> cutspace=\dimexpr\layoutparameter{rightmargin}+\layoutparameter{rightmargindistance}\relax]
>
> \setupfooter[margin][strut=no]
>
> \setupfootertexts
>[margin]
>[]
>[{\externalfigure[dummy][width=\rightmarginwidth,height=\footerheight]}]
>[]
>[{\externalfigure[dummy][width=\leftmarginwidth,height=\footerheight]}]
>
> \starttext
> \dorecurse{10}{\page[dummy]}
> \stoptext
>
>
> On 14/08/18 22:50, Fabrice Couvreur wrote:
> > Hi Henri,
> > Thank you for your suggestion.
> > However, I believe that my way of doing should not be the best because
> > fixing width=\marginwidth the image is cropped.
> > Fabrice
> >
> >
> > \showframe
> > \useMPlibrary[dum]
> > \setuplayout
> >[height=middle,
> > width=middle,
> > backspace=2cm,
> > topspace=10mm,
> > bottomspace=10mm,
> > header=10mm,
> > footer=10mm,
> > footerdistance=10mm,
> > headerdistance=10mm]
> >
> > \setupfooter[margin][strut=no]
> >
> > \setupfootertexts
> >  [margin]
> >  []
> >  [{\externalfigure[dummy][width=,height=\footerheight]}]
> >  []
> >  [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >
> >  \starttext
> >  \dorecurse{10}{\page[dummy]}
> >  \stoptext
> >
> >
> > Le mar. 14 août 2018 à 12:18, Henri Menke  > <mailto:henrime...@gmail.com>> a écrit :
> >
> >
> >
> > On 14/08/18 22:13, Fabrice Couvreur wrote:
> >  > Hello,
> >  > I wish to place a small logo at the bottom of the page.
> >  > It works almost but it is not very well adjusted.
> >  > How to cure it ?
> >  > Thank you.
> >  > fabrice
> >  >
> >  > \showframe
> >  > \useMPlibrary[dum]
> >  > \setuplayout
> >  >[height=middle,
> >  > width=middle,
> >  > backspace=2cm,
> >  > topspace=10mm,
> >  > bottomspace=10mm,
> >  > header=10mm,
> >  > footer=10mm,
> >  > footerdistance=10mm,
> >  > headerdistance=10mm]
> >  >
> >
> > \setupfooter[margin][strut=no]
> >
> >  > \setupfootertexts
> >  >  [margin]
> >  >  []
> >  >
> > [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >  >  []
> >  >
> > [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >  >
> >  >  \starttext
> >  >  \dorecurse{10}{\page[dummy]}
> >  >  \stoptext
> >  >
> >  >
> >  >
> >
>  
> __

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Henri Menke
You have to use the correct margin width, i.e. \rightmarginwidth in the 
right margin and vice versa in the left margin.  You should also scale 
the margins to fit in the backspace/cutspace because by default they 
don't and run off the paper.


\showframe
\useMPlibrary[dum]
\setuplayout
  [height=middle,
   width=middle,
   backspace=2cm,
   topspace=10mm,
   bottomspace=10mm,
   header=10mm,
   footer=10mm,
   footerdistance=10mm,
   headerdistance=10mm,

leftmargin=\dimexpr\layoutparameter{backspace}-\layoutparameter{leftmargindistance}\relax,

cutspace=\dimexpr\layoutparameter{rightmargin}+\layoutparameter{rightmargindistance}\relax]

\setupfooter[margin][strut=no]

\setupfootertexts
  [margin]
  []
  [{\externalfigure[dummy][width=\rightmarginwidth,height=\footerheight]}]
  []
  [{\externalfigure[dummy][width=\leftmarginwidth,height=\footerheight]}]

\starttext
\dorecurse{10}{\page[dummy]}
\stoptext


On 14/08/18 22:50, Fabrice Couvreur wrote:

Hi Henri,
Thank you for your suggestion.
However, I believe that my way of doing should not be the best because 
fixing width=\marginwidth the image is cropped.

Fabrice


\showframe
\useMPlibrary[dum]
\setuplayout
   [height=middle,
    width=middle,
    backspace=2cm,
    topspace=10mm,
    bottomspace=10mm,
    header=10mm,
    footer=10mm,
    footerdistance=10mm,
    headerdistance=10mm]

\setupfooter[margin][strut=no]

\setupfootertexts
     [margin]
     []
     [{\externalfigure[dummy][width=,height=\footerheight]}]
     []
     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

     \starttext
     \dorecurse{10}{\page[dummy]}
     \stoptext


Le mar. 14 août 2018 à 12:18, Henri Menke <mailto:henrime...@gmail.com>> a écrit :




On 14/08/18 22:13, Fabrice Couvreur wrote:
 > Hello,
 > I wish to place a small logo at the bottom of the page.
 > It works almost but it is not very well adjusted.
 > How to cure it ?
 > Thank you.
 > fabrice
 >
 > \showframe
 > \useMPlibrary[dum]
 > \setuplayout
 >    [height=middle,
 >     width=middle,
 >     backspace=2cm,
 >     topspace=10mm,
 >     bottomspace=10mm,
 >     header=10mm,
 >     footer=10mm,
 >     footerdistance=10mm,
 >     headerdistance=10mm]
 >

\setupfooter[margin][strut=no]

 > \setupfootertexts
 >      [margin]
 >      []
 > 
[{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

 >      []
 > 
[{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

 >
 >      \starttext
 >      \dorecurse{10}{\page[dummy]}
 >      \stoptext
 >
 >
 >

___
 > If your question is of interest to others as well, please add an
entry to the Wiki!
 >
 > maillist : ntg-context@ntg.nl <mailto: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 <mailto: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
___


___
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] Logo in the margin at the bottom of the page

2018-08-14 Thread Fabrice Couvreur
Hi Hraban,
It seems a little more complicated but I have never used the layers.
Fabrice

Le mar. 14 août 2018 à 13:11, Henning Hraban Ramm  a écrit :

> Am 2018-08-14 um 12:13 schrieb Fabrice Couvreur <
> fabrice1.couvr...@gmail.com>:
>
> > Hello,
> > I wish to place a small logo at the bottom of the page.
> > It works almost but it is not very well adjusted.
> > How to cure it ?
>
> Salut,
> while the footer text approach may be viable, I’d use layers for exact
> placement.
> http://wiki.contextgarden.net/Layers
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
>
>
> ___
> 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] Logo in the margin at the bottom of the page

2018-08-14 Thread Henning Hraban Ramm
Am 2018-08-14 um 12:13 schrieb Fabrice Couvreur :

> Hello,
> I wish to place a small logo at the bottom of the page. 
> It works almost but it is not very well adjusted.
> How to cure it ?

Salut,
while the footer text approach may be viable, I’d use layers for exact 
placement.
http://wiki.contextgarden.net/Layers

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


___
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] Logo in the margin at the bottom of the page

2018-08-14 Thread Fabrice Couvreur
Hi Henri,
Thank you for your suggestion.
However, I believe that my way of doing should not be the best because
fixing width=\marginwidth the image is cropped.
Fabrice


\showframe
\useMPlibrary[dum]
\setuplayout
  [height=middle,
   width=middle,
   backspace=2cm,
   topspace=10mm,
   bottomspace=10mm,
   header=10mm,
   footer=10mm,
   footerdistance=10mm,
   headerdistance=10mm]

\setupfooter[margin][strut=no]

\setupfootertexts
[margin]
[]
[{\externalfigure[dummy][width=,height=\footerheight]}]
[]
[{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

\starttext
\dorecurse{10}{\page[dummy]}
\stoptext


Le mar. 14 août 2018 à 12:18, Henri Menke  a écrit :

>
>
> On 14/08/18 22:13, Fabrice Couvreur wrote:
> > Hello,
> > I wish to place a small logo at the bottom of the page.
> > It works almost but it is not very well adjusted.
> > How to cure it ?
> > Thank you.
> > fabrice
> >
> > \showframe
> > \useMPlibrary[dum]
> > \setuplayout
> >[height=middle,
> > width=middle,
> > backspace=2cm,
> > topspace=10mm,
> > bottomspace=10mm,
> > header=10mm,
> > footer=10mm,
> > footerdistance=10mm,
> > headerdistance=10mm]
> >
>
> \setupfooter[margin][strut=no]
>
> > \setupfootertexts
> >  [margin]
> >  []
> >  [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >  []
> >  [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
> >
> >  \starttext
> >  \dorecurse{10}{\page[dummy]}
> >  \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
> >
> ___
> >
>
> ___
> 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] Logo in the margin at the bottom of the page

2018-08-14 Thread Henri Menke



On 14/08/18 22:13, Fabrice Couvreur wrote:

Hello,
I wish to place a small logo at the bottom of the page.
It works almost but it is not very well adjusted.
How to cure it ?
Thank you.
fabrice

\showframe
\useMPlibrary[dum]
\setuplayout
   [height=middle,
    width=middle,
    backspace=2cm,
    topspace=10mm,
    bottomspace=10mm,
    header=10mm,
    footer=10mm,
    footerdistance=10mm,
    headerdistance=10mm]



\setupfooter[margin][strut=no]


\setupfootertexts
     [margin]
     []
     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
     []
     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

     \starttext
     \dorecurse{10}{\page[dummy]}
     \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
___


___
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] Logo in the margin at the bottom of the page

2018-08-14 Thread Fabrice Couvreur
Hello,
I wish to place a small logo at the bottom of the page.
It works almost but it is not very well adjusted.
How to cure it ?
Thank you.
fabrice

\showframe
\useMPlibrary[dum]
\setuplayout
  [height=middle,
   width=middle,
   backspace=2cm,
   topspace=10mm,
   bottomspace=10mm,
   header=10mm,
   footer=10mm,
   footerdistance=10mm,
   headerdistance=10mm]

\setupfootertexts
[margin]
[]
[{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]
[]
[{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]

\starttext
\dorecurse{10}{\page[dummy]}
\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] Circled text in metapost

2018-04-02 Thread Alan Braslau
This is very easy to do in MetaPost, but you should not expect the
mailing list to design your graphic for you.

Alan


On Mon, 2 Apr 2018 19:21:05 +0200
Gerhard Kugler <g.w.kug...@posteo.de> wrote:

> Perhaps it is better if I send the final graphic which I have
> prorammed with the programming langguage "logo". See attachment!
> 
> The problem: it is pixel graphic.
> 
> Gerhard
> 
> 
> On Mon, Apr 02, 2018 at 06:34:42PM +0200, Gerhard Kugler wrote:
> > Finally I want to place 8 (halfcircled) texts within 8 colores
> > (full)rings. Your proposal places the second text outside of the
> > circles.
> >   
> 

___
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] Circled text in metapost

2018-04-02 Thread Gerhard Kugler
Perhaps it is better if I send the final graphic which I have
prorammed with the programming langguage "logo". See attachment!

The problem: it is pixel graphic.

Gerhard


On Mon, Apr 02, 2018 at 06:34:42PM +0200, Gerhard Kugler wrote:
> Finally I want to place 8 (halfcircled) texts within 8 colores
> (full)rings. Your proposal places the second text outside of the
> circles.
> 

-- 
Gerhard Kugler
Bensheim
___
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] Circled text in metapost

2018-03-31 Thread Gerhard Kugler
Hi,

my very slow proceedings are here:




\useMPlibrary[txt]

\starttext

\setupbodyfont[pp1]

\setupcolors[state=start]

\setuplayout
[topspace=192pt,
backspace=48pt,
cutspace=12pt,
width=400pt,
margin=0cm,
rightedge=88pt,
rightedgedistance=48pt,
header=0cm,
footer=0cm,
height=400pt]



\startuseMPgraphic{followtokens}
  path RotPath ;

  RotPath := halfcircle scaled 7cm rotated 180 ;

\stopuseMPgraphic

\followtokens{Dies ist ein anderer Text}

\startuseMPgraphic{followtokens}
  path RotPath ;

  RotPath := halfcircle scaled 14cm rotated 180 ;

\stopuseMPgraphic

\followtokens{Dies ist ein selbst geschriebener Text}



But I want to place the round lines concentrically in a circle (more
than two). And I want to place all the lines on colored circled
background.

In the nice children programming language "logo" it is easy, but
yealds pixle grapics only.

Gerhard



-- 
Gerhard Kugler
Bensheim
___
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] issue with external image and PDF/A-3a

2017-10-10 Thread Peter Rolf
Am 05.10.2017 um 22:40 schrieb Pablo Rodriguez:
> On 10/05/2017 09:05 PM, luigi scarso wrote:
>> On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez wrote:
>>> [...]
>>> Well, this is a minimal sample, but my real document is much bigger. Is
>>> there any way to convert the stream to something that ConTeXt can handle
>>> directly?
>>
>> hm, the only reliable way that I know w is to convert it to a flattened png
> 
> Many thanks for your reply, Luigi.
> 
> The real graphic is a vector logo and I need to keep it as a vector
> image. I converted it from a SVG source into a PDF document (years ago).
> 
> I cannot remember if the vector image contains transparency. If needed,
> I would remove it from the image.
> 
> The way to convert it may be using Inkscape into a PostScript document
> and then to MetaPost using pstoedit (as I have just discovered).
>

Just a hint:

pstoedit seems to be incompatible (uses a deprecated option) with the
actual gs (v9.22). I tested it with v9.18 and all worked fine. Of course
the transparency was removed in the process of the eps export. Not a
real problem with the metapost code at hand.

pstoedit -v -ssp -f "mpost:" transparent.eps transparent.mp

Tested on Windows 10 (1703), Inkscape v0.92.2, gs v9.18, pstoedit v3.70;
all 64bit

> Is that right or could something get lost in the translation?
> 
All unsupported features (like transparency).

> Many thanks for your help,
> 
> Pablo
> 

Best wishes,  Peter
___
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] issue with external image and PDF/A-3a

2017-10-05 Thread Pablo Rodriguez
On 10/05/2017 09:05 PM, luigi scarso wrote:
> On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez wrote:
>> [...]
>> Well, this is a minimal sample, but my real document is much bigger. Is
>> there any way to convert the stream to something that ConTeXt can handle
>> directly?
> 
> hm, the only reliable way that I know w is to convert it to a flattened png

Many thanks for your reply, Luigi.

The real graphic is a vector logo and I need to keep it as a vector
image. I converted it from a SVG source into a PDF document (years ago).

I cannot remember if the vector image contains transparency. If needed,
I would remove it from the image.

The way to convert it may be using Inkscape into a PostScript document
and then to MetaPost using pstoedit (as I have just discovered).

Is that right or could something get lost in the translation?

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

Re: [NTG-context] letters in context mkiv

2017-07-31 Thread r . ermers
Thank you Thomas and Wolfgang,

About startletter / starttext: the contents of my test file reflect a moment. I 
have made numerous tests with and without starttext/stoptext. The state of the 
test file is one in an endless row of tests.

I am not without total experience in programing. I more or less understand 
program scripts when they are not too complicated and I like tweaking them, yet 
I cannot think up a new program from scratch.

But anyway, I will go ahead with your suggestions!

Thank you very much again!

Robert



> Op 30 jul. 2017, om 17:38 heeft Schmitz Thomas A. 
> <thomas.schm...@uni-bonn.de> het volgende geschreven:
> 
> 
>> On 30. Jul 2017, at 14:15, r.erm...@hccnet.nl wrote:
>> 
>> Let me as a turcologist compare my problem to learning Kazakh: I am prepared 
>> to give you a manual with the grammatical rules, provide you with lists of 
>> nouns, verbs, adjectives and postpositions, explain the application of 
>> phonological rules, transliterations of the alphabet, give you a insight in 
>> the nominal cases and verb structure, and read with you a text in Kazakh. 
>> Nevertheless, without being rude, I bet that even then you are unable to 
>> flawlessly produce a poem or even a brief text in Kazakh yourself.
> 
> OK, I see your desperation, and I take your analogy (I’m a scholar myself, 
> not a programmer): if someone came to you with the Iliad and explained that 
> he doesn’t know a word of Kazakh but wants all of Homer’s poem, every line, 
> every word, every nuance, expressed in Kazakh with the help of a grammar and 
> a dictionary, you’d reply that this is not how learning languages works. You 
> begin with simple sentences and work your way up. You have shown us several 
> times examples that don’t work, and I have expressed my suspicion that this 
> may be due to using the correspondence module. You weren’t sure whether you 
> need it or not; which is something only you can know. What does this module 
> offer that can’t be accomplished otherwise? If you look at the documentation 
> of the module, you see that the \startletter … \stopletter pair starts an 
> environment within a \starttext … \stoptext context document. When you look 
> at your setup, you will see that you have a \startletter … \stopletter, then 
> a few setups, and then a \starttext … \stoptext document. I’m not a 
> programmer, but I see that this will not work. 
> 
> So for some simple rules: when you process an xml buffer (or document), you 
> define xmlsetups for the different xml elements. When you write 
> \xmlprocessbuffer, that’s when these elements will be processed - which 
> means: that’s when your document will be built. You can’t go through your xml 
> buffer/document and then add further text (well you can, but that’s more 
> complicated), so what you have to do is add your text (for the sake of this 
> example: \input knuth) WITHING THESE SETUPS. So let’s start with a simple 
> document that will work:
> 
> \startbuffer[participants]
> 
>  
>Hendriks
>Karel
>mr.
>K.
>Arnhem
>
>  Mr. K. Hendriks
>  Grotestraat 5
>  1234 BB Arnhem
>
>1234bb5
>  
>  
>Janssen
>Piet
>P.
>mr.
>Nijmegen
>
> Mr. P. Janssen
> Kortestraat 8
> 1234 AA Nijmegen
>
>1234aa8
>  
> 
> \stopbuffer
> 
> \startxmlsetups xml:setups
> \xmlsetsetup{#1}{contacts|contact|formalname|informalname|prefix|initials|address|city|text|kix|p}{xml:*}
> \stopxmlsetups
> 
> \xmlregistersetup{xml:setups}
> 
> \startxmlsetups xml:contacts
>   \xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:p
>   \xmlflush{#1}\par
> \stopxmlsetups
> 
> \startxmlsetups xml:contact
>   \xmltext{#1}{/address}
>   \blank [3*line]
>   Subject: your life in \xmltext{#1}{/city}
>   \blank [2*line]
>   Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},
>   \blank [line]
>   \input knuth \relax
> 
>   Kind regards
>   \blank [line]
>   X
>   \page
> \stopxmlsetups
> 
> \setuppagenumbering [state=stop]
> 
> \starttext
> \xmlprocessbuffer{main}{participants}{}
> \stoptext
> 
> So you see what I’m doing here: I process every simple  element, and 
> I add all the stuff that will go into the letter for every single contact. 
> Start with this document and then find out what you need in addition: a logo, 
> some fancy lines across the letters, a special placement for the address and 
> the subject, etc.? I’m guessing that it would be easier to do this with 
> simple setup commands rather than using the correspondence module, but we 
> have no idea what you need to accomp

Re: [NTG-context] letters in context mkiv

2017-07-30 Thread Schmitz Thomas A.

> On 30. Jul 2017, at 14:15, r.erm...@hccnet.nl wrote:
> 
> Let me as a turcologist compare my problem to learning Kazakh: I am prepared 
> to give you a manual with the grammatical rules, provide you with lists of 
> nouns, verbs, adjectives and postpositions, explain the application of 
> phonological rules, transliterations of the alphabet, give you a insight in 
> the nominal cases and verb structure, and read with you a text in Kazakh. 
> Nevertheless, without being rude, I bet that even then you are unable to 
> flawlessly produce a poem or even a brief text in Kazakh yourself.

OK, I see your desperation, and I take your analogy (I’m a scholar myself, not 
a programmer): if someone came to you with the Iliad and explained that he 
doesn’t know a word of Kazakh but wants all of Homer’s poem, every line, every 
word, every nuance, expressed in Kazakh with the help of a grammar and a 
dictionary, you’d reply that this is not how learning languages works. You 
begin with simple sentences and work your way up. You have shown us several 
times examples that don’t work, and I have expressed my suspicion that this may 
be due to using the correspondence module. You weren’t sure whether you need it 
or not; which is something only you can know. What does this module offer that 
can’t be accomplished otherwise? If you look at the documentation of the 
module, you see that the \startletter … \stopletter pair starts an environment 
within a \starttext … \stoptext context document. When you look at your setup, 
you will see that you have a \startletter … \stopletter, then a few setups, and 
then a \starttext … \stoptext document. I’m not a programmer, but I see that 
this will not work. 

So for some simple rules: when you process an xml buffer (or document), you 
define xmlsetups for the different xml elements. When you write 
\xmlprocessbuffer, that’s when these elements will be processed - which means: 
that’s when your document will be built. You can’t go through your xml 
buffer/document and then add further text (well you can, but that’s more 
complicated), so what you have to do is add your text (for the sake of this 
example: \input knuth) WITHING THESE SETUPS. So let’s start with a simple 
document that will work:

\startbuffer[participants]

  
Hendriks
Karel
mr.
K.
Arnhem

  Mr. K. Hendriks
  Grotestraat 5
  1234 BB Arnhem

1234bb5
  
  
Janssen
Piet
P.
mr.
Nijmegen

 Mr. P. Janssen
 Kortestraat 8
 1234 AA Nijmegen

1234aa8
  

\stopbuffer

\startxmlsetups xml:setups
\xmlsetsetup{#1}{contacts|contact|formalname|informalname|prefix|initials|address|city|text|kix|p}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:setups}

\startxmlsetups xml:contacts
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
\xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:contact
\xmltext{#1}{/address}
\blank [3*line]
Subject: your life in \xmltext{#1}{/city}
\blank [2*line]
Dear \xmltext{#1}{/prefix} \xmltext{#1}{/formalname},
\blank [line]
\input knuth \relax

Kind regards
\blank [line]
X
\page
\stopxmlsetups

\setuppagenumbering [state=stop]

\starttext
\xmlprocessbuffer{main}{participants}{}
\stoptext

So you see what I’m doing here: I process every simple  element, and I 
add all the stuff that will go into the letter for every single contact. Start 
with this document and then find out what you need in addition: a logo, some 
fancy lines across the letters, a special placement for the address and the 
subject, etc.? I’m guessing that it would be easier to do this with simple 
setup commands rather than using the correspondence module, but we have no idea 
what you need to accomplish. Once you find out what’s missing, you can modify 
the example and ask additional questions. But, to take your analogy: don’t 
start with irregular verbs and special cases that will complicate the picture. 
How is this line

\setuplanguage[nl][date={year, –, mm, –, dd}] % ISO 8601 date

from your original example relevant to your problem? And again: please don’t 
give me the “I’m not a programmer” response; I’m not a programmer either, but I 
know that you have to reduce the complexity in problems to find a solution. 
You’re adding extra complexity.

The way I describe above is the easiest path. There are other approaches, of 
course: you can combine elements from several xml documents, or you can process 
the xml data with Lua. All of this may be unnecessary in your case, but nobody 
will be able to help unless we understand what you need. And to explain this, 
you will have to start with simple examples, not with a complex document.

Sorry for being somewhat stern, but I’m sure you would give similar advice to 
your students…

All best

Thomas

_

[NTG-context] t-bnf module with MKIV

2017-07-26 Thread Antoine Cailliau
Hi,

I'm trying to typeset a BNF grammar. The module t-bnf appears to not work
with mkiv.

http://ctan.math.washington.edu/tex-archive/macros/context/contrib/context-bnf/doc/context/third/bnf/t-bnf.pdf

tex error   > tex error on line 157 in file
/Users/acailliau/context/tex/texmf-modules/tex/context/third/bnf/t-bnf.tex:
! Undefined control sequence
 \c!terminalstart
 =\tttf
\syst_helpers_process_comma_item #1,#2->\if ,#1
   ,\expandafter
\syst_helpers_p... \c!terminalstart =\tttf , \c!terminalstop
  =, \c!nonterminalstart =\mathematics
\syst_helpers_get_parameters ...cess_comma_item #1
  ,],\_e_o_p_
l.157\c!indentnext=\v!no]


147 \def\setupbnfgrammar%
148   {\dosingleargument\dosetupbnfgrammar}
149
150 \setupbnfgrammar
151   [\c!terminalstart=\tttf,
152\c!terminalstop=,
153\c!nonterminalstart=\mathematics{\langle},
154\c!nonterminalstop=\mathematics{\rangle},
155\c!is={ \mathematics{\longrightarrow}},
156\c!option=\mathematics{\vert},
157 >> \c!indentnext=\v!no]
158
159 %D \macros
160 %D   {BNF}
161 %D
162 %D We also define a useful abbreviation to be used for header
texts and labels.
163
164 \logo[BNF]{bnf}
165
166 %D And we use it here:
167


Can anyone provides me clues on how to make it work ?

Here is a minimal example:

\usemodule[t-bnf]

\starttext

\startbnfgrammar[]
:  |  "+" 
: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
\stopbnfgrammar

\stoptext

Thanks in advance,

Antoine
___
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] ConTeXt meeting 2017 (reminder)

2017-07-05 Thread Taco Hoekwater
== Announcement ==

The ConTeXt Group and Pragma ADE are looking forward to welcoming you at the 

11th International ConTeXt Meeting

that will take place on September 11–17, 2017 in Maibach, Germany. 

== Meeting logo ==

The traditional drawing from Duane Bibby is finished! You can see a scaled-
down version of the final result on the meeting website:

http://meeting.contextgarden.net/

== Excursion ==

An excursion day in Mainz is planned for Friday the 15th, including a guided 
tour 
and workshop at the Gutenberg Museum.

== Registration discounts ==

Besides general sponsorship, DANTE e.V. also offer an extra discount for any 
Dante members that will attend our meeting. And that is on top of the discount
we offer to our ConTeXt Group members, so we managed to keep the conference
fees quite low.

The deadline for early-bird discount is July 11, only six days from now!

== Registration ==

The meeting will host ConTeXt and LuaTeX developers and users and gives 
you the opportunity to present your results, experiences and ideas on future
development. The presentations will be accompanied by tutorials on different 
ConTeXt and LuaTeX techniques.

Registration is now open.  Direct link to the registration form:

http://meeting.contextgarden.net/2017/register.shtml

This year’s meeting is sponsored by DANTE e.V., the German TeX User Group. 

== Call for submissions ==

We always set a theme for the meeting, and the theme for this meeting is:

ConTeXt Gardening

If you want to do an on-topic talk submission, there are plenty angles
to take at the theme: Seeding, weeding, fertilising, growing, harvesting,
just to name a few.

But anything at all related to ConTeXt that you would like to share is an 
acceptable subject for a presentation, tutorial, discussion, Q session, 
demonstration, workshop, recital, sketch, or sermon.

The programme committee is Hans Hagen and Taco Hoekwater, feel free to email
them with hints and ideas.

== website ==

For the meeting: http://meeting.contextgarden.net
For the Context Group: http://group.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] Interlining in a TwoColumns set

2016-08-15 Thread Pablo Rodriguez
On 08/15/2016 10:39 AM, Jean-Pierre Delange wrote:
> Hi Pablo and Wolfgang,
> 
> Many thanks ! The issue concerning a logo image in a TwoColumns document
> is resolved. It was only a matter of file format. I thought (I don't
> know why), that ConTeXt use SVG format. I've converted all my *.svg file
> in PNG and it works fine. Thank you very much for your help.

Hi Jean-Pierre,

well, I think “ConTeXt supports SVG as image format” is a true
statement. It doesn’t support it natively and it needs an external tool
to convert SVG files. But this is a different question.

BTW, if your SVG files contain vectors, I think it is better to convert
them to PDF. Otherwise, vectors will be lost in PNG files.

Just in case it might 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] Interlining in a TwoColumns set

2016-08-15 Thread Jean-Pierre Delange

Hi Pablo and Wolfgang,

Many thanks ! The issue concerning a logo image in a TwoColumns document 
is resolved. It was only a matter of file format. I thought (I don't 
know why), that ConTeXt use SVG format. I've converted all my *.svg file 
in PNG and it works fine. Thank you very much for your help.


JP


Le 14/08/2016 à 17:55, Wolfgang Schuster a écrit :

Jean-Pierre Delange <mailto:adeiman...@free.fr>
14. August 2016 um 16:13
About the image on the top right of the TwoColumns doc : it works 
with mill.png image (but not with spider). I guess the 'Logo.svg' is 
too heavy (or something like that).
LuaTeX can only use images in the formats PDF, PNG, JPG, JP2 or JBIG2 
. Graphics which are provided in another format have to be converted 
in one mentioned before, for some formats (e.g. SVG) ConTeXt is able 
to convert them on the fly but you need the required programs (e.g. 
Inkscape for the conversion of SVG to PDF) on your system.


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] Interlining in a TwoColumns set

2016-08-14 Thread Jean-Pierre Delange
About the image on the top right of the TwoColumns doc : it works with 
mill.png image (but not with spider). I guess the 'Logo.svg' is too 
heavy (or something like that).



Le 14/08/2016 à 13:47, Pablo Rodriguez a écrit :

On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:

Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
But how to insert a logo on the top right ?

Jean-Pierre,

I included it in the sample. Here you have it again:

 \setupexternalfigure[location=default]

 \definelayer[logo_layer][state=start]

 \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
 x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

 \setupbackgrounds[page][background={logo_layer}]

 \starttext

 \dorecurse{5}{\input knuth\par}
 \stoptext

Or is there any issue with the sample? At least, the spider should be
placed in the top right corner of the first page. To have it in all
pages, replace "state=start" with "state=repeat".

If this isn’t what you need, please let us know how the logo should be
placed.


Pablo


___
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] Interlining in a TwoColumns set

2016-08-14 Thread Jean-Pierre Delange

Hi Pablo,

Many thanks to be patient. I apologize to be a little bit slow minded : 
I presume that the


 \setupexternalfigure[location=default] command

would say that the figure is in the same directory than ConTeXt documents (i.e. 
'default'). I have requested an external figure in *.svg format (Logo.svg), but 
the print on the top right shows only these informations :
name : Logo.svg
file : Logo.svg
state : unknown

By the way, even if my images are loaded in a ConTeXt subdirectory (as 
context\ConTeXt-Documents\Images), in place of default directory, the parsing 
doesn't load the image.


Le 14/08/2016 à 13:47, Pablo Rodriguez a écrit :

On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:

Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
But how to insert a logo on the top right ?

Jean-Pierre,

I included it in the sample. Here you have it again:

 \setupexternalfigure[location=default]

 \definelayer[logo_layer][state=start]

 \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
 x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

 \setupbackgrounds[page][background={logo_layer}]

 \starttext

 \dorecurse{5}{\input knuth\par}
 \stoptext

Or is there any issue with the sample? At least, the spider should be
placed in the top right corner of the first page. To have it in all
pages, replace "state=start" with "state=repeat".

If this isn’t what you need, please let us know how the logo should be
placed.


Pablo


___
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] Interlining in a TwoColumns set

2016-08-14 Thread Pablo Rodriguez
On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:
> Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
> But how to insert a logo on the top right ?

Jean-Pierre,

I included it in the sample. Here you have it again:

\setupexternalfigure[location=default]

\definelayer[logo_layer][state=start]

\setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

\setupbackgrounds[page][background={logo_layer}]

\starttext

\dorecurse{5}{\input knuth\par}
\stoptext

Or is there any issue with the sample? At least, the spider should be
placed in the top right corner of the first page. To have it in all
pages, replace "state=start" with "state=repeat".

If this isn’t what you need, please let us know how the logo should be
placed.


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] Interlining in a TwoColumns set

2016-08-13 Thread Jean-Pierre Delange
Thank you very much Wolfgang ! With Pablo help, I can manage this flyer. 
But how to insert a logo on the top right ?



Le 13/08/2016 à 08:52, Wolfgang Schuster a écrit :

Pablo Rodriguez <mailto:oi...@gmx.es>
12. August 2016 um 17:21
Interline spacing is set in an unorthodox way (to put it fine), but
there is no "setups" key for \setupparagraphs (or it doesn’t work).

Let us know whether you find more issues.

You can apply setups with the inner key:

\defineparagraphs[TwoColumns][n=2,align=verytolerant]

\startsetups[TwoColumns]
  \setupinterlinespace[line=5ex]
\stopsetups

\setupparagraphs[TwoColumns:2][inner=\directsetup{TwoColumns}]

\starttext

\startTwoColumns
\input knuth
\TwoColumns
\input tufte
\stopTwoColumns

\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] Interlining in a TwoColumns set

2016-08-12 Thread Jean-Pierre Delange

Dear List,

In order to help somebody who wants to improve a kind presentation of 
his own, I have set the sample below.

I am confronting to 2 issues :

1. In the second column it would be fine if one could play with the 
interlining. But where to put this command : 
\setupinterlinespace[line=2.8ex]}] which allow to define interlines 
inside the 2nd column ?


2. The Logo.svg picture (in /Images/Logo.svg within context repertory) 
doesn't print : 'state: unknown'; is it an issue caused by a layer 
definition ?


Thanks for your advices.
JP

% Select language

\mainlanguage[fr]

\language[fr]


% Setup PDF metadata

\setupinteraction

[state=start,

color=colour_link,

click=yes,

contrastcolor=colour_link,

focus=standard, % Clicking an inter-document hyperlink by default 
switches to "fit page" mode. Override.


openaction={FitWidth,ToggleViewer},

title={Anciens et Modernes},

style=normal,

subtitle={Anciens et Modernes},

author=Adeimantos <adeiman...@free.fr>,

keyword={philosophy, history, political philosophy}]


% Turn off page numbering

\setuppagenumbering[location=]


% Normal A4 size paper

\setuppapersize[A4][A4]


% Setup margins

\setuplayout[

backspace=10mm,

width=190mm,

topspace=5mm,

header=0mm,

footer=5mm,

footerdistance=0mm,

bottomdistance=10mm,

height=280mm]

%\showframe


% For coloured output

\setupcolors[state=start]


% Font setup


% Font to use

\definefontfamily [main_font] [rm] [titillium] [features={default,quality}]

\definefontfamily [main_font] [mm] [TeX Gyre Pagella]

\setupbodyfont[main_font]


% URL macros and setups


% Usage: \href{http://www.someurl.com}{Text}

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}

\def\ahref#1{\href{#1}{<#1>}}

\def\fullahref#1{\href{#1}{#1}}

\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}

\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}


% Style

\setupurl

[color=none,

style=normal]


% Setup two columns

\defineparagraphs[TwoColumns][n=2, align={hz,hanging}]

\setupparagraphs[TwoColumns][1][width=200pt]


% Setup stretching tolerance...

\setuptolerance[verytolerant,stretch]


\setupcolors[state=start]


% The elements of the letterhead are defined as layers. This first layer

% contains the logo; you'll have to supply an image file yourself.

\definelayer[logo_layer]

\setlayer[logo_layer][preset=lefttop,y=.01\paperheight,x=.82\paperwidth]

{\externalfigure[Images/Logo.svg][][height=0.2\textwidth]}


% Activate all layers for this page...

\setupbackgrounds[page][background={logo_layer}]


% Start document body...

\starttext


% Header...

{\switchtobodyfont[40pt] Anciens et Modernes \crlf}

\blackrule[height=0.6mm,width=0.83\textwidth]


% Dateline...

{\bf Présentation}\crlf

\currentdate[dd,{~},m,{~},year]


% Headline...

\blank

\framed[align=middle,width=200mm,height=13mm,frame=off]

{

\bf \switchtobodyfont[15pt]

{\bf Philosophie politique.}

}


\startTwoColumns

\startlines

{\bf Contact Information}

Adeimantos

Le Manoir

F - 18190 Chavannes

adeiman...@free.fr


{\bf Édition}

Livres, articles


{\bf Dévelopement}

Prototype


{\bf Année de création}

2012


{\bf Financements privés}

\$0


\stoplines


\TwoColumns

\input tufte


\stopTwoColumns


\stoptext

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

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

Re: [NTG-context] What are your ten (10) favorite typography books of the last 50 years? (*not* OT)

2016-05-15 Thread Alan BRASLAU
ook{Bertheau1996,
  author= {Bertheau, P. and Hanebutt-Benz, E. and Reichardt, H. and Wilkes, W.},
  year  = {1996},
  title = {Buchdruckschriften im 20. Jahrhundert},
  subtitle  = {Atlas zur Geschichte der Schrift},
  publisher = {Technische Hochschule},
  language  = {german},
}

@PhdThesis{Bessemans2012,
  author  = {Bessemans, A.},
  year= {2012},
  title   = {Letterontwerp voor kinderen met een visuele functiebeperking},
  institution = {Academy of Creative and Performing Arts, Faculty of Humanities, Leiden University},
  language= {dutch},
}

@Book{Bigelow1988,
  author= {Bigelow, C. and Duensing, P. H. and Gentry, L.},
  year  = {1988},
  title = {Fine print on type},
  subtitle  = {the best of fine print on type and typography},
  publisher = {Fine Print/Bedford Arts},
  address   = {San Francisco},
  language  = {english},
}

@Book{Blackwell2004,
  title = {20th-century type},
  publisher = {Laurence King Publishing},
  year  = {2004},
  author= {Blackwell, L.},
  language  = {english},
}

@Book{Blair2007,
  author= {Blair, S. S.},
  year  = {2007},
  title = {Islamic calligraphy},
  publisher = {Edinburgh University Press},
  language  = {english},
}

@Book{Blanchard1998,
  author= {Blanchard, G.},
  year  = {1998},
  title = {Aide au choix de la typo-graphie},
  subtitle  = {cours supérieur},
  publisher = {Atelier Perrousseaux},
  language  = {french},
}

@Book{Blanchard1989,
  author= {Blanchard, G. and Maletto, L. C.},
  year  = {1989},
  title = {L'eredità Gutenberg per una semiologia della tipografia},
  publisher = {Gianfranco Altieri},
  language  = {italian},
}

@Book{Blume2010,
  author= {Blume, J. and Bose, G. K.},
  year  = {2010},
  title = {One century of type and teaching typefaces in Lepzig},
  publisher = {Institut für Buchkunst},
  language  = {english},
}

@Book{Bosshard1996,
  author= {Bosshard, H. R.},
  year  = {1996},
  title = {Sechs Essays zu Typografie, Schrift, Lesbarkeit},
  publisher = {Niggli},
  language  = {german},
}

@Book{Bosshard2000,
  author= {Bosshard, H. R.},
  year  = {2000},
  title = {Der typografische Raster},
  title:en  = {The typographic grid},
  publisher = {Niggli},
  language  = {german},
}

@Book{Bosshard1980,
  author= {Bosshard, H. R. and Typografen, B. S.},
  year  = {1980},
  title = {Technische Grundlagen zur Satzherstellung},
  publisher = {BST Verlag},
  language  = {german},
}

@Book{Brandshaft2005,
  author= {Brandshaft, H. and Pankow, D.},
  year  = {2005},
  title = {The work of Ismar David},
  publisher = {RIT Cary Graphic Arts Press},
  language  = {english},
}

@Book{Bringhurst1992,
  author= {Bringhurst, R.},
  year  = {1992},
  title = {The elements of typographic style},
  publisher = {Hartley & Marks},
  volume= {127},
  language  = {english},
}

@Book{Brody2001,
  author= {Brody, N. and Wozencroft, J.},
  year  = {2001},
  title = {Brody},
  subtitle  = {the graphic language of Neville Brody},
  publisher = {Universe Pub},
  language  = {english},
}

@Book{BrownJ1993,
  author= {Brown, J. and Bately, J. and Brown, M. P. and Roberts, J.},
  year  = {1993},
  title = {A palaeographer's view},
  subtitle  = {The Selected Writings of Julian Brown},
  publisher = {Harvey Miller},
  language  = {english},
}

@Book{BrownMP1993,
  author= {Brown, M. P.},
  year  = {1993},
  title = {A guide to western historical scripts from antiquity to 1600},
  publisher = {University of Toronto Press},
  language  = {english},
}

@Book{Burke1998,
  author= {Burke, C.},
  year  = {1998},
  title = {Paul Renner},
  subtitle  = {the art of typography},
  publisher = {Hyphen Press},
  language  = {english},
}

@Book{Burke2007,
  author= {Burke, C.},
  year  = {2007},
  title = {Active literature},
  subtitle  = {Jan Tschichold and new typography},
  publisher = {Hyphen Press},
  language  = {english},
}

@Book{Butorina1977,
  author= {Butorina, E.},
  year  = {1977},
  title = {The lettering art, works by Moscow book designers},
  publisher = {Kniga},
  language  = {english},
}

@Book{Butterick2013,
  author   = {Butterick, M.},
  year = {2013},
  title= {Butterick's practical typography},
  language = {english},
}

@Book{Cabarga2004,
  author= {Cabarga, L.},
  year  = {2004},
  title = {Logo, font & lettering bible},
  publisher = {Adams Media},
  language  = {english},
}

@Book{Caflisch2003,
  author= {Caflisch, M.},
  year  = {2003},
  title = {Schriftanalysen},
  publisher = {Typotron},
  address   = {St. Gallen},
  language  = {german},
}

@Book{Caflisch2002,
  author= {Caflisch, M. and Schneidler, F. E. and Schumacher-Gebler, E.},
  year  = {2002},
  title = {FH Ernst Schneidler},
  subtitle  = {Schriftentwerfer, Lehrer, Kalligraph},
  publisher = {Schum

[NTG-context] Wiki maintenance

2015-09-10 Thread Taco Hoekwater
Hi all,

Today I copied the ConTeXt wiki to a new server, in preparation for 
the decommissioning the current old server, which should happen within
a week or so.

I’ve disabled wiki page editing at the old location for now, while we wait
for everybody’s DNS entries to catch up. 

You will know that you are accessing the new location because:

* you can edit pages again :)
* there is a “powered by Semantic MediaWiki” logo at the bottom of the page.

If there is a problem at the new location, please warn me. I’ve tried to
install all the prerequisites on the new server, but chances are I missed
something.

Best wishes,
Taco

___
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] Expansion in bookmarks

2015-07-09 Thread Hans Hagen

On 7/9/2015 11:34 AM, Christoph Reller wrote:

On Wed, 08 Jul 2015 21:01:21 +0200, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:

On 7/8/2015 4:18 PM, Christoph Reller wrote:
  Dear all!
 
  I want to define a command that is to be used in a section title.
Also I
  want to use \autoinsertnextspace with this command. In the following
  MWE, why do \This and \AName not work, while \TEX does work?
 
  I appreciate any feedback,
  Christoph
 
  MWE:
 
  \setupinteraction[state=start]
  \setupinteractionscreen[option=bookmark]
  \placebookmarks[section][section]
 
  \def\What{This\autoinsertnextspace}
 
  \definesorting[Name]
  \setupsorting[Name][next=\autoinsertnextspace]
  \Name[AName]{Knuth}
 
  \usemodule[abr-01]
  \setupsorting[logo][next=\autoinsertnextspace]
 
  \starttext
  \startsection[title={\What is puzzling}]\stopsection
  \startsection[title={\AName is puzzling}]\stopsection
  \startsection[title={\TEX is puzzling}]\stopsection
  \stoptext

you can try:

\enabledirectives[references.bookmarks.preroll]

or specify bookmarks with bookmark=... alongside the title=

Hans

Thank you very much Hans! The references.bookmarks.preroll directive
works nicely.

However, I still don't understand why in the above example \TEX is
working. Can you shed any light on this?


because synonyms etc are automatically simplified .. just imagine: what 
is \framed} supposed to be in a bookmark or \externalfigure ... a macro 
can be anything


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] Expansion in bookmarks

2015-07-09 Thread Christoph Reller
On Wed, 08 Jul 2015 21:01:21 +0200, Hans Hagen pra...@wxs.nl wrote:

 On 7/8/2015 4:18 PM, Christoph Reller wrote:
  Dear all!
 
  I want to define a command that is to be used in a section title. Also I
  want to use \autoinsertnextspace with this command. In the following
  MWE, why do \This and \AName not work, while \TEX does work?
 
  I appreciate any feedback,
  Christoph
 
  MWE:
 
  \setupinteraction[state=start]
  \setupinteractionscreen[option=bookmark]
  \placebookmarks[section][section]
 
  \def\What{This\autoinsertnextspace}
 
  \definesorting[Name]
  \setupsorting[Name][next=\autoinsertnextspace]
  \Name[AName]{Knuth}
 
  \usemodule[abr-01]
  \setupsorting[logo][next=\autoinsertnextspace]
 
  \starttext
  \startsection[title={\What is puzzling}]\stopsection
  \startsection[title={\AName is puzzling}]\stopsection
  \startsection[title={\TEX is puzzling}]\stopsection
  \stoptext

 you can try:

 \enabledirectives[references.bookmarks.preroll]

 or specify bookmarks with bookmark=... alongside the title=

 Hans


Thank you very much Hans! The references.bookmarks.preroll directive works
nicely.

However, I still don't understand why in the above example \TEX is working.
Can you shed any light on this?

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

[NTG-context] Expansion in bookmarks

2015-07-08 Thread Christoph Reller
Dear all!

I want to define a command that is to be used in a section title. Also I
want to use \autoinsertnextspace with this command. In the following MWE,
why do \This and \AName not work, while \TEX does work?

I appreciate any feedback,
Christoph

MWE:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[section][section]

\def\What{This\autoinsertnextspace}

\definesorting[Name]
\setupsorting[Name][next=\autoinsertnextspace]
\Name[AName]{Knuth}

\usemodule[abr-01]
\setupsorting[logo][next=\autoinsertnextspace]

\starttext
\startsection[title={\What is puzzling}]\stopsection
\startsection[title={\AName is puzzling}]\stopsection
\startsection[title={\TEX is puzzling}]\stopsection
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Expansion in bookmarks

2015-07-08 Thread Hans Hagen

On 7/8/2015 4:18 PM, Christoph Reller wrote:

Dear all!

I want to define a command that is to be used in a section title. Also I
want to use \autoinsertnextspace with this command. In the following
MWE, why do \This and \AName not work, while \TEX does work?

I appreciate any feedback,
Christoph

MWE:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[section][section]

\def\What{This\autoinsertnextspace}

\definesorting[Name]
\setupsorting[Name][next=\autoinsertnextspace]
\Name[AName]{Knuth}

\usemodule[abr-01]
\setupsorting[logo][next=\autoinsertnextspace]

\starttext
\startsection[title={\What is puzzling}]\stopsection
\startsection[title={\AName is puzzling}]\stopsection
\startsection[title={\TEX is puzzling}]\stopsection
\stoptext


you can try:

\enabledirectives[references.bookmarks.preroll]

or specify bookmarks with bookmark=... alongside the title=

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] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Hans Hagen

On 5/10/2015 9:40 PM, Pablo Rodriguez wrote:

Hans,

many thanks for the explanation with \xmlsetup.

I have one more question for today concerning lpaths.

I have the following commands:

 \xmlsetsetup{\xmldocument}
 {span[@label]}
 {xml:logo}

 \xmlsetsetup{\xmldocument}
 {span[contains(@class,'tex\letterpercent-logo')]}
 {xml:tex:logo}

Is there no way to merge both in one? (The basic rule a|b doesn’t seem
to work here, altough I may be missing everything :-(.)


it all depends on what you want to do eventually

\xmlsetsetup{\xmldocument}
   {span[@label or contains(@class,'tex\letterpercent-logo')]}
   {xml:logo}

-
  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] optional lpaths to merge \xmlsetsetup?

2015-05-11 Thread Pablo Rodriguez
On 05/11/2015 09:25 AM, Hans Hagen wrote:
 On 5/10/2015 9:40 PM, Pablo Rodriguez wrote:
 [...]
 Is there no way to merge both in one? (The basic rule a|b doesn’t seem
 to work here, altough I may be missing everything :-(.)
 
 it all depends on what you want to do eventually
 
 \xmlsetsetup{\xmldocument}
 {span[@label or contains(@class,'tex\letterpercent-logo')]}
 {xml:logo}

Many thanks for your reply, Hans.

This is what I intended and everything is clear now.

Many thanks for your help,


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

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

[NTG-context] optional lpaths to merge \xmlsetsetup?

2015-05-10 Thread Pablo Rodriguez
Hans,

many thanks for the explanation with \xmlsetup.

I have one more question for today concerning lpaths.

I have the following commands:

\xmlsetsetup{\xmldocument}
{span[@label]}
{xml:logo}

\xmlsetsetup{\xmldocument}
{span[contains(@class,'tex\letterpercent-logo')]}
{xml:tex:logo}

Is there no way to merge both in one? (The basic rule a|b doesn’t seem
to work here, altough I may be missing everything :-(.)

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] hyphen in class (from XML)

2015-03-23 Thread Pablo Rodriguez
On 03/23/2015 10:12 AM, Hans Hagen wrote:
 On 3/22/2015 7:08 PM, Pablo Rodriguez wrote:
 [...]
 Unless I remove the hyphen from the class and from the setups (or
 replace both hyphens with an underscore hyphen), I won’t get the \TeX logo.

 Have I hit a bug or is it a feature?
 
 \letterpercent-
 
 (unless we decide to auto-escape)

Many thanks for your reply, Hans.

It works fine now.


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] hyphen in class (from XML)

2015-03-23 Thread Hans Hagen

On 3/22/2015 7:08 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \startbuffer[demo]
 span class=tex-logoTeX/span
 \stopbuffer

 \setupinteraction[state=start]

 \startxmlsetups xml:initialize
 \xmlsetsetup{#1}{span[contains(@class,'tex-logo')]}{xml:tex:logo}
 \stopxmlsetups

 \xmlregistersetup{xml:initialize}

 \startxmlsetups xml:tex:logo
 \TeX
 \stopxmlsetups

 \stopxmlsetups

 \starttext
  \xmlprocessbuffer{main}{demo}{}
 \stoptext

Unless I remove the hyphen from the class and from the setups (or
replace both hyphens with an underscore hyphen), I won’t get the \TeX logo.

Have I hit a bug or is it a feature?


\letterpercent-

(unless we decide to auto-escape)

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] problem with interaction and TOC

2015-03-22 Thread Pablo Rodriguez
On 03/22/2015 12:46 PM, Wolfgang Schuster wrote:
 Am 22.03.2015 um 11:53 schrieb Pablo Rodriguez:
 [...]
\startbuffer[demo]
doc
h1span label=contextConTeXt/a/h1
span label=contextConTeXt/a
span label=texTeX/a
span label=latexLaTeX/a
/doc
\stopbuffer
 
 You’re mixing tags, each span ends with /a.

Many thanks for your reply, Wolfgang.

You’re totally right. I wonder how ConTeXt compiled that.


\startxmlsetups xml:logo
\uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii
\ifx\ascii\empty\else\getvalue{\ascii}\fi
\stopxmlsetups

\startxmlsetups xml:context
\ConTeXt
\stopxmlsetups
 [...]
 Is there a fix for xml:logo or is xml:context the proper fix?
 
 You need a expandable version for your logo tags.
 
\startxmlsetups xml:logo
\getvalue{\utfupper{\xmlatt{#1}{label}}}
\stopxmlsetups
 
 You can also modify this and provide a text which appears when you try
 to show a logo which isn’t defined.
 
\startxmlsetups xml:logo
\executeifdefined{\utfupper{\xmlatt{#1}{label}}}{{\tttf ???}}
\stopxmlsetups

This is exactly what I needed.

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] problem with interaction and TOC

2015-03-22 Thread Wolfgang Schuster

 Am 22.03.2015 um 11:53 schrieb Pablo Rodriguez oi...@gmx.es:
 
 On 03/22/2015 12:27 AM, Hans Hagen wrote:
 On 3/21/2015 10:49 PM, Pablo Rodriguez wrote:
 Dear list,
 
 I have the following sample:
 
 \setupinteraction[state=start]
 \starttext
 \placelist[chapter]
 %~ \uppercasestring{context}\to\ascii
 %~ \chapter{\getvalue{\ascii}}
 \chapter{ConTeXt}
 \stoptext
 
 ConTeXt complains about an error in the first line.
 
 What am I doing wrong? (Sorry, but I wanted to test the commented lines,
 but I don’t know why the simplified example doesn’t work.)
 
 \uppercasestring{context}\to\ascii
 \chapter{\meaning\ascii}  % \getvalue{\ascii}}
 \chapter{\WORD{ConTeXt}}
 
 so, \ascii is made undefined at some time
 
 Many thanks for your reply, Hans.
 
 I’m afraid that my ignorance prevents me for understanding your reply.
 
 What I was trying to solve was this:
 
\startbuffer[demo]
doc
h1span label=contextConTeXt/a/h1
span label=contextConTeXt/a
span label=texTeX/a
span label=latexLaTeX/a
/doc
\stopbuffer

You’re mixing tags, each span ends with /a.

\setupinteraction[state=start]
 
\startxmlsetups xml:initialize
\xmlsetsetup{#1}{h1|span}{xml:*}
\xmlsetsetup{#1}{span[@label]}{xml:logo}
\xmlsetsetup{#1}{span[@label='context']}{xml:context}
\stopxmlsetups
 
\xmlregistersetup{xml:initialize}
 
\startxmlsetups xml:h1
\placecontent[criterium=all]
\chapter{\xmlflush{#1}}
\stopxmlsetups
 
\startxmlsetups xml:logo
\uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii
\ifx\ascii\empty\else\getvalue{\ascii}\fi
\stopxmlsetups
 
\startxmlsetups xml:context
\ConTeXt
\stopxmlsetups
 
\starttext
 \xmlprocessbuffer{main}{demo}{}
\stoptext
 
 xml:logo doesn’t work when it has to be parsed in a heading.
 
 Is there a fix for xml:logo or is xml:context the proper fix?

You need a expandable version for your logo tags.

   \startxmlsetups xml:logo
   \getvalue{\utfupper{\xmlatt{#1}{label}}}
   \stopxmlsetups

You can also modify this and provide a text which appears when you try to show 
a logo which isn’t defined.

   \startxmlsetups xml:logo
   \executeifdefined{\utfupper{\xmlatt{#1}{label}}}{{\tttf ???}}
   \stopxmlsetups

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] hyphen in class (from XML)

2015-03-22 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startbuffer[demo]
span class=tex-logoTeX/span
\stopbuffer

\setupinteraction[state=start]

\startxmlsetups xml:initialize
\xmlsetsetup{#1}{span[contains(@class,'tex-logo')]}{xml:tex:logo}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:tex:logo
\TeX
\stopxmlsetups

\stopxmlsetups

\starttext
 \xmlprocessbuffer{main}{demo}{}
\stoptext

Unless I remove the hyphen from the class and from the setups (or
replace both hyphens with an underscore hyphen), I won’t get the \TeX logo.

Have I hit a bug or is it a feature?

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] ConTeXt logo in XML

2015-01-26 Thread Wolfgang Schuster

 Am 26.01.2015 um 14:21 schrieb Pablo Rodriguez oi...@gmx.es:
 
 Dear list,
 
 I have the following sample:
 
 \startbuffer[demo]
 doc
 pThis context is not ConTeXt./p
 /doc
 \stopbuffer
 
 \starttext
 
 \startxmlsetups xml:initialize
 \xmlsetsetup{#1}{p|doc}{xml:*}
 \stopxmlsetups
 
 \xmlregistersetup{xml:initialize}
 
 \startxmlsetups xml:doc
 \xmlflush{#1}
 \stopxmlsetups
 
 \startxmlsetups xml:p
 \xmlflush{#1}\par
 \stopxmlsetups
 
 \xmlprocessbuffer{main}{demo}{}
 
 \stoptext
 
 Is there any way that I get ConTeXt (and not context) typeset as
 \ConTeXt?
 
 Many thanks for your help,

Hans uses for the documentation of the Lua code logo label=context/  to 
print the ConTeXt logo, to do so the following setup is used (copied from 
x-ldx.mkiv):

\startxmlsetups ldx:logo
\uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii
\ifx\ascii\empty\else\getvalue{\ascii}\fi
\stopxmlsetups

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] ConTeXt logo in XML

2015-01-26 Thread Wolfgang Schuster

 Am 26.01.2015 um 16:19 schrieb Pablo Rodriguez oi...@gmx.es:
 
 On 01/26/2015 02:40 PM, Wolfgang Schuster wrote:
 [...]
 Hans uses for the documentation of the Lua code logo label=context/
 to print the ConTeXt logo, to do so the following setup is used (copied
 from x-ldx.mkiv):
 
 \startxmlsetups ldx:logo
\uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii
\ifx\ascii\empty\else\getvalue{\ascii}\fi
 \stopxmlsetups
 
 Many thanks for your reply, Wolfgang.
 
 I thought it was possible only changing the environment (and not the XML
 code).
 
 But this really does what I intend.

To replace text in your input you can try to use the translate module.

\usemodule[translate]

\translateinput[ConTeXt][\CONTEXT]

\starttext

This document was produced with ConTeXt.

\enableinputtranslation
This document was produced with ConTeXt.

\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] ConTeXt logo in XML

2015-01-26 Thread Pablo Rodriguez
On 01/26/2015 04:33 PM, Wolfgang Schuster wrote:
 [...]
 To replace text in your input you can try to use the translate module.
 
 \usemodule[translate]
 
 \translateinput[ConTeXt][\CONTEXT]
 
 \starttext
 
 This document was produced with ConTeXt.
 
 \enableinputtranslation
 This document was produced with ConTeXt.
 
 \stoptext

Many thanks for your reply, Wolfgang,

I must confess I like this solution more, but I’m not sure it will be
safe to use it XML.

Anyway, this is something I wanted to correct some user input for
automatically generated documents.

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] ConTeXt logo in XML

2015-01-26 Thread Pablo Rodriguez
On 01/26/2015 02:40 PM, Wolfgang Schuster wrote:
 [...]
 Hans uses for the documentation of the Lua code logo label=context/
 to print the ConTeXt logo, to do so the following setup is used (copied
 from x-ldx.mkiv):
 
 \startxmlsetups ldx:logo
 \uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii
 \ifx\ascii\empty\else\getvalue{\ascii}\fi
 \stopxmlsetups

Many thanks for your reply, Wolfgang.

I thought it was possible only changing the environment (and not the XML
code).

But this really does what I intend.

Many thanks for your help,


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

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

[NTG-context] ConTeXt logo in XML

2015-01-26 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startbuffer[demo]
doc
 pThis context is not ConTeXt./p
/doc
\stopbuffer

\starttext

\startxmlsetups xml:initialize
 \xmlsetsetup{#1}{p|doc}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:initialize}

\startxmlsetups xml:doc
 \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
 \xmlflush{#1}\par
\stopxmlsetups

\xmlprocessbuffer{main}{demo}{}

\stoptext

Is there any way that I get ConTeXt (and not context) typeset as
\ConTeXt?

Many thanks for your help,


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

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

[NTG-context] Adjusting topspace for letterhead in layer construct

2014-11-19 Thread jdh



mtx-context | current version: 2014.10.18 14:30

I only want about 3 to 5 mm between the physical top of the page and the 
top of the letterhead (in this example, a company's and contact 
information).


In \setlayer I set y=3mm


The pdf view of the output looks good, but an actual printout (and a 
look at a print preview with a pdf viewer)  of the generated pdf file 
puts the top of the letterhead about 17 mm down from the top edge.  This 
is too much.  I tried adjusting topspace and topdistance to 0 didn't 
seem to have any affect.


I am using theh ConText standalone:  mtx-context   version: 2014.10.18 14:30

Here is a simple minimal exmple:
%
% Start of minimal example

   \setuppapersize[letter][letter]
   \setuppagenumbering[location=footer]

   \setuplayout[
  backspace=31mm,
  header=5mm,
  rightmargin=2cm, leftmargin=2cm ]

   \definelayer
 [Logo]  % name of the layer we are defining
 [ repeat=yes,
   x=5mm,y=3mm,  % Just what is this?
   hoffset=0mm,voffset=0mm, % and what is this?  ...offset from where?
   width=\paperwidth
 ]

   \setupTABLE[r][1,2,3][height=5mm,frame=off]  % Put letterhead 
information in here.


\starttext

\setlayer[Logo][]
   {
\bTABLE
 \bTR
  \bTD \eTD \bTD \sc{Company Name}\eTD \bTD 
\sc{info}@\sc{something}.\sc{where} \eTD

 \eTR
 \bTR
   \bTD \eTD \bTD 2059 Forest Ave, Ste X \eTD \bTD 
\sc{www}.\sc{domain}.\sc{topleveldomain} \eTD

 \eTR
 \bTR
\bTD \eTD \bTD City, Province \eTD \bTD Tel (xxx) 999-1234 \eTD
\eTR
  \eTABLE
}
\setupbackgrounds[page][background=Logo]

~% Need `` to avoid a NULL content page so can generate a pdf

\stoptext

%
% End of minimal example

___
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] layer letterhead and top down distance

2014-11-19 Thread jdh

I am using:   mtx-context | current version: 2014.10.18 14:30

I am typesetting a simple letterhead for correspondence.

The design calls for only about a 3 to 5 mm distance between the 
physical top of the page and the top of the typeset letterhead.



The pdf view of the output looks good, but an actual printout (and a 
look at a print preview with a pdf viewer)  of the generated pdf file 
puts the top of the letterhead about 17 mm (14mm over target size) down 
from the top edge.  This is too much.  I tried adjusting topspace and 
topdistance to 0 didn't seem to have any affect.



 In \setlayer I set y=3mm
 I tried adjusting  topspace  but it didn't do what I wanted and 
topdistance was already 0.


I am using theh ConText standalone:  mtx-context   version: 2014.10.18 14:30

Here is a simple minimal file.
%
% Start of minimal example

   \setuppapersize[letter][letter]
   \setuppagenumbering[location=footer]

   \setuplayout[
  backspace=31mm,
  header=5mm,
  rightmargin=2cm, leftmargin=2cm ]

   \definelayer
 [Logo]  % name of the layer we are defining
 [ repeat=yes,
   x=5mm,y=3mm,  % Just what is this?
   hoffset=0mm,voffset=0mm, % and what is this?  ...offset from where?
   width=\paperwidth
 ]

   \setupTABLE[r][1,2,3][height=5mm,frame=off]  % Put letterhead 
information in here.


\starttext

\setlayer[Logo][]
   {
\bTABLE
 \bTR
  \bTD \eTD \bTD \sc{Company Name}\eTD \bTD 
\sc{info}@\sc{something}.\sc{where} \eTD

 \eTR
 \bTR
   \bTD \eTD \bTD 2059 Forest Ave, Ste X \eTD \bTD 
\sc{www}.\sc{domain}.\sc{topleveldomain} \eTD

 \eTR
 \bTR
\bTD \eTD \bTD City, Province \eTD \bTD Tel (xxx) 999-1234 \eTD
\eTR
  \eTABLE
}
\setupbackgrounds[page][background=Logo]

~% Need `` to avoid a NULL content page so can generate a pdf

\stoptext

%
% End of minimal example

Regards
___
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] Layer for Letterhead( minimum example)

2014-11-17 Thread Otared Kavian
Hi,

The key you have to use is 
state=repeat
in the definition of your layer:

\definelayer[Logo][state=repeat]
\starttext
\setlayer[Logo][x=75mm,y=13mm]
{ \bTABLE[frame=off]
 \bTR  \bTD Company Name \eTD  \eTR
 \bTR  \bTD Address. \eTD  \eTR
 \eTABLE
 } 

\setupbackgrounds[page][background=Logo]

\title{Hello Mr. Smith}

I do hope that all is going well for you.

\dorecurse{5}{\input knuth \par}
\stoptext

Best regards: OK

 On 17 Nov 2014, at 08:56, jdh dhen...@gmail.com wrote:
 
 
 SORRY I forgot to attach a minimum example. I'll attach it.
 It is a plain text file wit an .mkiv file extension.
 
 I have created a letterhead layer, which works well for the first page
 of a multi-page document.  I want it to be repeated for each page of a
 document.
 
 How can that be done or does anyone have any pointers or tips on how I
 can do that?
 
 Thank You
 
 
 minimum-example.mkiv___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

[NTG-context] Fwd: Layer for Letterhead( minimum example)

2014-11-16 Thread jdh


SORRY I forgot to attach a minimum example. I'll attach it.
It is a plain text file wit an .mkiv file extension.

I have created a letterhead layer, which works well for the first page
of a multi-page document.  I want it to be repeated for each page of a
document.

How can that be done or does anyone have any pointers or tips on how I
can do that?

Thank You


%
% Start of Context Document Example
\definelayer
  [Logo]  % name of the layer we are defining
  [
x=0mm, y=0mm,   % x,y coord where center of layer should be.? 
(=10,10)
hoffset=0mm,voffset=0mm, % offset from where?  left side? ndn topside?  
location={right,top}  % relative location withing a layer area
  ]


\starttext

\setlayer[Logo][x=75mm,y=13mm]
{ \bTABLE[frame=off]
 \bTR  \bTD Company Name \eTD  \eTR
 \bTR  \bTD Address. \eTD  \eTR
 \eTABLE
 } 

\setupbackgrounds[page][background=Logo]

\title{Hello Mr. Smith}

I do hope that all is going well for you.

\dorecurse{5}{\input knuth \par}
\stoptext

%
% End of Context Document example
___
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] \MetaFont in 2014-06-05 MKIV

2014-06-06 Thread Rik
The following produces two lines with the Metafont logo when using TL13, 
but fails in the current MKIV with the identical complaint for either of 
the lines commented out: Type1: Could not understand Type1 font: 
C:/ConTeXt/tex/texmf/fonts/type1/hoekwater/mflogo/logo10.pfb


   \starttext

   \METAFONT

   \MetaFont

   \stoptext


--
Rik Kabel
___
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] \MetaFont in 2014-06-05 MKIV

2014-06-06 Thread Hans Hagen

On 6/6/2014 10:12 PM, Rik wrote:

The following produces two lines with the Metafont logo when using TL13,
but fails in the current MKIV with the identical complaint for either of
the lines commented out: Type1: Could not understand Type1 font:
C:/ConTeXt/tex/texmf/fonts/type1/hoekwater/mflogo/logo10.pfb

\starttext

\METAFONT

\MetaFont

\stoptext


yes, that font is missing (which is annoying); also the logo font is 
missing (which means that we cannot create a plain format in the minimals)


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] blank overlay

2014-06-03 Thread Peter Rolf
Am 03.06.2014 16:27, schrieb john Culleton:
 
 I need a graphic (a thumbnail) on the right hand
 pages but not on the left hand pages. Following
 the instructions in the Metafun Manual page 168 I
 have assigned different pairs to the two
 overlays: 
 \startuseMPgraphic{right page}
 ...
 \stopuseMPgraphic
 
 and 
 \startuseMPgraphic{left page}
 \stopuseMPgraphic
 
 In the left hand area I want to just create a
 minimal structure that replaces the right hand
 graphic overlay.
 
 What is the minimal code I can use between the
 start and stop statements?
 

Not sure if I understand you right, but let's give it a try :-)

You can use 'Start|Stoppage' in combination with your icon, but you end
up with a graphic as big as the page (not visible and a small data
footprint, but still some kind of 'layer mess'). Probably not the best
way to do this in ConTeXt. Anyway...

StartPage;
draw something xyshifted(x,y); % shift to the desired position
StopPage;


Better alternative:

http://wiki.contextgarden.net/Layers

Example: placing a logo to the top right corner of the page

And for the different setup on left|right pages see

http://wiki.contextgarden.net/Alternating_backgrounds_and_repeating_layers

The latter link is also at the bottom of the layer related page.


HTH,  Peter
___
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] blank overlay

2014-06-03 Thread john Culleton
On Tue, 03 Jun 2014 19:47:14 +0200
Peter Rolf indi...@gmx.net wrote:

 Am 03.06.2014 16:27, schrieb john Culleton:
  
  I need a graphic (a thumbnail) on the right
  hand pages but not on the left hand pages.
  Following the instructions in the Metafun
  Manual page 168 I have assigned different
  pairs to the two overlays: 
  \startuseMPgraphic{right page}
  ...
  \stopuseMPgraphic
  
  and 
  \startuseMPgraphic{left page}
  \stopuseMPgraphic
  
  In the left hand area I want to just create a
  minimal structure that replaces the right hand
  graphic overlay.
  
  What is the minimal code I can use between the
  start and stop statements?
  
 
 Not sure if I understand you right, but let's
 give it a try :-)
 
 You can use 'Start|Stoppage' in combination
 with your icon, but you end up with a graphic
 as big as the page (not visible and a small
 data footprint, but still some kind of 'layer
 mess'). Probably not the best way to do this in
 ConTeXt. Anyway...
 
 StartPage;
 draw something xyshifted(x,y); % shift to the
 desired position StopPage;
 
 
 Better alternative:
 
 http://wiki.contextgarden.net/Layers
 
 Example: placing a logo to the top right corner
 of the page
 
 And for the different setup on left|right pages
 see
 
 http://wiki.contextgarden.net/Alternating_backgrounds_and_repeating_layers
 
 The latter link is also at the bottom of the
 layer related page.
 
 
 HTH,  Peter
 ___
 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
 ___
 
 
 ___
 Unlimited Disk, Data Transfer, PHP/MySQL Domain
 Hosting http://www.doteasy.com 

One of your examples, the watermark one,
reminded me of what I had left off. It was the
lines:

\setuppagenumbering
 [alternative=doublesided]

Dum de dum dum!

Now I have the thumbnail mark on odd but not on
even pages.

I still have a few more bits to fiddle but that
got me around my problem.

I took Hans' MKIV thumb index example and hacked
away from that point onward.

Thanks so much for your multiple examples! I was
about to retreat to Scribus. The problem with
that program is that the pdf files are about five
times bigger than a corresponding pdf from
Context.
 

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
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] Entering text into layers

2014-05-20 Thread Keith McKay

Thanks Hans,

This is just what I'm looking for.

One last quick question if I may.  I've noticed that \setlayerframed is 
not in the command reference on the wiki.  I guess that by looking at 
the source code for Context would be the best way of finding it's 
attributes but I don't have a clue which file it is likely to be in.  
Could you give me a few hints on how to do this please?


Thanks again for your help.

Best Wishes
Keith

On 19/05/2014 22:45, Hans Hagen wrote:

On 5/19/2014 5:43 PM, Keith McKay wrote:

Colleagues

I have been designing a simple document which comprises of 4 areas (3
for text, 1 for images) on an A4 page.  I thought that the best way to
do this would be using Layers and so far I come up with the code below
after scanning the wiki.  As you can see it is not very sophisticated,
but I'm not a regular user of Context.  The question I have is what
would be the best way to add text to the various layers?  Some would
have quite a lot of text and I was wondering if would be better to
define the text for the different layers in some way rather than enter
into the braces of \setlayerframed.  The code would look messy this
way.  Finally, can layers be positioned within layers or would it be
better to use overlays?  I'm thinking about adding three columns to the
Footer layer.

Thanks for your help

Best Wishes

Keith McKay

\setuplayout

[backspace=0cm,

cutspace=0cm,

width=fit,

topspace=0cm,

bottomspace=0cm,

header=0cm,

footer=0cm,

height=fit]

\setupexternalfigures[location={local,global}]


\definelayer[Logo]

\definelayer[Picture]

\definelayer[Text]

\definelayer[Footer]


\starttext

\strut


\setlayerframed[Logo][x=1cm,y=1cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Some text in here}

\setlayerframed[Picture][x=1cm,y=5cm]
[width=6cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{\externalfigure[picture.jpg][background={foreground,figure},maxwidth=6cm]} 



\setlayerframed[Text][x=8cm,y=5cm]
[width=12cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{Text 


goes here}

\setlayerframed[Footer][x=1cm,y=25.7cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Footer goes here}

\setupbackgrounds[text][background={Logo,Picture,Text,Footer}]


\stoptext


use buffers:

\startbuffer[some text]
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
\stopbuffer


\setlayerframed
  [somelayer]
  [preset=lefttop,
   x=1cm,
   y=4cm]
  [width=10cm,
   align=normal]
  {\getbuffer}

-
  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] Entering text into layers

2014-05-20 Thread Hans Hagen

On 5/20/2014 10:07 AM, Keith McKay wrote:

Thanks Hans,

This is just what I'm looking for.

One last quick question if I may.  I've noticed that \setlayerframed is
not in the command reference on the wiki.  I guess that by looking at
the source code for Context would be the best way of finding it's
attributes but I don't have a clue which file it is likely to be in.
Could you give me a few hints on how to do this please?


first [] like \setlayer, second [] like \framed


Thanks again for your help.

Best Wishes
Keith

On 19/05/2014 22:45, Hans Hagen wrote:

On 5/19/2014 5:43 PM, Keith McKay wrote:

Colleagues

I have been designing a simple document which comprises of 4 areas (3
for text, 1 for images) on an A4 page.  I thought that the best way to
do this would be using Layers and so far I come up with the code below
after scanning the wiki.  As you can see it is not very sophisticated,
but I'm not a regular user of Context.  The question I have is what
would be the best way to add text to the various layers?  Some would
have quite a lot of text and I was wondering if would be better to
define the text for the different layers in some way rather than enter
into the braces of \setlayerframed.  The code would look messy this
way.  Finally, can layers be positioned within layers or would it be
better to use overlays?  I'm thinking about adding three columns to the
Footer layer.

Thanks for your help

Best Wishes

Keith McKay

\setuplayout

[backspace=0cm,

cutspace=0cm,

width=fit,

topspace=0cm,

bottomspace=0cm,

header=0cm,

footer=0cm,

height=fit]

\setupexternalfigures[location={local,global}]


\definelayer[Logo]

\definelayer[Picture]

\definelayer[Text]

\definelayer[Footer]


\starttext

\strut


\setlayerframed[Logo][x=1cm,y=1cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Some text in here}

\setlayerframed[Picture][x=1cm,y=5cm]
[width=6cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{\externalfigure[picture.jpg][background={foreground,figure},maxwidth=6cm]}


\setlayerframed[Text][x=8cm,y=5cm]
[width=12cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{Text

goes here}

\setlayerframed[Footer][x=1cm,y=25.7cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Footer goes here}

\setupbackgrounds[text][background={Logo,Picture,Text,Footer}]


\stoptext


use buffers:

\startbuffer[some text]
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
\stopbuffer


\setlayerframed
  [somelayer]
  [preset=lefttop,
   x=1cm,
   y=4cm]
  [width=10cm,
   align=normal]
  {\getbuffer}

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




--

-
  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] Entering text into layers

2014-05-19 Thread Keith McKay

Colleagues

I have been designing a simple document which comprises of 4 areas (3 
for text, 1 for images) on an A4 page.  I thought that the best way to 
do this would be using Layers and so far I come up with the code below 
after scanning the wiki.  As you can see it is not very sophisticated, 
but I'm not a regular user of Context.  The question I have is what 
would be the best way to add text to the various layers?  Some would 
have quite a lot of text and I was wondering if would be better to 
define the text for the different layers in some way rather than enter 
into the braces of \setlayerframed.  The code would look messy this 
way.  Finally, can layers be positioned within layers or would it be 
better to use overlays?  I'm thinking about adding three columns to the 
Footer layer.


Thanks for your help

Best Wishes

Keith McKay

\setuplayout

[backspace=0cm,

cutspace=0cm,

width=fit,

topspace=0cm,

bottomspace=0cm,

header=0cm,

footer=0cm,

height=fit]

\setupexternalfigures[location={local,global}]


\definelayer[Logo]

\definelayer[Picture]

\definelayer[Text]

\definelayer[Footer]


\starttext

\strut


\setlayerframed[Logo][x=1cm,y=1cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Some text in here}

\setlayerframed[Picture][x=1cm,y=5cm] 
[width=6cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{\externalfigure[picture.jpg][background={foreground,figure},maxwidth=6cm]}


\setlayerframed[Text][x=8cm,y=5cm] 
[width=12cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{Text 
goes here}


\setlayerframed[Footer][x=1cm,y=25.7cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Footer goes here}

\setupbackgrounds[text][background={Logo,Picture,Text,Footer}]


\stoptext


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

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

Re: [NTG-context] Entering text into layers

2014-05-19 Thread Hans Hagen

On 5/19/2014 5:43 PM, Keith McKay wrote:

Colleagues

I have been designing a simple document which comprises of 4 areas (3
for text, 1 for images) on an A4 page.  I thought that the best way to
do this would be using Layers and so far I come up with the code below
after scanning the wiki.  As you can see it is not very sophisticated,
but I'm not a regular user of Context.  The question I have is what
would be the best way to add text to the various layers?  Some would
have quite a lot of text and I was wondering if would be better to
define the text for the different layers in some way rather than enter
into the braces of \setlayerframed.  The code would look messy this
way.  Finally, can layers be positioned within layers or would it be
better to use overlays?  I'm thinking about adding three columns to the
Footer layer.

Thanks for your help

Best Wishes

Keith McKay

\setuplayout

[backspace=0cm,

cutspace=0cm,

width=fit,

topspace=0cm,

bottomspace=0cm,

header=0cm,

footer=0cm,

height=fit]

\setupexternalfigures[location={local,global}]


\definelayer[Logo]

\definelayer[Picture]

\definelayer[Text]

\definelayer[Footer]


\starttext

\strut


\setlayerframed[Logo][x=1cm,y=1cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Some text in here}

\setlayerframed[Picture][x=1cm,y=5cm]
[width=6cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{\externalfigure[picture.jpg][background={foreground,figure},maxwidth=6cm]}

\setlayerframed[Text][x=8cm,y=5cm]
[width=12cm,height=19.7cm,background=color,backgroundcolor=lightgrey]{Text
goes here}

\setlayerframed[Footer][x=1cm,y=25.7cm]

[width=19cm,height=3cm,background=color,backgroundcolor=lightgrey]

{Footer goes here}

\setupbackgrounds[text][background={Logo,Picture,Text,Footer}]


\stoptext


use buffers:

\startbuffer[some text]
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
   bla bla bla bla bla bla bla bla bla bla
\stopbuffer


\setlayerframed
  [somelayer]
  [preset=lefttop,
   x=1cm,
   y=4cm]
  [width=10cm,
   align=normal]
  {\getbuffer}

-
  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] 8th ConTeXt Meeting, Bassenge-Boirs, Belgium

2014-05-09 Thread Taco Hoekwater

On 05/09/2014 09:57 AM, Henning Hraban Ramm wrote:

Am 2014-05-08 um 17:56 schrieb Taco Hoekwater t...@docwolves.nl:


ConTeXt Cookery

which means that we are planning for talks and tutorials on both
culinary and programming recipes and / or cookbooks.


Oh, that reminds me:
http://wiki.contextgarden.net/File:Kochloewe_c.jpg ;-)


And that, again, reminds me.  Would it be ok if we send your image,
along with the logo from 2011, to Duane Bibby to create this year's
logo image?

Best wishes,
Taco


___
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] 8th ConTeXt Meeting, Bassenge-Boirs, Belgium

2014-05-09 Thread Henning Hraban Ramm

Am 2014-05-09 um 14:16 schrieb Taco Hoekwater t...@docwolves.nl:

 On 05/09/2014 09:57 AM, Henning Hraban Ramm wrote:
 Am 2014-05-08 um 17:56 schrieb Taco Hoekwater t...@docwolves.nl:
 
ConTeXt Cookery
 
 which means that we are planning for talks and tutorials on both
 culinary and programming recipes and / or cookbooks.
 
 Oh, that reminds me:
 http://wiki.contextgarden.net/File:Kochloewe_c.jpg ;-)
 
 And that, again, reminds me.  Would it be ok if we send your image,
 along with the logo from 2011, to Duane Bibby to create this year's
 logo image?

Of course!



Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] defining headcommand

2014-02-25 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definetype[TeXcode][option=TEX]
\unexpanded\def\tex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}}
\definedescription[TeXcommand][width=fit,hang=fit,headcommand=\tex]
\starttext
Its logo can be invoked with \tex{ConTeXt}. But you can have
different logos.

\TeXcommand{ConTeXt} lowercase.

\TeXcommand{CONTEXT} all caps.

\TeXcommand{Context} small caps.
\stoptext

How should i redefine the headcommand value, so I can get headcommand
with colored output? (I mean, so I get the same output as when invoking
\tex{ConTeXt}.)

Many thanks for your help,


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

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


[NTG-context] How to center a \placefloat?

2014-02-18 Thread Marcin Borkowski
Hi list,

I'd like to have a figure (by means of \placefigure) centered
horizontally.  Currently, I'm doing

  \placefigure[bottom,none,middle]{}{%
\hbox to\textwidth{\hfil\externalfigure[logo-2-t][height=1.5cm]\hfil}}

Is there a better way?  If yes, how to do this?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] How to center a \placefloat?

2014-02-18 Thread Wolfgang Schuster

Am 18.02.2014 um 11:24 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl:

 Hi list,
 
 I'd like to have a figure (by means of \placefigure) centered
 horizontally.  Currently, I'm doing
 
  \placefigure[bottom,none,middle]{}{%
\hbox to\textwidth{\hfil\externalfigure[logo-2-t][height=1.5cm]\hfil}}
 
 Is there a better way?  If yes, how to do this?

\setupexternalfigures[location=default]

\starttext

\input knuth

\placefigure
  {A dutch cow}
  {\externalfigure[cow][width=8cm]}

\input ward

\stoptext

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

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


Re: [NTG-context] Metafun: numeric=color

2014-01-30 Thread Hans Hagen

On 1/29/2014 9:41 PM, Otared Kavian wrote:

Hi,

With the latest beta,

ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.1.29

in a file typeset with mkii I have a bunch of metapost macros (drawing a logo…) 
which used to typeset correctly until last week, I get an error message saying:

Preloading the plain mem file, version 1.004 for metafun ii  cyan  
(0,1,1) ! Equation cannot be performed (numeric=color).

Unfortunately I cannot reproduce this error message in a minimal example, but 
can anyone tell me whether something has changed in MetaPost?


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
___


[NTG-context] Metafun: numeric=color

2014-01-29 Thread Otared Kavian
Hi,

With the latest beta,

ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.1.29

in a file typeset with mkii I have a bunch of metapost macros (drawing a logo…) 
which used to typeset correctly until last week, I get an error message saying:

Preloading the plain mem file, version 1.004 for metafun ii  cyan  
(0,1,1) ! Equation cannot be performed (numeric=color). 

Unfortunately I cannot reproduce this error message in a minimal example, but 
can anyone tell me whether something has changed in MetaPost?

Best regards: OK
___
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] Table in header, or multicolumn header

2013-12-16 Thread Marco Pallante
Wolfgang,

Your solution seems to work perfectly: I get exactly what I want (I only
have to remove frames around cells).

I don't understand the possible problems: are you saying that if I use
xtables in the body of the document (other than in the header), and
those tables split across pages it could give unexpected behaviours?

What if I don't use xtables in the body, but other tabular environments
that allow splitting, such as TABLE or Linetable (I'm reading from the
wiki, I never used that)?

Thank you very much!

Bye,

Marco Pallante

 
 You can try to use a table but there is a possibility for problems when you 
 use xtables
 in your document which are split across pages.
 
 \startsetups[header:table]
 
   \startembeddedxtable[align={middle,lohi},strut=no]
   \startxrow
   \startxcell[width=0.25\paperwidth,nr=4]
   %\externalfigure[logo]
   \stopxcell
   \startxcell[width=0.40\paperwidth,nr=4]
   Document title
   \stopxcell
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Doc No.
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \unknown
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \startxrow
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Revision
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \unknown
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \startxrow
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Data
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \unknown
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \startxrow
   
 \startxcellgroup[height=0.25\headerheight,foregroundstyle=small]
   
 \startxcell[width=0.10\paperwidth,align={flushright,lohi}]
   Pagina
   \stopxcell
   
 \startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
   \pagenumber/\lastpagenumber
   \stopxcell
   \stopxcellgroup
   \stopxrow
   \stopembeddedxtable
 
 \stopsetups
 
 \setupheadertexts[\texsetup{header:table}]
 
 \starttext
 \dorecurse{30}{\input knuth\par}
 \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] Table in header, or multicolumn header

2013-12-15 Thread Wolfgang Schuster

Am 13.12.2013 um 16:00 schrieb Marco Pallante marco.palla...@gmail.com:

 Hello everyone,
 
 I'm starting to write some technical documents for a customer. I used MS
 Word in the past because that's what they use, then switched to OO
 Writer for the last job, but I'm not very comfortable with neither of
 them, so I decided to switch to ConTeXt.
 
 However, I'm facing with a problem. Page headings must contain a three
 columns table, with a logo in the left cell, a title in the middle one
 and finally some rows with a document reference number, the issue, the
 issue date and page/pages numbers.
 
 I'm not sure if I should use the \startcolumns environment (but it
 doesn't seems to work in headers or footers) or one of the various table
 environments.
 
 Could you give me some advice?
 
 I attached a screenshot of what the header looks like in Writer.


You can try to use a table but there is a possibility for problems when you use 
xtables
in your document which are split across pages.

\startsetups[header:table]

\startembeddedxtable[align={middle,lohi},strut=no]
\startxrow
\startxcell[width=0.25\paperwidth,nr=4]
%\externalfigure[logo]
\stopxcell
\startxcell[width=0.40\paperwidth,nr=4]
Document title
\stopxcell

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Doc No.
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\unknown
\stopxcell
\stopxcellgroup
\stopxrow
\startxrow

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Revision
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\unknown
\stopxcell
\stopxcellgroup
\stopxrow
\startxrow

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Data
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\unknown
\stopxcell
\stopxcellgroup
\stopxrow
\startxrow

\startxcellgroup[height=0.25\headerheight,foregroundstyle=small]

\startxcell[width=0.10\paperwidth,align={flushright,lohi}]
Pagina
\stopxcell

\startxcell[width=0.15\paperwidth,align={flushleft,lohi}]
\pagenumber/\lastpagenumber
\stopxcell
\stopxcellgroup
\stopxrow
\stopembeddedxtable

\stopsetups

\setupheadertexts[\texsetup{header:table}]

\starttext
\dorecurse{30}{\input knuth\par}
\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] ConTeXt Manual Errata

2013-09-18 Thread Thangalin
 and directory hierarchy. Make reference to section 2.4,
or eliminate the somewhat duplicate discussion about searching for
files altogether.

What would componentonderdeel translate to in English?

Introduce Table 2.1 (including the meaning of the stars and parenthetical
stars) prior to the table itself. Otherwise people will see the table and
need to read the subsequent page, then flip back to understand the table
again.

The product teacher.tex (a teacher manual) can be defined as shown on the
opposite site. What does opposite site mean?

In most cases working with only \starttext and \stoptext in combination
with \input or \enviroment is sufficient. Sufficient for what?

A project structure has advantages when you have to manage a
great number of texts. Any project structure, or *this* project structure
in particular?

it also enables you to process components independently rewrite as:
it also enables components to be processed independently.

In principal is a mistake; use: In principle.

Figures 2.1, 2.2, and 2.3: enlarge the rectangles to avoid hyphenated words.

Provide an example of localenvironment -- it is unclear how the command
is meant to be used.

Section 2.4.

Slightly confusing. The manual indicates that only parent directories are
scanned for referenced files to include. The example should discuss the
relationship between files in subdirectories (e.g., sheets.tex) and how
ConTeXt knows to include layout.tex. For example, would you compile 
sheets.tex inside the otherdoc directory? If so, how does sheets reference
layout.tex? What makes the magic happen? Is it the project command?

Show a small example of the relevant content for layout.tex and sheets.tex
that links the two files together.

Section 2.6.

Is the texexc command deprecated? That is, is the preferred way to compile
a document now the context command?

comma’s is commas.

low level is low-level.

dependant is dependent.

the more flexible we are should be rewritten, unless this is a subtle
reference to yoga. (That is, describe functionality in terms of the
ConTeXt processor, rather than in terms of people.)

A number of commands are on a page by themselves. They seem quite out
of place.

Section 3.1.

makes use of the actual can be: makes use of.

This rather complex process makes it obvious that the output routine
actually makes use of more dimensions than can be This process of
typsetting an entire page, however, uses more than

Section 3.2.

With the command \setuppapersize the dimensions of the paper being used
are defined can be: The \setuppapersize command specifies the paper's
dimensions.

Regarding ..,.1.,.., the meaning of .. has not been defined before
use. Define what is meant by .. prior to using it.

The word DIN is used before its definition. Add a definition for DIN
before use.

The words envelop and envelope are different in English and could
possibly use a note (or footnote) to indicate the actual size. The sizes
of DL and CD might not be familiar to all readers.

Section 3.3.

Introduce figure 3.1 with a full sentence. For example: Figure 3.1
shows the position of the header and footer as determined by...

Rename picture 3.1 to Figure 3.1 as per the previous suggestion.

Introduce the \setuplayout command prior to including the swath of
ConTeXt code for its definition.

see chapter ?? is missing its cross-reference.

and thereby visually separating those areas becomes thereby
visually separate those areas.

In case of a two columned text the \textwidth is somewhat less
than half the makeupwidth needs an explanation (likely because of a space
between the two columns, but that should be made clear). Also, makeupwidth
should have a backslash.

What are \dimen registers? How do you use them? Do you need to use
\dimen\textwidth? If not, then that should be clarified.

In principal is In principle.

In figures 3.2 to 3.8 the right and left should be swapped? (That is, put the
left page to the left of the right page, and the right page to the right of
the left page...)

The first three alternatives result in an undesired output. Alternatives
to what? Also, why is the output undesired? Why do we want to make the white
space stretch? (Probably for aesthetics, but that should be explicitly
stated.)

Section 3.7.

A lot of new concepts are introduced at one time (fonts, figures, frames,
logo definition). Perhaps simplify the logo to simply an image, or framed
text, or only one of those items. Then use a couple of examples to build
on these concepts. Alternatively, introduce all the items used in the logo
a little earlier (e.g., setupframed).

General Suggestions
===

Indent the ConTeXt code fragments

Give ConTeXt code fragments numbers and refer to them by number.

Having two different page numbers is confusing.___
If your question is of interest to others as well

Re: [NTG-context] Bug in \externalfigures in headers?

2013-09-05 Thread Wolfgang Schuster

Am 05.09.2013 um 18:04 schrieb Xan dxpubl...@telefonica.net:

 Hi,
 
 I just want to include logo in headers:

When you have nested command where each takes brackets (e.g. \foo[\bar[…]]) you 
have
to add curly braces around the inner command (e.g. \foo{\bar[…]}]). In your 
case you need
to write \setupheadertexts[{\externalfigure[…]}].

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] Bug in \externalfigures in headers?

2013-09-05 Thread Aditya Mahajan

On Thu, 5 Sep 2013, Xan wrote:


\setupheadertexts[\externalfigure[logo-cepa-sud.png]][\pagenumber\ de \lastpage]


\setupheadertexts[{\externalfigure[logo-cepa-sud.png]}]
 [\pagenumber\ de \lastpage]


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] Bug in \externalfigures in headers?

2013-09-05 Thread Xan
Hi,

I just want to include logo in headers:

%% ConTeXt template for exercises
%% ConTeXt MIV

%% Carregam símbols
\usesymbols[eur]

%% carregam les opcions d'entorn
\environment entorn-simple-estructurals
\environment entorn-simple-visuals

%% Capçaleres i peus
\setupheadertexts[\externalfigure[logo-cepa-sud.png]][\pagenumber\ de \lastpage]
\setupfootertexts[nomfitxer (versio, \currentdate)][]


%% el text
\starttext

%\title{Títol}

Text

%\startexercici
%\stopexercici

\stoptext


but when I run context I receive:

$ context plantilla-context.conTeXt 

mtx-context | run 1: luatex 
--fmt=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --jobname=plantilla-context 
--lua=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --c:currentrun=1 
--c:fulljobname=./plantilla-context.conTeXt 
--c:input=./plantilla-context.conTeXt --c:kindofrun=1 --c:maxnofruns=8 
cont-yes.mkiv
This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) 
 \write18 enabled.
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.07.14 14:53 MKIV beta  fmt: 2013.7.18  int: english/english

system   'cont-new.mkiv' loaded
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'plantilla-context', input 
'./plantilla-context.conTeXt', result 'plantilla-context'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/mnt/magatzem/docencia/docencia-raw/docencia-fusio/Docencia/cursos-antics/2013-2014-CEPA-Sud/plantilles/plantilla-context.conTeXt
 (/usr/local/bin/context/tex/texmf-context/tex/context/base/symb-imp-eur.mkiv)
fontssymbols  library 'eur' loaded 
(entorn-simple-estructurals.tex) (entorn-simple-visuals.tex
fontstypescripts  unknown library 'loc'
fontstypescripts  unknown library 'cmr'
fontspreloading latin modern fonts (third stage)
{/usr/local/bin/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/bin/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/local/bin/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts'fallback modern rm 11pt' is loaded
)
! Argument of \syst_helpers_triple_empty_one_yes has an extra }.

system   tex  error on line 1 in file 
/mnt/magatzem/docencia/docencia-raw/docencia-fusio/Docencia/cursos-antics/2013-2014-CEPA-Sud/plantilles/plantilla-context.conTeXt:
 Argument of  ...

 1   %% ConTeXt template for exercises
 2 %% ConTeXt MIV
 3 
 4 %% Carregam símbols
 5 \usesymbols[eur]
 6 
 7 %% carregam les opcions d'entorn
 8 \environment entorn-simple-estructurals
 9 \environment entorn-simple-visuals
10 
11 %% Capçaleres i peus

inserted text 
\par 
to be read again 
}
argument ...ss \layoutelementparameter \c!middletext \hss }
  \kern -\makeupwidth \hbox ...
\page_layouts_place_element_indeed ...ute to #1{#2
  }\layoutelementparameter \...
\page_layouts_place_text_line_right ...argin_left 
  \fi \ifdim \rightmarginwid...
\page_layouts_place_text_line_left_or_right ...ft 
  \namedlayoutelementparamet...
...
l.26 \stoptext

? x

mkiv lua stats   used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path: 
/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats   resource resolver: loadtime 0.018 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths: none
mkiv lua stats   stored bytecode data: 330 modules (0.418 sec), 69 tables 
(0.011 sec), 399 chunks (0.429 sec)
mkiv lua stats   cleaned up reserved nodes: 38 nodes, 10 lists of 441
mkiv lua stats   node memory usage: 8 hlist, 1 vlist, 8 glue, 2 kern, 1 
penalty, 17 attribute, 30 glue_spec, 6 attribute_list, 12 temp, 14 if_stack, 1 
local_par, 12 dir
mkiv lua stats   node list callback tasks: 6 unique task lists, 4 instances 
(re)created, 12 calls
mkiv lua stats   used backend: pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns: ca::53 en::2, load time: 0.000
mkiv lua stats   jobdata time: 0.000 seconds saving, 0.002 seconds loading
mkiv lua stats   callbacks: 89 direct, 318 indirect, 407 total
mkiv lua stats   randomizer: resumed with value 0.76534300286572
mkiv lua stats   result saved in file: plantilla-context.pdf, compresslevel 3, 
objectcompreslevel 3
mkiv lua stats   loaded fonts: 3 files: latinmodern-math.otf (experimental), 
lmroman10-regular.otf, lmsans10-regular.otf
mkiv lua stats   fonts load time: 0.509 seconds 
mkiv lua stats   luatex banner: this is luatex

Re: [NTG-context] Bug in \externalfigures in headers?

2013-09-05 Thread Xan
Thanks a lot, All of you for quick responses.

On Thu, 5 Sep 2013 18:04:36 +0200
Xan dxpubl...@telefonica.net ha escrit:

 Hi,
 
 I just want to include logo in headers:
 
 %% ConTeXt template for exercises
 %% ConTeXt MIV
 
 %% Carregam símbols
 \usesymbols[eur]
 
 %% carregam les opcions d'entorn
 \environment entorn-simple-estructurals
 \environment entorn-simple-visuals
 
 %% Capçaleres i peus
 \setupheadertexts[\externalfigure[logo-cepa-sud.png]][\pagenumber\ de 
 \lastpage]
 \setupfootertexts[nomfitxer (versio, \currentdate)][]
 
 
 %% el text
 \starttext
 
 %\title{Títol}
 
 Text
 
 %\startexercici
 %\stopexercici
 
 \stoptext
 
 
 but when I run context I receive:
 
 $ context plantilla-context.conTeXt 
 
 mtx-context | run 1: luatex 
 --fmt=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
  --jobname=plantilla-context 
 --lua=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
  --no-parse-first-line --c:currentrun=1 
 --c:fulljobname=./plantilla-context.conTeXt 
 --c:input=./plantilla-context.conTeXt --c:kindofrun=1 --c:maxnofruns=8 
 cont-yes.mkiv
 This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) 
  \write18 enabled.
 (/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
 
 ConTeXt  ver: 2013.07.14 14:53 MKIV beta  fmt: 2013.7.18  int: english/english
 
 system   'cont-new.mkiv' loaded
 (/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
 system   files  jobname 'plantilla-context', input 
 './plantilla-context.conTeXt', result 'plantilla-context'
 fontslatin modern fonts are not preloaded
 languageslanguage 'en' is active
 (/mnt/magatzem/docencia/docencia-raw/docencia-fusio/Docencia/cursos-antics/2013-2014-CEPA-Sud/plantilles/plantilla-context.conTeXt
  (/usr/local/bin/context/tex/texmf-context/tex/context/base/symb-imp-eur.mkiv)
 fontssymbols  library 'eur' loaded 
 (entorn-simple-estructurals.tex) (entorn-simple-visuals.tex
 fontstypescripts  unknown library 'loc'
 fontstypescripts  unknown library 'cmr'
 fontspreloading latin modern fonts (third stage)
 {/usr/local/bin/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/bin/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/local/bin/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 fonts'fallback modern rm 11pt' is loaded
 )
 ! Argument of \syst_helpers_triple_empty_one_yes has an extra }.
 
 system   tex  error on line 1 in file 
 /mnt/magatzem/docencia/docencia-raw/docencia-fusio/Docencia/cursos-antics/2013-2014-CEPA-Sud/plantilles/plantilla-context.conTeXt:
  Argument of  ...
 
  1   %% ConTeXt template for exercises
  2 %% ConTeXt MIV
  3 
  4 %% Carregam símbols
  5 \usesymbols[eur]
  6 
  7 %% carregam les opcions d'entorn
  8 \environment entorn-simple-estructurals
  9 \environment entorn-simple-visuals
 10 
 11 %% Capçaleres i peus
 
 inserted text 
 \par 
 to be read again 
 }
 argument ...ss \layoutelementparameter \c!middletext \hss }
   \kern -\makeupwidth \hbox 
 ...
 \page_layouts_place_element_indeed ...ute to #1{#2
   }\layoutelementparameter 
 \...
 \page_layouts_place_text_line_right ...argin_left 
   \fi \ifdim 
 \rightmarginwid...
 \page_layouts_place_text_line_left_or_right ...ft 
   
 \namedlayoutelementparamet...
 ...
 l.26 \stoptext
 
 ? x
 
 mkiv lua stats   used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
 mkiv lua stats   used cache path: 
 /usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
 mkiv lua stats   resource resolver: loadtime 0.018 seconds, 0 scans with 
 scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths: none
 mkiv lua stats   stored bytecode data: 330 modules (0.418 sec), 69 tables 
 (0.011 sec), 399 chunks (0.429 sec)
 mkiv lua stats   cleaned up reserved nodes: 38 nodes, 10 lists of 441
 mkiv lua stats   node memory usage: 8 hlist, 1 vlist, 8 glue, 2 kern, 1 
 penalty, 17 attribute, 30 glue_spec, 6 attribute_list, 12 temp, 14 if_stack, 
 1 local_par, 12 dir
 mkiv lua stats   node list callback tasks: 6 unique task lists, 4 instances 
 (re)created, 12 calls
 mkiv lua stats   used backend: pdf (backend for directly generating pdf 
 output)
 mkiv lua stats   loaded patterns: ca::53 en::2, load time: 0.000
 mkiv lua stats   jobdata time: 0.000 seconds saving, 0.002 seconds loading
 mkiv lua stats   callbacks: 89 direct, 318 indirect, 407 total
 mkiv lua stats   randomizer: resumed with value 0.76534300286572
 mkiv lua stats   result saved in file: plantilla-context.pdf

Re: [NTG-context] Locating pdf files in the texmf directory structure

2013-08-05 Thread Marco Patzer
On 2013–08–04 Michael Ash wrote:

 But env_letter.tex calls two pdf files with \externalfigure (see
 below).  These two pdf files are also in the directory pointed to by
 TEXMFHOME but they show up in the finished document as gray state:
 unknown boxes

This works here.

  \setupexternalfigure [location=default]
  \starttext
%% \externalfigure [cow]
\externalfigure [somefigure]
  \stoptext

The graphic somefigure is located in TEXMFHOME. You probably did not
set location to default.

  http://wiki.contextgarden.net/Command/setupexternalfigures

 % Define logo for the first page header
 \defineletterelement[layer][head][example]{%
   \framed[background=logohead,frame=off,align=left]{%
 \externalfigure[UMA_Seal_200_Maroon.pdf][height=3.1cm]}
 }
 
 \setupletter[ signature={\externalfigure[signature-blue.pdf]} ]

If you provide code, please create working examples, not just
snippets.

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
___

[NTG-context] [***SPAM***] Simple Context Application to Cards

2013-08-04 Thread d.henman

This is a trivial appliation for Context, but a useful one.

I plan on designed some business cards, but am new to Context. 

My idea to to have a logo image in the upper left hand corner, with the company 
name to the right of it.   This would be two block elements at the top of the 
card.

In the middle will be the name, and below that the address, tel, etc.

-- Regarding the two blocks at the top of the card:

Something like the below:

   logo here Company name here
 .--.
 |  |  
 |   o XYZ Printing Company |
 |   o  |This top area is the subject of 
this mail.
 |   oCard Design  Services|
.
 |  |
 |  |
 |First_Name Last_Name  |   All this below the ... line is 
done.
 |  |
 |   contact information|
 |  |
 '--'


I take this as two blocks aligned horizontally on the 91mm x 55mm card stock.
From my reading the Context options for doing this are:

The margins are so small that using  
\inmarge{\externalfigure[company-logo][width=\marginwidth] }  can not work.


Which option should I pursue?
   a.) \startcombination ...  \externalfigure  +  text block  \stopcombination
   a.) \placefigurehere[... force] 
 \startcombination ...  \externalfigure  +  text block  \stopcombination

   c.) \startfiguretext ... \stopfiguretext

   d.) some other Context mechanism.


Any advice is appreciated.

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
___


[NTG-context] [***SPAM***] simple business card

2013-08-04 Thread hwitloc


I used the \startfiguretext macro to place a logo in the top left and company 
name to the right of it.  This works well.  The only problem is a Figure 1 
and non show up on the result.  The none was from the example in the book.

But, space is at a premium on a small card and I don't want any taken up by 
blank lines where an annotation might be like none.

How can I keep the below the image text and their text space from being used?

___
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***] Simple Context Application to Cards

2013-08-04 Thread Mari Voipio
On Sun, Aug 4, 2013 at 1:36 PM, d.henman dhen...@gmail.com wrote:
 I plan on designed some business cards, but am new to Context.
d.) some other Context mechanism.

I would use layers. Unfortunately, there isn't a really good beginners
manual for layers, but take a look at
http://wiki.contextgarden.net/Layers and
http://wiki.contextgarden.net/BusinessCard (and maybe even
http://www.pragma-ade.com/general/manuals/details.pdf ). I remember
struggling because those examples are a bit complicated to start with,
but better than nothing.

The nice thing with layers is that once you get it, you can adjust
everything by millimeter until it sits just right (and just right for
your printer, variations in paper feed may make 1-2 mm differences
between printers). And as long as you put each block on a layer of its
own, you can move it independently, e.g. move the logo 3mm to the
right but keep the text blocks where they are.


Regards,

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

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


[NTG-context] How to update context modules; thank you, write-up, and a couple of questions

2013-08-04 Thread Michael Ash
 I asked how to update context modules.

Thank you very much to Marco for guidance, and I would like to write
up how I used his advice to update a module without first-setup.sh. (I
use a ubuntu/PPA installation of context and hence don't use
first-setup.sh, which would make updating easy).

1.  I downloaded the current version of the module (letter;
http://modules.contextgarden.net/dl/t-letter-2013.07.31.zip in this
case) from http://modules.contextgarden.net/

2. I already have a personal /home/me/texmf directory (or would have
created it).  I put the zipped module update in this directory and
unzipped it preserving the subdirectory structure.

3. I set the environment variable TEXMFHOME to my personal texmf
directory (export TEXMFHOME=/home/me/texmf)

4. I ran mtxrun --script update --modules=letter to tell context
where to look for the new version of the letter module.

I could now tell from the output that the updated version of the
letter module was installed, and I also confirmed from the log file:

resolversmodules  'letter' is loaded
interfacemacros  processed mkvi file
'/home/me/texmf/tex/context/third/letter/base/s-cor-01.mkvi', delta 36
interfacemacros  processed mkvi file
'/home/me/texmf/tex/context/third/letter/base/s-cor-01.mkvi', delta 0

(before the update, the lines above read /usr/share/texmf... instead
of /home/me/texmf...)

I hope that this write-up is helpful to others.  Please feel free to
comment or amend if I've misunderstood.

I have several questions:

(1) Is it possible to tell which version of a module is installed,
i.e., that  I am using the 2013.07.31 version of letter?  (The version
of context appears in the log file but not the version of the module.)
(2) After I update of the entire context installation, how will I tell
context to again use the /usr/share/texmf version instead of the
personal version?
(3) Could I have done this installation into /usr/share/texmf and used
sudo mtxrun... to make the updated module work on a multi-user
system?
(4) Where can I put personal files that I would like context to use
regularly.  For example I have three personal files:  env_letter.tex
which I include with \environment env_letter;  a pdf file with my
logo; and a pdf file with a scan of my signature.  Is there a standard
directory to hold such files, and how do I let context know where to
find them, for example, with mtxrun?  (It seems like a waste to copy
them to a new location every time I want to write a letter).

Thank you very much.

Yours,
Michael
___
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] Simple Context Application to Cards

2013-08-04 Thread Henning Hraban Ramm

Am 2013-08-04 um 16:36 schrieb d.henman dhen...@gmail.com:

 
 This is a trivial appliation for Context, but a useful one.
 
 I plan on designed some business cards, but am new to Context. 
 
 My idea to to have a logo image in the upper left hand corner, with the 
 company name to the right of it.   This would be two block elements at the 
 top of the card.
 
 In the middle will be the name, and below that the address, tel, etc.

...
 
 Any advice is appreciated.

Several years ago I used ConTeXt to automatically typeset business cards of a 
big company from a CSV file (processed by a small Python script). In this case 
I had logo and background graphics (everything static) together as a PDF that I 
used on a background layer and typeset only name, job title etc. on a per-page 
layer.


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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


<    1   2   3   4   5   6   >