Re: [NTG-context] processing of setvariables/getvariables again

2005-10-21 Thread Taco Hoekwater


Hi Thomas,

It looks like you are looking for (inside the module):

  \def\initializegreek
{\switchtobodyfont[My\getvariable{Greek}{font}]}
  \appendtoks \initialize \to \everystarttext

There is no other way to get arguments to/from the module.
For Hans: it would be really cool if there was a way to
do something like this:

  \usemodule[greek][font=GreekGentium,scale=0.9]

with (in this example) the \usemodule command defining the
variables

  \moduleoptionfont
  \moduleoptionscale

etc.

Greetings, Taco

Thomas A. Schmitz wrote:

Hi all,

excuse me for being so pig-headed, but I'm running into the same  
problem I had two weeks ago. Peter Rolf was incredibly helpful, but I  
couldnt get things working. It is more a problem of architecture and  
general choices, IMHO, than of actual code. I tried every single part  
of what I want to achieve, and it works. The difficulty lies in  getting 
the variables to work...


Basic problem: I want to refine my greek module. It provides a command

\setupgreek[font=,scale=]

which sets variables fonts and scale in the namespace Greek. The  
command is defined in the module, so in order to use it, the module  has 
to be read. BUT: I want to use the result [i.e. \getvariable 
{Greek}{font} and \getvariable{Greek}{scale}] within the module  itself. 
Is this possible?


Details: I want to organize the fonts in a typescript to be more  
flexible. So the module first defines the setupcommand:


\def\setupgreek{\setvariables[Greek]}

then it calls the typescript

\usetypescriptfile[type-tasgreek]

where all the Greek fonts are defined in this form:

\starttypescript [serif] [GreekGentium] [agr]
  \definefontsynonym [Greekgentium-Roman] [genagr-GentiumAlt]   
[encoding=agr]
  \definefontsynonym [Greekgentium-Italic][genagr-GentiumAItI]  
[encoding=agr]

\stoptypescript

\starttypescript [serif] [GreekGentium] [name]
  \usetypescript[serif][fallback]
  \definefontsynonym [Serif]   [Greekgentium-Roman]
  \definefontsynonym [SerifItalic] [Greekgentium-Italic]
  \definefontsynonym [SerifBold]   [Serif]
  \definefontsynonym [SerifBoldItalic] [Serif]
\stoptypescript

So the module calls the typescriptfile (or would it be more elegant  to 
include these typescripts in the module itself?)


I then have the definition for the command \localgreek which  contains, 
among other things, a call of the Greek font. I had been  planning to 
implement it in this form:


\definetypeface [My\getvariable{Greek}{font}] [rm] [serif]  
[\getvariable{Greek}{font}] [default] [rscale = \getvariable{Greek} 
{font},encoding=agr]


and then, in the setups for \localgreek,

\switchtobodyfont[My\getvariable{Greek}{font}]

And that's where I'm banging my head against the wall: the module  would 
be used like this


\usemodule[t-greek]
\setupgreek[font=GreekGentium,scale=0.9]

Which means: the entire module will be read BEFORE the \setupgreek  
command. But I would need the values of the setupgreek command WITHIN  
the module. Is that possible at all? Would I have to call a third  file 
where the values are then processed? I tried to look into the  source 
how \setup commands work, but I do get the impression that  collecting 
the values and processing them is done in different files.  Is this 
necessary? And how could I implement it in one module?


Sorry if this sounds confusing, but I'm pretty confused, and hoping  for 
enlightenment from the wizzards.


All best

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

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


Re: [NTG-context] processing of setvariables/getvariables again

2005-10-21 Thread Taco Hoekwater



Taco Hoekwater wrote:


Hi Thomas,

It looks like you are looking for (inside the module):

  \def\initializegreek
{\switchtobodyfont[My\getvariable{Greek}{font}]}
  \appendtoks \initialize \to \everystarttext


Sorry, of course this should read:

  \appendtoks \initializegreek \to \everystarttext

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


Re: [NTG-context] processing of setvariables/getvariables again

2005-10-21 Thread Thomas A. Schmitz

Hi Taco,

thanks for your reply!! I have to catch a train now, but I'll try  
your suggestion tonight when I'm back. And yes, having the  
modulesomething variables would be great.


What does \appendtoks do?

Thanks, and all best

Thomas

On Oct 21, 2005, at 10:24 AM, Taco Hoekwater wrote:



Hi Thomas,

It looks like you are looking for (inside the module):

  \def\initializegreek
{\switchtobodyfont[My\getvariable{Greek}{font}]}
  \appendtoks \initialize \to \everystarttext

There is no other way to get arguments to/from the module.
For Hans: it would be really cool if there was a way to
do something like this:

  \usemodule[greek][font=GreekGentium,scale=0.9]

with (in this example) the \usemodule command defining the
variables

  \moduleoptionfont
  \moduleoptionscale

etc.

Greetings, Taco

Thomas A. Schmitz wrote:


Hi all,
excuse me for being so pig-headed, but I'm running into the same   
problem I had two weeks ago. Peter Rolf was incredibly helpful,  
but I  couldnt get things working. It is more a problem of  
architecture and  general choices, IMHO, than of actual code. I  
tried every single part  of what I want to achieve, and it works.  
The difficulty lies in  getting the variables to work...
Basic problem: I want to refine my greek module. It provides a  
command

\setupgreek[font=,scale=]
which sets variables fonts and scale in the namespace Greek. The   
command is defined in the module, so in order to use it, the  
module  has to be read. BUT: I want to use the result [i.e.  
\getvariable {Greek}{font} and \getvariable{Greek}{scale}] within  
the module  itself. Is this possible?
Details: I want to organize the fonts in a typescript to be more   
flexible. So the module first defines the setupcommand:

\def\setupgreek{\setvariables[Greek]}
then it calls the typescript
\usetypescriptfile[type-tasgreek]
where all the Greek fonts are defined in this form:
\starttypescript [serif] [GreekGentium] [agr]
  \definefontsynonym [Greekgentium-Roman] [genagr-GentiumAlt]
[encoding=agr]
  \definefontsynonym [Greekgentium-Italic][genagr-GentiumAItI]   
[encoding=agr]

\stoptypescript
\starttypescript [serif] [GreekGentium] [name]
  \usetypescript[serif][fallback]
  \definefontsynonym [Serif]   [Greekgentium-Roman]
  \definefontsynonym [SerifItalic] [Greekgentium-Italic]
  \definefontsynonym [SerifBold]   [Serif]
  \definefontsynonym [SerifBoldItalic] [Serif]
\stoptypescript
So the module calls the typescriptfile (or would it be more  
elegant  to include these typescripts in the module itself?)
I then have the definition for the command \localgreek which   
contains, among other things, a call of the Greek font. I had  
been  planning to implement it in this form:
\definetypeface [My\getvariable{Greek}{font}] [rm] [serif]   
[\getvariable{Greek}{font}] [default] [rscale = \getvariable 
{Greek} {font},encoding=agr]

and then, in the setups for \localgreek,
\switchtobodyfont[My\getvariable{Greek}{font}]
And that's where I'm banging my head against the wall: the module   
would be used like this

\usemodule[t-greek]
\setupgreek[font=GreekGentium,scale=0.9]
Which means: the entire module will be read BEFORE the  
\setupgreek  command. But I would need the values of the  
setupgreek command WITHIN  the module. Is that possible at all?  
Would I have to call a third  file where the values are then  
processed? I tried to look into the  source how \setup commands  
work, but I do get the impression that  collecting the values and  
processing them is done in different files.  Is this necessary?  
And how could I implement it in one module?
Sorry if this sounds confusing, but I'm pretty confused, and  
hoping  for enlightenment from the wizzards.

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


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



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


Re: [NTG-context] processing of setvariables/getvariables again

2005-10-21 Thread Taco Hoekwater



Thomas A. Schmitz wrote:

Hi Taco,

thanks for your reply!! I have to catch a train now, but I'll try  your 
suggestion tonight when I'm back. And yes, having the  modulesomething 
variables would be great.


What does \appendtoks do?


It appends stuff to token registers (like \everystarttext)

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


Re: Antwort: Re: [NTG-context] distance with \godown

2005-10-21 Thread Willi Egger

Hi Jessica,

I think this has to do with interaction. In my opinion it is important 
that each line is starting with \gotopage and not sometimes with \framed.
My be that your MPgraphic kasten should be  working with \overlaywidth 
and \overlayheight in order to prevent problems discussed in the metafun 
manual.


Have a good weekend

Willi

Jessica Holle wrote:


Yes this works. Thx,
But I've testet it with godown=0pt
When I say this is to much distance between the kastens and
comment \godown=0pt out there is the same strange thing.
When I comment it on all my pages out there is a bigger distance
between the first and second kasten.
Why?
Why only on this point?
Where does it comes from?
How can I disable this?

Hope you have an answer to this :-)

thx Jessica

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


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


[NTG-context] mails

2005-10-21 Thread Hans Hagen Test

Hi,

I'm a bit slow in reading / answering mails this week because of a 
change of the internal mail server (imap etc) and related mail box 
conversions. Sorry.


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


Re: Antwort: Re: [NTG-context] distance with \godown

2005-10-21 Thread Hans Hagen Test

Jessica Holle wrote:


Yes this works. Thx,
But I've testet it with godown=0pt
When I say this is to much distance between the kastens and
comment \godown=0pt out there is the same strange thing.
When I comment it on all my pages out there is a bigger distance
between the first and second kasten.
Why?
Why only on this point?
Where does it comes from?
How can I disable this?

Hope you have an answer to this :-)
 



\godown takes an [argument] and is not an assignment so maybe there is 
some covered-by-button typeset '0pt' interfering


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


[NTG-context] blank line

2005-10-21 Thread Boris Pedrofiets

Hi all,

I like to get blank lines (or halve lines) between mij paragraphs. I seem to 
misuntherstand something compleetly, because I can't get it working. Can 
anyone point me out??


Boris

_
Een audiogesprek? Pak Messenger, niet de telefoon 
http://www1.imagine-msn.com/Messenger/Video.aspx


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


Re: [NTG-context] blank line

2005-10-21 Thread Taco Hoekwater


Boris Pedrofiets wrote:

Hi all,

I like to get blank lines (or halve lines) between mij paragraphs. I 
seem to misuntherstand something compleetly, because I can't get it 
working. Can anyone point me out??


For single cases:

  \blank [line] % one line
or
  \blank [halfline] % half of a line
or
  \blank [3*line] % three lines

Or as a global setting :

  \setupwhitespace [big]


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


[NTG-context] long quotation problem

2005-10-21 Thread Alan Bowen
I have been adapting some of my old Plain TeX macros to ConTeXt,  
using hints and suggestions from the ConTeXt wiki. What I have thus  
far works exactly as desired in the body text, but fails in the  
footnotes. I have appended some encoded text that shows the problem.  
Note the poor line-spacing and (unwanted) indentation in the first  
line of the quotation in the footnote: this quotation should look the  
same as the one in the body text.


I realize that I could fix this simply by inserting a \noindent in  
the footnote, for instance. But I am trying to reduce the amount of  
thinking an coder has to do, and so would really like to define the  
startextract..\stopextract environment more effectively.


Any pointers or suggestions for fixing this will be gratefully received.

Cheers, Alan



% Paragraph setup
\indenting[big,yes]
\setupwhitespace[medium]
\setupparagraphs[tolerance=verystrict]

%Footnote setup
\setupfootnotes[conversion=numbers,
way=bytext,location=page,rule=on,bodyfont=10.1pt,style=normal]
\setupfootnotes[indenting=yes]
\setupfootnotes[interaction=yes]
\setupnotedefinition[footnote][indenting={big,yes}]

% Extract setup
\definestartstop[extract][
  before={\godown[0.10pc]
  \indenting[next]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right]},
  after={\stopnarrower
   \godown[0.25pc]
\indenting[yes]}]

\starttext

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi  
commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id  
pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id  
velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed  
quis velit.

\startextract
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi  
commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id  
pulvinar odio lorem non turpis.


Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat  
condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi.  
Nulla libero. Vivamus pharetra posuere sapien.

\stopextract
\noindent Nam consectetuer. Sed aliquam, nunc eget euismod  
ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim  
nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae  
nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu,  
blandit sed, blandit a, eros.%
\footnote{Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  
Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque,  
id pulvinar odio lorem non turpis. Nullam sit amet enim.%

\startextract
Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat  
volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus  
pharetra posuere sapien.


Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus  
nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec  
porttitor ligula eu dolor.

\stopextract
\noindent Maecenas vitae nulla consequat libero cursus venenatis. Nam  
magna enim, accumsan eu, blandit sed, blandit a, eros.}\ %
Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.  
Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc  
eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum  
bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor.  
Maecenas vitae nulla consequat libero cursus venenatis. Nam magna  
enim, accumsan eu, blandit sed, blandit a, eros.

\stoptext


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


[NTG-context] Re: updated service on garden

2005-10-21 Thread Patrick Gundlach
Some updates...

due to a stupid bug, all views were redirected to a login page. This
is now fixed. Sorry.

There are now more then 120 articles, manuals and webpages in the
database, all searchable and most with a download link. So if you
cannot find your answer on the wiki, mailinglist etc, just take a look
at this database and find the article/manual/webpage you need.

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] long quotation problem

2005-10-21 Thread Peter Rolf
Hi Alan,

please, *no* more latin examples. Since school I have an allergy against
it ;)

Alan Bowen wrote:
 I have been adapting some of my old Plain TeX macros to ConTeXt,  using
 hints and suggestions from the ConTeXt wiki. What I have thus  far works
 exactly as desired in the body text, but fails in the  footnotes. I have
 appended some encoded text that shows the problem.  Note the poor
 line-spacing and (unwanted) indentation in the first  line of the
 quotation in the footnote: this quotation should look the  same as the
 one in the body text.
 
 I realize that I could fix this simply by inserting a \noindent in  the
 footnote, for instance. But I am trying to reduce the amount of 
 thinking an coder has to do, and so would really like to define the 
 startextract..\stopextract environment more effectively.
 
 Any pointers or suggestions for fixing this will be gratefully received.
 
 Cheers, Alan
 
 
 
 % Paragraph setup
 \indenting[big,yes]
 \setupwhitespace[medium]
 \setupparagraphs[tolerance=verystrict]
 
 %Footnote setup
 \setupfootnotes[conversion=numbers,
 way=bytext,location=page,rule=on,bodyfont=10.1pt,style=normal]
 \setupfootnotes[indenting=yes]
 \setupfootnotes[interaction=yes]
 \setupnotedefinition[footnote][indenting={big,yes}]
 
 % Extract setup
 \definestartstop[extract][
   before={\godown[0.10pc]

\blank[0.25pc,force] % 0.10pc is not enough
   \indenting[next]

% delete this and insert a \noindent at the end
 \setupnarrower[left=1.5pc,right=1.5pc]
 \startnarrower[left,right]
  \noindent},
   after={\stopnarrower
\godown[0.25pc]
 
 \blank[0.25pc,force]
 \indenting[yes]}]
  
  \noindent (and a global \indenting[yes])

You can remove the \noindent from your main text now.
 

Don't know, if this is exactly what you want, but it look nice.

Greetings,

Peter


 \starttext
 
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi 
 commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id 
 pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id 
 velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed 
 quis velit.
 \startextract
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi 
 commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id 
 pulvinar odio lorem non turpis.
 
 Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat 
 condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. 
 Nulla libero. Vivamus pharetra posuere sapien.
 \stopextract
 \noindent Nam consectetuer. Sed aliquam, nunc eget euismod  ullamcorper,
 lectus nunc ullamcorper orci, fermentum bibendum enim  nibh eget ipsum.
 Donec porttitor ligula eu dolor. Maecenas vitae  nulla consequat libero
 cursus venenatis. Nam magna enim, accumsan eu,  blandit sed, blandit a,
 eros.%
 \footnote{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
 Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque,  id
 pulvinar odio lorem non turpis. Nullam sit amet enim.%
 \startextract
 Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat 
 volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus 
 pharetra posuere sapien.
 
 Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus 
 nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec 
 porttitor ligula eu dolor.
 \stopextract
 \noindent Maecenas vitae nulla consequat libero cursus venenatis. Nam 
 magna enim, accumsan eu, blandit sed, blandit a, eros.}\ %
 Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. 
 Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc 
 eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum 
 bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. 
 Maecenas vitae nulla consequat libero cursus venenatis. Nam magna  enim,
 accumsan eu, blandit sed, blandit a, eros.
 \stoptext
 
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Willi Egger

Hi Alan,

I tried your code. I made the extract to be typeset in red.- Indeed a 
poor spacing.
I withdrew the \godown[0.10pc]. The result looked fine to me. Then I 
replaced the \godown by \blank[halfline], the result was again o.k.
Finally the \godown[0.10pc] was replaced with \godown[12pt] and the 
result looks o.k. to me. - So may be that there is a problem with your 
unit pc.


Willi

Alan Bowen wrote:

I have been adapting some of my old Plain TeX macros to ConTeXt,  
using hints and suggestions from the ConTeXt wiki. What I have thus  
far works exactly as desired in the body text, but fails in the  
footnotes. I have appended some encoded text that shows the problem.  
Note the poor line-spacing and (unwanted) indentation in the first  
line of the quotation in the footnote: this quotation should look the  
same as the one in the body text.


I realize that I could fix this simply by inserting a \noindent in  
the footnote, for instance. But I am trying to reduce the amount of  
thinking an coder has to do, and so would really like to define the  
startextract..\stopextract environment more effectively.


Any pointers or suggestions for fixing this will be gratefully received.

Cheers, Alan



% Paragraph setup
\indenting[big,yes]
\setupwhitespace[medium]
\setupparagraphs[tolerance=verystrict]

%Footnote setup
\setupfootnotes[conversion=numbers,
way=bytext,location=page,rule=on,bodyfont=10.1pt,style=normal]
\setupfootnotes[indenting=yes]
\setupfootnotes[interaction=yes]
\setupnotedefinition[footnote][indenting={big,yes}]

% Extract setup
\definestartstop[extract][
  before={\godown[0.10pc]
  \indenting[next]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right]},
  after={\stopnarrower
   \godown[0.25pc]
\indenting[yes]}]

\starttext

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi  
commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id  
pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id  
velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed  
quis velit.

\startextract
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi  
commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id  
pulvinar odio lorem non turpis.


Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat  
condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi.  
Nulla libero. Vivamus pharetra posuere sapien.

\stopextract
\noindent Nam consectetuer. Sed aliquam, nunc eget euismod  
ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim  
nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae  
nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu,  
blandit sed, blandit a, eros.%
\footnote{Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  
Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque,  
id pulvinar odio lorem non turpis. Nullam sit amet enim.%

\startextract
Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat  
volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus  
pharetra posuere sapien.


Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus  
nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec  
porttitor ligula eu dolor.

\stopextract
\noindent Maecenas vitae nulla consequat libero cursus venenatis. Nam  
magna enim, accumsan eu, blandit sed, blandit a, eros.}\ %
Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.  
Vivamus pharetra posuere sapien. Nam consectetuer. Sed aliquam, nunc  
eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum  
bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor.  
Maecenas vitae nulla consequat libero cursus venenatis. Nam magna  
enim, accumsan eu, blandit sed, blandit a, eros.

\stoptext


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


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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Hans Hagen Test

Alan Bowen wrote:

I have been adapting some of my old Plain TeX macros to ConTeXt,  
using hints and suggestions from the ConTeXt wiki. What I have thus  
far works exactly as desired in the body text, but fails in the  
footnotes. I have appended some encoded text that shows the problem.  
Note the poor line-spacing and (unwanted) indentation in the first  
line of the quotation in the footnote: this quotation should look the  
same as the one in the body text.


I realize that I could fix this simply by inserting a \noindent in  
the footnote, for instance. But I am trying to reduce the amount of  
thinking an coder has to do, and so would really like to define the  
startextract..\stopextract environment more effectively.


don't use \godown, use \blank since it is  more clever in accumulating 
cq. handling vertical spaces; also,


 \defineblank[footnotedistance][.1pc]

and then using

 \blank[footnotedistance]

makes the thing configurable (one can redefine the spacing outside the 
macro)


Hans



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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Hans Hagen Test

Willi Egger wrote:


Hi Alan,

I tried your code. I made the extract to be typeset in red.- Indeed a 
poor spacing.
I withdrew the \godown[0.10pc]. The result looked fine to me. Then I 
replaced the \godown by \blank[halfline], the result was again o.k.
Finally the \godown[0.10pc] was replaced with \godown[12pt] and the 
result looks o.k. to me. - So may be that there is a problem with your 
unit pc.


indeed such small units start interfering with depth and interlinespacing

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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Thomas A. Schmitz
Hey, please don't take the famous lorem ipsum for Latin, or those  
knowing Latin will be offended... This is just random gibberish  
looking slightly Latin :-)


Thomas

On Oct 21, 2005, at 6:56 PM, Peter Rolf wrote:


please, *no* more latin examples.


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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Peter Rolf
Thomas A. Schmitz wrote:
 Hey, please don't take the famous lorem ipsum for Latin, or those 
 knowing Latin will be offended... This is just random gibberish  looking
 slightly Latin :-)
 
Oeps. Now I know why I didn't get the Latinum :)

Peter
 Thomas
 
 On Oct 21, 2005, at 6:56 PM, Peter Rolf wrote:
 
 please, *no* more latin examples.
 
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Alan Bowen
Among printers this Latinate gibberish (which was “taken” from  
Cicero) was known as “greeked text” or as “printers’ Greek”—which is  
really nonsense and yet another reason not to pay attention to it!


Alan

On Oct 21, 2005, at 1:40 PM, Thomas A. Schmitz wrote:

Hey, please don't take the famous lorem ipsum for Latin, or those  
knowing Latin will be offended... This is just random gibberish  
looking slightly Latin :-)


Thomas

On Oct 21, 2005, at 6:56 PM, Peter Rolf wrote:



please, *no* more latin examples.



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



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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Alan Bowen

Peter, Willi, and Hans—

I have incorporated your suggestions for getting better looking long  
quotations, and all is now working very well indeed. Many thanks to  
you all.


Alan

PS For the record, here is what I have now—just in case someone down  
the line runs into the same problem. A.


% Extracts or Long  
Quotations//


 In body text

\defineblank[extractdistance][3pt]

\definestartstop[extract][
  before={ \blank[extractdistance,force]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right]
\noindent},
  after={\stopnarrower
   \blank[extractdistance,force]
\indenting[yes]}]

% In footnotes

\defineblank[footenoteextractdistance][2.7pt]

\definestartstop[fnextract][
  before={ \blank[footenoteextractdistance,force]
\setupnarrower[left=1.5pc,right=1.5pc]
\startnarrower[left,right]
\noindent},
  after={\stopnarrower
   \blank[footenoteextractdistance,force]
\indenting[yes]}]

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


[NTG-context] margin kerning problem

2005-10-21 Thread Alan Bowen
Sorry for the flurry of questions. But here’s one about margin  
kerning now.


I see that by using
\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
I can get margin kerning in the body text, but not in any footnotes/ 
endnotes. What else is needed to get margin kerning throughout the  
notes too?


As ever, any advice will be gratefully received.

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


Re: [NTG-context] processing of setvariables/getvariables again

2005-10-21 Thread Thomas A. Schmitz

Taco,

I tried your suggestion, but I'm not sure I'm doing it the right way.  
I took the definition of \initialize... like so:


\def\initializegreekfont%
{\getvariable{Greek}{font}}
   \appendtoks \initializegreekfont \to \everystarttext % I guess I  
will need a similar procedure for
%  
initializegreekscale later


I will need the variable twice: once for selecting the typescript and  
defining the bodyfont. So in the typescriptfile with the definitions  
for all the fonts, I have these lines:


\starttypescript[Greek]
\definetypeface [My\initializegreekfont] [rm] [serif]  
[\initializegreekfont] [default] [encoding=agr]

\stoptypescript

And once more for switching to this font:

\startsetups[enablegreek]
   \catcode`~=\other
   \catcode`|=\other
   \catcode`'=\other
   \language[greek]
   \switchtobodyfont[My\initializegreekfont]
\stopsetups  %% suggested by Hans

\def\localgreek{\rescanwithsetup{enablegreek}}

I don't get any errors, but the font is not switched...

Any obvious mistakes I'm making?

Best

Thomas


On Oct 21, 2005, at 11:16 AM, Taco Hoekwater wrote:




Thomas A. Schmitz wrote:


Hi Taco,
thanks for your reply!! I have to catch a train now, but I'll try   
your suggestion tonight when I'm back. And yes, having the   
modulesomething variables would be great.

What does \appendtoks do?



It appends stuff to token registers (like \everystarttext)

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



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