Re: [NTG-context] Choosing an encoding - what are the consequences?

2005-02-17 Thread Henning Hraban Ramm
Am 15.02.2005 um 15:50 schrieb Adam Lindsay:
3. Somewhere I read that texnansi is a preferred encoding. Why?
I think it's got the most useful (to Hans) glyphs packed in there.
Compare texnansi and ec encodings and decide which of these fits your 
needs.
AFAIK ec has some more eastern european signs.

Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Framed text splitting over pages

2005-02-17 Thread Slawek Zak
On Wed, Feb 16, 2005 at 02:28:55PM +0100, Hans Hagen wrote:
 It gives me frame too, but definetextbackground doesn't accept 
 framecorner=round
 
 \setupcolors[state=start]
 
 \definetextbackground[zak][state=start,corner=round,radius=10pt]

Argh. You got me here :)

gridtype=\getvalue{\??td#1\c!alternative},
filltype=\getvalue{\??td#1\c!background},
linetype=\getvalue{\??td#1\c!frame},
gridcolor=\getvalue{\??td#1\c!framecolor},
linecolor=\getvalue{\??td#1\c!framecolor},
fillcolor=\getvalue{\??td#1\c!backgroundcolor},
filloffset=\getvalue{\??td#1\c!backgroundoffset},
gridwidth=\getvalue{\??td#1\c!rulethickness},
linewidth=\getvalue{\??td#1\c!rulethickness},
lineradius=\getvalue{\??td#1\c!radius}}}%

Thanks for this. Will come handy.

Best Regards, /S
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] AntykwaTorunska fonts: how to use ?

2005-02-17 Thread Hans Hagen
VnPenguin wrote:
Hi all,
Until now, following the guide at http://contextgarden.net/Vietnamese
I can use vietnamese UTF-8:
---
\enableregime[utf]
\setupencoding[default=t5]
\usetypescript[palatino][t5]
\setupbodyfont[palatino,12pt]
\starttext
Vietnamese UTF8 text here 
\stoptext
---

Just found that the font AntykwaTorunska has also t5 enc (vietnamese
support confirmed by font's author too): in file
map/dvips/antt/t5-antt.map I see:
t5-anttb AntykwaTorunska-Bold enct5-antt ReEncodeFont t5-antt.enc anttb.pfb
t5-anttl AntykwaTorunskaLigh-Regular enct5-antt ReEncodeFont
t5-antt.enc anttl.pfb
t5-anttm AntykwaTorunskaMed-Regular enct5-antt ReEncodeFont
t5-antt.enc anttm.pfb
t5-anttr AntykwaTorunska-Regular enct5-antt ReEncodeFont
t5-antt.enc anttr.pfb
...
But unfortunately I don't know how to use it ? I have a look at
mfonts.pdf but this document is too technical for a ConTeXt's newbie
like me :)
Anyone could give me some help to use AntykwaTorunska fonts with t5
encoding please.
just add t5 to: (in type-enc)
\starttypescript [serif] 
[antykwa-torunska,antykwa-torunska-light,antykwa-torunska-cond,antykwa-torunska-lightcond] 
[texnansi,qx,t5,t2a,t2b,t2c]

\starttypescript [serif] 
[antykwa-torunska,antykwa-torunska-light,antykwa-torunska-cond,antykwa-torunska-lightcond] 
[texnansi,qx,t5]

and the following should work:
\definetypeface[TestA][rm][serif][antykwa-torunska]   
[default][encoding=t5]
\definetypeface[TestB][rm][serif][antykwa-torunska-light] 
[default][encoding=t5]
\definetypeface[TestC][rm][serif][antykwa-torunska-cond]  
[default][encoding=t5]
\definetypeface[TestD][rm][serif][antykwa-torunska-lightcond] 
[default][encoding=t5]
\setupbodyfont[TestA] \mainlanguage[vn]
\startbuffer
\labeltext {sunday} --
\labeltext {monday} --
\labeltext {tuesday} --
\labeltext {wednesday} --
\labeltext {thursday} --
\labeltext {friday} --
\labeltext {saturday}
\stopbuffer
\starttext
\startTEXpage[offset=10pt] \setupalign[middle]
{antikwa torunska: \TestA \getbuffer}\blank
{antikwa torunska light: \TestB \getbuffer}\blank
{antikwa torunska condensed: \TestC \getbuffer}\blank
{antikwa torunska light condensed: \TestD \getbuffer}
\stopTEXpage
\stoptext
(of course you need the latest antykwa fonts)
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib module: \cite with page numbers

2005-02-17 Thread Taco Hoekwater

David Munger wrote:
Hello,
Is it possible to get page numbers (or a chapter number) displayed in a
citation, e.g.
No, but it is fairly simple to fake using the low-level
\cite commands (untested):
  \setupcite[author,year][left=,right=] % disable braces
  \def\citewithpages[#1]#2{% new command
(\cite[author][#1], \cite[year][#1], #2)%
  }
  \citewithpages[davidson2001]{pp. 163-170}
Greetings, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] AntykwaTorunska fonts: how to use ?

2005-02-17 Thread VnPenguin
On Thu, 17 Feb 2005 10:05:05 +0100, Hans Hagen [EMAIL PROTECTED] wrote:
 
 just add t5 to: (in type-enc)
 
 \starttypescript [serif]
 [antykwa-torunska,antykwa-torunska-light,antykwa-torunska-cond,antykwa-torunska-lightcond]
 [texnansi,qx,t5,t2a,t2b,t2c]
 
 \starttypescript [serif]
 [antykwa-torunska,antykwa-torunska-light,antykwa-torunska-cond,antykwa-torunska-lightcond]
 [texnansi,qx,t5]

...

Thank you a lot Hans !

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


[NTG-context] URL to d-en-all.pdf

2005-02-17 Thread John Culleton
I want to point people to the d-en-all.pdf example on the pragma-ade.nl site. 
Unfortunately the navigation of the site is now all pdf based and my browsers 
don't handle that well.  Can someone either give me the URI for d-en-all.pdf 
or tell me how to navigate pragma-ade.nl in html only?
-- 
John Culleton
Short list of publishing/marketing books: 
http://wexfordpress.com/tex/shortlist.pdf
Book packagers/coaches/consultants: http://wexfordpress.com/tex/packagers.pdf
Printers who are SPAN sponsors: http://wexfordpress.com/tex/printers.pdf
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] URL to d-en-all.pdf

2005-02-17 Thread Taco Hoekwater
http://www.pragma-ade.com/texdemos/suite/d-en-all.pdf
John Culleton wrote:
I want to point people to the d-en-all.pdf example on the pragma-ade.nl site. 
Unfortunately the navigation of the site is now all pdf based and my browsers 
don't handle that well.  Can someone either give me the URI for d-en-all.pdf 
or tell me how to navigate pragma-ade.nl in html only?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] URL to d-en-all.pdf

2005-02-17 Thread Hans Hagen
John Culleton wrote:
I want to point people to the d-en-all.pdf example on the pragma-ade.nl site. 
Unfortunately the navigation of the site is now all pdf based and my browsers 
don't handle that well.  Can someone either give me the URI for d-en-all.pdf 
or tell me how to navigate pragma-ade.nl in html only?
eh ... all the info in pdf navigation is also there in html, just follow the 
'next' and 'prev' links

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] strange color change

2005-02-17 Thread Peter Münster
Hello,
could anybody explain, why the last 2 subsections have another color?

\setupinteraction[state=start]
\setupcolors[state=start]
\starttext
\placecontent
\dorecurse{6}{\section{a section}}
\dorecurse{6}{\subsection{a subsection}}
\stoptext

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] indenting and \placelocalfootnotes

2005-02-17 Thread Peter Münster
On Mon, 14 Feb 2005, Peter Münster wrote:

 Hello,
 to get the footnotes vertically aligned, a \setupindenting[none] is needed:
 
 \setupindenting[small]
 \starttext
 \startlocalfootnotes[n=0]
 bla\footnote{1. note}
 bla\footnote{2. note}
 bla\footnote{3. note}
 {\setupindenting[none]
 \placelocalfootnotes}
 \stoplocalfootnotes
 \stoptext

It seems, that this workaround is also needed with \placecontent etc.
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] strange color change

2005-02-17 Thread Hans Hagen
Peter Münster wrote:
Hello,
could anybody explain, why the last 2 subsections have another color?
\setupinteraction[state=start]
\setupcolors[state=start]
\starttext
\placecontent
\dorecurse{6}{\section{a section}}
\dorecurse{6}{\subsection{a subsection}}
\stoptext
actually, it's the reverse, i guess you can find out why if you compare
\placecontent
with
\placecontent \page
(the magic is in setting color as well as contrastcolor)
Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] help needed with special macro

2005-02-17 Thread Hans Hagen
Peter Münster wrote:
Hello,
could someone help me please with the following little macro?
Every line in the table should be different, but all are as the last one.
I've tried a lot with commands like \expanded{} or \expandafter etc, but
without results...
Perhaps the only solution is a temporary file?
\newcount\MyVersion
\def\MyMacro#1{%
  \getgparameters[XXX][#1]
  \global\advance\MyVersion by 1
  \bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR
\expanded{\bTR ... \eTR}
}
table data is collected and processed four times so you need to freeze the 
content
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] help needed with special macro

2005-02-17 Thread Peter Münster
Hello,
could someone help me please with the following little macro?
Every line in the table should be different, but all are as the last one.
I've tried a lot with commands like \expanded{} or \expandafter etc, but
without results...
Perhaps the only solution is a temporary file?

\newcount\MyVersion
\def\MyMacro#1{%
  \getgparameters[XXX][#1]
  \global\advance\MyVersion by 1
  \bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR
}
\starttext
\bTABLE
\bTR \bTD Version \eTD \bTD Date \eTD \eTR
\MyMacro{Date=1.2.2005}
\MyMacro{Date=3.4.2005}
\MyMacro{Date=5.6.2005}
\eTABLE
\stoptext

TIA for any hint!
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] help needed with special macro

2005-02-17 Thread Peter Münster
On Thu, 17 Feb 2005, Hans Hagen wrote:

  \expanded{\bTR ... \eTR}
  }
 
 table data is collected and processed four times so you need to freeze
 the content

This one of the possibilities, that I've tried, but I get this error:
ERROR: Use of \dododecrement doesn't match its definition.
Peter

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


[NTG-context] Re: Choosing an encoding - what are the consequences?

2005-02-17 Thread Stefan Wachter
Adam Lindsay wrote:
 Okay, as far as I know, ConTeXt doesn't have an 8a/Adobe encoding vector
 defined yet.
What does it mean that ConTeXt doesn't have an 8a/Adobe encoding vector? 
Isn't it enough for ConTeXt that there is an 8a.enc file? (I am prepared 
to write the necessary typescripts myself.)



2. Can I ommit the 8a encoding in map files when PDF documents are
generated (because it is the Adobe standard encoding)?


 Dunno. But it's worth finding out! :)
I installed the Adobe Helvetica fonts in 8a encoding using texfont. Then 
I removed the download instructions in the generated map files. After 
that I could generate PDF documents that are rather minimal: no fonts or 
encodings were embedded.

Yet, the results were in some way unexpected. It seems that the 8a 
encoding really isn't supported by ConTeXt. For example if I say

\setupencoding[default=8a]
and output the character \char251
then I get a ß in the resulting PDF. I am very astonished to receive 
that character because in 8a, T1, and texnansi encoding the glyph 
/ucircumflex is located at that slot.

Maybe this has to do with virtual fonts? I still struggle with all these 
matters.

1. The afm2tfm tool allows to set two different encodings: -p ps-enc 
and -t tex-enc whereas texfont offers only one encoding. Does texfont 
use the same encoding for the ps-enc and the tex-enc?

2. What is the meansing of the ps-enc and the tex-enc, respectively?
Can anyone help with these questions?
--Stefan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Willi Egger
Hi Peter,
your code works if you say \in{section}[bla]. \in is normally used with 
a indicator what you are referencing.

\at{page}[bla]
\about[bla]
Using
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english
Willi
Peter Münster wrote:
Hello,
when I compile the following product, I get this error:
unknown reference [][bla]
\startproduct product
\project project
\section[bla]{bla}
test: \in[bla]
\stopproduct
This is the project file:
\startproject project
\useencoding[ffr]
\mainlanguage[fr]
\product product
\stopproject
Could someone help please?
Greetings, Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange color change

2005-02-17 Thread Willi Egger
Hi Peter,
your code does work here i.e. no colorchange in the last two subsections.
Using:
  TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
  pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
  ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english
Willi
Peter Münster wrote:
Hello,
could anybody explain, why the last 2 subsections have another color?
\setupinteraction[state=start]
\setupcolors[state=start]
\starttext
\placecontent
\dorecurse{6}{\section{a section}}
\dorecurse{6}{\subsection{a subsection}}
\stoptext
Cheers, Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange color change

2005-02-17 Thread Willi Egger
Oeps!
Sorry for this one. - One should look closer before answering, 
especially  I should know, that my red-green abilities are not 100% ;-]

Willi
Willi Egger wrote:
Hi Peter,
your code does work here i.e. no colorchange in the last two subsections.
Using:
  TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
  pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
  ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english
Willi
Peter Münster wrote:
Hello,
could anybody explain, why the last 2 subsections have another color?
\setupinteraction[state=start]
\setupcolors[state=start]
\starttext
\placecontent
\dorecurse{6}{\section{a section}}
\dorecurse{6}{\subsection{a subsection}}
\stoptext
Cheers, Peter
___
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] URL to d-en-all.pdf

2005-02-17 Thread John Culleton
On Thursday 17 February 2005 11:52, Hans Hagen wrote:
 John Culleton wrote:
  I want to point people to the d-en-all.pdf example on the pragma-ade.nl
  site. Unfortunately the navigation of the site is now all pdf based and
  my browsers don't handle that well.  Can someone either give me the URI
  for d-en-all.pdf or tell me how to navigate pragma-ade.nl in html only?

 eh ... all the info in pdf navigation is also there in html, just follow
 the 'next' and 'prev' links

 Hans

Don't find these on the showcase.pdf page, unfortunately. . And both Konqueror 
and Mozilla use external PDF readers.  The anchors within the pdf's are 
apparently relative and not absolute.  Quit works but not the others. 
-- 
John Culleton
Short list of publishing/marketing books: 
http://wexfordpress.com/tex/shortlist.pdf
Book packagers/coaches/consultants: http://wexfordpress.com/tex/packagers.pdf
Printers who are SPAN sponsors: http://wexfordpress.com/tex/printers.pdf
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] reference error with startproduct

2005-02-17 Thread Peter Münster
On Thu, 17 Feb 2005, Willi Egger wrote:

 your code works if you say \in{section}[bla]. \in is normally used with 
 a indicator what you are referencing.
 
 \at{page}[bla]
 \about[bla]
 
 Using
   TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
   pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
   ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english

Hi Willi,
even with \in{section}[bla] I get an error...

Using:
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
ConTeXt  ver: 2005.01.31  fmt: 2005.2.17  int: english  mes: english

So, should I downgrade???

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] reference error with startproduct

2005-02-17 Thread Willi Egger
Hi Peter,
I would definitely not downgrade!
I tried your example with the alpha-version and the result is ok.
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.02.14  fmt: 2005.2.15  int: english  mes: english
Best,
Willi
Peter Münster wrote:
On Thu, 17 Feb 2005, Willi Egger wrote:

your code works if you say \in{section}[bla]. \in is normally used with 
a indicator what you are referencing.

\at{page}[bla]
\about[bla]
Using
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
 ConTeXt  ver: 2005.01.26  fmt: 2005.1.26  int: english  mes: english

Hi Willi,
even with \in{section}[bla] I get an error...
Using:
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
ConTeXt  ver: 2005.01.31  fmt: 2005.2.17  int: english  mes: english
So, should I downgrade???
Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context