[NTG-context] Re: How to switch between fonts?

2005-03-18 Thread Stefan Wachter
Hi Hans,
thanks for the information. I changed my test document accordingly and 
deleted obsolete parts from the typescript.

When I use the builtInPostscript or the reencodedPostscript as the 
sole body font then the document is typeset correctly. Yet, if I try to 
switch the family for example to the reencodedPostscript then the text 
that follows after the switch does not appear in the created PDF document.

Do you have an idea?
--Stefan
\enableregime[il1]
\setupencoding[default=texnansi]
\setupoutput[pdftex]
\pdfoptionpdfminorversion 4
\usetypescriptfile[smallpdf.tex]
\definetypeface [builtInPostscript] [rm] [serif] [times] [default] 
[encoding=ec]
\definetypeface [builtInPostscript] [ss] [sans]  [helvetica] [default] 
[encoding=ec]
\definetypeface [builtInPostscript] [tt] [mono]  [courier]   [default] 
[encoding=ec]
%\definetypeface [builtInPostscript] [mm] [math]  [times] [default]

\usetypescript[reencode][texnansi][texnansi]
\definetypeface [reencodedPostscript] [rm] [serif] [times] [default] 
[encoding=texnansi]
\definetypeface [reencodedPostscript] [ss] [sans]  [helvetica] [default] 
[encoding=texnansi]
\definetypeface [reencodedPostscript] [tt] [mono]  [courier]   [default] 
[encoding=texnansi]
%\definetypeface [reencodedPostscript] [mm] [math]  [times] [default]

\setupbodyfont[builtInPostscript,sans,15pt]
\mainlanguage[de]
\setupheadertexts[]
\def\Show{This is a test. 45\char176 \quotedblbase äöüßÄÖÜ\quotedblleft}
\def\ShowVariants{\Show\par{\bf\Show}\par{\it\Show}\par{\bi\Show}\par}
\starttext\pdfmapfile{+smallpdf.map}
{\ss Helvetica\par\ShowVariants}
{\rm Times-Roman\par\ShowVariants}
{\tt Courier\par\ShowVariants}
\reencodedPostscript
{\ss Helvetica\par\ShowVariants}
{\rm Times-Roman\par\ShowVariants}
{\tt Courier\par\ShowVariants}
\stoptext



smallpdf.tex
Description: TeX document
raw-phvr8a Helvetica
raw-phvb8a Helvetica-Bold
raw-phvbo8a Helvetica-BoldOblique
raw-phvro8a Helvetica-Oblique
raw-ptmr8a Times-Roman
raw-ptmb8a Times-Bold
raw-ptmbi8a Times-BoldItalic
raw-ptmri8a Times-Italic
raw-pcrr8a Courier
raw-pcrb8a Courier-Bold
raw-pcrbo8a Courier-BoldOblique
raw-pcrro8a Courier-Oblique
raw-psyr Symbol
raw-pzdr ZapfDingbats

texnansi-raw-phvb8a Helvetica-Bold  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-phvro8a Helvetica-Oblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-phvr8a Helvetica  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-phvbo8a Helvetica-BoldOblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-pcrb8a Courier-Bold  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-pcrbo8a Courier-BoldOblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-pcrr8a Courier  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-pcrro8a Courier-Oblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-ptmr8a Times-Roman  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-ptmri8a Times-Italic  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-ptmbi8a Times-BoldItalic  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-ptmb8a Times-Bold  TeXnANSIEncoding ReEncodeFont  texnansi.enc
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: How to switch between fonts?

2005-03-18 Thread Stefan Wachter
hard to test without those tfm files (i don't want to clobber my system 
by generating them; also, i never use the p* variants)
I created the vf and tfm files with the attached script. Maybe you can 
setup a local directory? Creating these fonts simply needs the following 
calls (the files are generated in the current directory!):

fonts.sh path-to-afm-dir adobe helvetic ec
fonts.sh path-to-afm-dir adobe times ec
fonts.sh path-to-afm-dir adobe courier ec
fonts.sh path-to-afm-dir adobe helvetic texnansi texnansi
fonts.sh path-to-afm-dir adobe times texnansi texnansi
fonts.sh path-to-afm-dir adobe courier texnansi texnansi
The first three calls generate virtual fonts that are base on raw fonts 
with default encoding and the last three calls generate virtual fonts 
that are based on texnansi reencoded raw fonts.

(After studying texfont I think that generating fonts based on the 
default encoding of raw fonts is not possible with texfont.)

I think the generate vf and tfm files are correct because they can be 
used without problems as long as no family switching occurs.

Is there a specific reason why the p* variants should not be used? I 
hoped that they are very similar to what is present in the different 
Acrobat Reader versions.


looking at your map file:
there are no pfb files mentioned ... why?
I want to use the built in fonts because the size of the PDF documents 
must be as small as possible.

--Stefan


font.sh
Description: Bourne shell script
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Is there a bug in switching body fonts?

2005-03-17 Thread Stefan Wachter
Hi all,
I try to use two different postscript font families. The first family 
uses the  Acrobat fonts without embedding and without reencoding whereas 
the second family uses the Acrobat fonts without embedding but with 
reencoding.

For that means I wrote the typescript file below.
When I use the first family only everything works fine. Similarly, if I 
use the second family only everything also works fine. Yet, if I try to 
switch the body font in a document I get the following error message:

! Font \nullfont has only 7 fontdimen parameters.
to be read again
   \advance
\dohighlow ...#2\textfont 2\else #3ex\fi \advance
  \scratchdimen #4ex 
\kern 

\dogotofixed ...c!color {#1\presetgoto }}}\else #1
  \fi }
\doifreferencefoundelse ...ce \ifreferencefound #2
  \else #3\fi \egroup 
\dores...

\gotobox ...2]} {\hbox {\unknownreference {#2}#1}}
  \referentieinfo 
{}{#2}\eg...
argument ...}[\s!fnt :t:\internalfootreference ]
  \rawreference \s!fnt 
{\s!f...
...
l.27 {\ss Helvetica\par\ShowVariants
}

Can anyone help me with this problem?
Best regards,
--Stefan
The test document
=
\enableregime[il1]
\setupencoding[default=texnansi]
\setupoutput[pdftex]
\pdfoptionpdfminorversion 4
\usetypescriptfile[smallpdf.tex]
\usetypescript[reencode][texnansi][texnansi]
\usetypescript[postscript][texnansi]
\usetypescript[builtInPostscript][texnansi]
\setupbodyfont[postscript,sans,30pt]
\mainlanguage[de]
\setupheadertexts[]
\def\Show{This is a test.\footnote{Fußnote.} 45\char176 \quotedblbase 
äöüßÄÖÜ\quotedblleft}
\def\ShowVariants{\Show\par{\bf\Show}\par{\it\Show}\par{\bi\Show}\par}

\starttext\pdfmapfile{+smallpdf.map}
{\ss Helvetica\par\ShowVariants}
{\rm Times-Roman\par\ShowVariants}
{\tt Courier\par\ShowVariants}
\switchtobodyfont[builtInPostscript] % causes error an error
{\ss Helvetica\par\ShowVariants} % line 27
{\rm Times-Roman\par\ShowVariants}
{\tt Courier\par\ShowVariants}
\stoptext



smallpdf.tex
Description: TeX document
raw-phvr8a Helvetica
raw-phvb8a Helvetica-Bold
raw-phvbo8a Helvetica-BoldOblique
raw-phvro8a Helvetica-Oblique
raw-ptmr8a Times-Roman
raw-ptmb8a Times-Bold
raw-ptmbi8a Times-BoldItalic
raw-ptmri8a Times-Italic
raw-pcrr8a Courier
raw-pcrb8a Courier-Bold
raw-pcrbo8a Courier-BoldOblique
raw-pcrro8a Courier-Oblique
raw-psyr Symbol
raw-pzdr ZapfDingbats

texnansi-raw-phvb8a Helvetica-Bold  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-phvro8a Helvetica-Oblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-phvr8a Helvetica  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-phvbo8a Helvetica-BoldOblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-pcrb8a Courier-Bold  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-pcrbo8a Courier-BoldOblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-pcrr8a Courier  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-pcrro8a Courier-Oblique  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-ptmr8a Times-Roman  TeXnANSIEncoding ReEncodeFont  texnansi.enc
texnansi-raw-ptmri8a Times-Italic  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-ptmbi8a Times-BoldItalic  TeXnANSIEncoding ReEncodeFont  
texnansi.enc
texnansi-raw-ptmb8a Times-Bold  TeXnANSIEncoding ReEncodeFont  texnansi.enc
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to switch between fonts?

2005-03-16 Thread Stefan Wachter
Dear font experts!
For some weeks I try very hard to generate minimal PDF documents using 
the PDF base 14 fonts. Now the following problem popped up:

The Helvitica, Times, and Courier fonts have 8a as their default 
encoding. Unfortunately, the 8a encoding is somewhat incomplete because 
it misses some characters (eg. the degree character). In TeX I use 
texnansi encoding because it offers most of the special characters that 
I need.

If I use 8a encoding for the PDF document (in order to avoid reencoding) 
then the degree symbol is typeset by an embedded txsy font. The bad 
thing about this solution is that this degree character does not take 
care of \bf, \it, or \bi. Therefore the result is unsatisfactory.

If I use texnansi encoding for the PDF document then the degree symbol 
is typeset nicely. The disadvantage of this option is that now the 
built-in fonts are always reencoding which make some additional 2kb for 
the PDF document. I would like to have the reeconded font to be used 
only if it is really necessary.

Now I see two problems:
1. A particual problem in this situation
Is it possible to define font synonymes locally (i.e. inside a group)? 
In that case I could map the virtual fonts that are base on 8a encoded 
raw fonts into virtual fonts that are based on texnansi reencoded raw fonts.

I tried that but it seems that font synonymes are accepted only at the 
beginning.

2. A general problem
Provided that I write a set of typescripts for defining a typeface 
similar to the postscript typefaces of ConTeXt but based on other 
(virtual) fonts: is it possible to switch between these two typefaces. 
The switch must respect the current font characteristics (i.e. \ss, \rm, 
\tt, \bf, \it, \bi, and size).

Thanks for your attention,
--Stefan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: My way: Generating Small PDF Documents - more questions

2005-03-15 Thread Stefan Wachter
Hi Adam,
it now works nicely. One can use the built-in Acrobat fonts without 
embedding and reencoding simply by not specifiying a postscript encoding 
when using afm2tfm. In that case the inherent encoding of the font is 
used and virtual fonts take care of the mapping from the specified TeX 
encoding (e.g. ec) to the font inherent encoding. Great!

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


[NTG-context] Re: Times New Toman

2005-03-15 Thread Stefan Wachter
ishamid wrote:
Question: What is \typescriptthree?
I think it is the third parameter that is supplied to a typescript. In 
your case its value is always texnansi because your typescript does 
not allow several values for the third parameter.

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


[NTG-context] My way: Generating Small PDF Documents - more questions

2005-03-03 Thread Stefan Wachter
Hi all,
for some time I try to generate small PDF documents that have no 
embedded fonts and do not reencoding fonts. In the meantime I was quite 
successful and I wanted to share my insights with others. Comments are 
welcome!

I generated new ec-encoded virtual fonts for the standard Adobe fonts 
that are based on 8a-encoded raw fonts. In other words, I used afm2tfm 
with the TeX encoding set to ec and the postscript encoding set to 8a. 
(See below for a batch file that does this job). Then I wrote a small 
type script (smallpdf.tex) that defines the necessary font synonymes 
(see below). Finally I wrote a map file (smallpdf.map) that prevents the 
8a-encoded raw fonts from being embedded or reencoded (see below).

After all these preparations I can now generate PDF documents that use 
the builtin fonts. The following example generates a PDF document that 
is only 3389 bytes long whereas the corresponding document with 
embedding and reencoding is 112966 bytes long! Of course these numbers 
are not representative because the document contains only a few lines of 
text but uses 12 different fonts.

Finally two issues remain:
1. In which situations is the call of \usetypescript[adobekb][ec] 
necessary. I had the impression that it is only needed if the document 
contains characters that are not containted in the builtin fonts.

2. I would also like to use the builtin symbol character sets Zapf 
Dingbats and Zapf Chancery. Adam Lindsay already showed how Zapf 
Dingbats can be used without embedding (cf. 
http://homepage.mac.com/atl/tex/). But is there also a possibility to 
use it without reencoding?

Thanks for your attention,
--Stefan
Test document
===
\enableregime[il1]
\setupencoding[default=ec]
\setupoutput[pdftex]
\pdfoptionpdfminorversion 4
\usetypescriptfile[smallpdf.tex]
\usetypescript[adobekb][ec] % Seems to be necessary to access characters 
that are not contained in the builtin fonts.
\usetypescript[postscript][ec]

\setupbodyfont[postscript,sans,20pt]
\mainlanguage[de]
\setupheadertexts[]
\def\Show{This is a test. \quotedblbase äöüßÄÖÜ\quotedblleft}
\def\ShowVariants{\Show\par{\bf\Show}\par{\it\Show}\par{\bi\Show}\par}
\starttext\pdfmapfile{+smallpdf.map}
{\ss Helvetica\par\ShowVariants}
{\rm Times-Roman\par\ShowVariants}
{\tt Courier\par\ShowVariants}
\stoptext


Batch file for generating the fonts

# 1: directory that contains the afm-files.
# 2: font vendor (eg. adobe)
# 3: font collection (eg. times, helvetic, or courier)
if [ $# -ne 3 ] ; then
 echo Usage: $0 afm-dir vendor collection 12
 exit 1
fi
vfDir=fonts/vf/$2/$3/
tfmDir=fonts/tfm/$2/$3/
mapDir=fonts/map/pdftex/context/
mapFile=8a-$2-$3.map
rm $mapFile
for datei in `find $1/$2/$3 -name *.afm` ; do
   name=`basename $datei .afm`
   echo processing $name
   afm2tfm $name -v ec-$name -t ec.enc -p 8a.enc 8a-raw-$name  $mapFile
   vptovf ec-$name.vpl ec-$name.vf ec-$name.tfm
done
mkdir -p $vfDir $tfmDir $mapDir
mv *.vf $vfDir
mv *.tfm $tfmDir
rm *.vpl
mv *.map $mapDir
smallpdf.tex
=
% Use of virtual fonts that are based on 8a encoded fonts.
\starttypescript [sans] [helvetica] [texnansi,ec,8r]
 \definefontsynonym [Helvetica] [\typefaceencoding-phvr8a] 
[encoding=\typefaceencoding]
 \definefontsynonym [Helvetica-Bold][\typefaceencoding-phvb8a] 
[encoding=\typefaceencoding]
 \definefontsynonym [Helvetica-BoldOblique] 
[\typefaceencoding-phvbo8a][encoding=\typefaceencoding]
 \definefontsynonym [Helvetica-Oblique] 
[\typefaceencoding-phvro8a][encoding=\typefaceencoding]
\stoptypescript

\starttypescript [serif] [times] [texnansi,ec,8r]
 \definefontsynonym [Times-Roman]  [\typefaceencoding-ptmr8a] 
[encoding=\typefaceencoding]
 \definefontsynonym [Times-Bold]   [\typefaceencoding-ptmb8a] 
[encoding=\typefaceencoding]
 \definefontsynonym [Times-BoldItalic] 
[\typefaceencoding-ptmbi8a][encoding=\typefaceencoding]
 \definefontsynonym [Times-Italic] 
[\typefaceencoding-ptmri8a][encoding=\typefaceencoding]
\stoptypescript

\starttypescript [mono] [courier] [texnansi,ec,8r]
 \definefontsynonym [Courier] [\typefaceencoding-pcrr8a] 
[encoding=\typefaceencoding]
 \definefontsynonym [Courier-Bold][\typefaceencoding-pcrb8a] 
[encoding=\typefaceencoding]
 \definefontsynonym [Courier-BoldOblique] 
[\typefaceencoding-pcrbo8a][encoding=\typefaceencoding]
 \definefontsynonym [Courier-Oblique] 
[\typefaceencoding-pcrro8a][encoding=\typefaceencoding]
\stoptypescript

smallpdf.map
=
8a-raw-phvr8a Helvetica
8a-raw-phvb8a Helvetica-Bold
8a-raw-phvbo8a Helvetica-BoldOblique
8a-raw-phvro8a Helvetica-Oblique
8a-raw-ptmr8a Times-Roman
8a-raw-ptmb8a Times-Bold
8a-raw-ptmbi8a Times-BoldItalic
8a-raw-ptmri8a Times-Italic
8a-raw-pcrr8a Courier
8a-raw-pcrb8a Courier-Bold
8a-raw-pcrbo8a Courier-BoldOblique
8a-raw-pcrro8a Courier-Oblique
___
ntg-context mailing list
ntg-context@ntg.nl

[NTG-context] Several questions about format generation

2005-02-18 Thread Stefan Wachter
Hi all,
in the diverse documentation about ConTeXt installation I find the 
instruction

texexec --make ... --language ...
for generating format files. Several questions arise:
1. What is the consequence of selecting specific languages after the 
--make option? Have the generated formats the same functionality, i.e. 
do they differ only in the user interface? In particular, do the 
different formats have the same hyphenation capabilities?

2. In the How to install ConTeXt manual I read that the nl-format is 
needed for some postprocessing features built in texexec. Is this still 
valid? The TeXLive distribution of 2004 contains only the cont-en.fmt file.

3. Is using the --language xy option equivalent to the using the 
\mainlanguage[xy] macro?

4. In case that several format files exist: which one is selected by 
texexec?

Thanks for your attention,
--Stefan
___
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


[NTG-context] Re: Why uses Context 8r encoding used instead of the specified ec encoding?

2005-02-15 Thread Stefan Wachter
Hi Thomas,
thanks for the wealth of information. I see much clearer now.
--Stefan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


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

2005-02-15 Thread Stefan Wachter
Hi all!
I am on the burdensome path to understanding font handling in ConText. 
Now I wonder what the consequences are with choosing certain encodings.

For example if I choose 8a encoding (called Adobe standard encoding):
1. There are lots of empty slots in this encoding. What does ConText do 
if a symbol that is to be typeset is not contained in an encoding?

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

3. Somewhere I read that texnansi is a preferred encoding. Why?
Thanks for your attention,
--Stefan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Why uses Context 8r encoding used instead of the specified ec encoding?

2005-02-08 Thread Stefan Wachter
Hi all!
Fonts are driving my crazy! I have the following document that clearly 
states that the font encoding should be ec. Yet, somewhere behind the 
scenes the ec-encoded font uhvr8t is mapped into the 8r-encoded font 
uhvr8r.

Can someone reveal this deep secret?
Best regards,
--Stefan
PS: The pdfmapline instruction cause the uhvr8r font not to be embedded. 
Doing so proves that Context really uses the uhvr8r font and not the 
uhvr8t font.

\enableregime[il1]
\setupencoding[default=ec]
\setupoutput[pdftex]
\usetypescriptfile[pdf-typescript.tex]
\usetypescript[pdf]
\setupbodyfont[MyHelvetica,sans,20pt]
\setupheadertexts[]
\pdfoptionpdfminorversion 4
\starttext
\pdfmapline{=uhvr8r Helvetica TeXBase1Encoding ReEncodeFont 8r.enc}
This is a test.
\stoptext
With the typescriptfile pdf-typescript.tex:
\starttypescript [sans] [xhelvetica] [name]
 \writestatus{x}{y}
 \definefontsynonym [Sans][uhvr8t]  [encoding=ec]
 \definefontsynonym [SansBold][uhvb8t]  [encoding=ec]
 \definefontsynonym [SansItalic]  [uhvro8t] [encoding=ec]
 \definefontsynonym [SansSlanted] [uhvro8t] [encoding=ec]
 \definefontsynonym [SansBoldItalic]  [uhvbo8t] [encoding=ec]
 \definefontsynonym [SansBoldSlanted] [uhvbo8t] [encoding=ec]
 \definefontsynonym [SansCaps][uhvr8t]  [encoding=ec]
\stoptypescript
\starttypescript [pdf]
 \definetypeface [MyHelvetica] [ss] [sans] [xhelvetica] [default] 
[encoding=ec]
\stoptypescript

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


[NTG-context] Re: How to use and not embed the PdfBase14 fonts?

2005-02-02 Thread Stefan Wachter
Hi Hans,
after a lot of experiments I could generate a PDF document where the 
built-in Helvetica font is used. Yet, there are some open questions:

1. The \loadmapfile makro seems not to work. I tried lots of variants. 
Only direct use of the pdfTex makro \pdfmapfile was successful.

2. In the praeambel I specify the enconding to be ec. Yet, in the map 
file I had to define a mapping for an 8r encoded font!

3. Texexec shows some warnings during the run. Maybe they are related to 
the second question. The warnings are:

Warning: pdfetex (file ec-urw-courier.map): cannot open font map file
Warning: pdfetex (file ec-urw-helvetica.map): cannot open font map file
Warning: pdfetex (file ec-urw-times.map): cannot open font map file
Can you please have a short look on these questions?
Best regards,
--Stefan
Here is my test document:
\enableregime[il1]
\setupoutput[pdftex]
\usetypescript[adobekb][ec]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,sans,12pt]
\mainlanguage[de]
\setupheadertexts[]
\pdfoptionpdfminorversion 4
\starttext
\pdfmapfile{=embed.map}%
This is a test.
\stoptext
And here is the map file embed.map:
%phvb8t Helvetica-Bold TeXBase1Encoding ReEncodeFont ec.enc
%phvbo8t Helvetica-BoldOblique TeXBase1Encoding ReEncodeFont ec.enc
%phvr8t Helvetica TeXBase1Encoding ReEncodeFont ec.enc
%phvro8t Helvetica-Oblique TeXBase1Encoding ReEncodeFont ec.enc
%uhvb8t Helvetica-Bold TeXBase1Encoding ReEncodeFont ec.enc
%uhvbo8t Helvetica-BoldOblique TeXBase1Encoding ReEncodeFont ec.enc
%uhvr8t Helvetica TeXBase1Encoding ReEncodeFont ec.enc
%uhvro8t Helvetica-Oblique TeXBase1Encoding ReEncodeFont ec.enc
phvr8r Helvetica TeXBase1Encoding ReEncodeFont 8r.enc
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: How to use and not embed the PdfBase14 fonts?

2005-02-01 Thread Stefan Wachter
Hi Hans and Hartmut,
thanks for the information. I looked at the type-akb.tex file and found 
that the fonts phvb8t, phvbo8t, phvr8t, and phvro8t are used.

I wrote the following small map file (named embed.map):
= phvb8t Helvetica-Bold TeXBase1Encoding ReEncodeFont ec.enc
= phvbo8t Helvetic-BoldOblique TeXBase1Encoding ReEncodeFont ec.enc
= phvr8t Helvetica TeXBase1Encoding ReEncodeFont ec.enc
= phvro8t Helvetica-Oblique TeXBase1Encoding ReEncodeFont ec.enc
= uhvb8t Helvetica-Bold TeXBase1Encoding ReEncodeFont ec.enc
= uhvbo8t Helvetic-BoldOblique TeXBase1Encoding ReEncodeFont ec.enc
= uhvr8t Helvetica TeXBase1Encoding ReEncodeFont ec.enc
= uhvro8t Helvetica-Oblique TeXBase1Encoding ReEncodeFont ec.enc
(I included the mappings for the uhv... fonts just to be sure.)
I think that the space after the leading = is necessary because 
otherwise an error is reported by pdfeTeX.

The PDF document produced by the following input still contains an 
embedded font: NimbusSanL-Regu (comming from uhvr8a.pfb).

\enableregime[il1]
\usetypescript[adobekb][ec]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,sans]
\mainlanguage[de]
\setupheadertexts[]
\setupoutput[pdftex]
\pdfoptionpdfminorversion 4
\loadmapfile[embed.map]
\starttext
This is a test.
\stoptext
This is the log:
 TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
executable : pdfetex
format : cont-en
 inputfile : font
output : standard
 interface : en
  current mode : none
   TeX run : 1
This is pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
 %-line parsing enabled.
 (/opt/texlive2004/texmf/web2c/natural.tcx)
output format initialized to DVI
entering extended mode
(./font.tex
ConTeXt  ver: 2004.11.17  fmt: 2005.1.31  int: english  mes: english
language   : language en is active
protectionstate 0
system : cont-new loaded
(/opt/texlive2004/texmf-dist/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 1083]
system (E-TEX) : [line 1138]
)
system : cont-old loaded
(/opt/texlive2004/texmf-dist/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/opt/texlive2004/texmf-dist/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
system : cont-sys.rme loaded
(/opt/texlive2004/texmf-dist/tex/context/user/cont-sys.rme
fonts  : [berry] [ec] []
(/opt/texlive2004/texmf-dist/tex/context/base/type-syn.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-enc.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-siz.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-map.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-spe.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-exa.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-akb.tex))
bodyfont   : 12pt rm is loaded
language   : patterns de-texnansi:texnansi-3-2:2 
de-ec:ec-4-2:2 fr-t
exnansi:texnansi-5-2:2 fr-ec:ec-6-2:2 es-default:default-7-2:2 
it-texn
ansi:texnansi-8-2:2 it-ec:ec-9-2:2 nl-texnansi:texnansi-10-2:2 
nl-ec:e
c-11-2:2 loaded
specials   : tex,postscript,rokicki loaded
system : font.top loaded
(./font.top)
fonts  : [adobekb] [ec] []
(/opt/texlive2004/texmf-dist/tex/context/base/type-syn.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-enc.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-siz.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-map.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-spe.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-exa.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-akb.tex)
fonts  : [postscript] [ec] []
(/opt/texlive2004/texmf-dist/tex/context/base/type-syn.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-enc.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-siz.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-map.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-spe.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-exa.tex
fonts  : [postscript] [rm] [serif] [times] / ec
fonts  : [map] [ec] []
(/opt/texlive2004/texmf-dist/tex/context/base/type-syn.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-enc.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-siz.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-map.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-spe.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-exa.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-akb.tex)
fonts  : [serif,map] [times] [name,default,ec,special]
(/opt/texlive2004/texmf-dist/tex/context/base/type-syn.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-enc.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-siz.tex)
(/opt/texlive2004/texmf-dist/tex/context/base/type-map.tex)

[NTG-context] How to use and not embed the PdfBase14 fonts?

2005-01-31 Thread Stefan Wachter
Hi all!
I want to generate PDF documents that use the standard PDF fonts 
(Helvetica, Times-Roman, and Courier) and not to embed these fonts. With 
my former installation (TexLive-2003 and a ConText distribution of last 
autumn) this was possible by using the following lines in the praeambel:

\usetypescript[adobekb][texnansi]
\usetypescript[postscript][texnansi]
\setupbodyfont[postscript,ss,13pt]
(In addition, I had to configure pdfTeX by updmap --setoption 
pdftexDownloadBase14 false).

After I upgraded to TexLive-2004 this does no longer work!
I found that the typescript adobekb was replaced by type-akb. Yet, 
the encoding texnansi seems no longer to be available (Metafont 
complains that it can not find: texnansi-utmr8a). Changing the encoding 
to ec that still is available yields:

\usetypescript[type-akb][ec]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,ss,13pt]
Yet, using these lines in the praeambel results in a document that uses 
the NimbusSanL-Regu font, that clearly has to be embedded.

Does anyone know how the standard PDF fonts can be used while not being 
embedded?

Thanks for your attention,
Stefan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] problems with indented columnized itemization

2004-10-13 Thread Stefan Wachter
Hi all,
I try to generate the following output:
Some Label  * item 1  * item 2   * item 3
* item 4  * item 4   * item 5
i.e. I want to have a label followed by an itemization that is set in 
columns.

I tried several things but did not succeede
1. Variant - a tabulate environment
\starttabulate[|l|p|]
\NC
\inframed[width=\LabelWidth,align=left]{Teilnehmer}\hskip\SepWidth
\NC
\startitemize[columns,three]
\item Bauherr
\item Architekt
\item Bauleiter
\stopitemize
\NC\NR
\stoptabulate
There the following problems: a) the itemization introduces an 
additional empty line and b) the [columns,three] parameter is not 
considered.

2. Variant - using a narrower
\startnarrower[left]
\startitemize[columns,three]
\item Bauherr
\item Architekt
\item Bauleiter
\stopitemize
\stopnarrower
The problem with this variant is that the coluns do not respect the 
right margin, i.e. the items reach beyond the paper.

Has anyone a solution for this problem?
Thanks for your attention,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to use the minimal Context distribution?

2004-10-12 Thread Stefan Wachter
Hi all,
I tried to use the new minimal Context distribution under Windows.
1. I unpacked the file mswintex.zip.bz2.
2. I added the folder tex/texmf-mswin/bin to the path.
3. I tried to execute texexec.
I got the the error message that the DLL tl80kpse.dll is not available.
Does anyone know what I have to do?
Thanks for your attention,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Is there a bug during pagination of external figures?

2004-08-19 Thread Stefan Wachter
Hi Hans,
thanks for the tip,
--Stefan
why not use
\goto[PreviousPage]{\symbol[...]}
\goto[NextPage]{\symbol...]}
or
\goto [forward]{\symbol[...]
\goto [backward]{...}
etc
(firstpage, lastpage, nextpage, previouspage, etc)
Hans
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: error with _ in header?

2004-08-19 Thread Stefan Wachter
Hi Hans,
thanks for your fix. It solves the problem. Will this fix be included in 
future Context releases?

I am still confused why the content of the document directory had an 
impact on the output routine. (The problem disappeared after I had 
removed additional *.png files in the document directory. When I copied 
the superflous images into there again the problem reappeard.) I accept 
that computing in general and Context in special is kind of an empirical 
secret science. ;-)

Thanks again,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Is there a bug during pagination of external figures?

2004-08-19 Thread Stefan Wachter
Hi Hans,
thanks for the additional hints. The width calculation method is very 
instructive. Yet, I think I can not use it, because I do not know in 
advance what kind of text is used as item labels. Maybe a label text 
contains already a comma. Is there another \processXXX-Makro for example 
\processampersandlist that can be used (because ampersands can not 
appear unescaped in normal text)?

--Stefan
PS: I found nowhere a description of \charwd
\def\determinecommalistwidth[#1]%
 {\scratchdimen\zeropoint
  \def\docommand##1%
{\setbox\scratchbox\hbox{##1}%
 \ifdim\wd\scratchbox\scratchdimen
   \scratchdimen\wd\scratchbox
 \fi}%
  \processcommalist[#1]\docommand}
\determinecommalistwidth[a),b),c)]
\the\scratchdimen
(or use \charwd cum suis)
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: error with _ in header?

2004-08-18 Thread Stefan Wachter
Hi Patrick,
first I want to say that I already spent several hours on that problem 
and was happy to reduce the file size to 5215 Bytes. Of course I could 
have done further but I thought that the file is now handy enough for 
debugging. (I do not know how TeX code is debugged and what tools are 
available for that task.)

 btw: with the error related to other files in the directory: did you
 run texutil --purgeall for testing?
Yes, I removed all temporary files. But the strange behaviour remains: 
when all images except that of the used external figure are removed then 
the error disappears.

--Stefan

Patrick Gundlach wrote:
Hello Stefan,

I prunned the example to investigate the situation further. Now I have
only two pages. 

Well, how do you think anybody should be able to debug what you have
done with all the stuff in your document? 


You should definitely try to reduce the file size to a minimum,
otherwise it is hard to track the problem down.

minimum is far from 150 kb. And please avoid external figures if
possible (there is cow.pdf hacker.jpg and mill.png for download, so
we can all have the same figures to experiment with).
Please do your homework yourself next time:
--
\setupoutput[pdftex]
\usetypescript[adobekb][texnansi]
\usetypescript[postscript][texnansi]
\setupbodyfont[postscript,ss,13pt]
\setupheadertexts[text][\_][]
\starttext
\dorecurse{10}{\input tufte \par}
\externalfigure[cow][scale=1424]
\externalfigure[cow][scale=1424]
\stoptext
--

Is the minimal test file I've come up with. Perhaps now it is easier
for Hans to track down the problem.  The error message is:

! Missing $ inserted.
inserted text 
$
to be read again 
   _
\_...fmmode \mathunderscore \else \textunderscore 
  \fi 
argument \_
 {}{}{}
\firstoftwoarguments #1#2-#1
 
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
  }\dostopattributes 
...
l.15 
 
--

btw: with the error related to other files in the directory: did you
run texutil --purgeall for testing?

Patrick
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Is there a bug during pagination of external figures?

2004-08-16 Thread Stefan Wachter
Patrick Gundlach wrote:
Stefan Wachter [EMAIL PROTECTED] writes:

Hi Hans,
I attach an example Context file and the included graphics.
Unfortunately the example is by far not minimal. 

The file is just a few bytes, no need to mention...
Just looking at the error message, I bet your problem is at:
\setupheadertexts[text][{\tfc 8}{\tfb-3\_refkom}][]
\setupheadertexts[margin][{\tfc bu}][\ifnum\pageno = 
1\NamedExternalLink{../../../../bu/8/8_3_refkom/1/inhalt.pdf}{last}{\symbol[PfeilNachLinks]{}
 §}\else\PrevOrNextPage{/PrevPage}{\symbol[PfeilNachLinks]{} 
§}\fi\hskip.5em\ifnum\pageno = \lastpage{§ 
\symbol[PfeilNachRechts]}\else\PrevOrNextPage{/NextPage}{§ 
\symbol[PfeilNachRechts]}\fi]
Patrick
Hi Patrick,
i do not think that the problem is caused by the header texts. The same
header text definition is used during all the document but the problem
is encountered only at a page with several external figures. In
addition, if I insert a new page in between the figures then the problem
disappears (cf. original bug report).
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to implement a changing navigation bar?

2004-08-16 Thread Stefan Wachter
Hi all,
I use an overlay to implement a navigation bar in the left margin of a 
document. It seems to me that the processing of the overlay is done only 
once and not for every page again. In addition, the \lastpage is not 
available.

Does anyone know a solution? Maybe headers/footers are a solution. But 
how is absolute positioning accomplished with them?

Thanks for your attention,
--Stefan
PS: Here is my current implementation:
\definelayer[navbar]
\setupbackgrounds[text][leftmargin][background=navbar]
\setlayer[navbar][x=0cm,y=10cm]{\the\pageno}

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to change the page size for single pages within a document

2004-08-06 Thread Stefan Wachter
Hi all,
is there a possibility to change the page size of single pages in a 
document.

Reason: I have a document that contains some large tables that do not fit on
normal pages. Therefore I would like to output such tables on a page of 
their
own having the neccessary size. (Of course the documents are not ment to be
printed. They are to be viewed with Acrobat.)

Thanks for your attention,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Is there a bug during pagination of external figures?

2004-08-06 Thread Stefan Wachter
Hi all!
Processing a large document containing the following lines:
start
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_1.png]
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_2.png]
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_3.png]
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_4.png]
stop
I encounter the following error:
! Missing $ inserted.
inserted text
   $
to be read again
  _
\_...fmmode \mathunderscore \else \textunderscore
 \fi
argument {\tfc 8}{\tfb -3\_
refkom}{}{}{}
\firstoftwoarguments #1#2-#1
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
 }\dostopattributes
...
l.2691
Line 2691 is the line after the fourth image. If I insert a page break 
before the fourth image

start
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_1.png]
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_2.png]
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_3.png]
\page
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_4.png]
stop
then the error disappears. It seems that Context tries to output the 
filename of the external figure somewhere during pagination. Yet, the 
filename is not ment to appear inside the document!

Does someone know how to work around this problem?
Thanks for your attention,
--Stefan


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Is there a bug during pagination of external figures?

2004-08-06 Thread Stefan Wachter
Hans Hagen wrote:
Stefan Wachter wrote:
Processing a large document containing the following lines:
start
\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_1.png] 

\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_2.png] 

\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_3.png] 

\externalfigure[/home/swachter/projekte/infotakt/vdp/export/bu/bu.ilboo/ziffer8.ilboo/bu8-3_refkom.ilboo/graphics.ilfdr/bu8-3_241-242_4.png] 

stop

is for some reason the _ an active character ?
In supp-fil you may try the following (add the \_ definition)
\bgroup
\catcode`\/=\@@active
\catcode`\:=\@@active
\catcode`\~=\@@active
\catcode`\_=\@@active
\gdef\sanitizefilename#1\to#2%
 {\bgroup
  \edef/{\string/}%
  \edef:{\string:}%
  \edef~{\string~}%
  \edef_{\string_}%
  \expanded{\xdef\noexpand\sanitizedfilename{#1}}%
  \egroup
  % maybe \convertcommand\sanitizedfilename\to#2%
  \let#2\sanitizedfilename}
\egroup
untested -)
Hans
Hi Hans,
thanks for the quick reply. I made the proposed changes but the error is 
still there. (I also run texexec --make ... and tried again.)

Do you have another idea that could solve the problem?
Thanks,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Can \note repeat its footnote?

2004-06-30 Thread Stefan Wachter
Hi Hans,
many thanks for your help. Now it works. Great!
I try to come along without having the same footnote marker for repeated 
footnotes. (This would make sense only if footnotes are sequentially 
numbered over a whole document.)

Thanks again,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Can \note repeat its footnote?

2004-06-23 Thread Stefan Wachter
Hi Hans,
thanks for your reply. Unfortunately your solution does not work 
correctly. The following example produces one footnote at the first page 
 but no footnote on the second page.

\starttext
funny\myfootnote[funny]{funny} funny\mynote[funny]
\page
funny\mynote[funny] funny\mynote[funny]
\stoptext
--Stefan
PS: Would it be possible to use the same footnote mark again when a 
footnote is repeated?

Hans Hagen wrote:
Stefan Wachter wrote:
Hi all!
The \note[xxx] command is used to reference a previously defined 
footnote. Is it possible that the previously defined footnote is 
repeated if a page break had occured between the \footnote[xxx]{bla 
bla bla} and the corresponding \note[xxx] command?

it's incredible what kin dof wishes users can come up with -)
\def\myfootnote[#1]#2% let's guess that #2 is without catcode problems  
 {\setxvalue{note:#1}{\footnote{#2}}\footnote[note:a:#1]{#2}}

\def\mynote[#1]%
 {\removeunwantedspaces
  \pagereference[note:b:#1]%
  \doifreferencefoundelse{note:a:#1}
{\edef\NotePageA{\number\currentrealreference}%
 \doifreferencefoundelse{note:b:#1}
   {\edef\NotePageB{\number\currentrealreference}%
\ifnum\NotePageA\NotePageB\relax
  \getvalue{note:#1}%
\else
  \note[note:a:#1]%
\fi}
   {\note[note:a:#1]}}
{\note[note:a:#1]}}
\starttext
test \myfootnote[funny]{first occurence} test\mynote[funny]
test \myfootnote[again]{first occurence} \page test \mynote[again]
\stoptext
hardly tested
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Can \note repeat its footnote?

2004-06-17 Thread Stefan Wachter
Hi all!
The \note[xxx] command is used to reference a previously defined 
footnote. Is it possible that the previously defined footnote is 
repeated if a page break had occured between the \footnote[xxx]{bla bla 
bla} and the corresponding \note[xxx] command?

Thanks for your attention,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Typescript for Helvetica - what's wrong?

2004-04-02 Thread Stefan Wachter
Adam Lindsay wrote:
Adam Lindsay said this at Thu, 1 Apr 2004 11:52:54 +0100:


When I do \showfont[zd], however, I see something resembling
Unicode vector 0x27nn. All it would take is a re-encoding to put the
glyphs in the right place.


Hey, does this PDF file work for everyone? 
No fonts are embedded in its 19Kb, but it gives a good outline of what's
available in the PDF-native ZapfDingbats font. 

Looks like another My Way is on its way. Email me off list if you'd
like to contribute as a tester.
\usesymbols[uni]
\definefontsynonym[UnicodeRegular27][zduni]
\showsymbolset[Unicode Dingbats][n=4]
It also works on Linux with Acrobat Reader 5.0.5.

--Stefan

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Typescript for Helvetica - what's wrong?

2004-04-01 Thread Stefan Wachter
Adam Lindsay wrote:
Stefan Wachter said this at Wed, 31 Mar 2004 18:17:29 +0200:


thanks for the help. After extracting the typescript code into a 
seperate typescript file everything works fine!


Ah, I remembered what Patrick did, now:
\usetypescript[adobekb][texnansi]
\usetypescript[times][texnansi]
\setupbodyfont[times,ss]
\starttext
This is Helvetica, {\bf bold}, {\it italic}, {\bi bold-italic},
{\tfa bigger} and {\tfx smaller}.
\stoptext
This minimal version worked for me. The typescripts are already there in
ConTeXt...
adam
Hi Adam,

I tried the code of Patrick. It works for Times and Helvetica. Yet, if I 
switch to monospace using \tt then Computer Modern fonts are used / 
embedded. In addition, all this typescripts stuff is so confusing for me 
that I prefer to use my own simple typescript.

Now I wonder how to integrate the PDF base 14 ZapfDingbats and Symbols 
font. Do you have a clue? Additionally, it would be great to have the 
math mode work, too (with embedding of course).

Thanks again,
--Stefan
PS: Here is the complete typescript:

\starttypescript [sans] [helvetica] [texnansi]
  \definefontsynonym [Helvetica] [hv]   [encoding=texnansi]
  \definefontsynonym [Helvetica-Bold][hvb]  [encoding=texnansi]
  \definefontsynonym [Helvetica-BoldOblique] [hvbo] [encoding=texnansi]
  \definefontsynonym [Helvetica-Oblique] [hvo]  [encoding=texnansi]
\stoptypescript
\starttypescript [sans] [helvetica] [name]
  \definefontsynonym [Sans][Helvetica]
  \definefontsynonym [SansBold][Helvetica-Bold]
  \definefontsynonym [SansItalic]  [Helvetica-Oblique]
  \definefontsynonym [SansSlanted] [Helvetica-Oblique]
  \definefontsynonym [SansBoldItalic]  [Helvetica-BoldOblique]
  \definefontsynonym [SansBoldSlanted] [Helvetica-BoldOblique]
  \definefontsynonym [SansCaps][Helvetica]
\stoptypescript
\starttypescript [serif] [times] [texnansi]
  \definefontsynonym [Times-Roman]  [tir]  [encoding=texnansi]
  \definefontsynonym [Times-Bold]   [tib]  [encoding=texnansi]
  \definefontsynonym [Times-BoldItalic] [tibi] [encoding=texnansi]
  \definefontsynonym [Times-Italic] [tii]  [encoding=texnansi]
\stoptypescript
\starttypescript [serif] [times] [name]
  \definefontsynonym [Serif] [Times]
  \definefontsynonym [SerifBold] [Times-Bold]
  \definefontsynonym [SerifItalic]   [Times-Italic]
  \definefontsynonym [SerifSlanted]  [Times-Italic]
  \definefontsynonym [SerifBoldItalic]   [Times-BoldItalic]
  \definefontsynonym [SerifBoldSlanted]  [Times-BoldItalic]
  \definefontsynonym [SerifCaps] [Times]
\stoptypescript
\starttypescript [mono] [courier] [texnansi]
  \definefontsynonym [Courier] [com]  [encoding=texnansi]
  \definefontsynonym [Courier-Bold][cob]  [encoding=texnansi]
  \definefontsynonym [Courier-BoldOblique] [cobo] [encoding=texnansi]
  \definefontsynonym [Courier-Oblique] [coo]  [encoding=texnansi]
\stoptypescript
\starttypescript [mono] [courier] [name]
  \definefontsynonym [Mono][Courier]
  \definefontsynonym [MonoBold][Courier-Bold]
  \definefontsynonym [MonoItalic]  [Courier-Oblique]
  \definefontsynonym [MonoSlanted] [Courier-Oblique]
  \definefontsynonym [MonoBoldItalic]  [Courier-BoldOblique]
  \definefontsynonym [MonoBoldSlanted] [Courier-BoldOblique]
  \definefontsynonym [MonoCaps][Courier]
\stoptypescript
\starttypescript [pdf]
  \definetypeface [pdf] [ss] [sans]  [helvetica] [default] 
[encoding=texnansi]
  \definetypeface [pdf] [rm] [serif] [times] [default] 
[encoding=texnansi]
  \definetypeface [pdf] [tt] [mono]  [courier]   [default] 
[encoding=texnansi]
\stoptypescript

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: How to rotate a single character on a line?

2004-04-01 Thread Stefan Wachter
Hans Hagen wrote:
At 16:22 23/03/2004, you wrote:

Hi all.

I want to use some arrows of the ZapfDingbats fonts. Most of the 
arrows included in this font are directed from left to right. I tried 
to use \rotate to produce arrows directed to different directions. 
Yet, rotate produces new lines.

Example:

\definefontsynonym[ZapfDingbats][zd]
\definefont[Zapf][ZapfDingbats at 24pt]
\rotate[rotation=180]{\Zapf\char234} {\Zapf\char234}

The example is intended to produce an arrow directed to the left 
followed by an arrow directed to the right. The result however is an 
arrow directed to the left followed by a new line with an arrow 
directed to the right.

intended:
- -
result:
-
-
Does someone know how the new line can be suppressed?


(untested)

\definesymbol[whatever][\dontleavehmode\rotate[rotation=180]{\getglyph{ZapfDingbats}{234}] 

\symbol[whatever]
Hi Hans,

thanks for the help. I had to enclose the symbol definition part in 
curly brackets:

\definesymbol[whatever][{\dontleavehmode\rotate[rotation=180]{\getglyph{ZapfDingbats}{234}}}]

Now the symbol is rotated without causing a new line. Yet, the rotated 
symbol appears below the current line:

text text - text
 -
Is there a possibility to specifiy the center of rotation?

Thanks again,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Typescript for Helvetica - what's wrong?

2004-03-30 Thread Stefan Wachter
Hi all!

I tried to write a typescript to use the Helvetica PDF base 14 fonts. 
Yet, the example below uses the (default) Computer Modern Roman fonts. I 
wrote the typescript along the lines of the excellent help document at 
(http://home.salamander.com/~wmcclain/context-help.html).

Thanks for your attention,
--Stefan
\enableregime[il1]
\setupoutput[pdftex]
\setuppapersize[A4][A4]
\setuplayout[leftmargindistance=0cm]
\setupheadertexts[]
\starttypescript [sans] [helvetica] [texnansi]
  \definefontsynonym [Helvetica] [hv]   [encoding=texnansi]
  \definefontsynonym [Helvetica-Bold][hvb]  [encoding=texnansi]
  \definefontsynonym [Helvetica-BoldOblique] [hvbo] [encoding=texnansi]
  \definefontsynonym [Helvetica-Oblique] [hvo]  [encoding=texnansi]
\stoptypescript
\starttypescript [sans] [helvetica] [name]
  \definefontsynonym [Sans][Helvetica]
  \definefontsynonym [SansBold][Helvetica-Bold]
  \definefontsynonym [SansItalic]  [Helvetica-Oblique]
  \definefontsynonym [SansSlanted] [Helvetica-Oblique]
  \definefontsynonym [SansBoldItalic]  [Helvetica-BoldOblique]
  \definefontsynonym [SansBoldSlanted] [Helvetica-BoldOblique]
  \definefontsynonym [SansCaps][Helvetica]
\stoptypescript
\starttypescript [pdf]
  \definetypeface [MyHelvetica] [ss] [sans] [helvetica] [default] 
[encoding=texnansi]
\stoptypescript

\usetypescript[pdf]
\setupbodyfont[MyHelvetica]
\starttext
This is Helvetica, {\bf bold}, {\it italic}, {\bi bold-italic},
{\tfa bigger} and {\tfx smaller}.
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: How to use and not embed the 14 PDF standard 14 fonts?

2004-03-23 Thread Stefan Wachter
Thanks for the comments, Alex and Vit!

I now start to understand the relationships. The

updmap --setoption pdftexDownloadBase14 false

command is very useful. I managed to create PDFs without embedded fonts. 
Yet, I did not find a usable typescript that has the necessary settings. 
Therefore it would be of great help if you could attach ready to use 
typescript.

--Stefan

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] 6 ways to ask for Times-Roman. Are they the same?

2004-03-23 Thread Stefan Wachter
Hi all.

Studying the pdftex.map file I found the following 6 TeX fonts that are 
used for Times-Roman:

ptmr8y, ptmr8r, rptmr, rtxptmr, tir and tmrm108r.

In the no download version of the map file, all these TeX fonts are 
mapped into Times-Roman. In the download the font utmr8a.pfb is 
embedded for them.

Are they the same? Is there a preferrable one? What role does the 
encoding play here?

Many thanks for your attention,
--Stefan
PS (Background): I try to write a type script for using the 14 base PDF 
fonts.

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to rotate a single character on a line?

2004-03-23 Thread Stefan Wachter
Hi all.

I want to use some arrows of the ZapfDingbats fonts. Most of the arrows 
included in this font are directed from left to right. I tried to use 
\rotate to produce arrows directed to different directions. Yet, rotate 
produces new lines.

Example:

\definefontsynonym[ZapfDingbats][zd]
\definefont[Zapf][ZapfDingbats at 24pt]
\rotate[rotation=180]{\Zapf\char234} {\Zapf\char234}

The example is intended to produce an arrow directed to the left 
followed by an arrow directed to the right. The result however is an 
arrow directed to the left followed by a new line with an arrow directed 
to the right.

intended:
- -
result:
-
-
Does someone know how the new line can be suppressed?

Thanks,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to use and not embed the 14 PDF standard 14 fonts?

2004-03-18 Thread Stefan Wachter
Hi all!

1. Does anyone know how to use the 14 PDF standard fonts (Courier, 
Helvetica, Times (each in 4 faces), Symbol, and ITC-Zapf) in ConTeXt?

2. Does anyone know how pdfTeX can be instructed not to embed them?

Thanks for your attention,
--Stefan
PS (Background): I am creating lots of small PDF documents where font 
embedding would create prohibitive large documents.

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Can itemize calculate optimal label widths?

2004-02-26 Thread Stefan Wachter
Hans Hagen wrote:
At 10:18 20/02/2004, you wrote:

Hi all!

Is there a possiblity to have itemize calculate the optimal label 
width itself? I have an itemize that has rather different labels, e.g.:

\startitemize
\sym{1.} An item
\sym{2.} Another item
\sym{103 a.} An item with a very broad label
\stopitemize
In this example the label 103 a. flows into the item text. It would 
be great if itemize would automatically use a label width that fits 
the broadest label.


for the moment use:

  \startitemize[2*broad]

and remind me in a few couple of weeks (months); it's on my mental to-do 
list (not that hard to implement probably)

Hans 
Ok - thanks for the reply.

Is there a (TeX-)dimension for the label width available? In other 
words: by which amount is the current text area narrowed after an item 
has started?

--Stefan



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Can itemize calculate optimal label widths?

2004-02-20 Thread Stefan Wachter
Hi all!

Is there a possiblity to have itemize calculate the optimal label width 
itself? I have an itemize that has rather different labels, e.g.:

\startitemize
\sym{1.} An item
\sym{2.} Another item
\sym{103 a.} An item with a very broad label
\stopitemize
In this example the label 103 a. flows into the item text. It would be 
great if itemize would automatically use a label width that fits the 
broadest label.

Thanks for your attention,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] strange dependency between cbox and whitespace?

2004-02-19 Thread Stefan Wachter
Hi all!

I came across the following behaviour: cboxes seem to suppress white 
space in certain conditions.

In the following example there is no whitespace output between paragraph 
no. 2 und 3. Yet, if I change \setupwhitespace to 'none' or if I do not 
enclose the paragraphs in cboxes then the whitespaces between the 
paragraphs appear as expected.

Does anyone know a workaround for this 'strange' behaviour of cboxes?

Thanks for your attention,
--Stefan
\setupoutput[pdftex]
\setupinteraction[openaction={firstpage,FitHeight},state=start]
\setupwhitespace[small]
\setupblank[100pt]
\def\Para#1{\cbox{#1 \dorecurse{10}{this is some paragraph text}}\par}
\starttext
\Para{1}
\blank[big]
\Para{2}
\blank[medium]
\Para{3}
\blank[small]
\Para{4}
\stoptext
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: proportional column widths in natural tables?

2004-02-16 Thread Stefan Wachter
Hi Hans,

thanks for the tip regarding the stretch option. I tried the option and 
had the impression that the table is streched if the sum of the widths 
of the columns is less then the available width.

Yet, if the sum of the widths exceeds the available width then the table 
is NOT shrunk! I tried other values for the option key (e.g. 'fit' or 
'{stretch, shrink}') but the table remained too broad.

Is there a possibility to make the table width fit the available width 
in any case? My temporary solution now converts the CALS proportional 
width weights into absolute widths with small units (e.g. 'pt'), hoping 
that the sum of these widths does not exceed the available width.

\setupTABLE[option=stretch]
\setupTABLE[column][1][width=10pt]
\setupTABLE[column][2][width=20pt]
\setupTABLE[column][3][width=30pt]
Best regards,
--Stefan
Hans Hagen wrote:
At 19:55 15/02/2004, you wrote:

Hi Willi,

thanks for your reply. Can you please tell me, what the makeupwidth is?

It seems that I have to do some calculations for the widths by myself: 
I have a CALS table model where the widths are specified by 
proportional weights. - I have to sum the weigths of all columns and 
divide each of the weights by this sum in order to get the necessary 
stretch factors for each column.

I hoped the ConTeXt has already a mechanism for this kind of 
specifiying the widths.


\setupTABLE[option=stretch]

-
  Hans Hagen | PRAGMA ADE/POD/CTS
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to setup german documents?

2004-02-16 Thread Stefan Wachter
Hi all!

I have a very basic question which occupies me for more than a week now: 
How to setup documents for german language properly, such that:

1. the used input encoding is ISO-8859-1,
2. german special character are available, and
3. german hyphenation patterns are used.
The setup shown below does not work: TeX is not able to hyphenate 
Änderungsabnahme and the \quotedblbase symbol is broader than its 
counterpart the \quotedblleft symbol.

Thanks for your attention and help,
--Stefan
\setupoutput[pdftex]
\enableregime[il1]
\usetypescript[times][ec]
\mainlanguage[de]
\starttext
äÄöÖüÜß

quotedblbase: \quotedblbase

quotedblleft: \quotedblleft

\showhyphens{Änderungsabnahme}

\stoptext

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: how to get bottom-vertical-alignment in (natural) table cells?

2004-02-15 Thread Stefan Wachter
Hi Willi,

thanks for your reply - it works. Just for completeness: is top 
alignment termed high?

Willi Egger wrote:
Hi Stefan,

May be not quit logic, but when replacing the bottom by low you get 
the desired result.

Kind regards

Willi

Stefan Wachter wrote:

Hi all!

I try to set a simple table that show the different horizontal and 
vertical alignment capabilities (see below):

horizontal: left, middle, right
vertical: top(?), lohi, bottom(?)
Yet, the bottom alignment does not work. The texts in the third column 
that should be placed at the bottom appear at the top of their cell.

Does anyone know how bottom alignment in table cells can be accomplished?

Many thanks for your attention.
--Stefan
\bTABLE[width=3cm,height=3cm]
\bTABLEbody
\bTR
\bTD[align={right,top}] top \eTD
\bTD[align={right,lohi}] middle \eTD
\bTD[align={right,bottom}] bottom \eTD
\eTR
\bTR
\bTD[align={middle,top}] top \eTD
\bTD[align={middle,lohi}] middle \eTD
\bTD[align={middle,bottom}] bottom \eTD
\eTR
\bTR
\bTD[align={left,top}] top \eTD
\bTD[align={left,lohi}] middle \eTD
\bTD[align={left,bottom}] bottom \eTD
\eTR
\eTABLEbody
\eTABLE
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: proportional column widths in natural tables?

2004-02-15 Thread Stefan Wachter
Hi Willi,

thanks for your reply. Can you please tell me, what the makeupwidth is?

It seems that I have to do some calculations for the widths by myself: I 
have a CALS table model where the widths are specified by proportional 
weights. - I have to sum the weigths of all columns and divide each of 
the weights by this sum in order to get the necessary stretch factors 
for each column.

I hoped the ConTeXt has already a mechanism for this kind of specifiying 
the widths.

--Stefan



Willi Egger wrote:
Hi Stefan

sorry for sending an answer to your previous mail as reply to this one

You can determin columnwidths by saying width=.3\textwidth or 
width=.3\makeupwidth or even though less ConTeXty width=.3\hsize

Wheter to use \textwidth or \makeupwidth depends on the context where 
your table is placed.

Kind regards
Willi
Stefan Wachter wrote:

Hi all!

Is there a possibility to specify proportional column widths when 
using natural tables?

E.g. If i want to set column 1 and 2 to have 2/7 and column 3 3/7 of 
the available broadth.

\setupTABLE[column][1][width=2*]
\setupTABLE[column][2][width=2*]
\setupTABLE[column][3][width=3*]
Thanks for your attention,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] how to get bottom-vertical-alignment in (natural) table cells?

2004-02-13 Thread Stefan Wachter
Hi all!

I try to set a simple table that show the different horizontal and 
vertical alignment capabilities (see below):

horizontal: left, middle, right
vertical: top(?), lohi, bottom(?)
Yet, the bottom alignment does not work. The texts in the third column 
that should be placed at the bottom appear at the top of their cell.

Does anyone know how bottom alignment in table cells can be accomplished?

Many thanks for your attention.
--Stefan
\bTABLE[width=3cm,height=3cm]
\bTABLEbody
\bTR
\bTD[align={right,top}] top \eTD
\bTD[align={right,lohi}] middle \eTD
\bTD[align={right,bottom}] bottom \eTD
\eTR
\bTR
\bTD[align={middle,top}] top \eTD
\bTD[align={middle,lohi}] middle \eTD
\bTD[align={middle,bottom}] bottom \eTD
\eTR
\bTR
\bTD[align={left,top}] top \eTD
\bTD[align={left,lohi}] middle \eTD
\bTD[align={left,bottom}] bottom \eTD
\eTR
\eTABLEbody
\eTABLE
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] proportional column widths in natural tables?

2004-02-13 Thread Stefan Wachter
Hi all!

Is there a possibility to specify proportional column widths when using 
natural tables?

E.g. If i want to set column 1 and 2 to have 2/7 and column 3 3/7 of the 
available broadth.

\setupTABLE[column][1][width=2*]
\setupTABLE[column][2][width=2*]
\setupTABLE[column][3][width=3*]
Thanks for your attention,
--Stefan
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Update Problem

2004-02-12 Thread Stefan Wachter
Thanks for the help - now it works. I had wrong formats.

When I created the formats by texexec --make nl en de I had no write 
permission in the tetex/share/texmf/web2c directory. Therefore the old 
formats stayed there. After I replaced the old formats with the new ones 
everything was fine.

Thanks again,
--Stefan
Hans Hagen wrote:
At 11:57 10/02/2004, you wrote:

Hi all.

I try to update teTeX 2.0.2 to the current context distribution 
(cont-tmf.zip of 2004-1-13). After updating I can not process my old
files. I get the following error message:

! Undefined control sequence.
\@@toks -\everyTEXinputmode
Does anyone know how to fix this problem?

Thank you for your attention,
--Stefan
These are the steps took to update ConTeXt:
1.I deleted all context subdirectories in the tetex/share/texmf 
directory.
2. I unpacked the cont-tmf.zip file into that directory.
3. I run texhash.
4. I created the formats by texexec --make nl en de.


are you sure that you use the right format (in combination with 
cont-new.tex)?

(kpsewhich cont-en.efmt)

else try

  texexec --make --alone

hans



-
  Hans Hagen | PRAGMA ADE/POD/CTS
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Update Problem

2004-02-11 Thread Stefan Wachter
Hi all.

I try to update teTeX 2.0.2 to the current context distribution 
(cont-tmf.zip of 2004-1-13). After updating I can not process my old
files. I get the following error message:

! Undefined control sequence.
\@@toks -\everyTEXinputmode
Does anyone know how to fix this problem?

Thank you for your attention,
--Stefan
These are the steps took to update ConTeXt:
1.I deleted all context subdirectories in the tetex/share/texmf directory.
2. I unpacked the cont-tmf.zip file into that directory.
3. I run texhash.
4. I created the formats by texexec --make nl en de.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to produce PDF links with custom action?

2004-02-08 Thread Stefan Wachter
Thanks for your quick response.

--Stefan

 At 17:13 04/02/2004, you wrote:
 Hi all!
 
 Does ConTeXt allow to create links with custom actions? I have a working 
 LaTeX /
 PDF-TeX solution which I am not able to port to ConTeXt. The following
 PDF-TeX
 code contained in a LaTeX file produces the desired PDF-Code.
 
 \\pdfstartlink attr{/Border [ 0 0 0 ]} user{/Subtype/Link/A  /S
 /AVDP_Action
 /AVDP_Param (../../nach-dateipfad.pdf 1)}
 here is a link
 \\pdfendlink
 
 Yet, if I include the same lines of code in a ConTeXt file then no link
 is
 generated.
 
 In context we do things a bit different:
 
 You can put this in some local file, the style or in a preamble:
 
\unprotected \setglobalsystemreference\rt!exec{AVDP}{AVDP}
 
\def\PDFexecuteAVDP{/AVDP_Action /AVDP_Param (\argumentA)}
 
 After that, you can do things like:
 
\setupinteraction[state=start]
 
\starttext
 
  \goto{test}[AVDP{../../nach-dateipfad.pdf 1}]
 
\stoptext
 
 So, a bit more abstract interface with the advantage of more
 functionality, 
 as in:
 
  \goto{test}[nextpage,AVDP{../../nach-dateipfad.pdf 1}]
 
 Hans
 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to produce PDF links with custom action?

2004-02-05 Thread Stefan Wachter
Hi all!

Does ConTeXt allow to create links with custom actions? I have a working LaTeX /
PDF-TeX solution which I am not able to port to ConTeXt. The following PDF-TeX
code contained in a LaTeX file produces the desired PDF-Code.

\\pdfstartlink attr{/Border [ 0 0 0 ]} user{/Subtype/Link/A  /S /AVDP_Action
/AVDP_Param (../../nach-dateipfad.pdf 1)}
here is a link
\\pdfendlink

Yet, if I include the same lines of code in a ConTeXt file then no link is
generated.

Thanks for you attention,
Stefan


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context