Re: [NTG-context] s-pre-19: page numbers?

2005-06-20 Thread h h extern

Christopher Creutzig wrote:

Christopher Creutzig wrote:


Taco Hoekwater wrote:


Is this not the same problem as the one that was mentioned last
week (the one that requires the core-lst.tex that Hans posted
as attachment)?



 As a short term measure, I have included

\def\linklisttoelement#1#2#3#4#5% % list location format page data
  {\gotonextinternal\currentlist{#2}{#4}{#5}}

into my document and got the menu I wanted – no spurious numbers any 
more and the hyperlinks do work.  YMMV.



 Technical discussion (probably should go to the dev-list):

 Since I have no clear view of where else the code is used, I'm not sure 
whichplace to fix, but the definition (and comment) of 
\linklisttoelement and \gotonextinternal do not agree on what to print:


Note that the comment here refers to a fifth argument which does not exist:

\def\linklisttoelement#1#2#3#4% % list location format page data
  {\gotonextinternal\currentlist{#1}{#3}{#4}}

Therefore, \gotonextinternal in its fourth argument gets the page 
number.  It expects “text” in there and dutifully passes it to 
\gotorealpage, where it is printed.


your patch will break the list handler; a quick glance learns me that in the 
following case we have one arg too much (some time ago i cleaned up part of the 
list macros and it seems that this indirect call was not done).


(core-int.tex:)

\def\dodomenulistelement#1#2#3#4#5#6#7%
  {\setbox0=\hbox
 {\let\gotolocation\gobbleoneargument % hack to catch last []
  % \locationclickfalse % ipv ^
  \docheckrealreferencepage{#7}%
  \setlocationboxyes
{\??am#1}% % needed !
[]% no settings
{\limitatetext{#5}{\getvalue{\??li#2\c!maxwidth}}{\unknown}}% % needed !
[]}% normally the destination, catch by gobble
   \@@amboxcommand\do@@amposition{#1}{#7}% beware, we pass the pagenumber
 {\ignorespaces\linklisttoelement{#3}{#6}{#7}{\box0}\unskip}\\}

-
  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] s-pre-19: page numbers?

2005-06-17 Thread h h extern

Christopher Creutzig wrote:

Taco Hoekwater wrote:


Is this not the same problem as the one that was mentioned last
week (the one that requires the core-lst.tex that Hans posted
as attachment)?



 It might be the same problem, but that file does not solve it.  I did 
remember to run texexec --make --all and to remove web2c/cont-en.fmt in 
favor of web2c/pdfetex/cont-en.fmt.


i need a small example

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] startMPgraphics in texshow?

2005-06-17 Thread h h extern

Christopher Creutzig wrote:

Salvete,

 it seems that the whole family of MPgraphics commands is missing in 
texshow  looking for graphics turns up no matches.  Are they 
generated by some magical macro or missing because of their capital 
letters?


no, just lazyness on my side

if someone collects a list of missing ones i can add them

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] text backgrounds in bTABLE...

2005-06-17 Thread h h extern

Martin Kolark wrote:


I have problem with the background of some text inisde bTABLE cell. The
input file is in my case some common XML, so inside table cell various
paragraph elements appear. That is why I cannot simple set up background for
cell itself.

The problem is that the background does not fit into cell as it is spread
over all text width.

The attached example contains corresponding TeX code -- a cell contains two
pars and one verbatim with background. And the background flows out of the
cell.


tricky case; maybe we need an extra option in tables; i'll look into it next 
week

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] Fwd: [OS X TeX] Re: a problem after reinstall TeX

2005-06-16 Thread h h extern
Gerben Wierda wrote:
 
 On Jun 13, 2005, at 04:07,   wrote:
 
 Dear Hans,

 I reinstalled TeX, ConTeXt updates, and XeTeX, and add two map file 
 using updmap. Instead of uninstalling ConTeXt updates, I removed 
 pdftex.map in /fonts/map/pdftex/context/ folder.
 After running texhash, pdflatex worked fine. It located font files and 
 no more mktexpk things.

 I'll do the same thing in the another mac in school to double checking.

 Thank you so much.

 Regards,

 Dalyoung


 ther reason may be that there is a pdftex.map file in the context 
 path and the tds is not that robust for multiple instances of the 
 same file; make sure that there is no pdftex.map under 
 fonts/map/*/context/*
 
 
 Is this something I should take care of upon install? Wht is this 
 pdftex.map shipping with ConTeXt? Can I just remove it before repackaging?

it's a a test file that ended up in my 'to be copied to the zip path'

you can remove it, context does not need it

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] \whitespace vs \parskip

2005-06-15 Thread h h extern

John R. Culleton wrote:

On Tuesday 14 June 2005 05:24 pm, Taco Hoekwater wrote:


John R. Culleton wrote:


Taco asked for a minimal example. I don't want to make it too


You were missing:

  \setupcolumns[blank=3pt]

please don't ask me why columns have their own whitespace settings,
they just do. ;)

Greetings, Taco



As we say over here there is no reason for it, it is just
company policy.

But at least there is an explanation. Thanks to you one more
time. BTW the Context Manual p 64 doesn't mention a dimension as
an allowable value for to the the blank= parameter. 


columns have their own value because it influences grid handling and such

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] Problem with defineenumeration [number=no]

2005-06-13 Thread h h extern

Taco Hoekwater wrote:


Hi,


There is a missing \noexpand in core-des.tex. Attached is a
fixed version of the affected macro.



ah, fixed, thanks!


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] importing figures in metapost

2005-06-13 Thread h h extern

Mojca Miklavec wrote:

andrea valle wrote:

But: is it possible to import an external figure inside metapost 
giving it a precise place in terms of xy coordinates?



Sure:

externalfigure filename.pdf
xyscaled (theWidth, theHeight)
shifted (theLowerLeftX, theLowerLeftY);

(However, I don't know if there's a way to include a picture without the 
need to provide width and height explicitly.)


hack:

 texexec --fig=d *.png

and then in the mp file:

  input mpfigs.mp

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] inserting toc

2005-05-08 Thread h h extern
Frank Grieshaber wrote:
Hello,
I want to insert a table of contents but all I get is the following 
error message in the created pdf-file:

[part,chapter,section,subsection,subsubsection not found/processed]
According to the mp-cb-en.pdf page 51/52 documentation I included the 
following lines to the setup area:

\definelist[chapter]
\setuplist
[chapter]
[before=\blank,
after=\blank,
style=bold]
\definelist[section]
\setuplist
[section]
[alternative=d]
\definecombinedlist
[contents]
[chapter,section]
[level=subsection]
and \placecontent after the \starttext and in front of the first 
\chapter. What am I doing wrong here?
by default tocs are local, so add:
criterium=all (ot text or chapter or ...)
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] TEXMFMAIN problem in gwTeX (font installation)

2005-05-02 Thread h h extern
Gerben Wierda wrote:
On Apr 29, 2005, at 15:03, Ville Voipio wrote (on the ConTeX list, but 
this also is interesting for all gwTeX users):

I have spent some very interesting time trying to install the TeXlive 
fonts by using texfont type-tmf.dat. What happened was that a lot of 
complaints about unknown subpath ../afm/public/urw were given even 
though the path should have been there. This is a known problem, has 
been on several mailing lists, as well.

After a lot of thinking it became clear that texfont was really unable 
to find any font files. By browsing through the texfont.pl, the reason 
became evident: In gwTeX the root variables are:

   TEXMFMAIN = /usr/local/teTeX/share/texmf
   TEXMFTE = /usr/local/teTeX/share/texmf.tetex
The problem here is that all the TeXlive fonts (and almost everthing 
else) is really in the TEXMFTE tree.

My quick'n'dirty was to make new file type-tmf-gwtex.dat by replacing 
all occurrences of TEXMFMAIN by TEXMFTE. Running that one in batch 
mode works fine.

Problem solved -- this time. But the solution is not a beautiful one. 
Could someone suggest something cleaner? Or has this been solved 
already (I tried googling after the answer without success)?

TEXMFMAIN in TL is now reserved for only the stuff that is directly 
related to the binaries (like the pool files or anything that needs to 
stay in sync - grammar wise - with the binaries and scripts). In TeX 
Live the 'foundation' now lives in .../texmf-dist (TEXMFDIST) and not in 
../texmf

In gwTeX, there are a few foundation trees: TEXMFTE for the teTeX tree 
and TEXMFGW for my additions

I think it is a simplification by texfont that it has a hardwired 
location. TeX is not set up that way. Probably the correct solution is 
for texfont itself to act in a more dynamic way, e.g. by trying to 
locate with kpsewhich some elements that are supposed to be there 
already and take th eresult of that search as the settin for what it now 
assumes to be hardwired.

In the meantime: your fix is correct.
generated fonts metrics are put in a given path:
if (defined($ENV{TEXMFLOCAL})) {
$installpath = TEXMFLOCAL ;
}
if (defined($ENV{TEXMFFONTS})) {
$installpath = TEXMFFONTS ;
}
if ($installpath eq ) {
$installpath = TEXMFLOCAL ; # redundant
}
and later on
my $fontroot=  ; #/usr/people/gwhite/texmf-fonts
GetOptions
fontroot=s   = \$fontroot,
and
if ($fontroot eq )
  { if ($dosish)
  { $fontroot = `kpsewhich -expand-path=\$$installpath` }
else
  { $fontroot = `kpsewhich -expand-path=\\\$$installpath` }
chomp $fontroot }
etc etc
I've added texmfdist to the search trees list
my $trees   = 'TEXMFFONTS,TEXMFLOCAL,TEXMFEXTRA,TEXMFMAIN,TEXMFDIST' ;
(not that i use dist: the first thing i do here when i get tex live is merging 
the main/dist/doc/extra trees)

btw, it's interesting that when i asked for a texmffonts entry long ago the 
argument against was 'we don't want too many trees' but nowadays we have so many 
trees that i no longer feel trouble by my own amount:

texmf
texmf-extra
texmf-local
texmf-fonts
texmf-projects
texmf-mswin
texmf-macosx
texmf-linux
etc -)
normally i try to use kpse to locate and report paths, but this is kind of slow 
and the kpsewhich interface is not frozen [which is why in more recent scripts i 
use a wrapper system around kpse, so in the end such problems may disappear]

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] TEXMFMAIN problem in gwTeX (font installation)

2005-05-02 Thread h h extern
Gerben Wierda wrote:
My quick'n'dirty was to make new file type-tmf-gwtex.dat by replacing 
all occurrences of TEXMFMAIN by TEXMFTE. Running that one in batch 
mode works fine.
one can specify the fontroot on the commandline
in most cases texfont is is used for installing fonts not in a tex tree (or in a 
local tree); given unpredictable changes in patterns and fonts, i'll probably 
put a context font metrics zip on the website anyway and include patterns in the 
main zip; moreover, the new fonts by the polish font gurus [lm, antykwa, kurier, 
iwona, etc] already come with context friendly metrics and names

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] volunteers wanted

2005-05-02 Thread h h extern
Hi,
The polish font gurus did it again: two more complete digitized fonts (latin, 
vietnamese, greek, cyrillic and math are covered); so ... the question is who 
is prepared to look into the encoding part of greek and cyrillic or more 
precise: with what encoding tfms should the font be shipped (the context 
friendly encoding-name scheme is used)

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] install help

2005-05-01 Thread h h extern
Skip Collins wrote:
Sorry for rambling. I guess this goes with the territory when living
on the bleeding edge. As you can see, I am in need of some basic
guidance for getting a newish context working properly. I have spent
some time looking for step-by-step instructions, but all I get is more
confused. The contextgarden wiki could be updated with more complete
instructions. I would be happy to help with this if I could only
figure out the correct recipe.
if you download the latest alpha release, the engine subpath stuff should work; 
if not, run:

ctxtools --make --all(ruby script)
and process your document with:
texexec --pdf yourfile.tex   (perl script)
there is also a rather up to date minimal context for linux on the website
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] Re: btex-etex

2005-04-03 Thread h h extern
Jiri Polcar wrote:
On Sat, Apr 02, 2005 at 08:37:01AM +0200, Taco Hoekwater wrote:
It is quite possible that your resulting characters exceed
some size limit in DVI mode. Try \setupoutput[pdftex]
In this case your scaled 5cm expands into scaled 141.7:
the word test, scaled to 141.7 times it original size.

My problem is that I have no output also without 'caled 5cm':
\setupoutput[pdftex]
\starttext
\startuseMPgraphic{test}
  picture p; p := btex TEST etex;
  draw p;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext
Sorry, I used too complicated example to describe my problem. I have
no ouptput of btex-etex in any case...
a more simple version:
\setupoutput[pdftex]
\starttext
\startMPpage
  draw btex TEST etex;
\stopMPpage
\stoptext
anyhow, what does
texexec --automp
produce
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] How to cook Garamond

2005-04-03 Thread h h extern
Idris Samawi Hamid wrote:
Dear syndicate,
ok, the always messy font business ...
the problem is not so much in context since what it needs is just a bunch of 
files, but in the simple fact that there are conflicting demands/messy situations

- we need to be able to install commercial fonts (no metrics available)
- some fonts come in more versions (different vendors)
- some users need something different that default/ec/texnansi
- many users want to use metrics from the distributions
- but as times goes by, distributions change, font are renamed, come and go
- the way pdftex deals with fonts improves over time, for instance nowadays one 
can load map files on any page
- some users load map files on demand, others use the big one and therefore 
depend on the [not portable] platform tools like updmap
- locations in the texmf tree change (texmf, texmf-dist, enc/map paths) and 
although it is possible to catch a lot [downward compatibility] with the 
texmf.cnf file this is not what happens in practice
- also, part of the problem is that the past still rules (design sizes, math 
versus text, normal glyphs versus composed ones)

the problem can partically be solved by
- providing more typescripts (i add entries to type-buy, type-fsf, type-ghz for 
each commercial font i use)
- distributing metrics for commercial fonts (+ type-win)
- try to avoid conflicting demands (using platform font names for not 
distributed fonts)

the same is true for hyphenation patterns, and i already have put context 
friendly version on the web; i will probably add them to the distribution

also, if you use context exclusively or don't have a problem with some 
redundancy, live is more comfortable too.

currently when things go wrong there are two situations:
- no metrics found (tex error)
- no enc/map/pfb/ttf found (pdftex backend problem)
when sorting out things, try to distinguish between them; carefully look at the 
log (missing messages)

as soon as
- dvipdfmx supports map file specials
- pdftex is updated around the world
i will change a few defaults in context; currently what works well for new 
versions of pdftex may fail in older ones;

=texnansi-urw-garamond.map==
% You need to add the following line to pdftex.cfg:
%
%   map +texnansi-urw-garamond.map
%
^^^ this is no longer valid in newer versions of pdftex
If there are better/more aesthetic choices for sans and math, let me know-)
you may want to apply rscale=... for sans, mono and math
Have fun with Garamond!
indeed, these are the steps!
concerning platform fonts ... i'll put a zip on the website with the metrics 
(that i so far generated); the only difference there is that you need to make an 
afm file from the ttf and that you need to add the platform font path to the 
truetype paths etc

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] howto \getbuffer inside of \startTEX ... \stopTEX

2005-04-03 Thread h h extern
VnPenguin wrote:
Hi all,
I have a following code:
--
\startbuffer
\bTABLE
\bTR
  \bTH title1 \eTH
  \bTH title2 \eTH
\eTR
\bTR
  \bTD data1 \eTD
  \bTD data2 \eTD
\eTR
\eTABLE
\stopbuffer
\startTEX
\getbuffer
\stopTEX
\getbuffer
--
But I got exactly the line \getbuffer in \startTEX ... \stopTEX
instead of its content.
How to get buffer in this case please.
just \typebuffer as in:
\setupcolors[state=start] \setuptyping[option=TEX]
\starttext
\startbuffer
\bTABLE
\bTR
  \bTH title1 \eTH
  \bTH title2 \eTH
\eTR
\bTR
  \bTD data1 \eTD
  \bTD data2 \eTD
\eTR
\eTABLE
\stopbuffer
\typebuffer
\getbuffer
\stoptext
-
  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] Switching fonts (or font size) in columnsets

2005-04-03 Thread h h extern
Gilles Pérez-Lambert wrote:
Hello,
With the example attached at the end of the mail (and that can be try on http://live.contextgarden.net), the page on which the font change occurs (be it the size or a new font) is moved up and the page is shorter... Is there a way to say that some text (here the items) are not to be aligned on the grid because they are smaller (or bigger)? 

Thanks!
Gilles.
% Example:
\showgrid
\setuplayout[grid=yes]
\setupitemize[before={\switchtobodyfont[small]}]
\definecolumnset[ex][n=2]
\starttext
\startcolumnset[ex]
\dorecurse{4}{\input knuth\relax\placefigure{}{}}
\startitemize[n,packed,intro]
\item Un
\dorecurse{100}{\item Um}
\stopitemize
\stopcolumnset
\stoptext
no body font switching in column sets (yet)
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] chancery font

2005-04-03 Thread h h extern
Ciro Soto wrote:
BTW, how do you use a ttf font directly in context?
just change the entry in the map file to fontname.ttf
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] PDF Forms

2005-03-29 Thread h h extern
Bob Kerstetter wrote:
Hi,
Is there some way to create PDF docs (as forms maybe?) so end users can 
add their own contact information and logos just by using Adobe Reader, 
not Acrobat? These are one to four page documents. Right now I can do 
this by supplying them with Word docs.
see widgets manual;
you can edit forms with acrobat reader but not save them; you can however send 
the data to a server;

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] lmr / latest beta

2005-03-28 Thread h h extern
Eckhart Guthöhrlein wrote:
Indeed, that helped, thank you. Again, a lot seems to have happened -
don't leave context alone for longer than a week;-)
it's not that bad, most changes that influence a working version or not, concern 
fonts, and there have been some changes in that area recently (tds structure, lmr)

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] my new page on layout

2005-03-28 Thread h h extern
Paul Tremblay wrote:
I've authored a new page on laying out pages in ConText. This page will
be just one in a number of pages on using ConTeXt with XML. 

The new page can be found at
http://www.geocities.com/paulhtremblay/context_xml/page2.html
I would appreciate any feedback. I hope the page will be useful in
helping others overcome some of the difficulty I had in trying to
understand layout in ConTeXt. I believe it is very thorough. I hope it
is clear (it contains many illustrations) and accurate.
I put this page up on yahoo because it had so many graphics, and because
trying to cut and paste the entire page to the wiki would have been too
difficult. The yahoo location is just temporary. Probably I will create
a sourceforge project to host the page.
cmd name=definelayout
 opt
   backspace = 40mm,
   cutspace=38mm,
   width=middle
 /opt
/cmd
no space before/after the =
backspace=4mm,  : works
backspace= 4cm, : works in this case because used dimen assignment
backspace =4cm  : does not work the var name is now 'backspace '
only spaces precedign a keyword are catched
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] \showlayout curiosity.

2005-03-25 Thread h h extern
John R. Culleton wrote:
The following code should, by my calculations, generate two
pages. However it generates five, one for \ShowLayout and four
for \showlayout.
Remove the t-layout module and the \ShowLayout statement and it
still generates four.
This is an inconvenience and not a deal breaker but I am curious
about why the extra pages are created.  
\showlayout goes to a new page, and generated 4 pages, so that one can see 
left/right doublesized behaviour

\showframe only gives you the frames
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] Re: Layout stuff

2005-03-21 Thread h h extern
Paul Tremblay wrote:
There is, of course, \parshape. And I know that Hans does a lot of
paragraph trickery (see for example coloumns).
 
If you can get pages with different widths to work, please let me know!
Like I said, I posted the problematic code in the wiki. It would be
great to get this to work.
for controlled situations it's doable by setting the parshape
so, for novels you can use:
\startsetups [grid] [*default]
  \nopenalties
\stopsetups
\setuppagenumbering
  [alternative=doublesided]
\setuplayout
  [grid=yes]
\definelayout
  [odd]
  [width=10cm,
   lines=40]
\definelayout
  [even]
  [width=8cm,
   lines=40]
\setuplayout
  [odd]
\setuptolerance
  [verytolerant]
\showframe
\def\SetLineWidths
  {\scratchtoks \emptytoks
   \ifdim\pagegoal=\maxdimen
 \scratchdimen\textheight
 \ifodd\realpageno
   \noflines\namedlayoutparameter{odd}{lines}%
 \else
   \noflines\namedlayoutparameter{even}{lines}%
 \fi
   \else
 \scratchdimen\dimexpr\pagegoal-\pagetotal\relax
 \advance\scratchdimen-\topskipgap
 \getnoflines\scratchdimen
   \fi
   \ifdim\scratchdimen\lineheight
 \page
   \else
 \scratchcounter\noflines\relax
 \ifodd\realpageno
   \doSetLineWidths{odd}{even}%
 \else
   \doSetLineWidths{even}{odd}%
 \fi
 \parshape \scratchcounter \the\scratchtoks \relax \ignorespaces
   \fi}
\def\doSetLineWidths#1#2%
  {\dorecurse\noflines
 {\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}%
   \dorecurse{2}
 {\advance\scratchcounter\namedlayoutparameter{#2}{lines}\relax
  \dorecurse{\namedlayoutparameter{#2}{lines}}
{\appendetoks 0cm \namedlayoutparameter{#2}{width} \to\scratchtoks}%
  \advance\scratchcounter\namedlayoutparameter{#1}{lines}\relax
  \dorecurse{\namedlayoutparameter{#1}{lines}}
{\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}}}
\dontcomplain
\EveryPar{\SetLineWidths}
\starttext
\dorecurse{25}{\dorecurse{4}{\input tufte }\par}
\stoptext
no guarantees, no kernel stuff either, maybe some fun module
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] Title-page overlay / wiki example

2005-03-21 Thread h h extern
Nikolai Weibull wrote:
* Willi Egger (Mar 20, 2005 18:00):
May be you should try a buffer to put the typing in. In the overlay
you can call the buffer with \typebuffer[...]

\startbuffer[title]
...
\stopbuffer
\defineoverlay
  [TitleGraphic]
  [{\startcolor[titlegraphic]\typebuffer[title]\stopcolor}]
\setupbackgrounds[page][background=TitleGraphic]
The problem with that is that everything winds up on one line for some
reason,
a good reason: it's a hbox, so you need ...[\vbox{...}]...
alternative regexp title page (nice example for wiki)
% \startbuffer[title]
% /(.*?)testexpr/io
% /t(.*?)estexpr/io
% /te(.*?)stexpr/io
% /tes(.*?)texpr/io
% /test(.*?)expr/io
% /teste(.*?)xpr/io
% /testex(.*?)pr/io
% /testexp(.*?)r/io
% /testexpr(.*?)/io
% \stopbuffer
\definetype[ytyp][color=yellow]
\startbuffer[title]
\type{/(}\ytyp{h}\type{*?)testexpr/io}\par
\type{/t(}\ytyp{a}\type{*?)estexpr/io}\par
\type{/te(}\ytyp{n}\type{*?)stexpr/io}\par
\type{/tes(}\ytyp{s}\type{*?)texpr/io}\par
\type{/test(}\ytyp{h}\type{*?)expr/io}\par
\type{/teste(}\ytyp{a}\type{*?)xpr/io}\par
\type{/testex(}\ytyp{g}\type{*?)pr/io}\par
\type{/testexp(}\ytyp{e}\type{*?)r/io}\par
\type{/testexpr(}\ytyp{n}\type{*?)/io}\par
\stopbuffer
\setupcolors[state=start]
\definelayer
  [TitleGraphic]
  [width=\paperwidth,
   height=\paperheight]
\setlayer
  [TitleGraphic]
  [preset=lefttop]
  {\scale
 [width=\paperwidth,
  height=\paperheight]
 {\framed
[frame=off,
 offset=overlay,
 background=color,
 backgroundcolor=blue,
 foregroundcolor=red,
 align=normal]
% {\setuptyping[before=,after=]\typebuffer[title]}}}
{\getbuffer[title]}}}
\setupbackgrounds[page][background=TitleGraphic]
\starttext
\startstandardmakeup
\stopstandardmakeup
\stoptext


-
  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] Re: Two problems with my chapter quote setup

2005-03-21 Thread h h extern
Gerben Wierda wrote:
On 20 Mar 2005, at 18:05, Patrick Gundlach wrote:
[...]
http://mail.rna.nl/~gerben/problem-test.tar.gz

I get only a blank page.

If you open problem-test/products/prd_book.pdf from the archive you will 
see that on the page numbered 7 (the 9th page in the PDF file) there is 
text. At that stage the frontmatter ends and the first chapter should 
start. It should start with the quote on page 8 (without a page number) 
and the start of the chapter on page 9. But what actually happens is 
that 8 and 9 are empty pages with a page number and the quote is on page 
10 and the chapter starts on 11.

I suspect that \stopfrontmatter forces a page. Hans?
indeed
  \setupsectionblock [frontpart] [page=] % yes by default
the reason is that marks needs to be synchronized; if you add your own \page 
command, make sure that you do it at the right moment

page changes are always a bit tricky esp since one wants header etc to be nicely 
in sync as well; also,

\page some node \page
can introduce empty pages (tex related, not so much context)
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] Repost: Two problems with my chapter quote setup (Modified by Gerben Wierda)

2005-03-21 Thread h h extern
Gerben Wierda wrote:
I forgot one part at the end. Here it is again.
I've got this in my environment file:
\def\ClearChapterQuote{\def\ChapterQuote{}}
\ClearChapterQuote
\def\ChQuoteFormat#1{\starttext%
   ^^ no
\startalignment[left]%
\startnarrower[4*left] \noindent{\hyphenpenalty 1\em #1}%
    see below
\stopnarrower\stopalignment\stoptext\blank}
   no
\setuphead[chapter]
[page=left,
before={\ChQuoteFormat{\ChapterQuote}\noheaderandfooterlines%
\page[right]\blank[2*big]},
  ^^ space at top is discarded, use [force,2*big]
after={\ClearChapterQuote\blank[3*big]}%
\noheaderandfooterlines]
I've got two problems with this setup:
a bit more readable (less code in key/val)
\setuphead
  [chapter]
  [page=,
   before=\setups{chapter:before},
   after=\setups{chapter:after}]
\startsetups chapter:before
\page[left]
\noheaderandfooterlines
\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \setups[chapter:quote]
\stopnarrower
\stopalignment
\resetsetups[quote:text]
\page[right]
\noheaderandfooterlines
\blank[force,2*big]
\stopsetups
\startsetups [chapter:after]
\blank[3*big]
\stopsetups
\setupheadertexts[header]
\setupfootertexts[footer]
\starttext
\startsetups [chapter:quote]
For what can a man accomplish that has not been done
a million times before? What can he say that he will not
find in Lao-Tse or the Bhagavadgita or the Prophet Isaiah?
\stopsetups
\chapter{TEST}
\stoptext
-
  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: Configuring 2 trees [was RE: [NTG-context] Times New Roman]

2005-03-20 Thread h h extern
Idris Samawi Hamid wrote:
On Thu, 17 Mar 2005 10:31:44 +0100, Hans Hagen [EMAIL PROTECTED] wrote:
i'll upload a new minimal (beware, tex live 2005 binaries), as well as 
the big windows zip (will take a few hours)

Any word on that? I saw something dated 3-16-05; I'm assuming that's not 
it (since your email is dated a day later?)
i let my machine generate the tree while i was watching a movie the day before 
 i uploaded the lot -)

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] Temporarily turning off hyphenation?

2005-03-20 Thread h h extern
Peter Münster wrote:
On Sat, 19 Mar 2005, Gerben Wierda wrote:

I haven't been able to find information about temporarily turning off 
hyphenation. Can it be done? (This is for a non-justified quote at the 
start of a chapter)

\starttext
{\hyphenpenalty 1
\input tufte
}
{\hyphenpenalty 1000
\input tufte
}
\input tufte
\stoptext
\setupalign[nothyphenated]
or
\nohyphens
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] critical editions in context

2005-03-16 Thread h h extern
Thomas A.Schmitz wrote:
Sorry, hit the send button by accident.
OK, I feel guilty resurrecting this stale thread, but I can't resist 
asking again.

I found this in m-arabtex.tex:
%\pushmacro\edmacloaded   \let \edmacloaded   \undefined
and later
%\popmacro\edmacloaded
Both lines are commented out, so I'm still wondering if edmac will work 
with ConTeXt out of the box.

The absolute basics that are needed for critical editions are:
1. Capability to have footnotes with reference to line-number instead of 
counter. These notes must not end with a newline character (see 
ASCII-art at end of post), but must provide the possibility to have 
several on one line. These notes must not flow, they have to stay on the 
same page as the reference. Horizontal tolerance can be set to very 
sloppy to achieve this

2. Must be possible to apply a format like \bf vel. sim. to the reference.
3. Within these notes, it should be possible to refer to other line 
numbers.

4. Nice, but not quite essential: possibility to have notes in more than 
one column.

5. Not absolutely basic, but important for serious work: have more than 
one set of notes referring to the same passage.

Is this possible in ConTeXt out of the box? If not, I'd be willing to 
roll up my sleeves and help, but would like to know which would be a 
good starting point.

I looked at core-ltn.tex. I'm not sure if core-nnt and page-nnt refer to 
core-not and page-not; I couldn't find anything appropriate in these files.
the files are in the main distribution for some time; i'm still waiting for 
idris to test them; following is my test file (seems that it has a patch -)

% interface=en
\unprotect
\def\dohandlelinenote#1#2#3%
  {\bgroup
   \expanded{\beforesplitstring#2}\at--\to\linenotelinenumber
   \ifnum\linenotelinenumber=\linenumber\relax
  \def\linenotelinenumber##1{#2}%
  \setupnote[#1]
[\c!numbercommand=\linenotelinenumber,
 \c!textcommand=\gobbleoneargument]%
  \setnote[#1]{#3}%
   \fi
   \egroup}
\protect
\starttext
\tracelinenotestrue
\setuppapersize[S6][S6]
\setuplayout[width=middle,height=middle,margin=1.5cm,footer=0pt,header=1cm]
\setupcolors[state=start]
\setuptyping[option=color]
\definelinenote[extralinenote][rule=off,frame=on,framecolor=darkgreen]
\setuplinenote [linenote] [rule=off,frame=on,framecolor=darkred,n=2]
\showframe
\startbuffer[test]
\doglobal\increment\DummyNumber % else dups due to reuse
\startlinenumbering[100]
test \linenote {oeps} test test test test test test
test \startlinenote [well:\DummyNumber] {oeps} test test test test test test
test \linenote {oeps} test test test test test test
test \extralinenote {oeps} test test test test test test
test \linenote {oeps} test test test test test test
test \extralinenote {oeps} test test test test test test
test \stoplinenote [well] test test test test test test
\stoplinenumbering
\stopbuffer
{\typebuffer[test] \getbuffer[test]} \page
\startbuffer[setup]
\setuplinenumbering
  [align=left]
\stopbuffer
{\typebuffer[setup] \getbuffer[setup,test]} \page
\startbuffer[setup]
\setuplinenumbering
  [width=1em,
   align=left]
\stopbuffer
{\typebuffer[setup] \getbuffer[setup,test]} \page
\startbuffer[setup]
\setuplinenumbering
  [width=2em,
   distance=.5em,
   align=left]
\stopbuffer
{\typebuffer[setup] \getbuffer[setup,test]} \page
\startbuffer[setup]
\setuplinenumbering
  [width=2em,
   align=middle]
\stopbuffer
{\typebuffer[setup] \getbuffer[setup,test]} \page
\startbuffer[setup]
\setuplinenumbering
  [conversion=romannumerals,
   start=1,
   step=1,
   location=text,
   style=slanted,
   color=blue,
   width=1.5em]
\stopbuffer
{\typebuffer[setup] \startnarrower\getbuffer[setup,test]\stopnarrower} \page
\startbuffer[setup]
\setuplinenumbering
  [width=4em,
   left=--,
   right=--,
   align=middle]
\stopbuffer
{\typebuffer[setup] \getbuffer[setup,test]} \page
\startbuffer[setup-1]
\setuplinenumbering
  [style=\bfxx,
   command=\WatchThis]
\stopbuffer
\startbuffer[setup-2]
\def\WatchThis#1%
  {\ifodd\linenumber
 \definecolor[linecolor][red]%
   \else
 \definecolor[linecolor][green]%
   \fi
   \inframed
 [offset=1pt,frame=off,background=color,backgroundcolor=linecolor]
 {#1}}
\stopbuffer
{\typebuffer[setup-1,setup-2] \getbuffer[setup-1,setup-2,test]} \page
\startbuffer[setup-1]
\setuplinenumbering
  [location=inright,
   style=\bfxx,
   command=\WatchThis]
\stopbuffer
{\typebuffer[setup-1] \getbuffer[setup-1,setup-2,test]} \page
\stoptext

Best
Thomas
Example what should be possible:
1 This manual is about ConTEXt, a system for typesetting documents.
2 Central element in this name is the word TEX because the typographical
3 programming language TEX is the base for ConTEXt. People who are used
4 to TEX will probably identify this manual as a TEX document. They 
recognise
5 the use of \. One may also notice that the way pararaphs are broken 
into lines
6 is often better than in the avarage typesetting system.

1 manual A: handbook B 2 name 

Re: [NTG-context] Moving to ConTeXt

2005-03-13 Thread h h extern
Henning Hraban Ramm wrote:
Am 10.03.2005 um 10:59 schrieb Gerben Wierda:
What I do not understand is how these components end up in a directory
hierarchy.
What would be very nice is some sort of downloadable archive with some
sample basic project structures.
Reading the stuff above I still have no idea how to build a directory
hierarchy for my project such that it can do all that the project
management part of ConTeXt promises.

Do you *need* different directories? Perhaps it's sufficient to name 
your components so that you can easily see what belongs where.

AFAIK ConTeXt looks always into the parent directories, but not in 
parallel/child directories if not explicitly specified. (E.g. you can 
define a figures path.)
you can say
\usepath[somepath]
\usesubpath[one]
\usesubpath[two]
etc

-
  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] pdf bookmarks

2005-03-13 Thread h h extern
VnPenguin wrote:
On Tue, 8 Mar 2005 20:56:06 +, David Waller [EMAIL PROTECTED] wrote:
Hello,
I am trying to produce bookmarks in the PDF file produced with context.
I can produce bookmarks but I am unable to get any hierarchy of bookmarks
such that chapters can just be displayed initially and then the
sections open up.

With 

\placebookmarks[chapter,section,subsection]
I got a perfect bookmark :)
\placebookmarks [chapter,section,subsection]
[chapter]
will do the same but open only chapter ones by default
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] Re: Current text width?

2005-03-13 Thread h h extern
Duncan Hothersall wrote:
I said:
So - is there a parameter which represents the current width of the 
layout area, taking into account itemisations, textbackgrounds and 
anything else? Thanks.

I came up with a rather ugly kludge which solves my immediate problem 
but might not be best. I created a new dimen, \RealWidth, and before 
each table I set it to the value of \textwidth minus leftskip minus 
rightskip. In other words, I did this:

--
\newdimen\RealWidth
\definetextbackground[TestBackground]
 [leftoffset=1em,rightoffset=1em,topoffset=8pt,
bottomoffset=8pt,frame=on,location=paragraph]
\starttext
\starttextbackground[TestBackground]
Some text first, which behaves perfectly, and then a table:
\leavevmode\RealWidth=\textwidth\advance\RealWidth 
by-\leftskip\advance\RealWidth by-\rightskip\bTABLE
\setupTABLE[column][1][width=0.3\RealWidth]
\setupTABLE[column][2][width=0.7\RealWidth]
\bTR\bTD I was hoping\eTD
\bTD that this table would make itself narrower according to the
background offsets, like the text does. And now it does!\eTD\eTR
\eTABLE}
\stoptextbackground
\stoptext
--

This produces what I want as far as I have tested it. I'm not sure it's 
the best or most comprehensive solution though.
kind of; an alternative is:
\startlinecorrection % needed anyway
\setlocalhsize \hsize\localhsize
\dontleavehmode \bTABLE
\setupTABLE[column][1][width=0.3\hsize]
\setupTABLE[column][2][width=0.7\hsize]
\bTR\bTD I was hoping\eTD
\bTD that this table would make itself narrower according to the
background offsets, like the text does. And now it does!\eTD\eTR
\eTABLE
\stoplinecorrection
auto adaption is kind of tricky here because
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] Re: Learning ConTeXt, typical hurdle

2005-03-13 Thread h h extern
Patrick Gundlach wrote:
Hey Gerben,

Now what turns out to solve this? Empty lines before \description and
\stopdescriptions

Things that were defined using \definedescription rely on \par as a
delimiter.

Though I like ConTeXt if I look at certain design aspects, behaviour that
depends on whitespace before a command frightens me.

Just the way it works :-) Nothing to worry about.
there are only a few commands that depend on that
for descriptions, you can also use
\startwhatever {...}
\stopwhatever
in addition to
\whatever {...} ... \par
given that you defined whatever -)
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] \def\sectionseparator{:}

2005-03-13 Thread h h extern
Peter Münster wrote:
Hello,
in core-sec.tex, I read:
\def\sectionseparator{:} % was : but is now -
I there any inconvenience, to change it to - ?
I've tried it out, and all my problems to get French spaces before
punctuation and project structure and so on, were gone.
hm, then you're lucky since more changes are needed -)
Could we patch core-sec.tex ?
[probably, it runs ok here for quite some time now]
in your local copy of cont-sys.tex, add:
\usemodule[tryout]
when things work ok (i suggest that patrick also adds this to the wiki context 
processing part) i will patch it (remind me in a couple of months)

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] critical editions in context / arabtex

2005-03-13 Thread h h extern
Thomas A.Schmitz wrote:
OK, I feel guilty resurrecting this stale thread, but I can't resist 
asking again.

I found this in m-arabtex.tex:
%\pushmacro\edmacloaded   \let \edmacloaded   \undefined
and later
%\popmacro\edmacloaded
Both lines are commented out, so I'm still wondering if
i talked with Klaus Lagally at eurotex and he will make arabtex a bit more 
context friendly: a few more hooks, context aware loading, etc

he will also look into the recent problems (may hav eto do with loading heberw 
(no longer needed, part of arabtex kernel)

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] A (my) OTR problem

2005-03-13 Thread h h extern
luigi.scarso wrote:
\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
\def\PageNumber#1{\vbox to \footerheight{\vss\hbox 
to\RightMarginWidth{\hss #1 \hss}\vss}}
\setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]
why don't you use \rightmarginwidth directly?
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] A (my) OTR problem

2005-03-13 Thread h h extern
luigi.scarso wrote:
I have the following code:
\showframe
\setuplayout[topdistance=0mm,topspace=10mm,header=10mm,headerdistance=10mm,
footerdistance=5mm,footer=20mm,bottomspace=2mm,
backspace=25mm,

rightmargin=10mm,rightmargindistance=1mm,rightedge=0mm,rightedgedistance=0mm,
 
leftmargin=15mm,leftmargindistance=1mm,leftedge=9mm,leftedgedistance=0mm,
width=fit,height=fit,
 location=middle]

\newdimen\RightMarginWidth \RightMarginWidth=\rightmarginwidth
\def\PageNumber#1{\vbox to \footerheight{\vss\hbox 
to\RightMarginWidth{\hss #1 \hss}\vss}}
\setuppagenumbering[location={margin},alternative=doublesided,command={\PageNumber}]

\newbox\ContinueNextPage \setbox\ContinueNextPage=\vbox{\strut\hbox 
to\textwidth{\hfill\mathematics{\blacktriangleright}\mathematics{\blacktriangleright}\quad}}

\starttext
\dorecurse{20}%
{\framed[width=\textwidth,height=3em,align={middle,lohi}]{\hfil
\CONTEXT --\recurselevel \hfil}}%
\stoptext
I would like to put \copy\ContinueNextPage after the last \framed in 
every page
(in this example, after CONTEXT--18 at page 1 and CONTEXT--36 at page 2).

I don't want use tables/tabular, i try to use \vsplit.
I try to read page-ini, i find useful things like \everyafterpagebody
but i'm still confused.
This needs to happen in the normal text flow (unless you want to use more dirty 
tricks)

\startsetups [continue]
  \strut\hbox to \textwidth
{\hfill\mathematics{\blacktriangleright\blacktriangleright}\quad}
\stopsetups
\def\LetsCheckItOut
  {\dowithnextbox 
{\ifdim\dimexpr\pagetotal+\ht\nextbox+\dp\nextbox+\lineheight\relax\pagegoal
\endgraf\nobreak\setups[continue]\page
  \fi
  \box\nextbox}
   \vbox}

\starttext
\dorecurse{40}
  {\LetsCheckItOut
 {\framed
[width=\textwidth,height=3em,align={middle,lohi}]
{\hfil\CONTEXT--\recurselevel\hfil}}}
\stoptext
-
  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: AW: AW: [NTG-context] Re: Line break after unit or \cite command

2005-03-13 Thread h h extern
Michael Fuchs wrote:
Hi everybody!
Sorry for the too long example. I wasn't sure what caused the 
problem and wanted to provide all relevant information at one 
time. I didn't mention the units module explicitly because I
have the same problem using the \cite command from the 
bib-module and I assumed, that it would be a more general 
problem.

The workaround with the \hbox{} does work. Is this some kind of
bug and will be fixed in the future? 

Thank you all for your help! :-))
Michael

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Im Auftrag von Peter Münster
Gesendet: Freitag, 11. März 2005 19:24
An: mailing list for ConTeXt users
Betreff: Re: AW: [NTG-context] Re: Line break after unit or 
\cite command

On Fri, 11 Mar 2005, Michael Fuchs wrote:

Here is an example that shows the problem. I created it using 
live.contextgarden.net. The problem appears with standard and
german hyphenation.
Nice example: now we see, that you are using the units-module.
Just to show you, what could be a minimal example, that shows 
the problem:

\usemodule[units]
\starttext
In dieser Arbeit wurde die Reaktion untersucht. Im Energiebereich bis
XXX~\EVolt\ wurden die Ergebnisse der Kollaboration bestätigt.
\stoptext
With these few lines, everything is clear. It seems to be an 
error in the
units-module.
Possible workaround: XXX~\EVolt\hbox{} wurden...
the \hbox{} will introduce a space
your problem originates in tex not being able to break lines within the 
constraints, one optiion is to increase the tolerance

\showframe
\setuptolerance[verytolerant]
\usemodule[units]
\starttext
In dieser Arbeit wurde die Reaktion untersucht. Im Energiebereich bis
XXX \EVolt\ wurden die Ergebnisse der Kollaboration bestätigt.
\stoptext

-
  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] Small bug report

2005-03-13 Thread h h extern
Marcin Borkowski wrote:
I noticed a small translation bug: when using products/components with 
\version[temporary], the info about the product and component name at the 
very bottom uses untranslated (Dutch, I presume) names: Produkt instead 
of Product and Onderdeel instead of Component.  I have nothing 
against Dutch, but I can't speak a word of it, so English would be 
preferable for me;-D...
ok, that part needs a clean up anyway, but for the moment i'll make it 
international

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] ConTeXt equivalent for \ensuremath?

2005-03-13 Thread h h extern
Gerben Wierda wrote:
On Mar 11, 2005, at 15:57, Nikolai Weibull wrote:
\newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne%
\else\expandafter\EnsuredMath\fi}
\long\def\FirstOfOne#1{#1}
\long\def\EnsuredMath#1{$\relax#1$}
\newcommand{\bit}[2]{\ensuremath{\hbox{\tf #1}_\hbox{\tf #2}}}

but is there a ConTeXt way of doing this?

\mathematics{...},
nikolai
Replacing \ensuremath above with \mathematics gives an error (both 
attempts):

\newcommand{\bit}[2]{\mathematics{\hbox{\tf #1}_\hbox{\tf #2}}}
\newcommand{\bit}[2]{\mathematics{{\hbox{\tf #1}_\hbox{\tf #2
you now say something like
text_\hbox
and since _ kind of takes an argument, it gets an hbox only; you need
text_{\hbox{..}}
as in:
\def\bit#1#2{\mathematics{\hbox{\tf#1}_{\hbox{\tf#2
\bit{1}{2}
-
  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] Renaming spot colours

2005-03-13 Thread h h extern
Duncan Hothersall wrote:
Peter Rolf said
\definecolor[PANTONE 294CV] [c=1,m=.56,y=0,k=.18]
% test \framed[background=color, backgroundcolor={PANTONE
294CV}]{Test}
\color[PANTONE 294CV] Test
% the only thing that doesn't work is \PANTONE 294CV

Thanks very much for responding Peter! Interesting behaviour - the above 
will process in ConTeXt, but to match the Corel name I need a space 
after the '294' as well, which results in:

--
[MP to PDF] (./ifs-fmar-bk-mpgraph.1 [unknown MP special 294]
! Missing number, treated as zero.
to be read again
   C
\@@cl@@r -C
V
etc.
--
But in any case - did you get a functioning PDF file when you used the 
above definition? Despite the fact that ConTeXt completes its run, I get 
a broken file with your definition. Maybe this is because I am using 
multiple tints of the spot? My color defs look like this:

\setupcolors[rgb=no,cmyk=no,spot=yes,state=start]
\definecolor[PANTONE 294CV][c=1,m=.56,y=0,k=.18]
\definecolor[IFSblue][{PANTONE 294CV}][p=1]
\definecolor[IFSbluetint][{PANTONE 294CV}][p=.2]
\definecolor[IFSblueheadertint][{PANTONE 294CV}][p=.12]
\definecolor[IFSbluetabletint][{PANTONE 294CV}][p=.15]
As I say, even with this definition (missing the final space) the PDF 
result won't open in Acrobat (colour space error). Does your open?
The problem is in the space in the name; since this name is used all over the 
place, an internal cleanup will not help, so this is why we have (yes, 
undocumented, so ... add to the wiki)

\setupcolors[rgb=no,cmyk=no,spot=yes,state=start]
\definecolor[IFSbluebase]  [c=1,m=.56,y=0,k=.18]
\doregisterspotcolorname{IFSbluebase}{PANTONE 294CV}
\definecolor[IFSblue]  [IFSbluebase][p=1]
\definecolor[IFSbluetint]  [IFSbluebase][p=.2]
\definecolor[IFSblueheadertint][IFSbluebase][p=.12]
\definecolor[IFSbluetabletint] [IFSbluebase][p=.15]
\starttext
  \color[IFSbluetabletint]{Interesting}
\stoptext
So, use nice names internally and register the name using a low level feature; 
in a next version i will provide

\definecolor[IFSbluebase]  [c=1,m=.56,y=0,k=.18,e=PANTONE 294CV]
(e for equivalent) which is nicer.
[multitone colors are even nastier, but they are cleaned up automatically]
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] alignment questions

2005-03-13 Thread h h extern
Patrick Gundlach wrote:
Hello *,
inspired by Gerben's question, I did some experimenting with \framed.
I'd like to get A[text]B, where text is some long thing in a framed
box like \framed[width=5cm] {\input tufte \par}.
There are three different ways of aligning the three objects:
(A and B on the same baseline as the first row)
A We  thrive  in  information- B
---
  thick worlds because of  our
  marvelous and  everyday  ca-
(A and B in the middle of the box, not necessarily on the same
baseline as a line in the box)
  criminate, distinguish, screen, 
A pigeonhole,  pick  over,  sort, B
  integrate,blend,   inspect,

(A and B on the same baseline as the last row)
  from the chaff and seperate
A the sheeps from the  goats. B


I was unable to get any of these alignments.
one way is to put things in a box and do some measuring and such; however, then 
you need to know a bit about the position of the baseline (measurethe middle 
box, and use a dummy framed around A and B with that height set etc)

the other way is to use the following extensions (i made the dislocator 
installable so that you can hook in your own code if needed)

\unprotect
\def\stoplocalframed
  {\dontshowcomposition
   \@@stopframedorientation
   \ifboxhasformat
 \ifx\localwidth\v!fit
   \ifreshapeframebox\doreshapeframedbox\fi
   \boxhaswidthfalse
 \else\ifx\localwidth\v!fixed
   \boxhaswidthfalse
 \else
   \resetshapeframebox
 \fi\fi
   \else
 \resetshapeframebox
   \fi
   \ifboxhaswidth
 \wd\framebox\!!widtha
   \fi
   \ifboxhasheight
 \ht\framebox\!!heighta
   \fi
   \doifvalue{\@@framed\c!empty}\v!yes
 {\setbox\scratchbox\null
  \wd\scratchbox\wd\framebox
  \ht\scratchbox\ht\framebox
  \dp\scratchbox\dp\framebox
  \setbox\framebox\box\scratchbox}%
   \stopregistercolor
   \docolorframebox
   \ifboxhasoffset
 \dooffsetframebox
   \fi
   \ifboxisoverlaid \else
 \dolocateframebox
   \fi
   \ifx\postprocessframebox\relax \else
 \let\next\postprocessframebox
 \let\postprocessframebox\relax % prevent nesting
 \next\framebox
   \fi
   \edef\overlaylinecolor{\framedparameter\c!framecolor}%
   \edef\overlaylinewidth{\the\ruledlinewidth}% \@@...
   \ifboxhasframe % real or invisible frame
 \doframedbox
   \fi
   \doifvaluesomething{\@@framed\c!background}\dobackedbox
   \handleframedlocator\@@locallocation
   \box\framebox
   \egroup
   \egroup}
\def\installframedlocator#1#2%
  {\setvalue{\??ol:\c!location:#1}{#2}}
\def\handleframedlocator#1%
  {\getvalue{\??ol:\c!location:#1}}
\def\doprelocframedbox#1%
  {\scratchdimen#1\relax
   \advance\scratchdimen \ruledlinewidth
   \ifboxhasoffset
 \advance\scratchdimen \framedparameter\c!offset
   \fi
   \scratchskip\ht\framebox
   \advance\scratchskip-\scratchdimen}
\installframedlocator \v!hanging % best with strut=no
  {\dp\framebox\ht\framebox
   \ht\framebox\zeropoint}
\installframedlocator \v!depth
  {\scratchdimen\ht\framebox
   \advance\scratchdimen -\strutdp
   \ht\framebox\scratchdimen
   \dp\framebox\strutdp
   \box\framebox}
\installframedlocator \v!height
  {\scratchdimen\ht\framebox
   \advance\scratchdimen -\strutht
   \ht\framebox\strutht
   \dp\framebox\scratchdimen
   \box\framebox}
\installframedlocator \v!high
  {\doprelocframedbox\strutht
   \setbox\framebox\hbox{\lower\scratchskip\box\framebox}%
   \ht\framebox\strutht
   \dp\framebox\strutdp
   \hbox{\box\framebox}}
\installframedlocator \v!line
  {\setbox\framebox\hbox{\lower.5\ht\framebox\box\framebox}%
   \ht\framebox.5\lineheight
   \dp\framebox.5\lineheight
   \hbox{\box\framebox}}
\installframedlocator \v!low
  {\doprelocframedbox\strutdp
   \setbox\framebox\hbox{\lower\scratchdimen\box\framebox}%
   \ht\framebox\strutht
   \dp\framebox\strutdp
   \box\framebox}
\installframedlocator \v!top
  {\doprelocframedbox\strutht
   \setbox\framebox\hbox{\lower\scratchskip\box\framebox}%
   \ht\framebox\scratchdimen
   \dp\framebox\scratchskip
   \hbox{\box\framebox}}
\installframedlocator \v!middle
  {\scratchdimen.5\ht\framebox
   \setbox\framebox\hbox{\lower\scratchdimen\box\framebox}%
   \ht\framebox\scratchdimen
   \dp\framebox\scratchdimen
   \hbox{\box\framebox}}
\installframedlocator \v!lohi
  {\handleframedlocator\v!middle}
\installframedlocator \v!bottom
  {\doprelocframedbox\strutdp
   \setbox\framebox\hbox{\lower\scratchdimen\box\framebox}%
   \ht\framebox\scratchskip
   \dp\framebox\scratchdimen
   \hbox{\box\framebox}}
\starttext
\ruledhbox
  {A
   \framed[width=2cm,align=middle,location=hanging]{location\\equals\\hanging}
   \framed[width=2cm,align=middle,location=depth]  {location\\equals\\depth}
   \framed[width=2cm,align=middle,location=height] {location\\equals\\height}
   B}
\vskip2cm
\ruledhbox
  {A
   \framed[width=2cm,align=middle,location=low]{location\\equals\\low}
   \framed[width=2cm,align=middle,location=line]   {location\\equals\\line}
   

Re: [NTG-context] Initial Font Installation Question (Mac)

2005-03-13 Thread h h extern
David Wooten wrote:
I'm back to ask another question:
After an initial successful installation of the purchased fonts, I've 
come to find that there is a serious quirk. That is, when I try to use 
any special glyph, be it an accented character of any kind, or e.g. an 
eth. The result of something like \a (or \{a}) is _a_ without the 
diacritic. Curiously (to me, at least:), if I enter the actual glyph: , 
it gives me the character I needbut only for a few runs! After adding a 
couple more of such alternative glyphs, it starts to show gibberish. 
Some trials evince an ff-ligature as the diacritic. Errors in the 
mapping/virtual font/?
i can imagine interference between input encoding and remapping (map/enc file) 
later in the pipeline, but what puzzles me is that different runs produce 
something different; sounds more like an os/caching problem

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] No performance improvement under OS X with new beta?

2005-03-05 Thread h h extern
Steffen Wolfrum wrote:
texutil.pl is untouched.
I guess Hans is still verifying this perl hassle?
i changed it, not sure if i uploaded that version; the problem is that i'm now 
on too slow lines; next week i'm at

  eurotex 2005
i'll see if i can use the adsl line there for uploading.
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] No performance improvement under OS X with new beta?

2005-03-05 Thread h h extern
Adam Lindsay wrote:
Matthias Weber said this at Fri, 4 Mar 2005 13:35:13 -0500:

Were both runs from the same point--were they virgin runs?
Did you precede the texexec command with a texutil --purgeall 
command,
for example?
--


My TeX source file is a single file with images. Most of the TeX-work 
is done for positioning
floats I think (figures, tables) and for creating backgrounds.

So I just renamed the TeX file for both runs into new file names, and 
upated TeX for the second run.
I can redo the experiment on a clone machine which hasn't been updated 
yet, but I don't
know whether texutil --purgeall will change anything. But if you tell 
me that it will, I'll give it a try.

Hmm. If you renamed the file for each run, then ignore that advice. I
don't think that would be it, then.
can you make a small file that runs slower with the new versions?
sometimes these things are not related to context, but to your tex tree: the 
bigger the slower, as well as settings in texmf.cnf

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] Language issues

2005-03-05 Thread h h extern
Mats Broberg wrote:
does the log report a swedisch pattern being loaded?
what font encoding do you use? (is related to hyphenation)
can you make a minimal file that i can run here (with right 
hyphenation points 
indicated?)

Hans

Hans,
I looked at the log file and no, you're right: Swedish is not included
in the list of languages when pdfTeX is talking about patterns:
language: patterns en-default:default-1-2:2
uk-default:default-2-
2:2 de-texnansi:texnansi-3-2:2 de-ec:ec-4-2:2
fr-texnansi:texnansi-5-2
:2 fr-ec:ec-6-2:2 es-default:default-7-2:2
it-texnansi:texnansi-8-2:2 
it-ec:ec-9-2:2 nl-texnansi:texnansi-10-2:2 nl-ec:ec-11-2:2
loaded

So something is wrong and the patterns are not loading.
but ...
  texexec --make --all
should load all patterns; what does cont-en.log say about that?
[you can try to edit your local copy of cont-usr.tex -- uncomment the swedish 
lines]
another option is to pick up the beta version, since it is more clever with 
patterns; in that case you can also try to generate pattern files for context 
(using ctxtools, see patterns manual on our website)

btw, given that patterns fit into mem quite well, we may as well preload the 
whole lot by default

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] Make a border around every page.

2005-03-05 Thread h h extern
John R. Culleton wrote:
Some time back Hans provided a rather elabaorate macro that
put a bevel type frame around a page. Now I am looking for
something much less elaborate for an entire document. I wish to
surround each page with a simple rectangle. perhaps 1 point
thickness. The frame would be inset from the paper edge perhaps
3/8 inch on all four sides. The text would be set with margins of
perhaps 3/4 inch all around on letter size paper. 

Can this be done simply? Is metafun the path to follow? 
\setupbackgrounds[page][frame=on,frameoffset=-.5cm,rulethickness=3pt]
\starttext
\input tufte
\stoptext
-
  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] gsftopk failing after upgrade

2005-03-05 Thread h h extern
Louis F. Springer wrote:
I have a Gerben Wierda TeX and ConTeXt distribution I upgraded yesterday 
to the latest versions of everything. I had some additional fonts 
installed. I re-installed the fonts using the following commands:

texfont --ve=sun --co=sunserif --ma --in
texfont --ve=sun --co=sunsans --ma --in
and updated the pdftex.cfg file adding the following
map +texnansi-sun-sunsans.map
map +texnansi-sun-sunserif.map
the cfg file is no longer supported by pdftex, use
\pdfmapfile{+texnansi-sun-sunsans.map}
or better:
\loadmapfile[texnansi-sun-sunsans.map]
instead, or make typescripts that do the loading when needed
but am getting the following error on my texexec --pdf execution using 
the fonts
could you process the file produced by texfont?
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] Language issues

2005-03-05 Thread h h extern
Mats Broberg wrote:
does the log report a swedisch pattern being loaded?
what font encoding do you use? (is related to hyphenation)
can you make a minimal file that i can run here (with right 
hyphenation points 
indicated?)

Hans

Hans,
I looked at the log file and no, you're right: Swedish is not included
in the list of languages when pdfTeX is talking about patterns:
language: patterns en-default:default-1-2:2
uk-default:default-2-
2:2 de-texnansi:texnansi-3-2:2 de-ec:ec-4-2:2
fr-texnansi:texnansi-5-2
:2 fr-ec:ec-6-2:2 es-default:default-7-2:2
it-texnansi:texnansi-8-2:2 
it-ec:ec-9-2:2 nl-texnansi:texnansi-10-2:2 nl-ec:ec-11-2:2
loaded

So something is wrong and the patterns are not loading.
this is what i get here
language: patterns nl-texnansi:texnansi-1-2:2 nl-ec:ec-2-2:2 fr-
texnansi:texnansi-3-2:2 fr-ec:ec-4-2:2 de-texnansi:texnansi-5-2:2 de-e
c:ec-6-2:2 it-texnansi:texnansi-7-2:2 it-ec:ec-8-2:2 hr-ec:ec-9-2:2
pl-pl0:pl0-10-2:2 pl-ec:ec-11-2:2 cz-il2:il2-12-2:2 cz-ec:ec-13-2:2
 sk-il2:il2-14-2:2 sk-ec:ec-15-2:2 sl-il2:il2-16-2:2 sl-ec:ec-17-2:
2 en-ec:ec-18-2:2 da-ec:ec-19-2:2 sv-ec:ec-20-2:2 af-ec:ec-21-2:2 n
o-ec:ec-22-2:2 deo-ec:ec-23-2:2 uk-ec:ec-24-2:2 us-ec:ec-25-2:2 es-
ec:ec-26-2:2 ca-ec:ec-27-2:2 la-ec:ec-28-2:2 pt-ec:ec-29-2:2 ro-ec
:ec-30-2:2 tr-ec:ec-31-2:2 fi-ec:ec-33-2:2 hu-ec:ec-34-2:2 loaded
some patterns are loaded multiple times
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] ConTeXt-updater i-Package updated

2005-03-05 Thread h h extern
Steve Peter wrote:
On Mar 4, 2005, at 2:50 PM, Alan Bowen wrote:
 Let's count the guys that use OSX with ConTeXt (and possibly 
i-Packages):
Six

I guess that makes me lucky 7.
Wouldn't it be better to do this as a survey question on the ConTeXt wiki?
indeed, since as far as i could see, there were multiple no's 4, so that gives 
you a higher number

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] FIXED: Trouble wih typescriptfiles

2005-03-05 Thread h h extern
Louis F. Springer wrote:
Obvious operator error after RTFM,  Fonts in Context. I hadn't seen 
that manual before.

I have no idea what this was supposed to do, but getting rid of the 
\starttypescript and \stoptypescript around the \loadmap fixed my 
problem.

I don't know if I picked this up from an example or guessed at the 
sytax, but it didn't seem to make any sense after reading Fonts in 
Context.

% \starttypescript [map][texnansi]
\loadmapfile[texnansi-sun-sunsans.map]
% \stoptypescript
you need the \start...\stopwhen you put such defs in separate files, for 
instance your local mytypefaces.tex:

\usetypescriptfile[mytypefaces.tex]

\usetypescript[map][texnansi]
etc would work ok
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] Upgrading...

2005-03-05 Thread h h extern
ishamid wrote:
Dear syndicate,
While I have not closely kept up with all developments it seems that 
installation/upgrade procedures have been improved. I also went through a lot 
of pain the last time I upgraded so I ask:

Given that:
1. I have not updated my context since Aug. of last year;
2. my fpTeX is from last July.
What is the wisest and most efficient way to upgrade my ConTeXt distribution 
today?

Should I replace fpTeX (including Aleph) with the ConTeXt/TeX distribution 
from the website?

Are there any Aleph-related issues?
Any tips will be appreciated
just download the windows zip file from our website and install that one in a 
separate tree, e.g. under

c:\context
then, you can initialize that tree with
c:\context\setuptex c:\context
and voila ...
when needed, unzip the latest cont-tfm (beta) and cont-lmr archives in 
texmf-local and remake formats

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] Language issues

2005-03-05 Thread h h extern
Mats Broberg wrote:
Enclosing the cont-en.log. 

As you can see, Swedish is not loaded. I hunted down the cont-usr.tex
file and uncommented this line about Swedish:
% \installlanguage [\s!sv] [\c!state=\v!start] % swedish
ran texexec --make --all again, but the log says Swedish is still not
loaded.
C:\texmf\tex\generic\hyphen\nohyph.tex Norsk hyphenation patterns
! TeX capacity exceeded, sorry [pattern memory ops=2048].
l.1207 lt3s6
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.
Here is how much of TeX's memory you used:
 33278 strings out of 98455
 509952 string characters out of 1219765
 417307 words of memory out of 1048577
 32670 multiletter control sequences out of 6
 7 words of font info for 0 fonts, out of 50 for 1000
 134 hyphenation exceptions out of 607
 23i,1n,26p,286b,663s stack positions out of 1500i,500n,5000p,20b,32768s
No pages of output.
so ... you never made a format -)
you need to increase some mem values in texmf.cnf:
   texmfstart --direct youreditor.exe kpse:texmf.cnf
buf_size.context =  20 % needed for omega bug
extra_mem_bot.context= 200
extra_mem_top.context= 400
font_max.context =2000
font_mem_size.context= 100
hash_extra.context   =   65000
main_memory.context  = 150
max_strings.context  =  20
nest_size.context= 500
obj_tab_size.context =  30 % 8388607
pdf_mem_size.context =  50 % 524288
dest_names_size.context  =  30 % 131072
param_size.context   =   1
pool_free.context=   47500
pool_size.context= 125
save_size.context=   5
stack_size.context   =   1
string_vacancies.context =   9
trie_size.context=  25
hyph_size.context=1000

-
  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] Trouble wih typescriptfiles

2005-03-05 Thread h h extern
Louis F. Springer wrote:
I've isolated the issue to typescriptfile processing. Here is  
sun-font.tex


\starttypescript [map][texnansi]
\loadmapfile[texnansi-sun-sunsans.map]
\loadmapfile[texnansi-sun-sunserif.map]
\stoptypescript
\starttypescript [map] [sunsans,sunserif] [texnansi]
unless you explicitly say:
  \usetypescript[map][texnansi]
somewhere, typeface defs do a more restricted map file inclusion.
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] arabtex support - we broke something

2005-03-05 Thread h h extern
mzm wrote:
arabdoc.pdf indicate there is arabtex version 4.0,
just mail Klaus Lagally, he's very helpful
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] Unexpected changes with pdfeTeX 1.20 (?)

2005-03-01 Thread h h extern
Steffen Wolfrum wrote:
Hi,
while looking closer at the result of typesetting an older (Nov. 2004) 
document with todays pdfeTeX and context stuff I noticed that the layout 
of my TOC changed:

Normally I write all setups in a SetupEnvironment file that is loaded at 
the beginning of a project structure.
Like this:

\startproject WLTHR_1
\environment SetupEnvironment_WLTHR
\startfrontmatter
\component Kapitel/Titelei
\component Kapitel/Vorwort
\completecontent
\stopfrontmatter
\startbodymatter
\component Kapitel/Kap_1
\component Kapitel/Kap_2
\component Kapitel/Kap_3
\component Kapitel/Kap_4
\component Kapitel/Kap_5
\stopbodymatter
\startbackmatter
\component Kapitel/Katalog
\component Kapitel/Literatur
\stopbackmatter
\stopproject
But as in SetupEnvironment also \setupindenting is set, now the TOC gets 
this indenting too!
Once (2004, before pdfeTeX 1.20 ?) this didn't affect the generated 
\completecontent - only the real \component files.

Is this change known? Are there more differences like this, so one knows 
what to look for when typesetting older documents with new TeX 
(ConTeXt?) files?

Steffen

A minimal test looks like this:
\starttext
\showframe
\showgrid
\definecombinedlist[content]
[chapter,section][level=section]
\setupindenting[30pt]% 
\completecontent% ---
%\setupindenting[30pt]% 
\chapter{Kapitel}
text
\section{Unterkapitel}
text
\section{Unterkapitel}
text
\stoptext
fix (\dontleavehmode - \noindent) in core-sec.tex; you can put the patch in 
cont-new.tex if you have a recent version

\def\dodofixdlistelementABC#1#2#3#4#5#6% weeden
  {\endgraf
   \leftskip\listparameter\c!margin% na de \endgraf !
   \listparameter\c!before
   \!!widthc\listparameter\c!distance
   \doifelse{\listparameter\c!width}\v!fit
 {\!!widtha\zeropoint}
 {\doifelsenothing{#3}
{\doifelse{\listparameter\c!aligntitle}\v!yes
   {\!!widtha\zeropoint
\!!widthc\zeropoint}
   {\!!widtha\listparameter\c!width}}
{\!!widtha\listparameter\c!width}}%
   \getvalue{\??li\c!alternative\listparameter\c!alternative}%
   \endgraf
   \def\makelistelement##1##2%
 {\doifelse{\listparameter\c!interaction}{##1}
{\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}%
 \linklisttoelement{#2}{#5}{#6}{\box0}}%{\copy0}}%
{\hbox{##2}}}%
   \doif{\listparameter\c!interaction}\v!text % not supported
 {\setlistparameter\currentlist\c!interaction\v!all}%
 % \dontleavehmode % new, else no margin, but wrong
   \noindent
   \makelistelement\v!all
 {\setlocalhsize \hsize\localhsize \hbox to \hsize
{\forgetall
 \dostartlistattributes\c!style\c!color\empty
 \!!widthb\hsize
 \setbox2\hbox \ifdim\!!widtha\zeropoint to \!!widtha \fi
   {\makelistelement\v!sectionnumber
  {\donestedlistattributes\c!numberstyle\c!numbercolor
 {\listparameter\c!numbercommand{\currentlistsymbol}}%
\hfill}}%
 \setbox4\hbox
   {\doif{\listparameter\c!pagenumber}\v!yes
  {\doifsomething{#5}% \listwidth is new ; temp hack
 {\hbox \ifdim\listwidth\zeropoint to \listwidth\fi
{\hfill
 \makelistelement\v!pagenumber
   {\donestedlistattributes\c!pagestyle\c!pagecolor
  {\listparameter\c!pagecommand
 {\pageprefix\??li\currentlist[#5]%
  \translatednumber[#5]}}}%
 \vbox
   {\hsize\!!widthb
\setupalign[\listparameter\c!align]%
\ifdim\!!widtha\hsize
  \hangindent\wd2
  \dimen2=\!!widthc % \listparameter\c!distance
  \advance\hangindent \dimen2
  \hangafter\plusone
  \doif{\listparameter\c!hang}\v!no{\hangafter\zerocount}%
  \ifdim\wd4=\zeropoint % \ifvoid4
% we kunnen gewoon afbreken aan het eind
  \else
\ifdim\listskip\zeropoint\relax
  \rightskip\listskip\!!plus10em\relax
  \parfillskip-\rightskip
\fi
  \fi
\else
  \dimen2\zeropoint
\fi
\parindent\zeropoint\relax
\leavevmode
\box2\relax
\hskip\dimen2
\bgroup
\donestedlistattributes\c!textstyle\c!textcolor
  {\let\\=\newlineinlist
   \dontconvertfont
  %\listparameter\c!textcommand{#4}}%
   \limitatedlistentry{#4}}%
  %\carryoverpar % new otherwise wrong linespacing
\egroup
\ifdim\wd4=\zeropoint\relax % \ifvoid4
  % \ifdim\!!widtha\hsize \hfill\strut \fi % spoils align
\else
  \nobreak\listfill
  \box4\relax
  \relax
\fi}%
 \hss
 \dostoplistattributes}}% new
   

Re: [NTG-context] Additional steps taken since the first e-mail

2005-02-28 Thread h h extern
Mats Broberg wrote:
Hans,
OK, and what should I do to remedy this? I am using ConTeXt out of the
box, as it is when you install MikTeX. 

Should I download something else from your site? A more recent
distribution?
if things run fine, you can just ignore the message; normally more methods are 
used to locate files

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] lack of hyphenation

2005-02-28 Thread h h extern
Mats Broberg wrote:
Btw, here are a few 'Typographical Dreams' of mine, regarding ConTeXt:
- Penalty if consecutive lines have the same words typeset exactly above
each other - e.g. in the beginning of a line, in the middle of the line
etc. Catches your eye.
since it has to do with extending tex ... that one is for patrick gundlach
- Penalty for a hyphenated word as the last word on a page. And not
putting it in an \mbox.
hm, the problem with such things is that when tex breaks the page, the paragraph 
is already set; you're looking for some breed between widow/club and 
hyphenpenalties

- In Swedish, if the last line in a column is the first line in a new
paragraph, this last line is called simple child of a whore. If the
first line on a new page is the last line of the preceding page's last
paragraph, this line is called double child of a whore. Now, in
InDesign and QuarkXPress you can set the software to move over the
simple child of a whore to the next page, and, for double child of a
whore, to move over a few extra lines to the new page. However, this
leaves you with a page that is one or more lines short. When working in
these software, you can then slightly, slightly increase the spacing
between letters on the page (perhaps only a few thousands of an em). If
you are lucky, one of the preceding paragraph expands just enough for
its last line move over to a second line, and you're home free. However,
for book projects hundreds of pages long, this is something you'd want
to automate. Don't know if it is possible in ConTeXt to automate this,
but it would be great if it was.
i did play with strategies and strategy passes long ago; strategies could be
- make inter-column spacing a bit bigger/smaller
- make page slightly larger/smaller
- increse/decrease bodyfont size
- etc
the problem is that one can end up in oscillating
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] lettrine.sty, but not LaTeX

2005-02-27 Thread h h extern
Taco Hoekwater wrote:
basically you want to follow a shape; this is not that hard to 
implement so i can have a look at it; lettrines is then an instance of it
Lettrine is easier than that, actually. I thought this would be quite
funny, so here is a brand new module called t-lettri.tex, and an example.
ah, nice, so, lettrines only does a slanted shape?
i played a bit with shapes last night and will probably add something to the 
drop macros, and probably also move the code to core-fnt; but it will be a bit 
more complex and take some more time; it's a good testbed for playing with 
things like glyph shape similarity and such; also, proper alignment is an issue.

(i attached supp-fu3.tex, no production code, just for fun)
concerning your module, maybe we should introduce a new category of modules, 
e.g. c-lettrines.tex with x meaning 'converted'; we can then collect them in 
another zip;

remark 1:
\sbox is already definined and in use,
i remember someone telling me that this \hbox{{#1}} stuff is needed to satisfy 
latex's color mechanism, but that's not needed in context, so a simple

\setbox\Lettrinetbox{}
is not only even more efficient in terms of tokens and performance (unnoticable) 
but also does not clash with the core macro.

remark 2:
auto-lettrines (dropcaps etc) are kind of complex in the sense that it's not 
trivial to pick up the first 'something' in a paragraph in a robust way [we may 
want some extension to tex for that (so we have something to discuss during our 
trip to eurotex -)

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
-


supp-fu3.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] languages

2005-02-27 Thread h h extern
VnPenguin wrote:
Vietnamese lang uses empty hyphenation pattern.
ok, se i've now added:
description language='vn'
commentVietnamese needs no patterns./comment
/description
-
  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] m-letter stationary]

2005-02-27 Thread h h extern
Rob Ermers wrote:
Hans,
Thanks again for the new code.
I tried it in my document with my stationary, but it did not work.
When I create a new test document with the code you suggested, all pages 
have VERY ODD in the upper left corner.
did you add
\setuppagenumbering[alternative=doublesided]
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] lettrine.sty, but not LaTeX

2005-02-27 Thread h h extern
Taco Hoekwater wrote:
David Wooten wrote:
Hmm, this is great.
However, I can't seem to get it to accept an image (Image=true or 
Image=yes). Anyone else have some luck?

It couldn't work. Here is a new version, with fixed image support,
some cleanups in the code, and support for per-argument setup
functionality as provided by \LettrineOptionsFor{...} in LaTeX
The one thing I could not/did not solve is how to make ConTeXt shut
up about 'bodyfont 112.5pt is defined (can better be done global)'.
just do something
in setup: LettrineFont = Serif
in code: \definedfont[Serif at ...]
instead
-
  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] lack of hyphenation

2005-02-27 Thread h h extern
Ciro A. Soto wrote:
The knowlegeable John Culleton said in one of the
lists that he could recognize if a book was typeset
with
MS-word by looking at the rivers and the lack of
but tex is *not* avoiding rivers, since it does not look at it -)
hyphenation. I then checked my 310-page book I am
typesetting with context and not a single line had a
hyphenated word at the end.
what happens when you say:
\en \hyphenatedword{somethingverylong}
when generating a format, are patterns loaded?
if not, make sure that in cont-usr.tex the us hyphenation filename matches the 
one on your system,

ushyph1.tex
ushyph2.tex
ushyphen.tex
hyphen.tex
unfortunately those names change per distribution, year, season, user, blow of 
the winds, etc

[in a next release, already in alpha, you can use different methods, see 
hyphenation document on web site]

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] lack of hyphenation

2005-02-27 Thread h h extern
Taco Hoekwater wrote:
Try this: \showhyphens{hyphenation}
It should print
  Underfull \hbox (badness 1) in paragraph at lines 2--2
  [] \*10ptrmtf* hy-phen-ation
on your terminal. If it doesn't, ConTeXt refuses the hyphenate
English, possibly because the patterns were not loaded in the
format (in that case, updating your ConTeXt is the easiest
solution).
the idea behind the language file posted some time ago is that we can create a 
testbed;

[i can imagine that taco/patrick work out something for the mirror/wiki that 
unpacks the cont-tmf zip, tests format generation and missing things; kind of 
user download simulation]

also, karl berry (tug, tex live, everything tex) is willing to set up a tex live 
related testbed for testing if that distributions are shipped 'correct', so if 
you have test files ...

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] 4UP with no table of content - bug?

2005-02-27 Thread h h extern
Ciro A. Soto wrote:
I have this 310-page book with a table of content
that is alsways fine when I use a single page layout.
When I switch to
\setuparranging [2UP,rotated,doublesided]
it also prints the table of content, however,
if I rerun the job for a second time using
the 2UP, the table of content disappears.
Is it a bug or do I need to do something special?
arranged pages flush entries to the tui/tuo file in a different order and that 
messes up things.

try:
texexec --arrange .
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] Additional steps taken since the first e-mail

2005-02-27 Thread h h extern
Mats Broberg wrote:
However, when I run the test file, I still get the unknown file type:
texmfscripts as the first entry, but the test file seem to be processed
anyway. Does this mean I can forget about this warning?
seesm like your tex binaries and context scripts are not in sync;
Also, what does mktexlsr refer to, that Matthew mentions below? In the
texexec.ini file it is mentioned in relation to fptex and tetex, but
for miktex the corresponding line says:
for  miktex  set  TeXHashExecutable to  initexmf --update-fndb
miktex and web2c have a different filename databases, but miktex has kpsewhich 
bundled so it can work with apps that depend on that

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] small caps

2005-02-27 Thread h h extern
Adam Lindsay wrote:
This is good stuff. I've tried to advocate a naming convention that would
be appropriate to this. I would suggest calling this texnansi-osfsc.enc,
as baseencoding-variant.enc. This is so a modified encoding can
masquerade as the base encoding within ConTeXt.
i'll add the encoding to the distribution (i just made the formatted file with 
the info sent) [of course users will need to generate the tfm files themselves]

once we have made the switch from map files to inline map code, we can apply 
different encodings more easily at the typescript level (no more need for map files)

another thing coming is that pdftex will provide primitives to set those 
encodings independently of other characteristics (hartmut is working on this);

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] lettrine.sty, but not LaTeX

2005-02-27 Thread h h extern
Taco Hoekwater wrote:

Gerben Wierda wrote:
 
how do you handle additions like this in your ConTeXt distribution? 
Will they become part of it for instance?

Hans usually asks authors whether they want the module to be part
of the distribution. Mostly, authors say yes, but not always.
This is just a port of lettrine.sty, and I do not believe it should
be part of standard ConTeXt. I guess that means I should submit
it to CTAN
as usual taco is right -)
the main challenge with such modules is to avoid name conflicts, not so much a 
problem for the taco's who know context inside out, but maybe tricky for others

i can imagine something along the lines:
- if someone has such a port, given that it has aproper namespace, as taco did 
with his module, it can end up in

   context/port/tryout
- once a few people has looked at the code in order to uncover potential areas 
of conflict and/or to identify places that can be contexified [low level calls, 
fonts, etc], and when the code is tagged okay, it can move to

   context/port/final
watch the lower alphabetic order, it will then overload pending copies in tryout
- each module should have a test file that end up in
   context/port/test
so that users can check if things work as expected
being too rigourous is bad for development, but we need to have some 
rules/methods in order not to end up in a low level redefinition mess (not 
unthinkable when one converts from another macro package); of course we can 
always create

- context/port/yourownrisk
- context/port/zombie
last in the search path
as said by taco, ctan is the place to collect the files; each module can have a 
wiki page

taco and i can make t-figurines into an example [reference] for such a model
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] ConTeXt and DocBook - beginner's questions

2005-02-27 Thread h h extern
Adam Lindsay wrote:
These namespaces contain elements with different levels of abstraction.
ContML is higher-level, more structural, fx (just a demonstration, so
far) was a bit more low-level, somewhere between ConTeXt and FO.
one of the downsides of xml is that it comes with set of 'standard solutions' 
that, instead of aiming at specific areas, try to cover all. This sometimes may 
backfire; for instance, at pragma we encounter projects where:

- everyone told us fo is the ultimate solution, so let's apply fo for real 
typesetting i.e. replace dtp, while (1) fo provides a subset of solutions, (2) 
sometimes a typesettign engine needs some info in order to provide a good 
solution (e.g. not all tables are tables, and not all section headers are items, 
and consistent typesetting demands structured font handling instead of local 
font specs and switches)

- our documents are coded in xml, so we can do everything we want, while in 
practice most docs are rather poorly coded, lack detail, lack detailed 
structure, demonstrate tag abuse, etc. you don't wanna know what we run into

- the idea behind the fx approach is to stay in the xml realm while providing 
the full power of a typesetting engine; for instance, one xan use xslt to handle 
ann the numbering, but at the same time let the typesetting engine know that it 
is dealing with sectioning; or, one can map tabular data onto the most suitable 
mechanism available, or one can stick to symbolic font changes and let the 
engine apply the best strategy

This is one of the biggest blessings and curses of XML. Having helped
design an ISO standard using XML, this had an immense effect on what we
did. Yes, it's a standard, but how can we be sure that people don't try
to create documents with other, private elements?
eh, the   part is standard, element (names) are free
FO isn't for everyone.
In fact, some here have a rather poor opinion of it. (I tend to agree,
but let's try to steer away from a flame war.)
one interesting application of fo i see is 'placed xml'
[all those approaches, fo included, have their pro's and con's so let's support 
them all and use them when applicable;

However, XSL-FO is rather indisputably a page layout vocabulary, and not
semantic/structured markup. If you're from the TEI world, I don't need to
go further there.
one thing that i notice in applying fo is that it is used in ways and for docs 
that would look way better when simple mapping was used, apart from the fact 
that it would process faster;

xml - xslt - xml - intermediate tex - tex - pdf
xml - xslt - xml - context - pdf
is a solution for many situations : use xslt for powerfull manipulations (for 
which tex is not real handy) and use tex for doing the typesetting


Creating these workaround
vocabularies adds another layer to processing and seems to add to the
complexity of processing XML.
the idea is to have libraries with xml snippets (compare this to xslt: we now 
see libraries showing up there as well to get around the nasty bits)

Depends on the source format. I use that extended ContML as an
intermediate format, because I'm converting from a much more complex file
format that doesn't make the document structure very transparent. That
suits my needs well.
that's indeed the idea
It's one of the reasons why I bring things to my intermediate format that
corresponds with ConTeXt macros: I can break into expert ConTeXt to
configure things when I want to get sophisticated.
indeed, but i admit that we need to provide demos of that approach in order to 
show the benefits

[another benefit is that when we stay in the xml realm, we can use xml editors 
and such]

for a starter, just play with
  xml - xslt - contextcode - pdf
  xml - xslt - xml - contextmappings - pdf
  xml - contextmappings - pdf
first, because you get a feeling for what context does then,
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] Re: lack of hyphenation

2005-02-27 Thread h h extern
Taco Hoekwater wrote:
Patrick Gundlach wrote:
Hello Hans,
MS-word by looking at the rivers and the lack of

but tex is *not* avoiding rivers, since it does not look at it -)

Not yet :-)

It is easy to make TeX look, but not as easy to make it see :-)
It has to do with grayness, so i wonder what happens if a paragraph would be 
converted into a bitmap and analyzed with a neural net

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] Additional steps taken since the first e-mail

2005-02-27 Thread h h extern
Johannes Werner wrote:
newinstaller,
i struggled more than one day with installation of context. i'm using a 
different OS (redhat linux) and have a different tex-distribution on it 
(tetex), but maybe this hint is useful for you too:
in the tetex-distro there is a file .../texmf/web2c/fmtutil.cnf . in 
this file the lines for context were commented by default - you have to 
uncomment them and run fmtutil --missing afterwards (or fmtutil 
-all, if you have more time). maybe in miktex there's somthing 
similiar. at my first try i forget to run fmtutil, edited texexec.ini 
and run texexec --make which worked. but afterwards context had some 
special features.
texexec --make --alone
will not use fmtutil
(since fmtutil does not support the engine model of tds the latest versions of 
texexec no longer call fmtutil, so if you want to use fmtutil instead you need 
to uncomment those line)

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] arabtex support - we broke something

2005-02-27 Thread h h extern
mzm wrote:
Arabic processor `ArabTeX' [20050124 patch level 3.11m (24.01.2005)]
I believe the version is 3.11, patch level m. The one I from CTAN dated 
at 24/01/2005.
hm, i run 3.08 (texlive) and that one runs ok; can you try 3.08
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] Bad page breaks!

2005-02-27 Thread h h extern
G.C.H.M. Verhaag wrote:
 Hans Hagen wrote:
..
did you try:
\widowpenalty=0
\clubpenalty=0

Sorry, for the somewhat delayed response!
I tried these penalty settings but they seem to have not effect at all! 
The only way out is probably rearranging several paragraphs.

However I find it strange that I can't influence this page breaking at all!
can you make a small sample file that you would like to see different?
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] XML and context

2005-02-24 Thread h h extern
Paul Tremblay wrote:
On Wed, Feb 23, 2005 at 09:33:40AM +0100, Hans Hagen wrote:
The mapping variant discussed in the magazine can be seen as a future xml 
based layer around the context tex core; a kind xml based typesetting 
engine so that one can do without tex programming and stick to xml tools 
(which some prefer)

Hans

But my unerstanding is that the mapping technique does not take care of
white space. So if I have:
pSome paragrah in XmL
with 

space
/p
This could get converted as:
Some paragrah in XmL
with 

space
\par
Which would produce 3 paragrahs.
There is actually a nice small tool TeXML (at sourceforge) that takes
care of this problem. It allows you to use an XML to issue TeX commands,
and then converts those commands into TeX (or LaTeX or ConText). It
takes care of white space.
I am one of those people who likes to stick to XML tools, who likes to
convert a tree to a tree. I was wondering the best way to do this. It
seems that using TeXML is the best way. I just wanted to make sure there
was not a more direct way in ConTeXt.
\starttext
\unprotected \defineXMLenvironment
  [p]
  
{\bgroup\def\obeyedspace{\removeunwantedspaces\space\ignorespaces}\ignorelines}
  {\egroup}
\startbuffer
  ptest
  test
test
  test/p
\stopbuffer
\processXMLbuffer
\stoptext
-
  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] arabtex support

2005-02-24 Thread h h extern
mohd zamri murah wrote:
testing and result.
== test.tex 
\input font-arb % the new font-arb you send me
\starttext
\setarab
\novocalize % normal arab document doesn't have the vocal signs.
Some texts in arab. some random thought. here are some arabic words.
\bwkw pndwAn. Below some arabic word with english word. We can
combine them in one paragraph. % \.. will produce line beyond the
margin. use for short arabic only.
\startarabic
  kAjyn ayn mmr.hAl sAtw prwtwtA'yp awntwq mnjAnkn dwkwmn jAwy dry
  dwkwmn rwmy some english words . ay mggwnAkn kwnsyp pgatwrcArA'n
brAsAskn kwmpwnwn . ay mggwnAkn kwnsyp pgatwrcArA'n brAsAskn kwmpwnwn.
\stoparabic
\stoptext
with the attached file and \input m-arabtex (attached) it works here, (tex live 
2005 fonts/arabtex)

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
-


m-arabtex.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] m-letter stationary

2005-02-24 Thread h h extern
Rob Ermers wrote:
Hans,
Thank you very much for your code. Both types of the stationary come out 
smoothly. There is however a small bug in it.

I need a different stationary starting from every second page of my 
letter. If my file contains 4 letters consisting of 8 pages, his means 
the following:

letter 1 -- page 1 -- stationary-1.pdf
letter 1 -- page 2 -- stationary-2.pdf
letter 2 -- page 1 -- stationary-1.pdf
letter 2 -- page 2 -- stationary-2.pdf
...
The code, however, does the following:
letter 1 -- page 1 -- stationary-1.pdf
letter 1 -- page 2 -- stationary-2.pdf
letter 2 -- page 1 -- stationary-2.pdf
letter 2 -- page 2 -- stationary-2.pdf
...
That's to say, there is only one sheet with stationary-1, all other 
pages are printed on stationary-2.

Do you see a possibility to adapt this?
quick answer:
\setlayer[page][odd][...]{...}
-
  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] m-letter stationary

2005-02-24 Thread h h extern
Rob Ermers wrote:
I'm sorry, I tried to apply the code in various ways, but I cannot get 
it running. The variables are all gone now [page] has taken their place. 
How do I have to apply this code?
\definelayer[test][doublesided=yes,state=repeat]
\setupbackgrounds[page][background=test]
\setlayer[test][left] []{VERY ODD}
\setlayer[test][right][]{VERY EVEN}
\starttext
test \page test \page
test \page test \page
test \page test \page
\stoptext
-
  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] texfont problem on windows

2005-02-24 Thread h h extern
Duncan Hothersall wrote:
I'm using the minimal windows installation of ConTeXt, texsync'ed today. 
The vptovf.exe program as used by the texfont script seems to have a 
version mismatch. It throws an error saying that it can't find 
tl80kpse.dll. In fact the version in the minimal tree is tl90kpse.dll. 
This means that texfont can't install new fonts, since no virtual font 
files are created.

I'm sure I can work around this either by updating my local vptovf.exe 
or finding the relevant dll on the web somewhere, but it should probably 
be fixed in the tree if possible. Thanks!
i'll have a look; there has been a moment when vptovf was a copy of vftovp in 
the source tree or bin tree of tl, and so i just copied the old one in my tree;
afaik this has been solved

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] arabtex support - we broke something

2005-02-24 Thread h h extern
mohd zamri murah wrote:
Using test.tex and your new m-arabtex.tex, it fail. log and my solution below.
what version of arabtex do you use?
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] encoding problem

2005-02-24 Thread h h extern
Was this problem solved? If not, the problem may be in not loading a map file; 
typescripts take care of this.

btw, one you see the light, typescripts are not that hard, see examples in wiki, 
 Bill M's font page and Adam L's myways.

Hans


Hello,
I'm working on some XSL stylesheets for translating XML documents into
Context. Although I've read the document Fonts in Context and
understood that one could use typescripts for managing fonts, in the
context of my stylesheets I'd rather like to stick to the
\definebodyfont command, because so far it works and I'm a bit confused
about all those indirections one has to use when defining typescripts.
The only thing which doesn't seem to work are font encodings. Please,
take a look at the following document:
%
\enableregime[il1]
\mainlanguage[de]
\language[de]
\setupencoding[default=texnansi]
\definefontsynonym[NewCenturySchoolbook][pncr8r][encoding=texnansi]
\definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt][rm]
  [tf=NewCenturySchoolbook sa 1]
\definefont[nctr][NewCenturySchoolbook at 10pt]
\setupbodyfont[10pt]
\starttext
{\nctr \showcharacters}
{\showcharacters}
\stoptext
%
Defining the font directly with \definefont leads to a
texnansi-encoded table of characters, so that I could use the special
German umlaut characters (which is my intention, of course). The
definition of the font with \definebodyfont produces a default-encoded
table with characters, which are *not* texnansi-encoded, because all the
umlaut characters are missing. At least using Windows XP, TexLive 2004
distribution (MikTeX). I don't understand why this happens for two reasons:
1. Both commands (\definebodyfont and \definefont) use the same synonym
for the font, with an explicitely defined texnansi-encoding.
2. The default encoding of the whole document was set to texnansi.
It is getting even more disturbing when I'm setting the body font size
to 12pt. (Using the command \setupbodyfont[12pt]). Then both tables are
showing a texnansi-encoded font. What has font size to do with encodings?
Since I don't want to use a body font size of 12pt in all of my
documents, only to be able to use German umlaut characters, any hints to
what I'm doing wrong here would be appreciated very much.
Thanks in advance,
Stefan Ohletz
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

--
-
  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] pdf-mode

2005-02-24 Thread h h extern
Peter Münster wrote:
Hello Hans,
I've just read your mmodes.pdf. Very helpful, thanks!
Could you also add a pdf-mode?
For now, I'm doing it like this:
\input ifpdf.sty
\ifpdf
 \enablemode[pdf]
\fi
I'll add \jobsuffix as systemmode:
\startmode[*pdf] ...
\startmode[*dvi] ...
be aware of the fact that this is only true when a driver is loaded
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] Re: server down ?

2005-02-13 Thread h h extern
Steffen Wolfrum wrote:
http://www.pragma-ade.com/context/install/mswincontext.zip
but there is no connection to pragma-ade.com or .nl at all.
hm, a spontaneuous reboot etc etc; i need to fix a cpu fan i guess; normally you 
can use

  www.pragma-pod.com
which has the same stuff or taco's mirror at:
  tex.aanhet.net
Are you working on the server, when is it up again?
actually, the heating up comes from rsyncing -)
Is there already a more recent (after Dec.2004) version of 
mswincontext.zip ?
not yet
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] server down ?

2005-02-13 Thread h h extern
VnPenguin wrote:
It's the time to think about several mirrors around the world ?
before that i need to fix the machine; drive there, open the box, etc  -)
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] title, subject table of contents

2005-02-13 Thread h h extern
VnPenguin wrote:
But if I replace \chapter by \title; \section by \subject, I can not
have a TOC at all. This is the code:
that's because those are not written to the list;
\startfrontmatter
\charter{xxx}
\stopfrontmatter
gives you unnumbered entries but written to the list;
(it is possible to configure section handlers to number, write to list etc, but 
this is the easiest way)

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] permissions in texmf/scripts/context/*

2005-02-07 Thread h h extern
Thomas A.Schmitz wrote:
True, but that's not what mtexmfstart.pdf says...
if one uses texmfstart, you only need to set the permission of texmfstart in the 
 bin path; nowadays, my calls to script in the bin paths look like:

texexec -
#!/bin/sh
texmfstart texexec.pl $@
that way i'm independent of anything funny that will happen with kpsewhich 
(since i only need to adapt texmfstart); think of recent changes in the script 
path and scriptpath location method;

btw, you can use texmfstart for more things, like
  texmfstart --direct scite kpse:texmf.cnf
this will launch scite and open the texmf.cnf file used by your current 
installation.

texmfstart
version  : 1.5.2 - 2003/2004 - www.pragma-ade.com
usage: texmfstart [switches] filename [optional arguments]
switches : --verbose --report --browser --direct --execute --locate
   --program --file   --page--arguments
   --make--lmake  --wmake
example  : texmfstart pstopdf.rb cow.eps
   texmfstart --locate examplex.rb
   texmfstart --execute examplex.rb
   texmfstart --browser examplap.pdf
   texmfstart showcase.pdf
   texmfstart --page=2 --file=showcase.pdf
   texmfstart --program=yourtex yourscript.pl arg-1 arg-2
   texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml
   texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml
   texmfstart --iftouched=normal,lowres downsample.rb normal lowres
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] permissions in texmf/scripts/context/*

2005-02-07 Thread h h extern
Thomas A.Schmitz wrote:
I'm wondering if this is a bug: I tried to play around with the 
texmfstart script, but couldn't get it to work. I think the latest 
cont-tmf.zip installs those files with wrong permissions. Here's what I 
got:

-rw-r--r--1 tas   15k Jan  6 13:41 concheck.rb
-rw-r--r--1 tas   25k Jan 28 09:28 ctxtools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 exa
-rw-r--r--1 tas   21k Dec 20 21:31 texmfstart.rb
-rw-r--r--1 tas  6.5k Jun 14  2004 texsync.rb
-rw-r--r--1 tas   23k Oct 15 19:15 textools.rb
-rw-r--r--1 tas   13k Oct 27 18:27 xmltools.rb
drwxr-xr-x3 tas   102 Feb  6 21:00 xmpl
same is true for scripts/perl/ Shouldn't they all have permission 755?
i generate the zips on my windows, so there are no such permissions present in 
the zip; here, on linux, i just do a

  chmod -R 755 *
in the tex root path; after that, when updating, the permissions stay okay. Of 
course one can limit the x flag to the bin path, but i'm not that picky on 
permissions -)

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] limit the scope of Chinese

2005-02-07 Thread h h extern
Fei He wrote:
Hello,
I have been working on a document that mixes a little Chinese and more
of the rest English. How do I limit the scope of the Chinese module?
For example, I want Chinese to show up in the title, which is done by
loading the Chinese module. But the date of the document changed to
Chinese too, which I do not want.
Can I just use one or two Chines character at some certain place while
all the rest of the document remains not affected?
at the document level \mainlanguage[en]
and {\language[cn] when doing chinese}
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] pdfeTeX crashes

2005-01-30 Thread h h extern
Mojca Miklavec wrote:
The problem was most probably caused by PNG images, exported from MS 
PowerPoint slides, an example is on 
http://pub.mojca.org/mailinglists/context/alpha.png.
I forwarded your mail to the pdftex dev list
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] style.pdf

2005-01-30 Thread h h extern
Taco Hoekwater wrote:
[EMAIL PROTECTED] wrote:
In updating my context documentation today, I managed to overwrite my
copy of .../general/manuals/style.pdf, which I was studying. Is this
document still available, perhaps renamed - it don't find it in the list
of files in http://www.pragma-ade.nl/wget.txt.

I do not think it exists anymore on the Pragma site, but you can get
it from my mirror:
   http://context.aanhet.net/general/manuals/style.pdf
It's something preliminary. Teh new website is generated automatically from xml 
files that also are used to genenerate the show-* interfaces; and since 
style.pdf is not yet described there, it is not present and accessible.

Last week i added a chapter about protruding and hz, so I may as well upload a 
new version some day soon

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 - spine centered figure

2005-01-30 Thread h h extern
Ciro A. Soto wrote:
I am hoping to get the version 1.  The other version
is like an exercise for me, to see how it would be
done.
well, the machinery is there, and there are several solutions, of which i show 
only one (watch further on how we enable clipping);

don't forget to submit this example to the wiki
\definelayer
  [page]
  [width=\paperwidth,
   height=\paperheight,
   offset=-\measure{page-bleed},
   doublesided=yes]
\setupbackgrounds
  [page]
  [background=page]
\setuppagenumbering
  [alternative=doublesided]
\definemeasure [page-bleed] [\dimexpr(10mm)]
\useexternalfigure
  [page-graphic]
  [cow]
  [ width=\dimexpr(2\paperwidth +2\measure{page-bleed}),
   height=\dimexpr( \paperheight+2\measure{page-bleed})]
\starttext
% cleaner here
\startstandardmakeup[doublesized=no,page={empty,left}]
\setlayer
  [page] [preset=lefttop]
  {\externalfigure[page-graphic]}
\stopstandardmakeup
\startstandardmakeup[doublesized=no,page=right]
\setlayer
  [page] [preset=righttop]
  {\externalfigure[page-graphic]}
\stopstandardmakeup
% less intuitive here
%
% \page[left]
%
% \setlayer
%   [page] [left] [preset=lefttop]
%   {\externalfigure[page-graphic]}
%
% \setlayer
%   [page] [right] [preset=righttop]
%   {\externalfigure[page-graphic]}
%
% \startstandardmakeup
%   flush a page
% \stopstandardmakeup
% to show bleeding:
\setuppapersize
  [A4][A3]
\setuplayout
  [location=middle]
\setupbackgrounds
  [page][frame=on]
% add this in order to clip
\setuplayout
  [clipoffset=\measure{page-bleed}]
\startstandardmakeup[doublesized=no,page={empty,left}]
\setlayer
  [page] [preset=lefttop]
  {\externalfigure[page-graphic]}
\stopstandardmakeup
\startstandardmakeup[doublesized=no,page=right]
\setlayer
  [page] [preset=righttop]
  {\externalfigure[page-graphic]}
\stopstandardmakeup
\stoptext
-
  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 - spine centered figure

2005-01-30 Thread h h extern
Ciro A. Soto wrote:
Sorry, I made a typo error. The title of the book I am
reading is Goodbye Gutenberg by Valerie
Kirschenbaum.
A book I recommend for any person interested in 
book design, typography, history, reading, fonts, etc.
hm, i dunno that one; sounds kind of sad, this 'goodbye' -)
i wonder if it makes sense to add a biblography corner to the wiki, where users 
can enter/describe

- good books about typography
- books with special (nice) typography
so that ww have a nice 'example' bibliographic test file as well (xml version as 
well as bibtex one)

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] Russia (cyrillic letters)

2005-01-30 Thread h h extern
Mikael Persson wrote:
Hm, I am entering utf8 code. I am not sure how it got converted in the
email, however, when I type my .tex file I am sure that it is in
utf-8. But you mean that this example should work?
I attatch the testfile and the resulting pdf and logs and so on...
tracing shows that the utf part is okay:
\enableregime[utf]
% \definetypeface [russian]
%   [rm] [serif] [computer-modern] [default] [encoding=t2a]
%
% \setupbodyfont[russian]
\starttext
\startbuffer
   % Some russian characters
\stopbuffer
\chardef\utfunicodetracer=0 \blank \getbuffer \blank
\chardef\utfunicodetracer=2 \blank \getbuffer \blank
\chardef\utfunicodetracer=7 \blank \getbuffer \blank
\stoptext
but i cannot test the font part, can you send me a zip with your t2a tfm files 
and map file and enc file?

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
-


u-test.pdf
Description: Adobe PDF document


u-test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] runaway argument context(mswintex)

2005-01-30 Thread h h extern
Julian Haworth wrote:
\c!directory ={\setupsystem [\c!n =1] \setupsystem [inputfile=hello.t\ETC.
! File ended while scanning use of \dosetupsystem.
looks like a messed up cont-opt.tex or whatever, there can be no \setupsystem 
inside a key=value; maybe some messed up texexec.pl file?

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: Context update problem

2005-01-30 Thread h h extern
Fei He wrote:
Hello folks,
 
I ran into this strange problem today. First, I was trying to use
Chinese in Context. After I generated those font files, it occurred to
me that I might want to run: texexec --make. However, I got the
following error message:

C:\localtexmf\tex\context\base\font-uni.tex
loading: context font macros / UNICODE Support
system (E-TEX): [line 423] \protected
! Undefined control sequence.
Naturally, I thought it might help by updating context again. But no
luck. Still run into the same problem. The font-uni.tex file is
untouched whatsoever. Does it have something to do with the Chinese
font? Thanks a lot in advance!!
this looks like some pdftex/pdfetex mix-up, or otherwise some file not being 
loaded (syst-gen.tex)

Do you have old and new files mixed up?
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] Using LateX packages

2005-01-26 Thread h h extern
Holger Peters wrote:
Hi,
I want to use a LaTeX Package (clrscode), or at least I want to port it 
to Context.

http://www.cs.dartmouth.edu/~thc/clrscode/
hm, not complex but mostly calls to latex font switches ans such
Is there some way to use LaTex Packages (I guess not).
so you need to rewrite it
Is there documentation about writing ConTeXt modules? (I didn't find any).
- try to use high level constructs (or ask me to provide them -)
- only use low level macroe documented in syst-*.tex and supp-*.tex (the ones 
mentioned in \macros, not the \dododo things)
- think fresh, forget about how other packages do it, think about what *you* 
want / need
- user modules are prefixed with t- (m- x- p- and s- are reserved for core 
modules and styles)

Now, about your code beautifier. Since you end up with additional markup anyway, 
why not go XML. You can then embed that in you tex document as usual (and have 
the full power of context available) but also use the code in webpages.

To give you an idea:
\starttext
\long\def\startcode#1\stopcode
 {\begingroup
  \startXMLmapping[code]%
  \enableXML\scantokens{#1}%
  \stopXMLmapping
  \endgroup}
\newcount\codedepth
\newdimen\codeindent \codeindent=1em
\def\incrementcodedepth
  {\advance\codedepth\plusone
   \ifnum\codedepth\plusone \advance\leftskip\codeindent \fi
   \relax}
\def\decrementcodedepth
  {\ifnum\codedepth\plusone \advance\leftskip-\codeindent \fi
   \advance\codedepth\minusone
   \relax}
\defineregister[function][functions]
\setupregister[function][expansion=yes]
\startXMLmapping[code]
  \defineXMLsingular [if]   {\endgraf{\bf if}\incrementcodedepth}
  \defineXMLsingular [then] {{\bf then}\endgraf\incrementcodedepth}
  \defineXMLsingular [else] {\endgraf\decrementcodedepth{\bf 
else}\endgraf\incrementcodedepth}
  \defineXMLsingular [end]  {\endgraf{\bf end}\decrementcodedepth\endgraf}

  \defineXMLsingular [int]  {{\bf int}\space\ignorespaces}
  \defineXMLsingular [bool] {{\bf bool}\space\ignorespaces}
  \defineXMLsingular [var]  [id='x'] {{\tf \XMLop{id}}}
  \defineXMLenvironment [function] [id=unknown]
{\endgraf\function{\XMLop{id}}{\bf function}\space{\sl\XMLop{id}}\space}
{\endgraf\incrementcodedepth}
  \defineXMLenvironment [return]
{{\bf return}\space}
{\endgraf}
  \defineXMLenvironment [c]
{\bgroup\setups{code:comment}\type{//* }\ignorespaces}
{\removeunwantedspaces\type{ *//}\egroup\endgraf}
\stopXMLmapping
\startsetups [code:comment]
  \defineXMLsingular [var]  [id='x'] {{\bs \XMLop{id}}}
\stopsetups
\startcode
function id='ExampleFunction'(bool/ i; int/ j)/function
if/ (ilt;10) then/
   cLet's add some comment here. Well, var id='a'/ means nothing to 
me./c
   var id='a'/ := 3
else/
   cThis is a funny language, a kind of mixture./c
   var id='a'/ := 1
end/
returna/return
end/
\stopcode
\blank[3*big]\placeregister[function][criterium=all]
\stoptext
If there is interest in such a module, i can write the auxiliary macros needed 
for it and others can define the languages.

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] cz support

2005-01-26 Thread h h extern
Vit Zyka wrote:
Hallo Hans and other ConTeXters,
I have started to collect and clean up Czech ConTeXt localization. And I 
have discovered that Tomas Hudec includeded Czech (non-trivial) sorting 
rules into texutils.pl (calling czsort.pl from Jan Pazdziora). 
Unfortunately it was not incorporated into official ConTeXt disribution.

Hans, what is your prefereble solution in case of local sorting rules? I 
know, there is \definesortkey, but this mechanism is insufficient for 
Czech. I think that calling external Perl sorting routine is a suitable 
solution. If so, it can be incorporated into current version? Files are 
attached.
in order to do that:
- the pm code should move into texutil
- we should find a way to hook the switch into texexec
now, apart from such an effort, i think we should rethink sorting;
- no funny encodings which demands the sorter to be encoding aware
- no locale dependencies
- readable sorting code -)
steps:
- write named glyphs to the output:
- no longer use direct code in definecommand and defineaccent, i.e.
- define the fallbacks as 'definecharacter ones'
the last two steps actually come first (since adam l. is quite fluent in the 
character names and such, i guess that the both of us need to look into that and 
do that in 'one move'); after that i can rewrite the sort/index code to become
aware of named glyphs and languages, and we can then plug in language specific 
sorting rules [taking care of xml at teh same time]

[it's worth considering to drop the non etex code]
named glyphs are not so much a problem, but we need to clean up the
fallback encoding defs a bit in order to prevent funny expansion
\def\literateencodedtokens
  {% \let\dohandleaccent   \keephandleaccent
   % \let\dohandlecommand  \keephandlecommand
   \let\dohandlecharacter\keephandlecharacter}
\def\convertmeaning#1\to % watch the double expansion !
  {\bgroup
 \honorunexpanded
%\dontexpandencoding % new
 \literateencodedtokens % newer
 \xdef\@@globalexpanded{#1}%
 \xdef\@@globalexpanded{\@@globalexpanded}%
   \egroup
   \convertcommand\@@globalexpanded\to}
\protect
\enableencoding[texnansi] \setupregister[index][keyexpansion=yes]
\starttext
\defineactivecharacter * {\eacute} test \index{test \eacute * \'e test}
\stoptext

-
  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] finishing a module

2005-01-25 Thread h h extern
Thomas A.Schmitz wrote:
Oh dear, thanks so much! This does it, and I'm so impressed what you  
-)
\define\crux   {{\Gf \char 43}}
depending on how you use this, you can consider making those symbols
an other option is
  \define\crux{\getglyph{\getvariable{Greek}{font}}{43}}
or so (untested); such glyphs also scale well.
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] Russia (cyrillic letters)

2005-01-25 Thread h h extern
Mikael Persson wrote:
larm1000 SFRM1000 T2AEncoding ReEncodeFont cm-super-t2a.enc sfrm1000.pfb
and I got sfrm1000.pfb and cm-super-t2a.enc files... So, in order to
have the cm-super fonts working, do I have to generate some files or
do something more?
you need tfm (larm1000.tfm) files but i dunno where to find them, maybe in some 
cmsuper zip

This, I shall ask one russian guy I know.
good, we can repackage the tfm's if needed; (i'm surprised how often fonts / 
names / etc change)

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] Russia (cyrillic letters)

2005-01-24 Thread h h extern
Mikael Persson wrote:
I am looking for a way of writing some home exercises in my Russian
course in ConTeXt. However, so far I have not succeed with it. Should
it work out of the box without installing any new fonts (I am having
the fonts from a full install of TeXLive2003 now)? I have looked a bit
in the source files for context, but with no luck.
well, i just took a look in the latest tex tree, and i cannot find a trace of 
the russian fonts that are defined in abundance in context's type-enc.tex; one 
problem with russian is that nobody seems to be responsible to get all the right 
stuff on tex live;

Based on the definitions, the following should work (and is reported to work):
\starttext
\definetypeface [latin]
  [rm] [serif] [latin-modern] [default] [encoding=texnansi]
\definetypeface [russian]
  [rm] [serif] [computer-modern] [default] [encoding=cyr] % t2a
\latin   \dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf
\russian \dostepwiserecurse{`a}{`z}{1}{\char\recurselevel} \endgraf
\stoptext
In order to get it working i suggest those using russian to do the following:
- determine what encodings are *really* in use
- collect the tfm/vf/pfb files that are needed to get that done
- build me the right map files
(i probably involves some fonts from cmsuper; so ... what is the reasonable 
subset that we need; if needed we can stick to a few reasonable sized (as we do 
with greek); it's mostly the math that is sensitive to design sizes)

we can then make a proper subset for (1) tex live and (2) the minimal context 
distribution; even better would be to have those glyohs needed to be added to 
the latin modern fonts [i can look into that later]

I guess there are different ways to achieve this, however, since I
also want some swedish text in the same documents, the best would
probably be if one of the following options worked:
the simpliest is to switch font and language at the same time (but i cannot test 
anything if i have no fonts running on my sytstem]

1) Typing everything in utf8, and get the different languages
automatically when compiling.
currently the utf handler does not change fonts, but since language switches are 
to be given anyway, it can be hooked into the language handler if needed

2) Typing everything with western letters, having some kind of
\startrussia Boris \stoprussia and get Boris typeset with Cyrillic
letters.
Just language+font switches using the typeface macros.
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] processaction in keyval lists[SOLVED]

2005-01-23 Thread h h extern
Thomas A.Schmitz wrote:
   [SomeFont1 =\def\MyFont{somefont },
SomeFont2 =\def\MyFont{someotherfont }]
no spaces before the =
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


  1   2   >