Re: [NTG-context] bug with active :!;?

2005-08-29 Thread Hans Hagen Outside

Olivier wrote:


Hi,

Seems like the following crashes conTeXt:

 


see patch below


Strangely enough, the bug doesn't seem to occur in
 \placeformula[eq:A]
 


references get their labels cleaned up


Many thanks for hinting a fix,
 


\unprotect

\def\dopreventmode[#1]%
 {\protect
  \cleanuplabel{#1}%
  \rawprocesscommalist[\cleanlabel]\dodopreventmode}

\def\doenablemode[#1]%
 {\protect
  \cleanuplabel{#1}%
  \rawprocesscommalist[\cleanlabel]\dodoenablemode }

\def\dodisablemode[#1]%
 {\protect
  \cleanuplabel{#1}%
  \rawprocesscommalist[\cleanlabel]\dododisablemode}

\def\docheckformode#1#2#3% will be sped up with a quit
 {\cleanuplabel{#3}%
  \protect
  \checkedmodefalse
  \rawprocesscommacommand[\cleanlabel]\dodocheckformode
  [EMAIL PROTECTED]@EA#2\fi}

\def\docheckforallmodes#1#2#3% will be sped up with a quit
 {\cleanuplabel{#3}%
  \protect
  \checkedmodetrue
  \rawprocesscommacommand[\cleanlabel]\dodocheckforallmodes
  [EMAIL PROTECTED]@EA#2\fi}

\long\def\dodostartsetups#1#2#3% watch out: not \grabuntil
 {\cleanuplabel{\??su#2:#3}%
  \dograbuntil#1{\egroup\dodoglobal\long\setvalue\cleanlabel}} 


\def\dosetupsA#1%
 {\cleanuplabel{#1}%
  \processcommacommand[\cleanlabel]\dosetups}

\def\dosetupsB[#1]%
{\cleanuplabel{#1}%
 \processcommacommand[\cleanlabel]\dosetups}

\def\dosetupsC[#1]%
 {\cleanuplabel{#1}%
  \dosetups\cleanlabel}

\protect

\useencoding [ffr] \mainlanguage[fr]

\setupheadertexts[text][\setups{run:left}]

\startsetups run:left
   nothing
\stopsetups

\starttext
   Nothing special here
\stoptext

\endinput

With the next pdftex we will not need this active mess any more since pre-char spacing will be supported natively; by that time we need to adapt the ffr 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] footnote twiks

2005-08-29 Thread Hans Hagen Outside

Ciro Soto wrote:


Hello,

I need two more twiks for my footnotes:
I am using asterisk instead of numbers or letter for the footnotes.


Twik 1:
My font is too slanted and the asterisk (*) is printed too close to the
last word in the sentence.
Example:
Charles IV \footnote[]{asdfasdf}
will print an asterisk touching the V letter.
How do I instruct context to give me some room between the V and the asterisk?

Second twik:
How to control the distance between the page text and the rule line
that separates
the footnote and the page text?
I tried the distance=, th
e height=  arguments in the
setupfootnotes, but they don't do
what I want.
thank you
 


patch in core-not:

\unprotect

\def\dolastnotesymbol
 {\removeunwantedspaces
  \doifitalicelse\/\donothing % Charles IV \footnote{the fourth}
  \ifdim\lastkern=\notesignal
\dodonotesymbol{\kern\noteparameter\c!distance}% gets the font 
right, hack !

  \fi
  \nobreak
  \doifelse{\noteparameter\c!interaction}\v!no

{\dodonotesymbol{\lastnotenumber\domovednote\v!previouspage\v!nextpage}%

 \ifconditional\pagewisenotes
   \rawreference\s!fnt{\s!fnt:f:\internalfootreference}{}%
 \fi}
{\gotobox
   
{\dodonotesymbol{\lastnotenumber\domovednote\v!previouspage\v!nextpage}}%

   [\s!fnt:t:\internalfootreference]%
 \rawreference\s!fnt{\s!fnt:f:\internalfootreference}{}}%
  \globallet\lastnotesymbol\relax}

\protect

\starttext

\setupfootnotes[conversion=set 1]

{Charles IV  \footnote{oeps}}
{\sl Charles IV  \footnote{oeps}}
{\bs Charles IV  \footnote{oeps}}

\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] How to customize the default verbatim colors

2005-08-29 Thread Hans Hagen Outside

Taco Hoekwater wrote:



  %% allows XML tag names to continue after colons (namespaces)
  \input verb-xml % TRICK
  \appended\gdef\XMLsetspecials{\setpretty`\:=10 }


thanks, patched 

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] Issues: framedtext and tables inside itemized list

2005-08-29 Thread Hans Hagen Outside

Mojca Miklavec wrote:




However, in ConTeXt the linewidth is reserved for rule thickness or
something similar. Which is the ConTeXt alternative to LaTeX's
\linewidth?
 

\setlocalhsize \the\localhsize 

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] Palatino truetype: help!

2005-08-29 Thread Hans Hagen Outside

VnPenguin wrote:


\usetypescriptfile[type-pala]
\usetypescript[MSPalatino]
 


\usetypescript[MSPalatino][t5]

or

\usetypescript[MSPalatino][\defaultencoding]


\setupbodyfont[MyPalatino,12pt]
 


-
 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] Suitable mechanism for Theorems and Definitions

2005-08-29 Thread Hans Hagen Outside

Taco Hoekwater wrote:



Hi David,

Not sure if you are still interested, but here is my optional title
hack, revamped for a modern context distro. It creates a second
extra optional argument for the enumeration, nothing too fancy.
The example also shows a way in which you can access the number.

This does not solve the list generation, sorry.

Cheers, Taco

%===

\unprotect
\def\dododefinecomplexenumeration#1#2#3%
  {\setvalue{\e!start#1#2}%
 [EMAIL PROTECTED] dostart#1#2\endcsname}%
   \setvalue{dostart#1#2}[##1][##2]%
 {\begingroup\setvalue{#2title}{##2}\getvalue{\e!start#1i#2}[##1]}%
   \setvalue{\e!stop#1#2}{\getvalue{\e!stop#1i#2}\endgroup}}

\def\dodefinecomplexenumeration[#1][#2]%
  {\defineenumeration[i#1]
  [\c!text=#1,\c!stopper=\getvalue{do#1title},#2]%
   \setvalue{do#1title}%
  {\doifnotemptyvalue{#1title}{~(\getvalue{#1title})}}%
   \dododefinecomplexenumeration{}{#1}{#2}%
   \dododefinecomplexenumeration{\v!sub}{#1}{#2}%
   \dododefinecomplexenumeration{\v!sub\v!sub}{#1}{#2}%
   \dododefinecomplexenumeration{\v!sub\v!sub\v!sub}{#1}{#2}}

\def\definecomplexenumeration{\dodoubleempty\dodefinecomplexenumeration}

\protect

\definecomplexenumeration[lemma]

\starttext

\startlemma[lemma1][with a title]
This is lemma \rawnumber[\currentdescriptionnumber]
\stoplemma

\startsublemma[sublemma1][with another title]
This is sublemma \rawnumber[sub\currentdescriptionnumber]
\stopsublemma

\stoptext


ok, i can cook up something along these lines 

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] blocks in itemize

2005-08-24 Thread Hans Hagen Outside

Mojca Miklavec wrote:



Besides that, I would prefer to define something like
  \def\NlEn#1#2{%
\beginNederlandsblok%
  {#1}%
\endNederlandsblok%
\beginEngelsblok%
  {#2}%
\endEngelsblok}

in your case, but you should ask someone else why this doesn't work (I 
guess it's some strange expansion problem again - I never understood 
that topic).


because there is parsing involved (how else to determine the end condition 

you may try: 


\usememorybuffers

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] extra pages after backmatter

2005-08-24 Thread Hans Hagen Outside

Ciro Soto wrote:


Hello,

I am getting 2 extra pages after the backmatter.
Is there any way delete them?
thank you
Ciro

\starttex
 \starfrontmatter
 \input frontmatter.tex
 \stopfrontmatter
 \startbodymatter
\input a_file.tex
 \stopbodymatter
 \startbackmatter
   \input backmatter.tex
 \stopbackmatter
\stoptext
 


\setupsectionblock[...][page=]

-
 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: ConTeXt in MikTeX distribution

2005-08-24 Thread Hans Hagen Outside

Patrick Gundlach wrote:


Hi,


 


Just list another one, font files received from the vendor is usually
in capital
letters, such as PJN_.PFB, but the copy_files routine in texfont.pl only
copy *.pfb, then all the type1 files will not be copy to texmf...
   



This, of course, is a problem that should be addressed. But I always
thought that windows doesn't care about case when globbing. But I
don't have access to a windows machine, so I can't try it out.

Patrick
 


guess why there is:

textools
TeXTools | version 1.2.2 - 2002/2005 - PRAGMA ADE/POD

TeXTools | --downcasefilenames [--recurse] [--force]

I always downcase font files before i install 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] rotated accented character

2005-08-22 Thread Hans Hagen Outside

Mojca Miklavec wrote:



Thank you, Hans! This macro solved two problems at once :)
Now I can also define \udoublegrave (the Aditions for Slovenian and
Croatian section of Unicode ;) by simply putting
\mirror{\texthungarumlaut} as an argument to \topaccent.

 


hm, your little private tex version ...


Definitions of those strange glyphs have nothing to do in the ConTeXt
core, but perhaps you can put the \topaccent there as someone else
could need it as well.
 


ok, done

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] pdflatex and mpost -tex=latex

2005-08-22 Thread Hans Hagen Outside

David Arnold wrote:


All,

Does anyone know if

pdflatex -shell-escape filename

automatically forces metapost to run with -tex=latex?


dunno, but you can so 

mptopdf --latex yourfile.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] Help with LaTeX - ConTeXt book typesetting

2004-09-12 Thread Hans Hagen Outside
Ulrich Dirr wrote:
That's great. Can I combine this setup with another one for left even 
right odd numbered pages? E.g.,
((PAGE 2))
King 1 The King   
((PAGE 3))
 1 The King   Queen
So that I can combine, say \setupheadertexts[][\KHead Queen][\KHead King][]
-- which actually are just two different ornaments -- with your definition
above for 'something'?
 

sure, you can combine whatever you want
you can also set up different header/footers for margins and edged
and there are also top and bottom areas as well as a text area
My log file tells me
bodyfont   : bodyfont 6.6pt is defined (can better be done global)
bodyfont   : bodyfont 6.6pt is defined (can better be done global)
bodyfont   : bodyfont 4.7pt is defined (can better be done global)
bodyfont   : bodyfont 4.7pt is defined (can better be done global)
bodyfont   : bodyfont 7.6pt is defined (can better be done global)
bodyfont   : bodyfont 7.6pt is defined (can better be done global)
bodyfont   : bodyfont 5.7pt is defined (can better be done global)
bodyfont   : bodyfont 5.7pt is defined (can better be done global)
bodyfont   : bodyfont 11.3pt is defined (can better be done global)
bodyfont   : bodyfont 11.3pt is defined (can better be done global)
bodyfont   : bodyfont 9.5pt is defined (can better be done global)
bodyfont   : bodyfont 9.5pt is defined (can better be done global)
Given my definitions for HelveticaNeue -- and assuming they are alright --
where do I setup sizes, and especially in didot or big points?
 

you need to set up bodyfont environments for that (see font manual); the 
complicating factor in fonts is that math needs to be set up.

Here:
\setupoutput [pdftex]
\input pdftexconfig
\enableregime[il1]
\mainlanguage[de]
\starttext
\showstruts
{\em Mhsal der Besten}
Woran arbeiten Sie? wurde Herr K. gefragt. Herr K. antwortete:
Ich habe viel Mhe, ich bereite meinen nchsten Irrtum vor. (B.
Brecht) Aber Hallo! \quotation{all right \quote{there} we go}
\stoptext
 

hm, what do other german users experience/think?
(BTW I've already produced all expanded version with fontinst)
 

wait for the new pdftex (or grab a test versions soemwhere): it has auto 
expansion included, and there i sno need any more to create the 
instances yourself (doen within pdftex)!

If ConTeXt is using the new german spelling  hyphenation rules then:
*108* If ss stands for , then it will be hyphenated s-s. E.g., Grs-se
(instead of Gr-e), heis-sen (instead of hei-en).
*109* The connection of consonants ch, ck, and sch, and also in foreign
words with ph, rh, sh, and th will not be hyphenated in between if they
stands for a single sound. E.g., B-cher, Zu-cker, ba-cken, Fla-sche,
Ma-che-te, Pro-phet, Myr-rhe, Ca-shew-nuss, ka-tho-lisch.
 

so .. what are the proposed changes to the german language specifics in enco-fde.tex? 

Hans 

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


Re: [NTG-context] Help with LaTeX - ConTeXt book typesetting

2004-09-10 Thread Hans Hagen Outside
Ulrich Dirr wrote:
Hi,
I'm recently trying to get ConTeXt typesetting my books like with LaTeX
before (or better). But I can't solve some problems ... Maybe someone can
assist me?
o How do I get the chapter number into the heading? I've tried 
   \setupheader[before=\viii,style=normal]
   \setupheadertexts[chapter]
 but this only puts the chapter title into the heading
 

\setupheadertexts[chapter][chapternumber]
of
\setupheadertexts[{\getmarking[chapternumber] -- \getmarking[chapter]}]
etc etc
o How can I get something similar to LaTeX?
   \fancyhead[C]{%
 {\sffamily\footnotesize
 \leftmark
 \pdef\next{\rightmark}%
 \ifx\next\empty\else\ \textbullet\ \rightmark\fi}%
   }
 which will put the chapter mark centered in the headings, and if there is
a 
 sectionmark then a bullet  sectionmark too.
 

something like: (setups are just a convenience)
\setupheadertexts [\setups{something}]
\startsetups something
\getmarking[chapter]
\doiftext{\getmarking[section]}{\enspace\symbol[1]\enspace}
\getmarking[section]
\stopsetups
o How can I typeset the chapter title across both columns in a two-column 
 setup?
 

hm
\chapter{xxx}
\startcolumns ... \stopcolumns
\chapter{yyy}
etc
o How can I tell ConTeXt the distance between columns? Or should I define 
 only the columnwidth? How? My first defintion looks like
   \setuplayout[width=358dd,lines=46,topspace=11mm,backspace=17mm,

\setupcolumns[distance=123pt]
margin=0cm,marking=on,location=middle,grid=yes,header=12bp,
headerdistance=18bp,footer=12bp,footerdistance=11mm]
o How can I tell ConTeXt to balance the last page? I've tried something
like
   \definecolumnset[two][n=2,tolerance=tolerant,distance=12bp]
   \setupcolumnset [two][balance=yes]
 but this doesn't work.
 

ah, column sets ... see an earlier mail
o Is it possible to setup a project using only didot (or bp) point 
 measurements? How?
 Especially I want a interline space in dd or bp which is flexible like
 \setupinterlinespace[line=1.25\bodyfontsize] but uses dd or bp.
 

\starttext
\input ward
\setupinterlinespace[line=4.25\dimexpr(\bodyfontfactor dd)]
\input ward
\stoptext
o I've tried to setup the typographical correct quotation marks for german
 in the file cont-sys.tex
   \setuplanguage
   [de]
   [leftquote=\rightsubguillemot,
leftquotation=\rightguillemot,
rightquote=\leftsubguillemot,
rightquotation=\leftguillemot]
 When using it, e.g.,
   \quotation{all right \quote{there} we go}
 and using 
   \showstruts
 I got marks at strange places
   |all right |there| we go|
 Should this be corrected somewhere?

dunny, can you make a small test file (so that other german users can 
test along?)

 
o How do I get character protruding and font expansion? (I didn't find the 
 latter in the manual)
 

\starttext
\setuppapersize[A4][A4]
\setuplayout[height=middle,topspace=1cm,header=0pt,footer=0pt]
\showframe
\setupfonthandling [hz] [min=80,max=80,step=5]
\setupfontsynonym [Serif] [handling=quality]
\setupfontsynonym [SerifBold] [handling=quality]
\setupfontsynonym [SerifSlanted] [handling=quality]
\setupfontsynonym [SerifItalic] [handling=quality]
\setupfontsynonym [SerifBoldSlanted] [handling=quality]
\setupfontsynonym [SerifBoldItalic] [handling=quality]
% \setupalign[normal,hanging,hz]
\usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,12pt]
\noheaderandfooterlines
\startbuffer
\dostepwiserecurse{200}{150}{-5}
{\expanded{\setuplayout[width=\recurselevel pt]}
\subject{palatino: no hz, ragged right}
\setupalign[right,hanging,nohz] \input tufte \endgraf
\subject{palatino: hz, ragged right}
\setupalign[right,hanging,hz]
\input tufte \endgraf
\subject{palatino: no hz, aligned}
\setupalign[normal,hanging,nohz] \input tufte \endgraf
\subject{palatino: hz, aligned}
\setupalign[normal,hanging,hz] \input tufte\endgraf
\page}
\stopbuffer
\getbuffer \page
\setuplayout[width=middle]
\typebuffer \page
\stoptext
so, associate a handling (see hand-* files) with a font (before it's 
used! else pdftex does ignore it)

but ... be prepared ... context is set up for the latest pdftex and 
there are some bugs in hz an desp when used with protruding (thanh is 
working on them and the previous code is used for testing)

you need a recent context in order to get the auto expansion done
o Does there exist some support for RCS? In LaTeX I've used 
   \RequirePackage[nofancy]{rcsinfo}
 and then I put in the page area of the crop marks:
 on top
   'Art \ Satz \raise.5pt\hbox{\textbullet} Ulrich Dirr\hfill Seite 
   \thepage \the\count1\ von \numpages'
 and on bottom
   project specific info\hfill \rcsInfoFile\ Rev.\rcsInfoRevision\hfill
   \the\day.\the\month.\the\year\ \printtime
 How can I put these information on the page? Should I use something you 
 called 'Logo types' in the manual or something like layers?
 

if you can give me specs (and an example) of what you need .. probably 
trivial to write

(there is some info mechanism where i then can hook it into)

Re: [NTG-context] location of texsync.rb/minimal ConTeXt installation

2004-09-04 Thread Hans Hagen Outside
Nikolai Weibull wrote:
Where is texsync.rb located at the moment?  It is not on
http://www.pragma-ade.com/system/texsync.rb or anywhere in that
directory, nor in the /context/ one.
 

isn't it under texmf-*/scripts/context/ruby ?
Hans 

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


Re: [NTG-context] Re: location of texsync.rb/minimal ConTeXt installation

2004-09-04 Thread Hans Hagen Outside
Nikolai Weibull wrote:
In linuxtex.zip.bz2 you mean?  (why the double compression?)
 

the zip is not compressed, just use as storage container, bzipping  the 
whole unzipped lot is more efficient

Then no.  Neither is it in any of the cont-*.zip files;
nor in
http://www.pragma-ade.com/system/usr/local/context/tex/texmf-local/scripts/context/ruby/
 

hm, i'll have a look, file attached
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
-
#!/usr/bin/env ruby

# program   : texsync
# copyright : PRAGMA Advanced Document Engineering
# version   : 1.1 - 2003/2004
# author: Hans Hagen

# For the moment this script only handles the 'minimal' context
# distribution. In due time I will add a few more options, like
# synchronization of the iso image.

banner = ['TeXSync', 'version 1.1', '2002/2004', 'PRAGMA ADE/POD']

unless defined? ownpath
ownpath = $0.sub(/[\\\/]\w*?\.rb/i,'')
$:  ownpath
end

require 'xmpl/switch'
require 'exa/logger'
require 'rbconfig'

class Commands

include CommandBase

@@formats = ['en','nl','de','cz','it','ro']
@@always  = ['metafun','mptopdf','en','nl']
@@rsync   = 'rsync -r -z -c --progress --stats  --exclude=*.fmt 
--exclude=*.efmt --exclude=*.mem'

@@kpsewhich  = Hash.new

@@kpsewhich['minimal']   = 'SELFAUTOPARENT'
@@kpsewhich['context']   = 'TEXMFLOCAL'
@@kpsewhich['documentation'] = 'TEXMFLOCAL'
@@kpsewhich['unknown']   = 'SELFAUTOPARENT'

def update

report

return unless destination = getdestination

texpaths = gettexpaths
address  = option('address')
user = option('user')
tree = option('tree')
force= option('force')

ok = true
begin
report(synchronizing '#{tree}' from '#{address}' to '#{destination}')
report
if texpaths then
texpaths.each do |path|
report(synchronizing path '#{path}' of '#{tree}' from 
'#{address}' to '#{destination}')
command = #{rsync} [EMAIL PROTECTED]::#{tree}/#{path} 
#{destination}/{path}
ok = ok  system(command) if force
end
else
command = #{@@rsync} [EMAIL PROTECTED]::#{tree} #{destination}
ok = system(command) if force
end
rescue
report(error in running rsync)
ok = false
ensure
if force then
if ok then
if option('make') then
report(generating tex and metapost formats)
report
formats.delete_if do |f|
begin
`kpsewhich cont-#{f}`.chomp.empty?
rescue
end
end
str = [@@formats,@@always].flatten.uniq.join(' ')
begin
system(texexec --make --alone #{str})
rescue
report(unable to generate formats '#{str}')
else
report
end
else
report(regenerate the formats files if needed)
end
else
report(error in synchronizing '#{tree}')
end
else
report(provide --force to execute '#{command}') unless force
end
end

end

def list

report

address = option('address')
user= option('user')
result  = nil

begin
report(fetching list of trees from '#{address}')
command = #{@@rsync} [EMAIL PROTECTED]::
if option('force') then
result = `#{command}`.chomp
else
report(provide --force to execute '#{command}')
end
rescue
result = nil
else
if result then
report(available trees:)
report
reportlines(result)
end
ensure
report(unable to fetch list) unless result
end

end

private

def gettexpaths
if option('full') then
texpaths = 
['texmf','texmf-local','texmf-fonts','texmf-mswin','texmf-linux','texmf-macos']
elsif option('terse') then
texpaths = ['texmf','texmf-local','texmf-fonts']
case Config::CONFIG['host_os']
when /mswin/  then 

Re: [NTG-context] Re: How to use PostScript font

2004-08-23 Thread Hans Hagen Outside
Hi Patrick,
Yes, but what is the problem? We are not talking about other fonts,
just the ones preinstalled by psnfss. We know ervery bit of those
fonts, so no need to reflect the spacing etc. in the filename, since
e.g. phvr8t will always have the same characteristics thougout all
distributions. 

 

that's fine for those who use ec fonts, but i happen not to use them (we 
started using texnansi a long time ago; i'm not even sure if ec was 
around that time, and i definitely didn't have access to metrics then)

say that i want to mix polish and german (using qx and ec encoding) in
one doc, i want similar spacing etc, don't i?
   

Right, but qx isn't supplied by psnfss anyway, is it? So you'd have
to make your own font; but I still can't see the drawback in using
those fonts for 99% of [texts covered by ec encoding]. I can agree on
 

well, (other thread), this is why we need an encoding with 'as many 
characters as possible' which means, no funny characters like copyright 
and registered and such  (which spoils slots)  -)

don't mix fontinst installed fonts with afm2... installed fonts when
you need same em width (and alike). But for most texts I bet that
this is not an issue.
 

probably,  so, i have no problems with everyone except me using ec and 
psnfss fonts; and indeed i don't want to mix systems (most of the 
documents i process here use commercial fonts and for those i depend on 
my own font hackery; it simply does not pay off to spent much time on 
figuring out fontinst for that, apart from the fact that i lost track of 
font names long ago -)   

Absolutely. The choose the adobe metrics from psnfss, but as I am
told the URW metrics have somewhat questionable kerning data. And
using URW metrics with Adobe fonts will break on glyphs that are in
URW but not Adobe.
 

right, and that's why i use the urw metrics with urw files (i always 
embed those files, since i don't want operating systems/acrobat/printers 
to swap in their own substitutes and clones); when i use for instance 
palatino from adobe  or linotype, I just generate new metric files.

That is really good. Let me see what I can do with respect to
psnfss/texnansi...
 

ok; btw, also take a look at sieps afm2pl since it has some other nice features 

Hans 

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


Re: [NTG-context] Re: Lucida Bright Fonts from StarOffice

2004-08-23 Thread Hans Hagen Outside
Patrick Gundlach wrote:
Are these fonts exactly the same as the ones that you buy from
yandy.com?
   

I don't know.
 

probably not, i once did a project where  graphics came from all kind of 
organizations, we ended up with (looking in the final pdf file) quite 
some different lucida clones; the file was a font mess anyway so nobody 
noticed i guess; the same may happen with times  and helvetica

as long as the metrics/kerning match the shapes i guess you're safe; on 
the other hand, i don't trust those fonts to remain unchanged, so i use 
the official lucida's

So, copy the attached file (warning: very experimental!!!) to your
directory and try to use it with:
\usetypescriptfile[type-lso]
\definetypeface [lso][rm][serif][lbso] [default][encoding=ec]
\definetypeface [lso][ss][sans] [lsso] [default][encoding=ec]
\definetypeface [lso][tt][mono] [lctso][default][encoding=ec]
\setupbodyfont[lso,12pt]
\starttext
\showbodyfont
\type{The quick brown fox jumps over the 1234567890 lazy dog!}
\switchtobodyfont [ss]
The quick brown fox jumps over the 1234567890 lazy dog!
\stoptext
 

alternatively you can add to your type-loc.tex: 

\starttypescript [serif] [lucida] [ec]
 \definefontsynonym[LucidaBright] [...] [encoding=ec]
\stoptypescript
in which case you can probably use the existing lbr definition 

Hans 


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


Re: [NTG-context] Re: How to use PostScript font

2004-08-23 Thread Hans Hagen Outside
Salman Khilji wrote:
I found out that while trying to install the latest ConTeXt over whatever came 
with texlive2003-inst-20030928.iso, I screwed up somewhere and ConTeXt would 
not even generate me a pdf file with cmr fonts.

So here is what I did.
1) I deleted everything about TeX from my system
2) Installed TeXLive from the iso with default options.  I did not change 
anything.  Just accepted the defaults.
3) I did not install the latest ConTeXt.  I think I will be fine with whatever 
comes with TeXLive as of Sept, 2003.
4) Now I can generate a hello world pdf file with cmr fonts just fine.
 

an alternative is: 

mkdir /usr/local/mytex 
cd /usr/local/mytex 
wget http://www.pragma-ade.com/contextt/linuxtex.zip.bz2 
bunzip2 linuxtex.zip.bz2
unzip linuxtex 
chmod -R 755 
. setuptex /usr/local/mytex
mktexlsr 
texexec --make --alone --all

every time after that 

. /usr/local/setuptex /usr/local/setuptex 

should give you a minimal context tree (i develop on a windows machine, so that is the tree we use on the linux application servers) 

(take a look at cont-sys.tex to see how we set up our context) 

(there is also mswintex.zip.bz2 and macosxtex.zip.bz2) 

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


Re: [NTG-context] Ancient Greek / a few modules for SW with thanks to GB

2004-08-23 Thread Hans Hagen Outside
Giuseppe Bilotta wrote:
Use the attached cbgreek.tex typescript file (Hans, maybe it's
the case to add it to the distribution?) and you should then be
able to type something like this:
 

interesting, it worked right away after adding
 \loadmapfile[cbgreek.map]
so you know greek, interesting; it's so long ago that i had greek at
school, i cannot see if this is old or new greek -)
Attached a type-* (i replaced 10.95 by 11pt) file and a s-* file (watch 
the definition of start/stop),

  \texexec --mode=demo --pdf s-grk-00
should work. In cont-fil.tex add:
  \definefilesynonym [greek] [grk-00]
and then you can say:
  \usemodule[greek]
and go ahead.
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
-

%D \module
%D   [  file=s-grk-00,
%Dversion=2004.08.23,
%D  title=\CONTEXT\ Style File,
%D   subtitle=CB Greek Support,
%D author=Hans Hagen,
%D   date=\currentdate,
%Dsuggestions=Giuseppe Bilotta,
%D  copyright={PRAGMA / Hans Hagen \ Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\usetypescriptfile[type-cbg]

\usetypescript [all] [cbgreek]

\startsetups [cbgreek]

  \catcode`~=\other
  \catcode`|=\other

  \language[greek]
  \switchtobodyfont[cbgreek]

\stopsetups

\definestartstop
  [greek]
  [commands=\directsetup{cbgreek}]

\doifnotmode{demo}{\endinput}

% The following sample file was submitted to the \CONTEXT\
% mailing list by Giuseppe Bilotta, along with the right
% typescripts.

% already loaded: \usemodule[greek]

\mainlanguage[english]

\starttext

We can easily use plain English for normal text, and then switch
to greek when we want; as a first try we type the lower and
upper case 26 letters of the latin alphabet and see how they come
out in greek:

\startgreek
a b c d e f g h i j k l m n o p q r s t u v w x y z \par
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
\stopgreek

As it can be observed, some uppercase letters have strange
outcomes; also, j gives \greek{j} and c gives the
end-of-word sigma \greek{c}; interestingly, s gives either the
normal sigma or the end-of-word one, depending on whether it's at
the end of the word or not: \greek{satrapws}.

Of course we can use the various diacritical signs: accents
(\greek{`a, 'a, ~a}), breathings (\greek{r, w, a}) and
subscribed iotas (\greek{a|, h|, w|}) (these last are pretty ugly in my
opinion); observe how they automatically get the correct position
with uppercase letters: (\greek{`A, 'A, ~A, A, A, A|}).

Can the thing be used for serious work?

\startgreek
'Andra moi 'ennepe, Mo~usa, pol'utropon, 'os m'ala poll`a\hfill\break
pl'agqjh, epe`i Tro'ihs er`on ptol'iejron 'eperse;\hfill\break
poll~wn d anjr'wpwn 'iden 'astea ka`i n'oon 'egnw,\hfill\break
poll`a d 'o g en p'ontw| p'ajen 'algea `on kat`a jum'on,\hfill\break
arn'umenos 'hn te yuq`hn ka`i n'oston eta'irwn.
\stopgreek

\stoptext%D \module
%D   [   file=type-cbg,
%Dversion=2004.08.23,
%D  title=\CONTEXT\ Typescript Macros,
%D   subtitle=CB Greek,
%D author=Giuseppe Bilotta,
%D   date=\currentdate,
%D  copyright=PRAGMA-ADE]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\starttypescript [serif] [cb-greek] [name]

  \definefontsynonym [CBGreek-Regular-Medium-Normal]  [grmn]
  \definefontsynonym [CBGreek-Regular-Medium-Oblique] [grmo]
  \definefontsynonym [CBGreek-Regular-Medium-Italic]  [grmi]
  \definefontsynonym [CBGreek-Regular-Medium-UprightItalic]   [grmu]
  \definefontsynonym [CBGreek-Regular-Medium-Caps][grmc]
  \definefontsynonym [CBGreek-Regular-Medium-Leipzig] [grml]
  \definefontsynonym [CBGreek-Regular-Medium-Roman]   [grmr]

  \definefontsynonym [CBGreek-Regular-Bold-Normal][grbn]
  \definefontsynonym [CBGreek-Regular-Bold-Oblique]   [grbo]
  \definefontsynonym [CBGreek-Regular-Bold-Italic][grbi]
  \definefontsynonym [CBGreek-Regular-Bold-UprightItalic] [grbu]
  \definefontsynonym [CBGreek-Regular-Bold-Caps]  [grbc]
  \definefontsynonym [CBGreek-Regular-Bold-Leipzig]   [grbl]
  \definefontsynonym [CBGreek-Regular-Bold-Roman] [grbr]

  \definefontsynonym [CBGreek-Regular-BoldExtended-Normal][grxn]
  \definefontsynonym [CBGreek-Regular-BoldExtended-Oblique]   [grxo]
  \definefontsynonym [CBGreek-Regular-BoldExtended-Italic][grxi]
  \definefontsynonym 

Re: [NTG-context] Text overwrites float instead of wrapping around it

2004-08-23 Thread Hans Hagen Outside
Adam Warner wrote:
{\bf Lorem ipsum dolor sit amet,} consectetur adipisicing elit, sed do eiusmod
 

this is one of those cases where a par started with a group interferes with other things: 

\noindent (or \indent, of \dontleavehmode) {\bf Lorem 
is the way out 

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


Re: [NTG-context] Ancient Greek / a few modules for SW with thanks to GB

2004-08-23 Thread Hans Hagen Outside
Thomas A.Schmitz wrote:
Sorry for my belated reaction, but I was away from my e-mail for two 
weeks. I'm very excited to see that things are moving on the Greek 
front. Hans, I'm not quite sure I understand what you mean when you 
say we need a greek vector and named glyphs. unicode does asign a 
unique number and name to (almost) any conceivable combination of 
greek vowel + accents/diacritical signs, for example: 1F00 = greek 
small letter alpha with psili. I could see whether I can find a map 
with these corresponding numbers and names somewhere or would be 
willing to write it myself. Is that what you're looking for?
indeed we need names, something:  

\startencoding[default]
\definecharacter greekA{A}
\definecharacter greekB{B}
\definecharacter greekC{C}
\definecharacter greekD{D}
\definecharacter greekE{E}
\definecharacter greekZ{Z}
\definecharacter greekAvowel   {A}
% etc 

\stopencoding 

\startmapping[iso-8859-7]
\definecasemap 182 220 182 \definecasemap 220 182 220 

\stopencoding 

\startencoding[iso-8859-7]
% has errors 

%definecharacter   145 % ``
%definecharacter   146 % ''
%definecharacter   147 % ``
%definecharacter   148 % ''
%definecharacter   162 % 'A
%definecharacter   171 % ((
\definecharacter greekAvowel   182
\definecharacter greekEvowel   184
\definecharacter greekHvowel   185
\definecharacter greekIvowel   186
%definecharacter   187 % ))
\definecharacter greekOvowel   188
\definecharacter greekUvowel   190
\definecharacter greekWvowel   191
\definecharacter greekidiaerac 192
\definecharacter greekA193
\definecharacter greekB194
\definecharacter greekC195
\definecharacter greekD196
\definecharacter greekE197
\definecharacter greekZ198
\definecharacter greekH199
\definecharacter greekJ200
\definecharacter greekI201
\definecharacter greekK202
\definecharacter greekL203
\definecharacter greekM204
\definecharacter greekN205
\definecharacter greekX206
\definecharacter greekO207
\definecharacter greekP208
\definecharacter greekR209
\definecharacter greekS211
\definecharacter greekT212
\definecharacter greekU213
\definecharacter greekF214
\definecharacter greekQ215
\definecharacter greekY216
\definecharacter greekW217
\definecharacter greekIdiaer   218
\definecharacter greekUdiaer   219
\definecharacter greekavowel   220
\definecharacter greekevowel   221
\definecharacter greekhvowel   222
\definecharacter greekivowel   223
\definecharacter greekudiaerac 224
\definecharacter greeka225
\definecharacter greekb226
\definecharacter greekg227
\definecharacter greekd228
\definecharacter greeke229
\definecharacter greekz230
\definecharacter greekh231
\definecharacter greekj232
\definecharacter greeki233
\definecharacter greekk234
\definecharacter greekl235
\definecharacter greekm236
\definecharacter greekn237
\definecharacter greekx238
\definecharacter greeko239
\definecharacter greekp240
\definecharacter greekr241
%definecharacter greeks242
%definecharacter greeks243
\definecharacter greekt244
\definecharacter greeku245
\definecharacter greekf246
\definecharacter greekq247
\definecharacter greeky248
\definecharacter greekw249 
\definecharacter greekudiaer   250 
\definecharacter greekudiaer   251 
\definecharacter greekovowel   252
\definecharacter greekuvowel   253
\definecharacter greekwvowel   254

\stopencoding 

after that we can create a fully expandable unicode vector for greek, like the other unic-* 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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texutil malformed UTF-8 character error

2004-08-22 Thread Hans Hagen Outside
Duncan Hothersall wrote:
I'm running the latest beta on top of a TeXlive 2003 install on linux. 
The job I'm currently running needs various tables of contents (and a 
set of bookmarks) but texutil (v. 8.2) seems to be choking on the .tui 
file at the very end of the run with this message:

 TeXUtil 8.2 - ConTeXt / PRAGMA ADE 1992-2004
action : processing commands, lists and registers
option : sorting IJ under Y
option : converting high ASCII values
input file : nubs-rg-bk.tui
   output file : nubs-rg-bk.tuo
Malformed UTF-8 character (unexpected end of string) at 
/usr/TeX/texmf/scripts/context/perl/texutil.pl line 1520, TUI line 3.
Malformed UTF-8 character (unexpected end of string) at 
/usr/TeX/texmf/scripts/context/perl/texutil.pl line 979, TUI line 3.
Malformed UTF-8 character (unexpected end of string) at 
/usr/TeX/texmf/scripts/context/perl/texutil.pl line 990, TUI line 3.
   passed commands : 1136
 remapped keys : 0
  register entries : 0 - 0 entries 0 references
   synonym entries : 0 - 0 entries
embedded files : 1

As you can see, as a result of the UTF-8 errors the .tui file isn't 
being successfully read, so I'm getting no register entries and hence 
no tables of contents ( or bookmarks).

I'm in the process of composing a minimal example file, but it's tough 
going and I wondered if anyone could point me in the right direction 
from the information in the error message.

I'd be really grateful! (Impossible deadlines approach...)
in cont-new (or cont-sys) you can say:
\def\testbytesequence{}
This 'test' was added in order to determine of tex runs in 8 bit mode. I wonder where the Malformed message comes from. Since when is perl utf-8 by default? 

(i run perl 5.8.0) 

Hans 

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


Re: [NTG-context] Re: texutil malformed UTF-8 character error

2004-08-22 Thread Hans Hagen Outside
Duncan Hothersall wrote:
I wrote:
Malformed UTF-8 character (unexpected end of string) at 
/usr/TeX/texmf/scripts/context/perl/texutil.pl line 1520, TUI line 3.
etc.
Forgot to say, the /tui file in question has this at line 3:
c \thisisbytesequence{^^G^^[#}
which certainly does look a bit funny.
can you check your cp8bit.tcx file? it probably isn't 8 bit -) should be: 

0x00   0x00  %
0x01   0x01  %
0x02   0x02  %
0x03   0x03  %
0x04   0x04  %
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] rectangle-words (like in details.pdf)

2004-08-15 Thread Hans Hagen Outside
Brooks Moses wrote:
However, \fakewords doesn't seem to be a part of my ConTeXt 
distribution (and it's the latest version), so I'm not sure where 
Hans's files are getting it from.
from the 50% files in my source directory that never made it into the distribution -) 

however, the already quite old module m-visual.tex will be in next upload and it will be described in this-way-0007 

Hans  

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


Re: [NTG-context] Bug report, \frac as redefined in m-newmat.tex

2004-08-03 Thread Hans Hagen Outside
Brooks Moses wrote:
At 01:40 PM 8/2/2004, you wrote:
ah ... the alignment lookahead problem, i think we can safely patch 
\mathematics to catch lookahead as well as make frac more robust for 
unwanted expansion

\usemodule[newmat]
\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
\def\mathematics#1{\relax\ifmmode#1\else$#1$\fi}
[...]
That fixes the problem on my end; thanks!
Will you be updating the defintions of \tfrac, \dfrac, and so forth in 
m-newmat to match?  I admit to not being too sure whether I think it's 
a good idea to support using math constructs such as \frac 
do they need patching? they don't use \mathematics afaik
Hans 

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


[NTG-context] patterns

2004-07-27 Thread Hans Hagen Outside
Hi,
The last few years we have encountered problems with changes in pattern 
files and names (dutch was dropped, czech was invalid, and us filenames 
also changed in undocumented ways). To get a bit more control over this 
can of worms, we need a test file that can be added to the tex live test 
suite.

So, what i need is for each language a couple of words that hyphenate in 
unique ways (i.e. they must hyphenate differently than related languages)

\language[xx] \hyphenatedword{..}
can be used to test
Hans
-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] [Fwd: ocplist interactions [please forward]]

2004-07-26 Thread Hans Hagen Outside
--
-
 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
-
---BeginMessage---
[for forwarding to the list]

Dear fellowship,

Using eomega/Aleph, turning on an ocplist will cut off any other font in its 
scope, like pagenumbering. But we have solutions/workarounds:

\setuppagenumbering[command={\clearocplists}]

\def\MYhigh#1{\high{\clearocplists#1}}
\setupfootnotes[numbercommand={\MYhigh}]

or I can actually switch fonts:

\setuppagenumbering[command={\clearocplists\switchtobodyfont[myfont]\myocplist
}]

\def\MYhigh#1{\high{\clearocplists\switchtobodyfont[myfont]\myocplist#1}}
\setupfootnotes[numbercommand={\MYhigh}]

Now I need something similar for the printmarks, because when I temporarily 
switch from a global left-to-right document to a global right-to-left document 
with activated ocplists, the page numbers in the crop marks (predictably) 
disappear. I need some key that allows me to \clearocplists when the crop-mark 
page numbers are read by ConTeXt.

Thnx in advance
Idris


Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd op virussen.
Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst waar op wordt 
gecontroleerd.




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


[NTG-context] [Fwd: SciTE? [please forward]]

2004-07-26 Thread Hans Hagen Outside
--
-
 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
-
---BeginMessage---
[for forwarding to the list]

Dear musketeers,

I was digging in the archives and found

http://www.pragma-ade.com/scite/wscite.zip

But alas, nothing's there! Is the ConTeXt-friendly version of SciTE still 
available?

Best
Idris


Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd op virussen.
Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst waar op wordt 
gecontroleerd.




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


Re: [NTG-context] Problems with left and right

2004-07-24 Thread Hans Hagen Outside
Matt Gushee wrote:
Hello--
I have noticed a couple of cases where ConTeXt macros seem to have
confused left and right sides:
1) I want to format some text in two columns, where the left column
   is right-aligned and the right column is left-aligned. I found I
   had to do this:
 \defineparagraphs
   [ingredient]
   [n=2, before={\blank[small]},after={\blank[small]}]
 \setupparagraphs
   [ingredient] [1] 
   [width=.16\textwidth,align=left,style=bold]
 

nowadays, using \starttabulate[|pl|pr|] is the prefered way
forthermore, think of right as raggedright
2) In order to format format headers for a book so that the book title
   appears on the left-hand page and the section title on the right, I
   had to do this:
 \setupheadertexts [] [section] [title] []
   ... which, as I read the documentation, is in the opposite order to
   what it should be.
Is this a bug in ConTeXt, or have I misconfigured something?
 

no, think of spreads
Hans 

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


Re: [NTG-context] metaobj and transparent colors with \MPcolor

2004-07-24 Thread Hans Hagen Outside
Denis Roegel wrote:
On Fri, Jul 23, 2004 at 09:53:22AM +0200, Eckhart Guthöhrlein wrote:
 

Hi,
I try to achieve transparently filled objects using the metaobj package.
However, transparency is ignored completely in the output, I just get a
normal white. Here is my test file:
   

Hi,
I have never considered transparency in metaobj, and each part of an object
is merely drawn, in some order depending on that object, and with some (opaque) color.
It seems some serious surgery would be needed to seamlessly add transparency
handling. It can certainly be done, be it only by working on an object
structure, but I don't see a quick fix.
 

no, transparency is handled by the colors themselves so if metaobj can carry along a color it's should 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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] side figure and typing

2004-07-24 Thread Hans Hagen Outside
Willi Egger wrote:
\startbuffer[test]
\starttyping
pack .ok .cancel .help -side top
\stoptyping
\stopbuffer
\startbuffer[test]
pack . 
\stopbuffer
\starttext
\SideFigure{right}{pack2}{figure.jpg}{0.25}
{
\getbuffer[test]
\typebuffer[test]
}
Hans
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Problems with left and right

2004-07-24 Thread Hans Hagen Outside
Patrick Gundlach wrote:
[...]
 

Furthermore, this usage of 'align=side' is inconsistent with some
other things in ConTeXt, such as \rightaligned, which behaves as I
would expect it to.
   


I really wish that this align=wrong would change. Isn't there a
switch for that?
 

you may try: \@@asraggedfalse -) 

but that only partially works 

Hans 

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


Re: [NTG-context] Re: Disable Metapost rendering?

2004-07-24 Thread Hans Hagen Outside
Patrick Gundlach wrote:
Hi,
The only way I know of is to disable all mpost runs with 

texexec --nomp ..
 

there is also --automp 

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


Re: [NTG-context] side figure and typing

2004-07-23 Thread Hans Hagen Outside
[EMAIL PROTECTED] wrote:
Hi all !
let us imagine we have defined the following command:
\def\SideFigure#1#2#3#4#5%
 {
   \placefigure[#1]{#2}{\externalfigure[#3][width=#4\makeupwidth]}
   #5
 }
which can be used to put a figure aside a companion text...
but, what happens if the text is to be typed... ??
I guess this won't work:
\SideFigure{right}{pack2}{../figures/tcltk/pack2.jpg}{0.25}
{
\starttyping
pack .ok .cancel .help -side top
\stoptyping
}
How can I make it to work?
 

hm, you could just omit #5 and it would probably work
otherwise you would need to do do a multi step like:
\def\XXX#1#2#3#4%
  {\begingroup
   \obeylines\doXXX{#1}{#2}{#3}{#4}}
\long\def\doXXX#1#2#3#4#5%
 {\place[]{}{}\scantokens{#5}}
or so (untested and probably not correct) 

Hans 

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


Re: [NTG-context] key=value parameters

2004-07-23 Thread Hans Hagen Outside
Vit Zyka wrote:
Great, but unfortunately it does not work with empty parameter list [].
No I have no time but I will look for better definition of 
\rawgetparameters and \rawsetparameter.
I fixed this a while ago, and not have: 

%D \macros
%D   {rawgetparameters}
%D
%D A raw and dirty alternative for \type {\getparameters}; no
%D checking is done!
% \def\rawgetparameters[#1][#2]% scheelt 5\%
%   {\def\rawparameterprefix{#1}%
%\expandafter\rawsetparameter#2,]=,}
%
% \def\rawsetparameter#1=#2,%
%   {\if]#1\else
%  \expandafter\def\csname\rawparameterprefix#1\endcsname{#2}%
%  \expandafter\rawsetparameter
%\fi}
%
% the next one handles empty #1 okay:
\def\rawgetparameters[#1][#2% some 5-10% faster
 {\ifx#2]% test is needed, else bomb on [#1][]
\expandafter\gobbleoneargument
  \else
\def\rawparameterprefix{#1}%
\expandafter\dorawgetparameters
  \fi#2}
\def\dorawgetparameters#1]%
 {\expandafter\rawsetparameter#1,]=,}
-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ftp mirror

2004-07-21 Thread Hans Hagen Outside
Eckhart Guthöhrlein wrote:
On Wed, Jul 21, 2004 at 01:39:41PM +0200, Taco Hoekwater wrote:
 

What about an ftp mirror of all pragma-ade's material, like ftp.wau.nl
some time ago?
 

I don't think that is done at the moment. Why do you want that, BTW?
Here's my wget commandline for the tex.aanhet.net mirror, in case
that is any help:
 wget -t1 -m -np -nv http://www.pragma-ade.com/ -X /pdftex/samples
   

Thanks, Taco, that's all I need. My mind was so fixed on ftp that I
didn't think of wget. 
 

you can also use rsync some trees (see texsync manual) 

Hans  

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


Re: [NTG-context] a problem with \defineprotrudefactor

2004-07-16 Thread Hans Hagen Outside
Bill McClain wrote:
On Thu, 15 Jul 2004 16:59:29 +0200
Hans Hagen [EMAIL PROTECTED] wrote:
 

i've been messing around with that because thanh is updating his
stuff; i need to handle both hz and protruding and more -) 
   

I must ask: would this mean adding Context support for the font
expansion mentioned in his thesis? I've wanted to experiment with that
but as far as I can tell it has previously required too much (for
me) font manipulation outside of tex.
 

the next release of pdftex will do things automatically, so you don't need to define all those special tfm files any more; context will provide a mechanism for controling things (works ok as far as i can test) 

Hans 

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


Re: [NTG-context] continuous numbering over components?

2004-07-16 Thread Hans Hagen Outside
Marko Schütz wrote:
Hi,
I have a project containing products containing components. For one of
the products I want to achieve a continuous numbering (as I get when
`texexec`ing the product file) but I want a single pdf per component. 

I expect that there is an elegant solution, but didn't find it yet. So
any hint is appreciated.
 

technically, if you have run the whole file, you can run a component 

\setuphead[chapter][incrementnumber=mainfilename] 

should pick up numbers from the file; can you test that? i can extend that with setting the page number as well; 

another option is to use texexec --pdfselect
(this can be automated, by picking up numbers from the tuo file; remind me in a few weeks)  

Hans  

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


Re: [NTG-context] textbackground

2004-06-26 Thread Hans Hagen Outside
dr. Hans van der Meer wrote:
Hans,
I definitely see problems  with the 
\starttextbackground[]-\stoptextbackground environment (discussed in 
the displays-brochure).

When the textbackground falls at a page crossing -- i.e. starts at the 
top of a page -- the coloring extends backwards on the page just left.
It can be remedied by putting a \null just in front of 
\starttextbackground. The extra vertical space this introduces just 
manages to constrain the background to its own page. However, this is 
not a general solution, on other places the extra vertical space is 
certainly not wanted.

I cannot find the exact nature of the problem. I suspect it has to do 
with the \output-routines, but these are not my speciality, to say the 
least. So, not much help there,

Also, the \starttextbackground does not respect footnotes, these are 
colored. In contrast, the old \startbackground-\stopbackground does 
respect footnotes. The coloring stops at the footnote and restarts at 
the next page. I should like that for \starttextbackground as well.
can you make me a minimal example of where things go wrong (keep in mind that there are two methods, tex and paragraph) 

with respect to footnotes, maybe i can make that an option (there are more exceptions) 

Hans 

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


Re: [NTG-context] { in input file names

2004-06-22 Thread Hans Hagen Outside
Nikolai Weibull wrote:
Hi.
Another one of my sort of weird questions.  I have a file with { in it's
 

weird indeed, are you searching for the limits of tex/context/your-os?
file name and context doesn't seem to enjoy it much:
 

i only enjoy names that match [a-z0-9\-]
% mkdir {test}
% cd {test}
% mkdir output
% touch a.tex  ed a.tex
0
0a
\starttext
Hello
\stoptext
.
wq
27
% texexec --runpath=output a.tex
 

You can put this somewhere (cont-loc.tex or so) since i'm not that sure 
if it does not interfere, so i (and others) need to test this for a long 
time

% supp-fil
\bgroup % todo: _ cleanup
\catcode`\/=\@@active
\catcode`\:=\@@active
\catcode`\~=\@@active
\gdef\sanitizefilename#1\to#2%
 {\bgroup
  \edef/{\string/}%
  \edef:{\string:}%
  \edef~{\string~}%
  \expanded{\xdef\noexpand\sanitizedfilename{#1}}%
  \egroup
  \let#2\sanitizedfilename%
  \convertcommand\sanitizedfilename\to#2}
\egroup
% core-job
\def\usepath[#1]%
 {\def\docommando##1%
{\doifelse{##1}\v!reset
   {\let\allinputpaths\empty}
   {\sanitizefilename#1\to\ascii
%\convertcommand\ascii\to\ascii
\addtocommalist\ascii\allinputpaths}}%
  \processcommalist[#1]\docommando}
\def\usesubpath[#1]% new, see webschrift for usage
 {\ifx\allinputpaths\empty
\sanitizefilename#1\to\allinputpaths
  \else
\def\docommando##1%
  {\def\dodocommando1%
 {\sanitizefilename1\to\ascii
  \addtocommalist{##1/\ascii}\allinputpaths}%
   \processcommalist[#1]\dodocommando}%
\processcommacommand[\allinputpaths]\docommando
  \fi}

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


Re: [NTG-context] Re: update

2004-06-20 Thread Hans Hagen Outside
Patrick Gundlach wrote:
any chance that you update the context.www or the list of
downloadable files?
 

sure, later
Are xmldir and xmltools different docs?
 

xmltools will include all kind of thing i need so that one will grow, xmldir covers the xmldir functionality of xmltools only 

Hans  

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


Re: [NTG-context] reference problem

2004-06-20 Thread Hans Hagen Outside
dr. Hans van der Meer wrote:
In the ConTeXt manual (cont-eni.pdf) it says in the chapter on 
references by way of example:
can you try the version i uploaded yesterday?
(i introduced a feature and therefore bug but don't know yet why it 
fails on those cases)

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


Re: [NTG-context] update

2004-06-19 Thread Hans Hagen Outside
Willi Egger wrote:
Thanks indeed!
Willi
Henning Hraban Ramm wrote:
Am 18.06.2004 um 22:00 schrieb Willi Egger:
I was looking into the TeXtools manual. Then I looked into the 
cont-tmf.zip and could not find the mentioned ruby scripts.
Do you provide them separately?

Did you look in cont-exa?

I'll add the files to cont-tmf.zip as well (in due time the exa content 
will move into the main zip; first i need to clean up some mess)

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


Re: [NTG-context] update

2004-06-19 Thread Hans Hagen Outside
Gary Pajer wrote:
- Original Message - 
From: Willi Egger [EMAIL PROTECTED]

 

Hi Hans,
I was looking into the TeXtools manual. Then I looked into the 
   

OK, I must be blind.  Where is the TeXtools manual?
 

nicely hidden on the same page (inshow-man.pdf) as texmfstart 

I will add entries to the html pages later 

Hans 

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


Re: [NTG-context] macro expansion in bookmarks

2004-06-16 Thread Hans Hagen Outside
Peter Münster wrote:
Hello,
is there a switch to turn on macro expansion in bookmarks?
Here an example, to show what I mean:
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definesynonyms[Acro][acronymes][\Full]
\Acro{ST}{some text}
\placebookmarks[section]
\starttext
\section{\Full{ST}} % result not as expected in bookmark
\stoptext
TIA for any help, Peter
 

you can simplify commands with: 
	
\appendtoks
 \def\yourdangerouscommand{dont worry} 
\to \simplifiedcommands 

or better in this case:  

\section{\Full{ST}}
\bookmark{some bookmark specific text} 

whatever 


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


Re: [NTG-context] footnote in paragraph

2004-06-16 Thread Hans Hagen Outside
Peter Münster wrote:
Hello,
how could I place a footnote in a startParagraph environment?
\defineparagraphs[Par][n=3]
\starttext
\startPar
bla\Par bla\footnote{a footnote, that gets hidden...}\Par bla
\stopPar
\stoptext
 

\startPar
bla\Par bla\postponefootnotes\footnote{a footnote, that gets hidden...}\Par bla
\stopPar
\flushfootnotes
or 

\starttabulate[]
\NC bla \NC bla \footnote{test} \NC bla \NC \NR
\stoptabulate

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


Re: [NTG-context] \AtBeginDocument

2004-06-13 Thread Hans Hagen Outside
Peter Münster wrote:
\let\startproductO=\startproduct
\def\startproduct{something\startproductO} ?
 

hm, starttext is called anyway so it should work with product as well
you code is wrong, think about something (untested):
\let\petermunstersstartproduct\startproduct
\def\startproduct{something\let\startproduct\petermunstersstartproduct\startproduct}
Peter
P.S.: Unfortunately, it is quite hard to browse the core-*.tex files,
because of the mix of 2 languages...  Are the non-english user-interfaces
really used?
 

sure, i use it, esp for dutch books (styles)
Hans
-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context