Re: [NTG-context] \doifelse inside MP(code|graphic)

2008-11-18 Thread Taco Hoekwater


Aditya Mahajan wrote:
 
 Notice the first line of \ascii, and compare that with the definition of
 \doifelse. The command \!!stringa inside the definition of \doifelse gets
 expanded too soon. Is there any way to get this work, other than doing the
 comparison outside the MP code.

Not with \doifelse. If the control sequences are as simple as in the
example, you could do the comparison in MP code:

   def doifelse (expr a, b)(text c)(text d) =
 if a=b: c else: d fi
   enddef;
   draw doifelse(test)(string)(fullcircle)(fullsquare) scaled 5cm ;


Best wishes,
Taco

___
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 mkii bug: infinity loops

2008-11-18 Thread Taco Hoekwater


Yue Wang wrote:
 Hi, the following file make mkii run into infinity loops.
 after commenting the hz feature or the emdash definition, it will run 
 normally.

This will never work. The internal name of — is \emdash,
so you get a loop of — - \emdash - — - \emdash etc.

Best wishes,
Taco
___
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 mkii/mkiv bug: columnset lines dont work

2008-11-18 Thread Taco Hoekwater


Hi Yue,

Yue Wang wrote:

Hi, Hans:

I think there is a bug in context. the last example in your
columns.pdf doesn't work anymore. would you please have a look?


For next time: can you please send a small test file with the
report? It makes the message a bit longer, but having to cut
and paste from a pdf isn't a lot of fun either.

I've attached the example now.

Hans, the problem is that the bottom set [n=3,balance=yes]
does not balance at all, it just fills the avaiable space
top-to-bottom until the text runs out.

Best wishes,
Taco

\definecolumnset [example-1] [n=2,balance=yes]
\definecolumnset [example-2] [n=3,balance=yes]
\starttext \showgrid
\setupcolumnsetlines[example-1][1][1] [8]
\setupcolumnsetlines[example-1][1][2][10]
\setupcolumnsetstart[example-2][1][1][29]
\setupcolumnsetstart[example-2][1][2][29]
\setupcolumnsetstart[example-2][1][3][29]
\startcolumnset [example-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [example-2] \dorecurse {2}{\input ward \par} \stopcolumnset
\stoptext

___
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] \doifelse inside MP(code|graphic)

2008-11-18 Thread Hans Hagen
Taco Hoekwater wrote:
 
 Aditya Mahajan wrote:
 Notice the first line of \ascii, and compare that with the definition of
 \doifelse. The command \!!stringa inside the definition of \doifelse gets
 expanded too soon. Is there any way to get this work, other than doing the
 comparison outside the MP code.
 
 Not with \doifelse. If the control sequences are as simple as in the
 example, you could do the comparison in MP code:
 
def doifelse (expr a, b)(text c)(text d) =
  if a=b: c else: d fi
enddef;
draw doifelse(test)(string)(fullcircle)(fullsquare) scaled 5cm ;

alternatively, in mkiv there is a fully expandable \expdoifelse but at 
the cost of lua call (\doifelse uses intermediate macros which is why it 
is not fully expandable)

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] context mkii/mkiv bug: columnset lines dont work

2008-11-18 Thread luigi scarso
On Tue, Nov 18, 2008 at 10:00 AM, Taco Hoekwater [EMAIL PROTECTED] wrote:


 Hi Yue,

 Yue Wang wrote:

 Hi, Hans:

 I think there is a bug in context. the last example in your
 columns.pdf doesn't work anymore. would you please have a look?


 For next time: can you please send a small test file with the
 report? It makes the message a bit longer, but having to cut
 and paste from a pdf isn't a lot of fun either.

 I've attached the example now.

 Hans, the problem is that the bottom set [n=3,balance=yes]

hmm , in page-set.tex

\def\dostopcolumnset
  {%\OTRSETdofinalflushfloats % yes/no
   \ifcase\OTRSETbalancemethod
 \OTRSETnobalance
   \else
 \OTRSETdobalance
   \fi}

\def\OTRSETdobalance
  {\OTRSETnobalance}




-- 
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] context mkii/mkiv bug: columnset lines dont work

2008-11-18 Thread Hans Hagen
luigi scarso wrote:
 
 
 On Tue, Nov 18, 2008 at 10:00 AM, Taco Hoekwater [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 Hi Yue,
 
 
 Yue Wang wrote:
 
 Hi, Hans:
 
 I think there is a bug in context. the last example in your
 columns.pdf doesn't work anymore. would you please have a look?
 
 
 For next time: can you please send a small test file with the
 report? It makes the message a bit longer, but having to cut
 and paste from a pdf isn't a lot of fun either.
 
 I've attached the example now.
 
 Hans, the problem is that the bottom set [n=3,balance=yes]
 
 hmm , in page-set.tex
 
 \def\dostopcolumnset
   {%\OTRSETdofinalflushfloats % yes/no
\ifcase\OTRSETbalancemethod
  \OTRSETnobalance
\else
  \OTRSETdobalance
\fi}
 
 \def\OTRSETdobalance
   {\OTRSETnobalance}

sure .. there is no balancing (ok, i have some experimental code that i 
can pop in but balancing in columnsets has to wait till i redo that code 
in mkiv

-
   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] how to make pagebreak for \setupstyping

2008-11-18 Thread Zhaopeng Xing
Hi,

I am using the following setup to typeset very long codes. The problem is,
it can only appear on one page. Can anybody help me to split the resulted
codes onto several pages?
Thanks.

 \setuptyping

[before={\startframedtext[width=\makeupwidth,

background=screen,

backgroundscreen=.96,

style=\tfxx, frame=off]},

after={\stopframedtext}]

\starttyping
very long codes
\stoptyping
-- 
Zhaopeng XING

Tinbergen Institute
___
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] syntax highlighting problem with vim module

2008-11-18 Thread Shiv Shankar Dayal
Hi,

If I have a product name xyz and I have following things set up.
\usemodule[vim]
\setuptyping[option=color]
\definevimtyping [C] [syntax=c]

then I have following
..
\startC
#include iostream
using namespace std;
\stopC
.
I get the error : I can't find file xyz-vimsyntax.tmp-vimsyntax.tmp

temmfstart bin:vim starts vim. vim is in the path. I am using Windows
Vista with Texlive 2008.
I would also like to know the syntax for C++.
-- 
Best regards,
Shiv Shankar Dayal
___
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] bold small caps with latin modern

2008-11-18 Thread Peter Münster
On Tue, Nov 18 2008, Yue Wang wrote:

 you should apply a font feature to bold font.

Oh! Cool! Thank you, Yue, you really help!
:-D

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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] how to make pagebreak for \setupstyping

2008-11-18 Thread Aditya Mahajan
On Tue, 18 Nov 2008, Zhaopeng Xing wrote:

 Hi,

 I am using the following setup to typeset very long codes. The problem is,
 it can only appear on one page. Can anybody help me to split the resulted
 codes onto several pages?
 Thanks.

Use \start-stop textbackgrounds rather than framedtexts. framedtexts 
cannot split across papes. textbackgrounds are documented in the details 
manaul.

Aditya

 \setuptyping

 [before={\startframedtext[width=\makeupwidth,

 background=screen,

 backgroundscreen=.96,

 style=\tfxx, frame=off]},

 after={\stopframedtext}]

 \starttyping
 very long codes
 \stoptyping

___
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] syntax highlighting problem with vim module

2008-11-18 Thread Aditya Mahajan
On Tue, 18 Nov 2008, Shiv Shankar Dayal wrote:

 Hi,

 If I have a product name xyz and I have following things set up.
 \usemodule[vim]
 \setuptyping[option=color]
 \definevimtyping [C] [syntax=c]
 
 then I have following
 ..
 \startC
 #include iostream
 using namespace std;
 \stopC
 .
 I get the error : I can't find file xyz-vimsyntax.tmp-vimsyntax.tmp

 temmfstart bin:vim starts vim. vim is in the path. I am using Windows
 Vista with Texlive 2008.
 I would also like to know the syntax for C++.

You will need to update t-vim module from 
http://modules.contextgarden.net/vim Something changed in texexec that 
made t-vim fail. The new version uses mtxrun. I have only 
tested it on linux, but Hans tested mtxrun on Windows, so the new version 
should work on Vista.

Aditya
___
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] can't find file `core-swd'

2008-11-18 Thread Lars Huttar
On 11/11/2008 5:06 PM, Wolfgang Schuster wrote:
 Am 11.11.2008 um 23:39 schrieb Lars Huttar:
 
 On 11/11/2008 11:01 AM, Wolfgang Schuster wrote:
 Am 11.11.2008 um 17:20 schrieb Alan STONE:

 On Thu, Nov 6, 2008 at 11:37 PM, Wolfgang Schuster [EMAIL PROTECTED]
 wrote:
 core-swd.tex is removed in the last beta and the old file was saved
 under the name core-swd.mkii

 Generate the formats with texexec --make --all and it should work.

 It doesn't work (on Windows XP), neither adding the mkii suffix.
 What is the result from kpsewhich core-swd.mkii.

 Wolfgang
 I got basically the same as Alan Stone:

 /home/ethnologue/context/tex/texmf-context/tex/context/base/core- 
 swd.mkii
 
 It's Hans fault, he loads core-swd in context.mkii with the command
 \loadmkiifile but the command expects .tex as file extension, you
 could either rename core-swd.mkii to core-swd.tex or you change
 the line \loadmkiifile{core-swd} to \loadmarkfile{core-swd} or
 \loadmkiifile{core-swd.mkii}.
 
 Wolfgang
 

OK, thanks.

Lars
___
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] \doifelse inside MP(code|graphic)

2008-11-18 Thread Aditya Mahajan
On Tue, 18 Nov 2008, Hans Hagen wrote:

 Taco Hoekwater wrote:

 Aditya Mahajan wrote:
 Notice the first line of \ascii, and compare that with the definition of
 \doifelse. The command \!!stringa inside the definition of \doifelse gets
 expanded too soon. Is there any way to get this work, other than doing the
 comparison outside the MP code.

 Not with \doifelse. If the control sequences are as simple as in the
 example, you could do the comparison in MP code:

def doifelse (expr a, b)(text c)(text d) =
  if a=b: c else: d fi
enddef;
draw doifelse(test)(string)(fullcircle)(fullsquare) scaled 5cm ;

 alternatively, in mkiv there is a fully expandable \expdoifelse but at
 the cost of lua call (\doifelse uses intermediate macros which is why it
 is not fully expandable)

I just did an expanded comparison outside metapost. It was much easier 
that way.

Thanks,
Aditya
___
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] syntax highlighting problem with vim module

2008-11-18 Thread Shiv Shankar Dayal
Hi,

I tried on both windows as well as on linux but I fail with the new
module as well.
The error being the same.

I can't find file `xyz-vimsyntax.tmp-vimsyntax.tmp'.

One thing I noticed that there is t-vim.tpm file. Where to put it?
I have installed texlive 2008 in C\texlive on Windows and
/usr/local/texlive/ on Linux.
-- 
Best regards,
Shiv Shankar Dayal
___
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] letter module: no linebreak in signature

2008-11-18 Thread Michael Green
Using Wolfgang Schuster's wonderful letter module, I enter my  
signature with my name and title like so:

\setupletter[signature={Michael Green \\ Assistant Professor of  
Philosophy}]

This used to produce a line break between Green and Assistant so  
the output would look like this:

Michael Green
Assistant Professor of Philosophy

But it no longer does. Now it comes out like this:

Michael Green  Assistant Professor of Philosophy

Is there a preferred way to accomplish the effect I want?

Thanks!

Michael

--  Example  

ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/ 
english

\setuppapersize[letter][letter]

\usemodule[letter][style=semiblock]
\setupletter[%
  closing={Sincerely yours,},
  signature={Michael Green \\ Assistant Professor of Philosophy},
  date=\currentdate
]

\setupletter[%
  opening={To the Addressee,},
]

\starttext

\startletter

Here is the content of the letter.
\stopletter
\stoptext

___
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] letter module: no linebreak in signature

2008-11-18 Thread Wolfgang Schuster

Am 18.11.2008 um 17:47 schrieb Michael Green:

 Using Wolfgang Schuster's wonderful letter module, I enter my
 signature with my name and title like so:

 \setupletter[signature={Michael Green \\ Assistant Professor of
 Philosophy}]

 This used to produce a line break between Green and Assistant so
 the output would look like this:

 Michael Green
 Assistant Professor of Philosophy

 But it no longer does. Now it comes out like this:

 Michael Green  Assistant Professor of Philosophy

 Is there a preferred way to accomplish the effect I want?

I uploaded a new version, if you have no time update for
the moment use \crlf as replacement.

 Thanks!

 Michael

 --  Example  

 ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/
 english

 \setuppapersize[letter][letter]

Do you need lettersize for all your letters?

 \usemodule[letter][style=semiblock]
 \setupletter[%
  closing={Sincerely yours,},
  signature={Michael Green \\ Assistant Professor of Philosophy},
  date=\currentdate
 ]

 \setupletter[%
  opening={To the Addressee,},
 ]

 \starttext

 \startletter

 Here is the content of the letter.
 \stopletter
 \stoptext

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
___


[NTG-context] XeTex Mara Font

2008-11-18 Thread Bart C. Wise
I am currently trying to get the mara font loaded into XeTeX.  Here's some 
information about the font (via fontforge):
file: marafont.ttf
Fontname: MaraFontNFPlain:
Family Name: MaraFontNF Plain:
(yes, the colons are in the name)

I've tried a couple of ways, using both the fontname and the family name, both 
with and without the ending semi-colons; however, it fails at compile time.

Here's some sample code:
\definetypeface[Mara][rm][Xserif][MaraFontNF Plain]

\starttext
\startfont[Mara]
This is a test.
\stoptext


Here's the relevant output from the log file, which looks very similar to the 
output of a font that works:
! Font \**\thedefinedfont**:=Mara at 12.0pt not loadable: Metric (TFM) file or 
installed font not found.  
to be read again 
   \relax  
\dododefinefont ...ontspec {#2}\rawfontidentifier  
  \let 
\localrelativefontsiz...

\redodefinefont #1#2#3-\dododefinefont {#1}{#2}
\doifsetupselse {#3} 
{\setup...

\dodefinedfont ...ring \thedefinedfont \endcsname 
  \the \everydefinedfont 
l.7 \startfont[Mara] 
 
?
! Emergency stop.
to be read again   
   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
  \let 
\localrelativefontsiz...

\redodefinefont #1#2#3-\dododefinefont {#1}{#2}
\doifsetupselse {#3} 
{\setup...

\dodefinedfont ...ring \thedefinedfont \endcsname
  \the \everydefinedfont
l.7 \startfont[Mara]

End of file on the terminal!



How do I get the font loaded?

Thanks,
Bart
___
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] XeTex Mara Font

2008-11-18 Thread Arthur Reutenauer
 I've tried a couple of ways, using both the fontname and the family name, 
 both 
 with and without the ending semi-colons; however, it fails at compile time.

  Have you tried prepending name: to the font name, like I explained
yesterday?

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] XeTex Mara Font

2008-11-18 Thread Bart C. Wise
I tried prepending name and it didn't work.  I also tried file:marafont, 
but that didn't work either.  Your code yesterday was great and I have not 
tried to plug in the mara font into a typescript.  There are some fonts that I 
just want to put in one section of the text without having to write a 
typescript.  That's why I used the \definetypeface and \startfont routines.  I 
just don't know what I'm doing wrong.

Bart

On Tuesday 18 November 2008 11:54:49 am Arthur Reutenauer wrote:
  I've tried a couple of ways, using both the fontname and the family name,
  both with and without the ending semi-colons; however, it fails at
  compile time.

   Have you tried prepending name: to the font name, like I explained
 yesterday?

   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
 ___


___
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] XeTex Mara Font

2008-11-18 Thread Bart C. Wise
I also tried plugging it into the typescript (not what I want), but that 
didn't work either.  I tried both the name: and the file: options.

Still lost,
Bart

On Tuesday 18 November 2008 11:54:49 am Arthur Reutenauer wrote:
  I've tried a couple of ways, using both the fontname and the family name,
  both with and without the ending semi-colons; however, it fails at
  compile time.

   Have you tried prepending name: to the font name, like I explained
 yesterday?

   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
 ___


___
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] XeTex Mara Font

2008-11-18 Thread Bart C. Wise
One thing of possible interest is that when I load the font in fontforge, I 
get the following warning:

Bad Font Name
The Postscript font name MaraFontNF Plain: is invalid.  It should be 
printable ASCII, must not contain (){}[]%/ or space and must be shorter than 
63 characters.

Is the colon at the end of the name a problem?
The font does work on other program on my system.

Bart

On Tuesday 18 November 2008 11:54:49 am Arthur Reutenauer wrote:
  I've tried a couple of ways, using both the fontname and the family name,
  both with and without the ending semi-colons; however, it fails at
  compile time.

   Have you tried prepending name: to the font name, like I explained
 yesterday?

   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
 ___


___
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] syntax highlighting problem with vim module

2008-11-18 Thread Aditya Mahajan
On Tue, 18 Nov 2008, Shiv Shankar Dayal wrote:

 Hi,

 I tried on both windows as well as on linux but I fail with the new
 module as well.
 The error being the same.

 I can't find file `xyz-vimsyntax.tmp-vimsyntax.tmp'.

 One thing I noticed that there is t-vim.tpm file. Where to put it?

You do not need to put it anywhere. That file is just for making packaging 
of the module easier.

 I have installed texlive 2008 in C\texlive on Windows and
 /usr/local/texlive/ on Linux.

I need some information to debug. Are you using MKII or MKIV? If you are 
using MKII, what does kpsewhich t-vim.tex give. For MKIV, what does 
luatools t-vim.tex.tex give. Open the file returned by the previous 
command, and check the version= line on the top. Does it say 
version=2008.07.15?

Aditya
___
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] XeTex Mara Font

2008-11-18 Thread Arthur Reutenauer
 Is the colon at the end of the name a problem?

  No, the message says the problem is with the space character, but it
is of little concern here (XeTeX doesn't use PostScript font names at
all).

  Is it the font from http://www.perry.com/disney/indy/marafont.html?
It seems to have quite a number of other problems actually (xdvipdfmx
protests heavily when I try loading it with plain XeTeX).  You could try
saving it again from FontForge, and installing that modified font (you
of course need to uninstall the original one from your system, or more
problems will likely happen).  While doing so, you can of course modify
whatever seems suspicious (like the trailing colon, etc.).

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] XeTex Mara Font

2008-11-18 Thread Bart C. Wise
That seems to work.  I just renamed the fontname and family (removing the 
colon), generated a new ttf and loaded that into the system.

So this works:
\definetypeface[MaraFontNFPlain][rm][Xserif][MaraFontNFPlain]
\starttext
\startfont[MaraFontNFPlain]
This is a test.
\stoptext

And yes, the url is correct as far as where I got the font from.  And yes, 
there were other errors (or warnings) when I generated the font; however, it 
does work.

One quick question (again expressing my ignorance).  Why can't I take the code 
above and change it to the following:

\definetypeface[Mara][rm][Xserif][MaraFontNFPlain]
\starttext
\startfont[Mara]
This is a test.
\stoptext

Thanks,
Bart

On Tuesday 18 November 2008 01:13:02 pm Arthur Reutenauer wrote:
  Is the colon at the end of the name a problem?

   No, the message says the problem is with the space character, but it
 is of little concern here (XeTeX doesn't use PostScript font names at
 all).

   Is it the font from http://www.perry.com/disney/indy/marafont.html?
 It seems to have quite a number of other problems actually (xdvipdfmx
 protests heavily when I try loading it with plain XeTeX).  You could try
 saving it again from FontForge, and installing that modified font (you
 of course need to uninstall the original one from your system, or more
 problems will likely happen).  While doing so, you can of course modify
 whatever seems suspicious (like the trailing colon, etc.).

   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
 ___


___
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] modifying URL wrapping rules

2008-11-18 Thread Lars Huttar
Hello,
I would like to modify the rules for wrapping URLs (aka hyphenating
URLs, but generally without inserting hyphens) to conform more closely
to the Chicago Manual of Style, 15th ed. I've read on this list that the
code for doing this is defined in the \hypthenatedurl

There are several files with the same name, in
contextminimal\texmf-context\tex\context\base\:
lang-url.mkii
lang-url.mkiv
lang-url.lua
lang-url.tex

From what I can tell, the .tex file loads one of the other three:
\loadmarkfile{lang-url}

I'm not sure which one it loads -- the lua, mkii, or mkiv.
All three seem to have the rules for url hyphenation encoded in them.
Is it a matter of which engine I'm using, e.g. luatex?
Our project has a requirement of using Xetex, so I have to stick with
that. Does that mean lang-url doesn't work at all?

We also have users using ConTeXt Minimal as well as ConTeXt from the
TeXLive 2008 distribution.
I want to do things in a way that will work in both. I would be happy to
put in some extra effort to make the result generally available to
others who want to follow the Chicago style for wrapping long URLs.

Thanks for any hints...

Lars
___
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] modifying URL wrapping rules

2008-11-18 Thread Arthur Reutenauer
From what I can tell, the .tex file loads one of the other three:
   \loadmarkfile{lang-url}

  \loadmarkfile loads either lang-url.mkii or lang-url.mkiv, depending
on the ConTeXt version you're running (MkII / MkIV).  In Mark IV, the
Lua code is then put in lang-url.lua, which is input by lang-url.mkiv
(you can see \registerctxluafile{lang-url}{1.001} near the beginning
of the latter).  This architecture enables you to reuse the Lua code in
completely different environments (for example, in a pure Lua script).

 Our project has a requirement of using Xetex, so I have to stick with
 that. Does that mean lang-url doesn't work at all?

  ConTeXt on XeTeX is considered Mark II as far as the mark business
goes (it doesn't know about Lua), so you have access to the exact same
code as with pdfTeX; in this case, lang-url.mkii will be loaded.  But if
you know that all your users will be using XeTeX, you don't really need
to worry about the \loadmarkfile mechanism; it is there to accommodate
different engines.

 We also have users using ConTeXt Minimal as well as ConTeXt from the
 TeXLive 2008 distribution.

  The particular distribution one uses shouldn't be a problem at all for
implementing hyphenation rules.

 I want to do things in a way that will work in both. I would be happy to
 put in some extra effort to make the result generally available to
 others who want to follow the Chicago style for wrapping long URLs.

  This will certainly be most appreciated.

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] modifying URL wrapping rules

2008-11-18 Thread Lars Huttar
On 11/18/2008 3:44 PM, Arthur Reutenauer wrote:
 From what I can tell, the .tex file loads one of the other three:
  \loadmarkfile{lang-url}
 
   \loadmarkfile loads either lang-url.mkii or lang-url.mkiv, depending
 on the ConTeXt version you're running (MkII / MkIV).  In Mark IV, the
 Lua code is then put in lang-url.lua, which is input by lang-url.mkiv
 (you can see \registerctxluafile{lang-url}{1.001} near the beginning
 of the latter).  This architecture enables you to reuse the Lua code in
 completely different environments (for example, in a pure Lua script).
 
 Our project has a requirement of using Xetex, so I have to stick with
 that. Does that mean lang-url doesn't work at all?
 
   ConTeXt on XeTeX is considered Mark II as far as the mark business
 goes (it doesn't know about Lua), so you have access to the exact same
 code as with pdfTeX; in this case, lang-url.mkii will be loaded.

Thanks for the explanation... this is helpful.

So it sounds like I should definitely modify the lang-url.mkii file.

  But if
 you know that all your users will be using XeTeX, you don't really need
 to worry about the \loadmarkfile mechanism; it is there to accommodate
 different engines.

OK... but I'm not sure what I would do differently if I'm not worrying
about the \loadmarkfile mechanism... Still modify the lang-url.mkii file?

Given that I'm willing to put in a little extra effort to make the
result available to a wider set of users, should I still modify
lang-url.mkii?

 We also have users using ConTeXt Minimal as well as ConTeXt from the
 TeXLive 2008 distribution.
 
   The particular distribution one uses shouldn't be a problem at all for
 implementing hyphenation rules.

Good to know, thanks.

 I want to do things in a way that will work in both. I would be happy to
 put in some extra effort to make the result generally available to
 others who want to follow the Chicago style for wrapping long URLs.
 
   This will certainly be most appreciated.
 

I will probably need more help in order to know how to do this. Once
I've finished doing it for us, in .mkii, I'll ask again on this list.

Thanks again,
Lars
___
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] XeTex Mara Font

2008-11-18 Thread Arthur Reutenauer
 One quick question (again expressing my ignorance).  Why can't I take the 
 code 
 above and change it to the following:
 
 \definetypeface[Mara][rm][Xserif][MaraFontNFPlain]
 \starttext
 \startfont[Mara]
 This is a test.
 \stoptext

  I have no idea ... Does it really not work?

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] modifying URL wrapping rules

2008-11-18 Thread Arthur Reutenauer
 OK... but I'm not sure what I would do differently if I'm not worrying
 about the \loadmarkfile mechanism... Still modify the lang-url.mkii file?

  Sure.  I simply meant that you only needed to produce a single file,
your modified lang-url.mkii, whereas if you wanted to develop for both
MkII and MkIV, you would have needed a more involved structure.  Anyway ...

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] XeTex Mara Font

2008-11-18 Thread Wolfgang Schuster

Am 18.11.2008 um 23:00 schrieb Arthur Reutenauer:

 One quick question (again expressing my ignorance).  Why can't I  
 take the code
 above and change it to the following:

 \definetypeface[Mara][rm][Xserif][MaraFontNFPlain]
 \starttext
 \startfont[Mara]
 This is a test.
 \stoptext

  I have no idea ... Does it really not work?

\definefontsynonym[Mara][name:MaraFontNFPlain]
\starttext
\startfont[Mara]
This is a test.
\stopfont
\stoptext

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] XeTex Mara Font

2008-11-18 Thread Bart C. Wise
Wolfgang,

This one does work.

Thanks again,
Bart

On Tuesday 18 November 2008 03:28:45 pm Wolfgang Schuster wrote:
 Am 18.11.2008 um 23:00 schrieb Arthur Reutenauer:
  One quick question (again expressing my ignorance).  Why can't I
  take the code
  above and change it to the following:
 
  \definetypeface[Mara][rm][Xserif][MaraFontNFPlain]
  \starttext
  \startfont[Mara]
  This is a test.
  \stoptext
 
   I have no idea ... Does it really not work?

 \definefontsynonym[Mara][name:MaraFontNFPlain]
 \starttext
 \startfont[Mara]
 This is a test.
 \stopfont
 \stoptext

 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
 ___


___
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] letter module: no linebreak in signature

2008-11-18 Thread Michael Green

On Nov 18, 2008, at 10:46 AM, Wolfgang Schuster wrote:


 Am 18.11.2008 um 17:47 schrieb Michael Green:

 Using Wolfgang Schuster's wonderful letter module, I enter my
 signature with my name and title like so:

 \setupletter[signature={Michael Green \\ Assistant Professor of
 Philosophy}]

 This used to produce a line break between Green and Assistant so
 the output would look like this:

 Michael Green
 Assistant Professor of Philosophy

 But it no longer does. Now it comes out like this:

 Michael Green  Assistant Professor of Philosophy

 Is there a preferred way to accomplish the effect I want?

 I uploaded a new version, if you have no time update for
 the moment use \crlf as replacement.


Wow, that was incredibly fast. Thank you very much! The new version  
works as I expected.


 --  Example  

 ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/
 english

 \setuppapersize[letter][letter]

 Do you need lettersize for all your letters?


Yes, I have to use US lettersize paper (8.5 inches x 11 inches) for  
the physical paper on which my letters are printed. For long letters,  
I use a narrower textarea, but I don't think that's what you're  
asking me.

Thanks again.

Michael
___
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 mkii bug: infinity loops

2008-11-18 Thread Yue Wang
Hi. Taco:
 This will never work. The internal name of — is \emdash,
  so you get a loop of — - \emdash - — - \emdash etc.

Oh, I see. thanks for the detailed explanation!

Yue Wang
___
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
___