Re: [NTG-context] little coding assistance (please)

2007-11-17 Thread luigi scarso
On Nov 16, 2007 12:55 PM, Steffen Wolfrum [EMAIL PROTECTED] wrote:

 Hi,

 I need some help for shorten the TeX code in the following example:

Can you give a short and comprensive example ?

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] little coding assistance (please)

2007-11-17 Thread Steffen Wolfrum
Hi Luigi,


Am 17.11.2007 um 09:06 schrieb luigi scarso:



 On Nov 16, 2007 12:55 PM, Steffen Wolfrum [EMAIL PROTECTED]  
 wrote:
 Hi,

 I need some help for shorten the TeX code in the following example:
 Can you give a short and comprensive example ?


Wolfgang provided me an excellent example that illustrates the idea  
perfectly:

\usemodule[visual]

\def\NFD{9.8pt} % normalfootnotedistance

\def\footnotedistance[#1]%
   {\setupfootnotedefinition[style={\setupinterlinespace[line=\dimexpr 
\NFD*#1\relax]}]}

\starttext

\dorecurse{10}
   {\fakewords{30}{40}\footnote{\fakewords{5}{15}} }

\footnotedistance[4]

\dorecurse{10}
   {\fakewords{30}{40}\footnote{\fakewords{5}{15}} }

\footnotedistance[1]

\dorecurse{10}
   {\fakewords{30}{40}\footnote{\fakewords{5}{15}} }

\stoptext


Now, my problem is that I don't use the footnote definition  
\setupfootnotedefinition[style=...]
but the following instead:
   \def\setnotebodyfont
 {\let\setnotebodyfont\relax
  \restoreglobalbodyfont
 \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt]
\parskip2pt}

And I couldn't find a way to use this with variables like above (\def 
\footnotedistance[#1]...).

Do you know how this should be coded?

Steffen


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] rsync command

2007-11-17 Thread Vyatcheslav Yatskovsky
Hello,

I found that the suggested rsync command for Windows leads nowhere.

rsync -rvzctl rsync://contextgarden.net/minimals/minimals/win   tex

We have only mswin and windows folders inside minimals. 

Best regards,
Vyatcheslav

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TOC: page headers

2007-11-17 Thread Wolfgang Schuster
On Fri, 16 Nov 2007 11:17:51 -0500
Jeff Smith [EMAIL PROTECTED] wrote:

 On Nov 15, 2007 6:02 AM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:
 
  you can use dummy chapters next time without problems. I changed a few
  of your settings because this should be a nice example I could use myself
  in the future (it's to easy to forgot many of the necessary settings).
 
 So the strategy is to use \startsetups. This worked beautifully! Thank
 you VERY much! :-)

The important thing is to change the header after the table of contents
and not before it, you need also to force a page break after the table
of contents or the last page has a rule in the head.

I used setups only to make everything with ConTeXt's setup command and
remove all unnecessary code from the normal text.

 Do you think your example should go in the Wiki somewhere?

Why not, you can increase your chance to win Mojca's price.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] encoding for gothic fonts (was: Long s in ConTeXt)

2007-11-17 Thread Henning Hraban Ramm
Am 2007-11-15 um 11:35 schrieb Andreas Hauser:
 How do I go about finding a font that contains all my special  
 characters?

 I have at least ſ (long s), aͤ (a^e SMALL e ABOVE), ʒ etc. Most  
 are from a
 historical context. And a lot of ligatures. As I understand Mac OS  
 is able
 to produce arbitrary ligatures. But will this work on a Linux too?

That reminds me:
I was considering making font packs for some nice freeware gothic fonts.

I didn't check yet what characters are contained in which, but I  
guess ConTeXt would need some logic to enable proper typesetting of  
blackletter text, e.g. handling s and ſ. Have to look at Yannis'  
efforts for LaTeX, too. And I guess I must recode these fonts to  
follow Unicode standards (should be manageable with a fontforge script).

Any thoughts on that subject? Did someone already care for proper  
gothic typesetting with ConTeXt?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] context installer

2007-11-17 Thread Arthur Reutenauer
 Error in lua file loading: 
 G:\rsync\context-setup-mswin\context\bin\mtxrun.lua:5
 971: attempt to call field 'mkdirs' (a nil value)

  Try and replace it with 'mkdir'.

Arthur
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] context installer

2007-11-17 Thread Hans Hagen
Arthur Reutenauer wrote:
 Error in lua file loading: 
 G:\rsync\context-setup-mswin\context\bin\mtxrun.lua:5
 971: attempt to call field 'mkdirs' (a nil value)
 
   Try and replace it with 'mkdir'.

no, it's mkdirs ... just make sure that you run the right mtxrun


-
   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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] some warnings about fonts

2007-11-17 Thread Vyatcheslav Yatskovsky
Hello,

While luatex was compiling fonts, I noticed some warnings. I suspect they are 
harmless, but I'd better report them.

...
report  fontnames: identifying system font files with suffix ttf
report  fontnames: 101 system files identified, 370 hash entries added, 
runtime 0.812 seconds
report  fontnames: identifying system font files with suffix ttc
report  fontnames: 0 system files identified, 0 hash entries added, runtime 
0.0630002 seconds
report  fontnames: identifying system font files with suffix afm
report  fontnames: 0 system files identified, 0 hash entries added, runtime 
0.0619998 seconds
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
(Sjis-UTF-8)
report  

Re: [NTG-context] some warnings about fonts

2007-11-17 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello,
 
 While luatex was compiling fonts, I noticed some warnings. I suspect they are 
 harmless, but I'd better report them.

rather harmless indeed

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some warnings about fonts

2007-11-17 Thread Arthur Reutenauer
 While luatex was compiling fonts, I noticed some warnings. I suspect
 they are harmless, but I'd better report them.

 [...]

 report  load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 
 (Sjis-UTF-8)

  Mostly harmless.  It's a side-effect of converting some of the strings
in the TrueType name table with a restrained version of iconv that
ships with Fontforge and it does not indicate anything about the font
itself (apart that it's probably a Japanese font, in that case ;-).  I
would say you can ignore these warnings completely.

Arthur
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Context Minimal for Windows installer

2007-11-17 Thread Vyatcheslav Yatskovsky
Hello,

I appreciate your efforts of creating context-setup-mswin, but I always had 
my own way of setting up Context. Today I created full-weight InnoSetup 
installer. 

My installer is native Windows application. It fetches files from contextgarden 
using rsync, then sets variables directly in registry, making Context binaries 
Windows-wide functional. (Call texexec from any application without need of 
setuptex.bat file).

http://rapidshare.com/files/70450795/ContextMinimalSetup.exe

I have tested it only with Luatex engine, but other may work as well.

Hope it will facilitate Context usage on Windows. Fell free to ask questions 
and make suggestions.

Best regards,
Vaytcheslav Yatskovsky

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Context Minimal for Windows installer (cont)

2007-11-17 Thread Vyatcheslav Yatskovsky
BTW, I can share sources as well. Waiting only for what community says. And, 
can it be hosted as alternative installer at minimals.contextgarden.net?

Vyatcheslav

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Context Minimal for Windows installer

2007-11-17 Thread Idris Samawi Hamid
Hi,

On Sat, 17 Nov 2007 16:30:08 -0700, Vyatcheslav Yatskovsky  
[EMAIL PROTECTED] wrote:

 Hello,

 I appreciate your efforts of creating context-setup-mswin, but I  
 always had my own way of setting up Context. Today I created full-weight  
 InnoSetup installer.

Congratulations!

 My installer is native Windows application. It fetches files from  
 contextgarden using rsync, then sets variables directly in registry,  
 making Context binaries Windows-wide functional. (Call texexec from any  
 application without need of setuptex.bat file).

 http://rapidshare.com/files/70450795/ContextMinimalSetup.exe

 I have tested it only with Luatex engine, but other may work as well.

 Hope it will facilitate Context usage on Windows. Fell free to ask  
 questions and make suggestions.

What files exactly are downloaded? just mswincontext.zip?

What are the installation options?

It would be a good idea to add pdftex and xetex formats options as well.

Thanks for the wonderful contribution and all the

Best
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] little coding assistance (please)

2007-11-17 Thread luigi scarso


 Do you know how this should be coded?




 Steffen



 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___


maybe

\long\def\Footnote[#1]#2{%
\def\setnotebodyfont{%
\let\setnotebodyfont\relax
\restoreglobalbodyfont%
\MyFaktor=#1%
\switchtobodyfont[rm,9pt]%
\setupinterlinespace[line=\dimexpr(9.8\MyFaktor)\relax]%
\parskip\dimexpr(2\MyFaktor)\relax%
}%
\footnote{#2}%
}


\starttext
\blank--0---\blank
\dorecurse{05}
  {\fakewords{30}{40}\Footnote[0.987pt]{\fakewords{5}{15}} }
\blank--1---\blank
\dorecurse{10}
  {\fakewords{30}{40}\Footnote[1pt]{\fakewords{5}{15}} }
\blank--2--\blank
\dorecurse{10}
  {\fakewords{30}{40}\Footnote[1.2pt]{\fakewords{5}{15}} }
\blank--3--\blank
\dorecurse{10}
  {\fakewords{30}{40}\Footnote[2pt]{\fakewords{5}{15}} }

\stoptext


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___