Re: [NTG-context] framed texts

2006-01-07 Thread Hans Hagen

Hans van der Meer wrote:



On Jan 6, 2006, at 18:20, Peter Rolf wrote:


Hans van der Meer wrote:
I want to put to some paragraphs, each as framed text, on one line.
Such as:

\startframedtext[width=...]
para 1
\startitemize
etc
\stopframedtext
\startframedtext[width=...]
para 2
\startitemize
etc
\stopframedtext

I tried some things but the two frames will not come out on one line.
How to do this?


\placesidebyside (context manual p.228) should work. A \hbox is  another
option, but maybe too unhandy for this.

Greetings, Peter



No, that will not work.
After much probing I found the culprit.
The framedtext takes the full linewidth and apparently does not  
reduces it to the given size.

Therefore enclosing in a vbox seems necessary:
   \vbox{\hsize=framesize\startframedtext{width=framesize ...

Question for Hans Hagen: is it an option letting framedtext set the  
hsize when a specific width is given?


\hbox to \hsize \bgroup
   \startframedtext[none][width=.5\textwidth]
   \input tufte
   \stopframedtext
   \startframedtext[none][width=.5\textwidth]
   \input zapf
   \stopframedtext
\egroup

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


[NTG-context] some small questions

2006-01-07 Thread Peter Münster
Hello,
here comes a repost of some still unsolved (at least for me) questions:
- What is the best way, to get never the serif version of the euro, only the
  sans?
Test file:
\usemodule[symb-eur] \useregime[il9] \enableregime[il9]
\starttext
bla € bla
\stoptext

- What is the right syntax to get hz,normal ?
I tried \setupfonthandling[highquality] and \setupalign[hanging,hz] but
these two commands don't seem to change anything. Test file:

\starttext
\input tufte

\setupfonthandling[highquality]
\setupalign[hanging,hz]
\input tufte
\stoptext

TIA for any help!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bibliography problems

2006-01-07 Thread David Antos
On Thu, Jan 05, 2006 at 08:46:13PM +0100, Taco Hoekwater wrote:
 Removing 'url' from  the bibcommandlist (line 440 of t-bib.tex) should
 work out OK in your case.
 
 A 'nice' solution needs quite some thinking

Hello,

it works fine. Thanks a lot!

I have discovered a small typo in the bibl-apa.tex file: it uses et.al.
in many places. I believe that the correct form does not contain the dot
after et.

Regards,
D.A.

-- 
Parental advisory: explicit mathematical expressions.
-- Mgr. Miloš Liška
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bibliography problems

2006-01-07 Thread Taco Hoekwater

David Antos wrote:


I have discovered a small typo in the bibl-apa.tex file: it uses et.al.
in many places. I believe that the correct form does not contain the dot
after et.


Peter Münster reported the same thing ;-)

This will be fixed in the upcoming beta (next week)

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


Re: [NTG-context] some small questions

2006-01-07 Thread Alan Bowen
Peter—On your second question, I use	\usetypescript[serif,sans,mono,mm][hanging][normal]	\setupalign[hz,hanging]and place this in the preamble before the particular fonts are introduced/defined,AlanOn Jan 7, 2006, at 8:05 AM, Peter Münster wrote:Hello,here comes a repost of some still unsolved (at least for me) questions:- What is the best way, to get never the serif version of the euro, only the  sans?Test file:\usemodule[symb-eur] \useregime[il9] \enableregime[il9]\starttextbla € bla\stoptext- What is the right syntax to get "hz,normal" ?I tried \setupfonthandling[highquality] and \setupalign[hanging,hz] butthese two commands don't seem to change anything. Test file:\starttext\input tufte\setupfonthandling[highquality]\setupalign[hanging,hz]\input tufte\stoptextTIA for any help!Cheers, Peter-- http://pmrb.free.fr/contact/___ntg-context mailing listntg-context@ntg.nlhttp://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] some small questions

2006-01-07 Thread Peter Münster
On Sat, 7 Jan 2006, Alan Bowen wrote:

 On your second question, I use
   \usetypescript[serif,sans,mono,mm][hanging][normal]
   \setupalign[hz,hanging]
 and place this in the preamble before the particular fonts are  
 introduced/defined,

Could you please send a minimal example?
I tried

\starttext
\input tufte
\stoptext

and

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\starttext
\input tufte
\stoptext

But I see no difference...
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] followtokens font color

2006-01-07 Thread Willi Egger

Hi Renaud,

you can define a color with
\definecolor[brown] [r=.9,g=.8,b=0.6]

in your MEATPOST code you can say things like
   drawoptions(withcolor \MPcolor{brown})  i.e. that all will be 
drawn in borwn
  draw ... withcolor \MPcolor{brown} i.e. append the color to the 
drawing statement.


Willi


Renaud AUBIN wrote:



Hi all,

I use \followtokens and I would colorize the text.
I've try some drawoptions or ConTeXt command to switch font color 
(i.e. {\red red text}) and nothing works. Is it possible to switch 
color during \definefont[RotFont][] ?

Any idea on how to do this ?

PS: Please, is there anyone who can answer to my thread [NTG-context] 
headers of multiple pages toc ?



Thanks




___
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] headers of multiple pages toc

2006-01-07 Thread Willi Egger


Hi Renaud,

Actually I have the thread deleted...
Still, if I remember correctly, you could do things like

\setupheadertexts[Mybook-title][Contents]
\completecontent[criterium=all, interaction=all]

Where \completecontent places a title and an entry in the TOC itself. 
The following pages of the TOC will get a header as setup with the 
setupheadertexts command.



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


[NTG-context] Generating smallest possible format file

2006-01-07 Thread Willi Egger

Hello gurus!

I want to use context as a backend-typesetting engine in a 
server-ennvironment. In order to minimize compilation time I want to 
make the format files as small as
possible. E.g. I would like to remove all pattern files which are 
unnecessary for the purpose of the application.


How do I achieve this?

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


[NTG-context] Monospace Fonts for Verbatim

2006-01-07 Thread Louis Springer
I have a typescript I am using for a custom font, but the custom font  
has no monospace variant appropriate for verbatim text. I'm  
attempting to use Courier or some other monospace font for verbatim  
and maintain my custom font for normally typeset serf text.


My broken typescript is as follows:

\starttypescript [map][sunsans,sunserif][texnansi]
\loadmapfile[texnansi-sun-sunsans.map]
\loadmapfile[texnansi-sun-sunserif.map]
\stoptypescript

% sans serif
\starttypescript [sans] [sunsans] [name]
\definefontsynonym[Sans][SunSans-Regular]
\definefontsynonym[SansItalic]  [SunSans-Italic]
\definefontsynonym[SansBold][SunSans-RegularDemi]
\definefontsynonym[SansBoldItalic]  [SunSans-Regular-BoldOblique]
\stoptypescript


\starttypescript [sans] [sunsans] [texnansi]
\usetypescript[sans][fallback]
\definefontsynonym[SunSans-Heavy][texnansi-SunSans-Heavy] 
[encoding=texnansi]
\definefontsynonym[SunSans-Italic][texnansi-SunSans-Italic] 
[encoding=texnansi]
\definefontsynonym[SunSans-Regular-Bold][texnansi-SunSans-Regular- 
Bold][encoding=texnansi]
\definefontsynonym[SunSans-Regular-BoldOblique][texnansi-SunSans- 
Regular-BoldOblique][encoding=texnansi]
\definefontsynonym[SunSans-Regular][texnansi-SunSans-Regular] 
[encoding=texnansi]
\definefontsynonym[SunSans-RegularDemi][texnansi-SunSans-RegularDemi] 
[encoding=texnansi]

\stoptypescript


%serif
\starttypescript [serif] [sunserif] [name]
\definefontsynonym[Serif]   [SunSerif-Regular]
\definefontsynonym[SerifItalic] [SunSerif-Italic]
\definefontsynonym[SerifBold]   [SunSerif-Regular-Bold]
\definefontsynonym[SerifBoldItalic] [SunSerif-Regular-Bold-Italic]
\stoptypescript


\starttypescript [serif] [sunserif] [texnansi]
\usetypescript[serif][fallback]
\definefontsynonym[SunSerif-Italic][texnansi-SunSerif-Italic] 
[encoding=texnansi]
\definefontsynonym[SunSerif-Regular-Bold-Italic][texnansi-SunSerif- 
Regular-Bold-Italic][encoding=texnansi]
\definefontsynonym[SunSerif-Regular-Bold][texnansi-SunSerif-Regular- 
Bold][encoding=texnansi]
\definefontsynonym[SunSerif-Regular][texnansi-SunSerif-Regular] 
[encoding=texnansi]

\stoptypescript

%monospace
\starttypescript [mono] [sunserif] [name]
\usetypescript[mono][fallback]
\definefontsynonym[Serif]   [Mono]
\stoptypescript


The last bit (around the comment monospace) is my apparently futile  
attempt to get the verbatim to use the default monospace font. I get  
the desired results with a kludge if I replace


\definefontsynonym[Serif]   [SunSerif-Regular]

with

\definefontsynonym[Serif]   [Mono]

but this affects normally typeset serif. Ideally,  I would like to  
have in the  SunSerif-Regular typeface for non-verbatim serif text.



Lou



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


[NTG-context] vertical stretch problem

2006-01-07 Thread Peter Münster
Hello,
please consider the following example:

\setupalign[line]% because I want something like flush-bottom
\starttext
\chapter{Anhang}
\section{Sec1}
\input tufte

\placetable{bla}{\vbox to 18cm{bla}}

\section{Sec2}
\input tufte
\stoptext

Of course, vertical stretch is good, but not *after* the section titles,
better would be *before*.

How could I better distribute the stretch?

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] some small questions

2006-01-07 Thread Peter Münster
On Sat, 7 Jan 2006, Peter Münster wrote:

 I understand serif, sans and mono, but what is mm ?

Ok, I asked too fast... Seems to be math!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Monospace Fonts for Verbatim

2006-01-07 Thread Willi Egger

Hi Louis,

The solution is to be found in defining a typeface which points to the 
serif, sansserif, math and teletype fonts to be used. Asn an example:


\starttypescript [palatino] [texnansi,ec,qx,8r,t5,uc]
 \definetypeface [palatino] [rm] [serif] [palatino] [default] 
[encoding=\typescripttwo]
 \definetypeface [palatino] [tt] [mono]  [modern]   [default] 
[encoding=\typescripttwo,rscale=1.075]
 \definetypeface [palatino] [mm] [math]  [palatino] [default] 
[encoding=default]

% \usemathcollection[default]
 \quittypescriptscanning
\stoptypescript

this is taken from type-exa.tex

Willi

Louis Springer wrote:

I have a typescript I am using for a custom font, but the custom font  
has no monospace variant appropriate for verbatim text. I'm  
attempting to use Courier or some other monospace font for verbatim  
and maintain my custom font for normally typeset serf text.


My broken typescript is as follows:

\starttypescript [map][sunsans,sunserif][texnansi]
\loadmapfile[texnansi-sun-sunsans.map]
\loadmapfile[texnansi-sun-sunserif.map]
\stoptypescript

% sans serif
\starttypescript [sans] [sunsans] [name]
\definefontsynonym[Sans][SunSans-Regular]
\definefontsynonym[SansItalic][SunSans-Italic]
\definefontsynonym[SansBold][SunSans-RegularDemi]
\definefontsynonym[SansBoldItalic][SunSans-Regular-BoldOblique]
\stoptypescript


\starttypescript [sans] [sunsans] [texnansi]
\usetypescript[sans][fallback]
\definefontsynonym[SunSans-Heavy][texnansi-SunSans-Heavy] 
[encoding=texnansi]
\definefontsynonym[SunSans-Italic][texnansi-SunSans-Italic] 
[encoding=texnansi]
\definefontsynonym[SunSans-Regular-Bold][texnansi-SunSans-Regular- 
Bold][encoding=texnansi]
\definefontsynonym[SunSans-Regular-BoldOblique][texnansi-SunSans- 
Regular-BoldOblique][encoding=texnansi]
\definefontsynonym[SunSans-Regular][texnansi-SunSans-Regular] 
[encoding=texnansi]
\definefontsynonym[SunSans-RegularDemi][texnansi-SunSans-RegularDemi] 
[encoding=texnansi]

\stoptypescript


%serif
\starttypescript [serif] [sunserif] [name]
\definefontsynonym[Serif][SunSerif-Regular]
\definefontsynonym[SerifItalic][SunSerif-Italic]
\definefontsynonym[SerifBold][SunSerif-Regular-Bold]
\definefontsynonym[SerifBoldItalic][SunSerif-Regular-Bold-Italic]
\stoptypescript


\starttypescript [serif] [sunserif] [texnansi]
\usetypescript[serif][fallback]
\definefontsynonym[SunSerif-Italic][texnansi-SunSerif-Italic] 
[encoding=texnansi]
\definefontsynonym[SunSerif-Regular-Bold-Italic][texnansi-SunSerif- 
Regular-Bold-Italic][encoding=texnansi]
\definefontsynonym[SunSerif-Regular-Bold][texnansi-SunSerif-Regular- 
Bold][encoding=texnansi]
\definefontsynonym[SunSerif-Regular][texnansi-SunSerif-Regular] 
[encoding=texnansi]

\stoptypescript

%monospace
\starttypescript [mono] [sunserif] [name]
\usetypescript[mono][fallback]
\definefontsynonym[Serif][Mono]
\stoptypescript


The last bit (around the comment monospace) is my apparently futile  
attempt to get the verbatim to use the default monospace font. I get  
the desired results with a kludge if I replace


\definefontsynonym[Serif][SunSerif-Regular]

with

\definefontsynonym[Serif][Mono]

but this affects normally typeset serif. Ideally,  I would like to  
have in the  SunSerif-Regular typeface for non-verbatim serif text.



Lou



___
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] framed texts and other minipage

2006-01-07 Thread Maurice Diamantini (dom)


Le 7 janv. 06 à 13:50, Hans Hagen a écrit :


No, that will not work.
After much probing I found the culprit.
The framedtext takes the full linewidth and apparently does not   
reduces it to the given size.

Therefore enclosing in a vbox seems necessary:
   \vbox{\hsize=framesize\startframedtext{width=framesize ...

Question for Hans Hagen: is it an option letting framedtext set  
the  hsize when a specific width is given?


\hbox to \hsize \bgroup
   \startframedtext[none][width=.5\textwidth]
   \input tufte
   \stopframedtext
   \startframedtext[none][width=.5\textwidth]
   \input zapf
   \stopframedtext
\egroup


Why is it not possible to simply use the \framed command (with some  
magic option to

put text into it) to do the obove thing?
   \startframed[width=.5\textwidth, ]
   \input tufte
   \stopframed
   \startframed[width=.5\textwidth, ]
   \input zapf
   \stopframed

If it is impossible, is there any equivalent to de minipage or  
\parbox LaTeX

equivalent?

-- Maurice



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