[NTG-context] trouble with the title page using the FramedTitle style of the simpleslides module

2014-01-08 Thread Jesse Alama
I'm working with the simpleslides module and am trying to prepare a
presentation using the FramedTitle style.  Things are mostly OK, but I
notice one curious problem with the title page.  Try this out on the
live ConTeXt installation:

% -- the beginning
\usemodule[simpleslides]
  [
style=FramedTitle,
  ]
\setupTitle[
  title={Why is this red?},
  author={You},
  date={\date[y=2014,m=1,d=07]},
]
\placeTitle
\SlideTitle{this is white (maybe grey)}
text in black as expected
% -- the end

What I notice is that the text on the title page (title, author, date) is

* in red on a red background (quite hard to read), and
* not centered  (even though in the documentation for the simpleslides
module and the examples it contains the content on the titleslide
ought to be centered).

I'm using an up-to-date ConTexT; I have the minimals installed on my machine and
just did an update today using

  $ ./first-setup.sh --modules=all

I'm running in mkiv mode in the sense that I run simply

  $ context slides.tex

and I can confirm, using

  $ which context

that I really am running the ConTeXt that I expect.  In any case, the
curiosity I describe can be replicated using the live ConTeXt on the
ConTeXtgarden.  Can you see what might be going wrong?

Thanks,

Jesse
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Validate (cross)references

2011-05-27 Thread Jesse Alama

On 2011-05-27 17:19:30 +0200, Andreas Schneider said:


On Friday, May 27, 2011 17:09 Wolfgang Schuster wrote:


Am 27.05.2011 um 17:04 schrieb Andreas Schneider:



Hello,

if  I  use  \in,  \about,  \at  or  anything  else  that  generates  a
cross-reference,  and  that  reference  happens to be invalid (typo or
whatever),  it  just  prints  out  nothing.  Is  there a way to have
context throw an error if a reference is invalid? (That probably would
only  make  sense  in the second pass of context, since the first pass
has to collect the references first.)



Unknown references are shown as “??” in your text.



Wolfgang


True,  I  was  mostly  thinking  about \about, which just prints two
quotation  marks  and  nothing  in between. But my problem (if I can
even  call  it  that, since grep is already a solution, just maybe not
the  best one :D) is, that I could easily miss such small changes. I'm
working  on  technical  documentation  that  even  has  parts that are
automatically  generated  (from  XML files). I just update whatever is
necessary  (the document itself, or just the input files), commit them
to  SVN  and  our  CI  server grabs them, and runs ConTeXt. If ConTeXt
returns  with  a  return code  0, the build is marked as failed and
all  necessary  admins  (me  and  my colleague) are informed via eMail
and/or  RSS  feed.  If  the  build  succeeds,  the  generated  PDF  is
automatically distributed to the users. I consider wrong references an
error,  so  I would like the build to fail (imho referencing something
that  doesn't  exist  is  like using a macro that doesn't exist, which
fails too).

But  as I said: if context can't treat that as error, I'm fine with it
too  and  will  continue  to  grep the logfile. It's just curiosity if
there may already be a setting/parameter/whatever to get context to be
more restrictive.


+1

I would also like ConTeXt to help me keep me document sensible in this 
way. I also resort to grep-type solutions, but sometimes I forget to do 
this, and sometimes, there are embarrassing consequences of such 
oversight.  If ConTeXt could help me avoid this all-too-common 
oversight of mine, I'd be delighted.  Throwing an error would be one 
way to do this.  If throwing an error is not possible, perhaps being 
able to customize what gets printed when an undefined reference is 
encountered.  E.g., instead of ??, a big, annoying, 
impossible-to-miss mark in the margin (as one sees when working with 
overfull lines) or a giant red stopsign saying UNDEFINED REFERENCE, 
would do just as well.


--
Jesse Alama
http://centria.di.fct.unl.pt/~alama/___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] alternating items in an itemization

2011-05-24 Thread Jesse Alama

On 2011-05-24 14:16:16 +0200, Wolfgang Schuster said:


Am 23.05.2011 um 22:08 schrieb Jesse Alama:

I'd like to define an itemization that has two kinds of items, 
representing a dialogue between two people.  (One could imagine 
extending this to more than two.)  I'd like to have something like this:


\startdialogue
\john What did you have for breakfast?
\mary I skipped breakfast today.
\john Oh, why?
\mary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.

\stopdialogue

The \john and \mary parts would each be their own paragaphs.  The 
paragraphs would be colored with different text backgrounds, and joined 
up with one another  (that is, the blocks of text representing the 
paragraphs for the different speakers would be adjacent to one another).



Solution 1:

\definetextbackground[john-background][frame=off,location=paragraph,backgroundcolor=green]

\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]

\defineenumeration



 [john]
  [text=John: ,
  width=3em,
 number=no,
   location=left,
 before={\starttextbackground[john-background]},
  after=\stoptextbackground]

\defineenumeration
  [mary][john]
  [  text=Mary: ,
   before={\starttextbackground[mary-background]},
after=\stoptextbackground]

\starttext

\john What did you have for breakfast?\par
\mary I skipped breakfast today.\par
\startjohn Oh, why?\stopjohn
\startmary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.\stopmary


\stoptext

Solution 2:

\usemodule[annotation]

\definetextbackground[john-background][frame=off,location=paragraph,backgroundcolor=green]

\definetextbackground[mary-background][frame=off,location=paragraph,backgroundcolor=red]

\defineannotation



 [john]
  [   text=John,
 stopper=: ,
 inbetween=,
before={\starttextbackground[john-background]},
 after={\stoptextbackground},
   spacebefore=nowhite]

\defineannotation
  [mary][john]
  [  text=Mary,
   before={\starttextbackground[mary-background]},
after={\stoptextbackground}]

\starttext

\john{What did you have for breakfast?}
\mary{I skipped breakfast today.}
\startjohn Oh, why?\stopjohn
\startmary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.\stopmary


\stoptext


Thanks!  These fit the bill.  (I note, though, that in the 
annotation-based solution, the texts John and Mary don't show up. 
Otherwise the annotation solution is just what I am looking for.)



___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pdf attachments broken in latest minimal?

2011-05-23 Thread Jesse Alama

Hans Hagen wrote:

On 21-5-2011 5:44, Jesse Alama wrote:

It seems that PDF attachments aren't working in the latest minimals:

$ context --version

mtx-context | main context file:
/Users/alama/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2011.05.18 22:26


\useattachment[busted][hi.txt]
\starttext
attachment here: \attachment[busted]
\stoptext


Prepending

\setupinteraction[state=start]

to the document, and the compiling with, say, xetex, results in a PDF
that has the attachment. But not with mkiv.


fixed in next beta


Thanks.  I notice, by the way, that even with mkii, PDF attachments 
don't seem to function entirely correctly.  This might be due to a 
limitation of my PDF reader (I'm using Adobe Reader 10.0.3 on Mac OS X 
10.6), but with that minimal example, Reader says that


* the name of the attachment is Unknown (shouldn't it be hi.txt?)
* the Description is hi.txt (seems like that should be the name, not 
the description -- I'm not sure how to specify the description of an 
attached file)
* the Modified, Size, and Compressed size metadata all say 
Unknown (shouldn't at least Size have some sensible value?)
* clicking on the little attachment icon in the text does nothing, nor 
does explicitly selecting Open attachment.


These might be bugs or limitations with Reader, but I'm not sure.  Can 
someone else confirm this behavior with attachments in mkii?


Thanks,

Jesse

--
Jesse Alama
http://centria.di.fct.unl.pt/~alama/

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] query about referring to pdf attachments

2011-05-23 Thread Jesse Alama

Can one refer to PDF attachments as though they were local files?

I'd like to treat the PDF as a kind of rudimentary filesystem.  
Whatever is attached to the PDF can be found under the root directory 
of the PDF.  One could then place hyperlinks to these files which, when 
followed, cause an attachment to be opened (say, a music player, a web 
browser, etc.).  Ideally, one would be able to do something like this:


\useattachment[my-video][my-video.mpg]
\attachment[my-video]
\useURL[my-video-url][file:///my-video.mpg][][Awesome Video]
\starttext
Follow the link to \from[my-video-url]!
\stoptext

The file:///my-video.mpg URI is a guess; the idea is to somehow refer 
to a file placed in the PDF's filesystem.


Jesse


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] alternating items in an itemization

2011-05-23 Thread Jesse Alama
I'd like to define an itemization that has two kinds of items, 
representing a dialogue between two people.  (One could imagine 
extending this to more than two.)  I'd like to have something like this:


\startdialogue
\john What did you have for breakfast?
\mary I skipped breakfast today.
\john Oh, why?
\mary Because I wasn't hungry.  I was too distraught at what had 
happened the previous night.

\stopdialogue

The \john and \mary parts would each be their own paragaphs.  The 
paragraphs would be colored with different text backgrounds, and joined 
up with one another  (that is, the blocks of text representing the 
paragraphs for the different speakers would be adjacent to one another).


I've tried doing this using \defineparagraphs, \defineframedtext, and 
\defineenumerations, but I can't quite get the right effect;


\setupcolors[state=start]
\definetextbackground[john-background][backgroundcolor=green]
\definetextbackground[mary-background][backgroundcolor=red]
\definestartstop[dialogue]
\defineparagraphs[john][before={\starttextbackground[john-background]},after={\stoptextbackground}]
\defineparagraphs[mary][before={\starttextbackground[mary-background]},after={\stoptextbackground}]

Putting 

this before the above \start/stopdialogue snippet (suitably enclosed in 
\start/stoptext) gives me an error about a missing }; I suppose I'm 
overlooking something.


An enumeration-based solution would be along these lines:

\defineenumeration
 [chat]
\setupenumerations
 [chat]
 [joinedup,packed]
\define[0]\john{\item John: }
\define[0]\may{\item Mary: }

I can't figure out how to get the textbackgrounds to work here, and 
there's a bullet symbol at the beginning of every dialogue paragraph, 
which I'd rather get rid of (and I don't want the indent between the 
bullet and the beginning of the text).


A framed-text solution starts to come close:

\defineframedtext[john][frame=off,background=color,backgroundcolor=magenta]
\defineframedtext[mary][frame=off,background=color,backgroundcolor=lightred]

But then the boxed paragraphs are separated from each other by some 
vertical whitespace.


Another idea would be to use tables, but I haven't explored that yet.  
Any suggestions for how to render dialogues as above in ConTeXt?


Thanks,

Jesse


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] pdf attachments broken in latest minimal?

2011-05-21 Thread Jesse Alama

It seems that PDF attachments aren't working in the latest minimals:

$ context --version

mtx-context | main context file: 
/Users/alama/context/tex/texmf-context/tex/context/base/context.mkiv

mtx-context | current version: 2011.05.18 22:26


\useattachment[busted][hi.txt]
\starttext
attachment here: \attachment[busted]
\stoptext


Prepending

\setupinteraction[state=start]

to the document, and the compiling with, say, xetex, results in a PDF 
that has the attachment. But not with mkiv.


--
Jesse Alama
http://centria.di.fct.unl.pt/~alama/

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] al...@0, etc, from plain.tex

2010-08-09 Thread Jesse Alama

On 2010-08-09 08:15:09 +0100, Hans Hagen said:


On 9-8-2010 8:50, Taco Hoekwater wrote:

On 08/09/2010 06:58 AM, Jesse Alama wrote:

There's a plain TeX package (bussproofs.sty from CTAN; I realize that
the file ends with .sty but it's intended to work in plain TeX) that
I'm trying to get working with ConTeXt. I'm stuck at one point though:
the package has the statements

\def\newcount{\al...@0\count\countdef\insc@unt}
\def\newdimen{\al...@1\dimen\dimendef\insc@unt}
\def\newskip{\al...@2\skip\skipdef\insc@unt}
\def\newbox{\al...@4\box\chardef\insc@unt}


ConTeXt has \newcount et al. predefined already.


Plain tex also has these. If a style (in this case busproofs) does not
check for that it's likely to clash with more.


The package seems to work fine if I just kill those \def's -- thanks!

Jesse


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] al...@0, etc, from plain.tex

2010-08-08 Thread Jesse Alama
There's a plain TeX package (bussproofs.sty from CTAN; I realize that 
the file ends with .sty but it's intended to work in plain TeX) that 
I'm trying to get working with ConTeXt.  I'm stuck at one point though: 
the package has the statements


\def\newcount{\al...@0\count\countdef\insc@unt}
\def\newdimen{\al...@1\dimen\dimendef\insc@unt}
\def\newskip{\al...@2\skip\skipdef\insc@unt}
\def\newbox{\al...@4\box\chardef\insc@unt}

ConTeXt complains because it doesn't know what al...@0, etc., are.  Any 
advice for how to import this functionality from plain.tex into ConTeXt?


thanks,

Jesse


___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv: missing \colon, \colonequals is just an equality sign

2009-11-09 Thread Jesse Alama

Hi Aditya,

On Nov 2, 2009, at 1:19 PM, Aditya Mahajan wrote:


On Sun, 1 Nov 2009, Jesse Alama wrote:

It seems that \colon is missing and \colonequals is mapped to the  
wrong symbol in the latest mkiv (I'm using the minimals).  A  
minimal example:


\starttext
\startitemize
\item $\colon$
\item $\colonequals$
\stopitemize
\stoptext

No colon is generated from the first command (in fact, nothing at  
all appears), and the $\colonequals$ produces an equality sign, not  
a :=.


I am not sure what is the right way to fix this. I am attaching a  
patch that works, but this might break the mathdesign virtual fonts.  
In that case, we need separate vectors for gyre and mathdesign.


Apply this to math-vfu.lua and regenerate formats.


That did the trick -- thanks.

Jesse
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] mkiv: missing \colon, \colonequals is just an equality sign

2009-11-01 Thread Jesse Alama
It seems that \colon is missing and \colonequals is mapped to the  
wrong symbol in the latest mkiv (I'm using the minimals).  A minimal  
example:


\starttext
\startitemize
\item $\colon$
\item $\colonequals$
\stopitemize
\stoptext

No colon is generated from the first command (in fact, nothing at all  
appears), and the $\colonequals$ produces an equality sign, not a :=.


Jesse
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2009-04-11 Thread Jesse Alama
Aditya Mahajan adit...@umich.edu writes:

 On Fri, 10 Apr 2009, Hans Hagen wrote:

 - otf math kerning is supported (neat)

 Yeah! Now one can actually use the two available otf math fonts :)

Which are those?

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] \rightarrow missing?

2009-04-09 Thread Jesse Alama
I switched from MkIV to MkII today because of this gap in MkIV's math:
I need to submit a dissertation that has \rightarrow's in it.  Let's
hope that this issue is resolved soon.

Jesse

Alan BRASLAU alan.bras...@cea.fr writes:

 Indeed, it seems to be broken in mkiv
 \rightarrow
 \to
 \leftarrow
 ...

 However, \leftrightarrow works.

 So, currently, it is hard to typeset limits under mkiv!

 Alan


 On Tuesday 31 March 2009 09:14:16 Hans Hagen wrote:
 Aditya Mahajan wrote:
  On Mon, 30 Mar 2009, Jesse Alama wrote:
  It seems that \rightarrow is missing.  The command exists, in the sense
  that its use doesn't lead to an error, but it doesn't lead to anything
  in the output.  Minimal example:
 
  \starttext
  $\rightarrow$
  \stoptext
 
  Hans,
 
  What does the new arrow function in math-vfu.lua supposed to do?

 it will be used instead of the macro based one (as luatex has native
 support for such extenders now) but i had to wait till you fixed all the
 other arrows that you added someplace

 Hans

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


-- 
Jesse Alama (al...@stanford.edu)

___
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 and attachment: troubles

2009-04-09 Thread Jesse Alama
Any progress on this?  As of 2009-04-09, attachments with xetex still
behave as Andrea described on 2008-03-31.  (I'm using the xetex in the
minimals.)

Jesse

Andrea Valle va...@di.unito.it writes:

 Thanks Mojca, Hans,

 ok, I've understood.

 :)

 -a-



 On 3 Apr 2008, at 12:17, Hans Hagen wrote:

 Mojca Miklavec wrote:

 On Thu, Apr 3, 2008 at 11:08 AM, Andrea Valle wrote:

 Thanks Mojca,

 The problem is not the --xtx switch, but the lack of support for
 the
 underlying (xdvipdfmx) driver.


 Sorry, please remember I'm very far from there...
 I was just meaning: the problem is in xetex engine?



 I googled a bit and found the following slides:
       http://project.ktug.or.kr/dvipdfmx/doc/tug2005.pdf
 see page 18 in particular.


 thanks, means really nothing to me :-)


 It was meant for someone else trying to help :-)


 she meant me; however, i have no test file and probably a non working 
 xetex on my machine (need to update)

 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
 
 ___


 --
 Andrea Valle
 --
 CIRMA - DAMS
 Università degli Studi di Torino
 -- http://www.cirma.unito.it/andrea/
 -- http://www.myspace.com/andreavalle
 -- andrea.va...@unito.it
 --


 
 Think of it as seasoning
 . noise [salt] is boring
 . F(blah) [food without salt] can be boring
 . F(noise, blah) can be really tasty
 
 (Ken Perlin on noise)





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

-- 
Jesse Alama (al...@stanford.edu)

___
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] New module simpleslides

2009-04-01 Thread Jesse Alama
Hi Thomas,

Thomas A. Schmitz thomas.schm...@uni-bonn.de writes:

 We're happy to announce the initial release of the simpleslides
 module. It has taken us somewhat longer than we anticipated, but now
 it's there! simpleslides is a module that facilitates the creation of
 presentations in ConTeXt. It provides a few macros to position titles,
 text, and images on slides, some typescripts to make use of
 LatinModern and the TeXGyre fonts, and a few pre-defined styles that
 should make your presentations visually appealing.

 We guarantee that this release is absolutely bug-free; whoever finds a
 bug has the inalienable right to buy us a beer at the next ConTeXt
 meeting! Seriously: we are aware that some things are not working as
 expected. Our biggest and most embarrassing problem for the time being
 is that the module refuses to work with XeTeX. Neither of us uses
 XeTeX on a regular basis, and we're not familiar with its innards, so
 we're at a loss here. If you can offer help, you will be most welcome!

 We would of course welcome feedback, bug reports, feature suggestions,
 etc., so download the module at
 http://modules.contextgarden.net/module/detail?name=simpleslides and
 give it a whirl!

The package that you and Aditya is really nice.  I've already used it
for a number of presentations, all in academic settings where the
simplicity of design has helped me as an author to focus on the content
and it has helped focus the presentation delivery on the content, too.
Thanks a lot.

I've been following the git repository for a while now.  Is that still
going to be updated, or will development shift to some some other
method?

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] Spacing after \cite

2009-03-31 Thread Jesse Alama
Taco Hoekwater t...@elvenkind.com writes:

 Jesse Alama wrote:
 
 Thanks for helping out with this.  Is the second #1 supposed to be
 #2?  

 Yes,

 In any case, this fix gives an error:


 Are you sure that is related? Perhaps you should create a test file.

Well, the problem seems to have gone away (after updating my local
minimals).  Thanks for the help!

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] Spacing after \cite

2009-03-30 Thread Jesse Alama
Taco Hoekwater t...@elvenkind.com writes:

 Wolfgang Schuster wrote:

 So, \doifnextcharelse vs \doifnextoptionalelse.

 I still think Hans should fix that in the core, but ...

 Any progress on this?  I'm seeing the same behavior.
 
 \startmode[whisper]
 ask Taco for a after key and use \autoinsertnextspace
 \stopmode

 can you try this in the header just to see how if it works out?

   \usemodule[bib]
   \let\normaldocite\docite
   \def\docite[#1][#2]%
 {\normaldocite[#1][#1]\autoinsertnextspace }

   ...
   \starttext

Thanks for helping out with this.  Is the second #1 supposed to be
#2?  In any case, this fix gives an error:

! You can't use `macro parameter character #' in horizontal mode.
\p!doifinstringelse ...tringelse \...@ea #...@ea 1#1##
  2##3\war {\unless \if #...@...
\rawdodoifinsetelse ...ingelse \@@@instring {,#1,}
  \...@ea \firstoftwoarguments 
...
\addtocommalist #1#2-\rawdoifinsetelse {#1}#2
  \resetglobal {\dodoglobal \ede...
\doifreferencefoundelse ...ce \ifreferencefound #2
  \else #3\fi \egroup \dores...
\redoloop -\expandrecursecontent 
  \endofloop 
to be read again 
   {
...
l.1184 \completepublications[criterium=all]

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] beta

2009-03-30 Thread Jesse Alama
Aditya Mahajan adit...@umich.edu writes:

 On Mon, 30 Mar 2009, Hans Hagen wrote:

 Hi,

 i uploaded a beta ... this one matches the latest check-in of luatex

 this is also the last non-xp version as i'm going to merge the
 cont-xp code into th emain version now

 Currently, the bib module does not work with cont-xp. Taco has said
 that it is easier to redo the bib module in lua than to get it to work
 with xp.

 A few weeks back Taco said that a lua based bib module is at least a
 few months away
 (http://archive.contextgarden.net/message/20090312.084338.8be52e4c.en.html). 
 Is
 that still the case? Without the bib module, I will not be able to use
 MKIV in real projects, and would basically be stuck at the current
 beta.

+1 (I'm currently wrapping up my dissertation using mkiv.)

That said, a lua version of the bib module would, of course, be welcome.

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] \rightarrow missing?

2009-03-30 Thread Jesse Alama
It seems that \rightarrow is missing.  The command exists, in the sense
that its use doesn't lead to an error, but it doesn't lead to anything
in the output.  Minimal example:

\starttext
$\rightarrow$
\stoptext

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] Spacing after \cite

2009-03-29 Thread Jesse Alama
Aditya Mahajan adit...@umich.edu writes:

 On Tue, 10 Mar 2009, Aditya Mahajan wrote:

 So I am guessing that the difference is because of something else,
 but I cannot see any differences.

 The old version gives

 \dodoubleempty #1-\noshowargumenterror \doifnextcharelse
 [{\dodoubletestempty #1} {\dodoublefakeempty #1}
 #1-\dododocite


 The new one gives

 \dodoubleempty #1-\noshowargumenterror \doifnextoptionalelse 
 {\dodoubletestemp
 ty #1} {\dodoublefakeempty #1}
 #1-\dododocite

 So, \doifnextcharelse vs \doifnextoptionalelse.

Any progress on this?  I'm seeing the same behavior.

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] Spacing after \cite

2009-03-29 Thread Jesse Alama
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Am 29.03.2009 um 20:09 schrieb Jesse Alama:

 Aditya Mahajan adit...@umich.edu writes:

 On Tue, 10 Mar 2009, Aditya Mahajan wrote:

 So I am guessing that the difference is because of something else,
 but I cannot see any differences.

 The old version gives

 \dodoubleempty #1-\noshowargumenterror \doifnextcharelse
 [{\dodoubletestempty #1} {\dodoublefakeempty #1}
 #1-\dododocite


 The new one gives

 \dodoubleempty #1-\noshowargumenterror \doifnextoptionalelse
 {\dodoubletestemp
 ty #1} {\dodoublefakeempty #1}
 #1-\dododocite

 So, \doifnextcharelse vs \doifnextoptionalelse.

 Any progress on this?  I'm seeing the same behavior.

 \startmode[whisper]
 ask Taco for a after key and use \autoinsertnextspace
 \stopmode

context --mode=whisper request.tex

-- 
Jesse Alama (al...@stanford.edu)

___
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] math symbols missing?

2009-03-26 Thread Jesse Alama
I just tried recompiling an old document with the latest minimals (mkiv)
and found that some of my old math commands don't seem to work:

  \ulcorner
  \urcorner
  \cap

Probably there are others, too.  (Also, \showmathcharacters seems to be
undefined.)  Any idea what might be going on?

Thanks,

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] Is there anything like developer's manual for ConTeXt?

2009-03-20 Thread Jesse Alama
Taco Hoekwater t...@elvenkind.com writes:

 Corin Royal Drummond wrote:
 Many have voiced the same complaint.  I understand that Hans and every
 one are occupied with building MKIV (aka LuaTeX), and that documentation
 is not their highest priority.  There's the wiki, the wonderfully active
 mailing list, and what used to be decent docs from 2001/2002 timeframe. 
 But yes, it's a steep hill to climb, made worth it only by the relative
 awesomeness of ConTeXt.

 You missed the reference manual rewrite effort (which is now in
 remission mostly because of an extremely depressing lack of user
 feedback).

   http://wiki.contextgarden.net/Main_Page#Documentation

Could we add that manual to the minimals?

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] modife the style of taspresent

2009-03-11 Thread Jesse Alama
Thomas A. Schmitz thomas.schm...@uni-bonn.de writes:

 On Mar 9, 2009, at 3:36 AM, Bill Long wrote:

 Thanks!

 The grammar is right, but it still can't work.

 Since I wrote that module... Your description is not very
 descriptive. What do you mean it can't work? Any error messages,
 what's going  wrong?

 Moreover: taspresent was my first attempt at providing something;
 Aditya and I have now been working towards a better module called
 simpleslides. So if you're really thinking about doing presentations
 in ConTeXt, better get the git repository at
 http://github.com/adityam/simple-slides/tree/master . The module is
 functional; it's lacking documentation...

I've got the git repository.  How do I install this module?  (I'm using
the minimals.)

Thanks,

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] New beta

2009-03-11 Thread Jesse Alama
Hans Hagen pra...@wxs.nl writes:

 Thomas A. Schmitz wrote:

 On Mar 11, 2009, at 12:17 AM, luigi scarso wrote:

 Is
 local command = string.format(luatex --fmt=%s --lua=%  %s,
string.quote(formatfile), string.quote(scriptfile),
 string.quote(filename))


 correct ?

 Why not
 local command = string.format(luatex --fmt=%s --lua=%s  %s,
string.quote(formatfile), string.quote(scriptfile),
 string.quote(filename))

 Good catch! Looks like this fixed it for me!
 ok, fixed

I just re-ran first-setup.sh to update the minimals, but the problem
persists:

$ context slides.tex
MtxRun | loading configuration for /Users/alama/context/tex/texmf/web2c from 
/Users/alama/context/tex/texmf-cache/luatex-cache/context/61795f339930e48e135cbda2bb1b1ded/trees/f0b428a6867a004b015f446bf6f0bb6e
/Users/alama/context/tex/texmf-osx-intel/bin/mtxrun:8438: bad argument #2 to 
'format' (string expected, got nil)

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] New beta

2009-03-10 Thread Jesse Alama
Thomas A. Schmitz thomas.schm...@uni-bonn.de writes:

 On Mar 10, 2009, at 11:32 PM, Hans Hagen wrote:

 OK, for a change, I now get a different error:
 MtxRun | loading configuration for /Users/tas/context/tex/texmf/
 web2c from /Users/tas/context/tex/texmf-cache/luatex-cache/context/
 408a90c432ceda2c1e4a80ad5d0e5350/trees/
 168418f5ffa37b7a35ee75166c53fe90 /Users/tas/context/tex/texmf-osx-
 intel/bin/mtxrun:8438: bad argument #2 to 'format' (string
 expected, got nil)
 but the format has been successfully created, AFAICS. Btw, I just
 compiled
 luatex --version
 This is LuaTeX, Version snapshot-0.36.0-2009031020, build 1979

 i uploaded a new zip


 Still the same error.

Same for me.

-- 
Jesse Alama (al...@stanford.edu)

___
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] endnotes grouped by chapter in a separate chapter

2009-01-26 Thread Jesse Alama
Hans Hagen pra...@wxs.nl writes:

 Jesse Alama wrote:
 Just a re-ask (I've not been able to figure this out yet) for the
 ConTeXt experts.

 in mkii there ar elimitations with respect to endnotes as they are
 collected in boxes like any note

 in mkiv they can also be collected in lists and then can be filtered
 and reformatted (this is present in the experimental fotmat but not
 that tested)

That sounds promising.  How would I get started playing with the
experimental branch, and with this feature in particular?

Thanks,

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] endnotes grouped by chapter in a separate chapter

2009-01-25 Thread Jesse Alama
Just a re-ask (I've not been able to figure this out yet) for the
ConTeXt experts.

Jesse Alama al...@stanford.edu writes:

 I'd like to have endnotes placed in an appendix.  I would like that
 appendix not to be one large list of notes; instead, I would like the
 notes to be grouped into sections within the appendix.  Currently, I'm
 aware of 

   \setupnotes[endnote][way=bychapter]

 and

   \placenotes[endnote]

 This setup produces a list of notes labeled in ascending numerical
 order, with numbering reset by chapters.

  Appendix A: Notes

  1 Note from chapter 1.
  2 Second note from chapter 1.
  3 Third note from chaper 1.
  1 First note from chapter 2.
  2 Second note from chapter 2.
  1 First note from chapter 3
  ...

 I'd like to have the endnotes grouped by chapter and displayed something
 like this

   Appendix A: Notes

   Notes from Chapter 1: My Great Chapter

   1 Note from chapter 1.
   2 Second note from chapter 1.
   3 Third note from chaper 1.

   Notes from Chapter 2: My Second Great Chapter  

   1 First note from chapter 2.
   2 Second note from chapter 2.

   Notes from Chapter 3: ...

   ...

 I've looked through the mailing list and the wiki, but I've not been
 able to find out how to accomplish what I'm after.  Any ideas?

 Thanks,

 Jesse

-- 
Jesse Alama (al...@stanford.edu)
___
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] trouble with xetex and metapost

2009-01-11 Thread Jesse Alama
Using MkII (ver: 2009.01.09 16:57 MKII fmt: 2009.1.11 int:
english/english), XeTeX (3.1415926-2.2-0.999.6 (Web2C 7.5.7)), and
metapost (Version 1.005 (Web2C 7.5.7)), and metafun (2008-10-19 15:21),
I run into some trouble with \usestaticMPfigure:

  [snip]
  systems : end file texexec-mpgraph-temp at line 62
  system  : cont-err loaded
  (/usr/local/texlive/2008/../texmf-local/tex/context/base/cont-err.tex
  systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
  ) )
  Output written on texexec-mpgraph-temp.dvi (3 pages, 324 bytes).
  Transcript written on texexec-mpgraph-temp.log.
  TeXExec | runtime: 0.487307
  This is MetaPost, Version 1.005 (Web2C 7.5.7)
  (texexec-mpgraph.mp [1]
  metafun 2008-10-19 15:21
  ! A group begun on line 144 never ended.
  to be read again 
 normalend
  end-...message.metafunversion;message;normalend
;
  l.182 end
   .;
  ? 

Any idea what might be going on?

Thanks,

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] trouble with xetex and metapost

2009-01-11 Thread Jesse Alama
I forgot to add that I don't get this error when compiling with pdftex.

Jesse Alama al...@stanford.edu writes:

 Using MkII (ver: 2009.01.09 16:57 MKII fmt: 2009.1.11 int:
 english/english), XeTeX (3.1415926-2.2-0.999.6 (Web2C 7.5.7)), and
 metapost (Version 1.005 (Web2C 7.5.7)), and metafun (2008-10-19 15:21),
 I run into some trouble with \usestaticMPfigure:

   [snip]
   systems : end file texexec-mpgraph-temp at line 62
   system  : cont-err loaded
   (/usr/local/texlive/2008/../texmf-local/tex/context/base/cont-err.tex
   systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
   ) )
   Output written on texexec-mpgraph-temp.dvi (3 pages, 324 bytes).
   Transcript written on texexec-mpgraph-temp.log.
   TeXExec | runtime: 0.487307
   This is MetaPost, Version 1.005 (Web2C 7.5.7)
   (texexec-mpgraph.mp [1]
   metafun 2008-10-19 15:21
   ! A group begun on line 144 never ended.
   to be read again 
  normalend
   end-...message.metafunversion;message;normalend
 ;
   l.182 end
.;
   ? 

 Any idea what might be going on?

 Thanks,

 Jesse

-- 
Jesse Alama (al...@stanford.edu)
___
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] endnotes grouped by chapter in a separate chapter

2009-01-11 Thread Jesse Alama
I'd like to have endnotes placed in an appendix.  I would like that
appendix not to be one large list of notes; instead, I would like the
notes to be grouped into sections within the appendix.  Currently, I'm
aware of 

  \setupnotes[endnote][way=bychapter]

and

  \placenotes[endnote]

This setup produces a list of notes labeled in ascending numerical
order, with numbering reset by chapters.

 Appendix A: Notes

 1 Note from chapter 1.
 2 Second note from chapter 1.
 3 Third note from chaper 1.
 1 First note from chapter 2.
 2 Second note from chapter 2.
 1 First note from chapter 3
 ...

I'd like to have the endnotes grouped by chapter and displayed something
like this

  Appendix A: Notes

  Notes from Chapter 1: My Great Chapter

  1 Note from chapter 1.
  2 Second note from chapter 1.
  3 Third note from chaper 1.

  Notes from Chapter 2: My Second Great Chapter  

  1 First note from chapter 2.
  2 Second note from chapter 2.

  Notes from Chapter 3: ...

  ...

I've looked through the mailing list and the wiki, but I've not been
able to find out how to accomplish what I'm after.  Any ideas?

Thanks,

Jesse

-- 
Jesse Alama (al...@stanford.edu)

___
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] mkii and xetex with tl2008: invalid fontname errors

2008-08-01 Thread Jesse Alama
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Thu, Jul 17, 2008 at 9:24 PM, Jesse Alama wrote:

 \definetypeface [busted] [rm] [serif] [palatino] [default]
 \setupbodyfont  [busted]
 \starttext
 \input tufte
 \stoptext

 Using XeTeX and ConTeXt MkII with the TeX Live 2008 developer snapshot
 (as of a few days ago), I run into a bunch of invalid fontname errors
 when compiling some documents:

 $ texmfstart texexec --xtx file.tex
 TeXExec | processing document 'file.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file file.top
 TeXExec | using randomseed 518
 TeXExec | tex engine: xetex
 TeXExec | tex format: cont-en
 This is XeTeXk, Version 3.1415926-2.2-0.999.2 (Web2C 7.5.7)
  %-line parsing enabled.
 entering extended mode
 (./file.tex

 ConTeXt  ver: 2008.07.14 18:07 MKII  fmt: 2008.7.15  int: english/english
 [snip]
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 [many more errors like that]

 Any idea what might be going on?

 Does it only complain or does it fail to work?

As far as I can tell this is only a complaint, in the sense that the
XeTeX run finishes and produces a PDF.  Is that what you mean?  I'm not
sure whether those invalid fontnames errors are having an effect.

 I suspect what the error could be (harmless, though it makes sense to
 fix it), but I only think that error reporting got more verbose since
 it works here despite many warnings. Outside of TL (probably some
 branch of xetex trunk + latest context) I don't get that warning.

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] trouble with math arrows

2008-07-30 Thread Jesse Alama
Something goes wrong with this simple example:

--- snip ---
\definemathoverarrow  [overrightarrow]  [\rightarrowfill]
\def\Ray#1{\overrightarrow{#1}}
\starttext
Hello world! $\Ray{ABC}$.
\stoptext
--- snip ---

It leads to:

! Missing $ inserted.
inserted text 
$
to be read again 
   \displaystyle 
\dodohandlemathoverarrow ...{\ialign {##\crcr #2#3
  \crcr \noalign {\kern #1\n...

\mathpalette ...\mathchoice {#1\displaystyle {#2}
  }{#1\textstyle {#2}}{#1\sc...
l.6 Hello world! $\Ray{ABC}
   $.
? 
! Emergency stop.
inserted text 
$
to be read again 
   \displaystyle 
\dodohandlemathoverarrow ...{\ialign {##\crcr #2#3
  \crcr \noalign {\kern #1\n...

\mathpalette ...\mathchoice {#1\displaystyle {#2}
  }{#1\textstyle {#2}}{#1\sc...
l.6 Hello world! $\Ray{ABC}
   $.

(This is done with a live pdftex on the garden.)  Any ideas?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] mkii and xetex with tl2008: invalid fontname errors

2008-07-30 Thread Jesse Alama
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Sat, Jul 19, 2008 at 5:05 AM, Jesse Alama [EMAIL PROTECTED] wrote:
 Mojca Miklavec [EMAIL PROTECTED] writes:

 On Fri, Jul 18, 2008 at 2:55 AM, Jesse Alama [EMAIL PROTECTED] wrote:
 Mojca Miklavec [EMAIL PROTECTED] writes:

 On Thu, Jul 17, 2008 at 9:24 PM, Jesse Alama [EMAIL PROTECTED] wrote:
 Using XeTeX and ConTeXt MkII with the TeX Live 2008 developer snapshot
 (as of a few days ago), I run into a bunch of invalid fontname errors
 when compiling some documents:

 $ texmfstart texexec --xtx file.tex
 TeXExec | processing document 'file.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file file.top
 TeXExec | using randomseed 518
 TeXExec | tex engine: xetex
 TeXExec | tex format: cont-en
 This is XeTeXk, Version 3.1415926-2.2-0.999.2 (Web2C 7.5.7)
  %-line parsing enabled.
 entering extended mode
 (./file.tex

 ConTeXt  ver: 2008.07.14 18:07 MKII  fmt: 2008.7.15  int: english/english
 [snip]
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 [many more errors like that]

 Can you please send a minimal example that fails?

 \definetypeface
  [busted] [rm] [serif] [palatino] [default]
 \setupbodyfont  [busted]
 \starttext
 \input tufte
 \stoptext

 Hmm, perhaps the tex-gyre fonts are incorrectly installed?

 Do you have the file texgyrepagella-italic.otf? What does
 kpsewhich texgyrepagella-italic.otf
 return you? Or put in other words - do you have
 fonts/opentype/public/tex-gyre/texgyrepagella-italic.otf?

$ kpsewhich texgyrepagella-italic.otf
/usr/local/texlive/2008/texmf-dist/fonts/opentype/public/tex-gyre/texgyrepagella-italic.otf

 You can also try to reinstall or update packages. I'm not sure how
 well packaging works, but texgyre has now been added to
 scheme-context.

The package seems to be installed just fine, so I'm stumped.

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] mkii and xetex with tl2008: invalid fontname errors

2008-07-18 Thread Jesse Alama
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Fri, Jul 18, 2008 at 2:55 AM, Jesse Alama [EMAIL PROTECTED] wrote:
 Mojca Miklavec [EMAIL PROTECTED] writes:

 On Thu, Jul 17, 2008 at 9:24 PM, Jesse Alama [EMAIL PROTECTED] wrote:
 Using XeTeX and ConTeXt MkII with the TeX Live 2008 developer snapshot
 (as of a few days ago), I run into a bunch of invalid fontname errors
 when compiling some documents:

 $ texmfstart texexec --xtx file.tex
 TeXExec | processing document 'file.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file file.top
 TeXExec | using randomseed 518
 TeXExec | tex engine: xetex
 TeXExec | tex format: cont-en
 This is XeTeXk, Version 3.1415926-2.2-0.999.2 (Web2C 7.5.7)
  %-line parsing enabled.
 entering extended mode
 (./file.tex

 ConTeXt  ver: 2008.07.14 18:07 MKII  fmt: 2008.7.15  int: english/english
 [snip]
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 [many more errors like that]

 Any idea what might be going on?

 You probably need to install tex-gyre package. It might make sense
 to add the fonts to scheme-context.

 The tex-gyre package is installed.

 Is this just a typo somewhere?  Apparently the only problem is the colon
 in the font name.

 Can you please send a minimal example that fails?

\definetypeface
  [busted] [rm] [serif] [palatino] [default]
\setupbodyfont  [busted]
\starttext
\input tufte
\stoptext

 XeTeX has multiple ways of finding fonts (by name, by filename for
 modern fonts, by filename for tfm fonts), and that's probably the
 fallback (looking for tfm fonts). Colon needs to stay, it's just the
 wrong algorithm that looks for fonts.

Hmm, perhaps the tex-gyre fonts are incorrectly installed?

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] mkii and xetex with tl2008: invalid fontname errors

2008-07-17 Thread Jesse Alama
Using XeTeX and ConTeXt MkII with the TeX Live 2008 developer snapshot
(as of a few days ago), I run into a bunch of invalid fontname errors
when compiling some documents:

$ texmfstart texexec --xtx file.tex
TeXExec | processing document 'file.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file file.top
TeXExec | using randomseed 518
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeXk, Version 3.1415926-2.2-0.999.2 (Web2C 7.5.7)
 %-line parsing enabled.
entering extended mode
(./file.tex

ConTeXt  ver: 2008.07.14 18:07 MKII  fmt: 2008.7.15  int: english/english
[snip]
kpathsea: Invalid fontname 
`texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
kpathsea: Invalid fontname 
`texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
kpathsea: Invalid fontname 
`texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
kpathsea: Invalid fontname 
`texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
kpathsea: Invalid fontname 
`texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
kpathsea: Invalid fontname 
`texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
kpathsea: Invalid fontname 
`texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
[many more errors like that]

Any idea what might be going on?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] mkii and xetex with tl2008: invalid fontname errors

2008-07-17 Thread Jesse Alama
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Thu, Jul 17, 2008 at 9:24 PM, Jesse Alama [EMAIL PROTECTED] wrote:
 Using XeTeX and ConTeXt MkII with the TeX Live 2008 developer snapshot
 (as of a few days ago), I run into a bunch of invalid fontname errors
 when compiling some documents:

 $ texmfstart texexec --xtx file.tex
 TeXExec | processing document 'file.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file file.top
 TeXExec | using randomseed 518
 TeXExec | tex engine: xetex
 TeXExec | tex format: cont-en
 This is XeTeXk, Version 3.1415926-2.2-0.999.2 (Web2C 7.5.7)
  %-line parsing enabled.
 entering extended mode
 (./file.tex

 ConTeXt  ver: 2008.07.14 18:07 MKII  fmt: 2008.7.15  int: english/english
 [snip]
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 [many more errors like that]

 Any idea what might be going on?

 You probably need to install tex-gyre package. It might make sense
 to add the fonts to scheme-context.

The tex-gyre package is installed.

Is this just a typo somewhere?  Apparently the only problem is the colon
in the font name.

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] hyphenatedurl (WHY?)

2008-07-11 Thread Jesse Alama
Steffen Wolfrum [EMAIL PROTECTED] writes:

 God bless the command \hyphenatedurl{...} !

 Only, I am wondering why it starts a new line not *after* but *before*  
 the slash, dot or whatever there is to structure a long url.
 Is this an english/dutch convention, completely different than  
 paragraph wrapping? Or is it common usus, just me never noticed it  
 outside ConTeXt??

I can't speak for Dutch conventions, but here are some rules concerning
URL's according to the Chicago Manual of Style, 15th edition:

  Where it is necessary to break a URL or an e-mail address, no hyphens
  should be used.  The break should be made between elements, after a
  colon, a slash, a double slash, or the symbol @ but before a period or
  any other punctuation or symbols.  To avoid confusion, a URL that
  contains a hyphen should never be broken at the hyphen.  If a
  particularly long element must be broken to avoid a seriously loose
  line, it should be broken between syllables according to the
  guidelines offered above. (7.44, p. 298)

There's another section of the book (17.11) where they say the same
thing, and give examples:

  http://press-pubs.uchicago
.edu/founders/

  http://www.uiowa.edu/
~vpr/research/organize/humalink.htm

  http://www.pubmedcentral.nih.gov/b.cgi
?artid=19161

  http://www.internetnews.com/ec
-news/article/0,,4_353451.html

Does anyone have any other references handy that could adjudicate on the
matter?  Perhaps this varies from language to language (or even country
to country), though I would be surprised if it varied all that much,
since URL's are a fairly new typographical entity.

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] trouble starting context

2008-07-07 Thread Jesse Alama
Jesse Alama [EMAIL PROTECTED] writes:

 Jesse Alama [EMAIL PROTECTED] writes:

 Taco Hoekwater [EMAIL PROTECTED] writes:

 Aditya Mahajan wrote:
 On Thu, 3 Jul 2008, Jesse Alama wrote:
 
 Taco Hoekwater [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 Taco Hoekwater [EMAIL PROTECTED] writes:
 I have:

 LUAINPUTS=.;$TEXMF/tex/{context,plain/base,generic}//:$TEXMF/scripts/context/lua
 TEXMFSCRIPTS=.;$TEXMF/tex/{context,plain/base,generic,}//;$TEXMF/scripts/context//

 and I strongly suspect both are needed. After adjusting the value(s),
 you will have to rerun luatools --generate.
 I modified texmf.cnf to give these variables those values, but I still
 get the same error, even after luatools --generate.  Further
 suggestions?

 Try

$ env TEXMFCACHE=/Users/alama context dissertation

 maybe that will help. (I am guessing right now, but I will install the 
 texlive devel snapshot on a clean virtual machine on monday).

 Same problem:

   $ MTX_INPUT_TRACE=3 TEXMFCACHE=/Users/alama context dissertation
   ! using suffix based filetype: %s | lua
   ? blobpath asked: %s | context.lua
   ? filename: %s | context.lua
   - readable: %s | ./context.lua
   ! using suffix based filetype: %s | lua
   ? blobpath asked: %s | mtx-context.lua
   ? filename: %s | mtx-context.lua
   - readable: %s | ./mtx-context.lua
   ! using suffix based filetype: %s | lua
   ? blobpath asked: %s | mtx-contexts.lua
   ? filename: %s | mtx-contexts.lua
   - readable: %s | ./mtx-contexts.lua
   ! remembered: %s | mtx-context.lua
   MtxRun | unknown script: context

 I'll take this to the tex-live list -- perhaps something is
 misconfigured in TL2008.

 The latest tl2008 snapshot seems to solve the problem (though I'm not
 sure why).  Sorry for complaining -- I realize that LuaTeX+MkIV (and
 these days TL2008) are moving targets, but one's patience sometimes runs
 thin.

I spoke too soon: I confused a shell in which I had set up ConTeXt using
the setuptex script with a vanilla shell.  The basic startup problem
still stands.  (I've also asked for help on the TL list.)

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] trouble with typing in luatex

2008-07-07 Thread Jesse Alama
The following example doesn't work:

  -[snip]-
  \setuptyping[numbering=line]
  \starttext
  \starttyping
  hello
  \stoptyping
  \stoptext
  -[snip]--

The problem:

  ! Undefined control sequence.
  argument \number \linenumber 
 
  \setxtypingparameter ...lass \currenttyping #1}{#2
}
  \nododowithbuffer ...yping_)}\endofverbatimlines 
\getvalue 
{\strippedcsname...
  l.5 \stoptyping
 
  ? 

What might be going on?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] trouble starting context

2008-07-06 Thread Jesse Alama
Taco Hoekwater [EMAIL PROTECTED] writes:

 Aditya Mahajan wrote:
 On Thu, 3 Jul 2008, Jesse Alama wrote:
 
 Taco Hoekwater [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 Taco Hoekwater [EMAIL PROTECTED] writes:
 I have:

 LUAINPUTS=.;$TEXMF/tex/{context,plain/base,generic}//:$TEXMF/scripts/context/lua
 TEXMFSCRIPTS=.;$TEXMF/tex/{context,plain/base,generic,}//;$TEXMF/scripts/context//

 and I strongly suspect both are needed. After adjusting the value(s),
 you will have to rerun luatools --generate.
 I modified texmf.cnf to give these variables those values, but I still
 get the same error, even after luatools --generate.  Further
 suggestions?

 Try

$ env TEXMFCACHE=/Users/alama context dissertation

 maybe that will help. (I am guessing right now, but I will install the 
 texlive devel snapshot on a clean virtual machine on monday).

Same problem:

  $ MTX_INPUT_TRACE=3 TEXMFCACHE=/Users/alama context dissertation
  ! using suffix based filetype: %s | lua
  ? blobpath asked: %s | context.lua
  ? filename: %s | context.lua
  - readable: %s | ./context.lua
  ! using suffix based filetype: %s | lua
  ? blobpath asked: %s | mtx-context.lua
  ? filename: %s | mtx-context.lua
  - readable: %s | ./mtx-context.lua
  ! using suffix based filetype: %s | lua
  ? blobpath asked: %s | mtx-contexts.lua
  ? filename: %s | mtx-contexts.lua
  - readable: %s | ./mtx-contexts.lua
  ! remembered: %s | mtx-context.lua
  MtxRun | unknown script: context

I'll take this to the tex-live list -- perhaps something is
misconfigured in TL2008.

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] trouble starting context

2008-07-06 Thread Jesse Alama
Jesse Alama [EMAIL PROTECTED] writes:

 Taco Hoekwater [EMAIL PROTECTED] writes:

 Aditya Mahajan wrote:
 On Thu, 3 Jul 2008, Jesse Alama wrote:
 
 Taco Hoekwater [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 Taco Hoekwater [EMAIL PROTECTED] writes:
 I have:

 LUAINPUTS=.;$TEXMF/tex/{context,plain/base,generic}//:$TEXMF/scripts/context/lua
 TEXMFSCRIPTS=.;$TEXMF/tex/{context,plain/base,generic,}//;$TEXMF/scripts/context//

 and I strongly suspect both are needed. After adjusting the value(s),
 you will have to rerun luatools --generate.
 I modified texmf.cnf to give these variables those values, but I still
 get the same error, even after luatools --generate.  Further
 suggestions?

 Try

$ env TEXMFCACHE=/Users/alama context dissertation

 maybe that will help. (I am guessing right now, but I will install the 
 texlive devel snapshot on a clean virtual machine on monday).

 Same problem:

   $ MTX_INPUT_TRACE=3 TEXMFCACHE=/Users/alama context dissertation
   ! using suffix based filetype: %s | lua
   ? blobpath asked: %s | context.lua
   ? filename: %s | context.lua
   - readable: %s | ./context.lua
   ! using suffix based filetype: %s | lua
   ? blobpath asked: %s | mtx-context.lua
   ? filename: %s | mtx-context.lua
   - readable: %s | ./mtx-context.lua
   ! using suffix based filetype: %s | lua
   ? blobpath asked: %s | mtx-contexts.lua
   ? filename: %s | mtx-contexts.lua
   - readable: %s | ./mtx-contexts.lua
   ! remembered: %s | mtx-context.lua
   MtxRun | unknown script: context

 I'll take this to the tex-live list -- perhaps something is
 misconfigured in TL2008.

The latest tl2008 snapshot seems to solve the problem (though I'm not
sure why).  Sorry for complaining -- I realize that LuaTeX+MkIV (and
these days TL2008) are moving targets, but one's patience sometimes runs
thin.

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] trouble starting context

2008-07-04 Thread Jesse Alama
Hans Hagen [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 Hans Hagen [EMAIL PROTECTED] writes:
 
 Jesse Alama wrote:

 LuaTools | runtime: 6.702 seconds
 Any ideas?
 looks ok to me

 did you update mtxrun.lua - mtxrun(.lua) in your bin path?
 
 No, I didn't mess with that.
 
 Is anyone else testing out the latest TeXLive developer snapshot?  My
 experience has been that LuaTeX is broken.  Perhaps it is premature to
 include LuaTeX in this year's TeXLive.  Or perhaps the binaries and
 scripts that one gets when one downloads the latest TeXLive developer
 snapshot are too old.  Or perhaps LuaTeX requires more (or different)
 configuration than is done in the texmf.cnf that is distributed with
 TeXLive.

 you can best take Norberts packages then since they reflect the latest 
 state of affairs and can be ahead of tex live (context in tex live is 
 already frozen)

I'll try to get Norbert's packages -- thanks for the tip.  As for
TeXLive, it would be a real shame if the TL2008 DVD were shipped with a
busted LuaTeX+MkIV installation.  I for one am quite enthusiastic about
these two projects, so it was disheartening to come across such a basic
problem.  Perhaps I should post to the tex-live mailing list and ask
whether other testers are having similar trouble.

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] modules for TeX Live 2008

2008-07-03 Thread Jesse Alama
Mojca Miklavec [EMAIL PROTECTED] writes:

 Which modules are needed for TeX Live 2008?

 Here's some list (that Hans sent me some time ago):
  http://minimals.contextgarden.net/current/modules/
 (t-tikz should not be included, and )

Why not tikz?

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] trouble starting context

2008-07-03 Thread Jesse Alama
Taco Hoekwater [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 Taco Hoekwater [EMAIL PROTECTED] writes:

 I have:

 LUAINPUTS=.;$TEXMF/tex/{context,plain/base,generic}//:$TEXMF/scripts/context/lua
 TEXMFSCRIPTS=.;$TEXMF/tex/{context,plain/base,generic,}//;$TEXMF/scripts/context//

 and I strongly suspect both are needed. After adjusting the value(s),
 you will have to rerun luatools --generate.
 
 I modified texmf.cnf to give these variables those values, but I still
 get the same error, even after luatools --generate.  Further
 suggestions?

 Maybe

$ env MPX_INPUT_TRACE=3 context ...

 will give some hint about what mtxrun is doing.

$ MTX_INPUT_TRACE=3 context
MtxRun | ! using suffix based filetype: lua
MtxRun | ? blobpath asked: context.lua
MtxRun | ? filename: context.lua
MtxRun | - readable: ./context.lua
MtxRun | ! using suffix based filetype: lua
MtxRun | ? blobpath asked: mtx-context.lua
MtxRun | ? filename: mtx-context.lua
MtxRun | - readable: ./mtx-context.lua
MtxRun | ! using suffix based filetype: lua
MtxRun | ? blobpath asked: mtx-contexts.lua
MtxRun | ? filename: mtx-contexts.lua
MtxRun | - readable: ./mtx-contexts.lua
MtxRun | ! remembered: mtx-context.lua
MtxRun | unknown script: context

It seems that mtxrun has no idea where to look for mtx-context.lua.  Any
suggestions?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] trouble starting context

2008-07-02 Thread Jesse Alama
Taco Hoekwater [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 I just downloaded the TeXLive 2008 developer snapshot and wanted to try
 out LuaTeX.  Unfortunately, I can't even get started:
 
   $ context dissertation.tex
 
   MtxRun | unknown script: context
 
 I ran luatools --generate before doing this.  What's odd is that
 mtx-context can be found:
 
   $ luatools mtx-context.lua

 We've had this before. IIRC, the problem is that mtxrun looks for
 the script using a different 'file type' from luatools. It probably
 means you will have to adjust a value in texmf.cnf.

 I have:

 LUAINPUTS=.;$TEXMF/tex/{context,plain/base,generic}//:$TEXMF/scripts/context/lua
 TEXMFSCRIPTS=.;$TEXMF/tex/{context,plain/base,generic,}//;$TEXMF/scripts/context//

 and I strongly suspect both are needed. After adjusting the value(s),
 you will have to rerun luatools --generate.

I modified texmf.cnf to give these variables those values, but I still
get the same error, even after luatools --generate.  Further
suggestions?

By the way, I initially modified the local texmf.cnf file

  texlive/2008/texmf.cnf

rather than the gloal configuration file

  texlive/2008/texmf/web2c/texmf.cnf

because the former file says that it should contain changes to the
latter:

  ---snip---
  % If you want to configure something to a value different then the one 
  % in texmf/web2c/texmf.cnf, just put the changed value here.
  ---snip---

But I noticed that when I ran luatools --generate, it apparently ignored
this local texmf.cnf file; it read only the global texmf.cnf file.
I inferred that from the output:

  LuaTools | error unable to locate texmfcnf.lua
  LuaTools | loading /usr/local/texlive/2008/texmf/web2c/texmf.cnf
  LuaTools | preparing configuration for 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/ae181585be5454a57ae25fb95c3ccbef.tma
  LuaTools | saving configuration in 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/ae181585be5454a57ae25fb95c3ccbef.tma
  LuaTools | compiling configuration to 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/ae181585be5454a57ae25fb95c3ccbef.tmc
  ...etc.

Thus I modified the global configuration file instead.  By the way,
the variables LUAINPUTS and TEXMFSCRIPTS already had values:

  LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/lua//;$TEXINPUTS
  TEXMFSCRIPTS = $TEXMF/scripts/{$engine,$progname,}//

But I overwrote those to give them the values you recommended, to no
avail, unfortunately.

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] trouble starting context

2008-07-01 Thread Jesse Alama
I just downloaded the TeXLive 2008 developer snapshot and wanted to try
out LuaTeX.  Unfortunately, I can't even get started:

  $ context dissertation.tex

  MtxRun | unknown script: context

I ran luatools --generate before doing this.  What's odd is that
mtx-context can be found:

  $ luatools mtx-context.lua
  
  LuaTools | error unable to locate texmfcnf.lua
  LuaTools | loading configuration for /usr/local/texlive/2008/texmf/web2c from 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/ae181585be5454a57ae25fb95c3ccbef
  LuaTools | locating list of /Users/alama/.texlive2008/texmf-config
  LuaTools | locating list of /Users/alama/.texlive2008/texmf-var
  LuaTools | locating list of /Users/alama/texmf
  LuaTools | locating list of /usr/local/texlive/2008/texmf-config
  LuaTools | locating list of /usr/local/texlive/2008/texmf-var
  LuaTools | locating list of /usr/local/texlive/2008/texmf
  LuaTools | locating list of /usr/local/texlive/texmf-local
  LuaTools | locating list of /usr/local/texlive/2008/texmf-dist
  LuaTools | loading files for /Users/alama/texmf from 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/ac3eee35b5b23b98b43e5c7003a4bbe4
  LuaTools | loading files for /usr/local/texlive/2008/texmf-config from 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/8d010c969467b901b6bcb91f6f471f8b
  LuaTools | loading files for /usr/local/texlive/2008/texmf-var from 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/54c38668678471591609fbe0217efe48
  LuaTools | loading files for /usr/local/texlive/2008/texmf from 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/982f3cc39ab8256ee0595931d5cfd085
  LuaTools | loading files for /usr/local/texlive/texmf-local from 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/1f08e3a96247a4bd25d903ca1cb00c0e
  LuaTools | loading files for /usr/local/texlive/2008/texmf-dist from 
/Users/alama/luatex-cache/context/79597d0cc507e8e510dd517f8850b2ca/trees/4eb9551710f45f305daf928a0f6f4fb0
  LuaTools | 
  LuaTools | /usr/local/texlive/texmf-local/scripts/context/lua/mtx-context.lua
  LuaTools | 
  LuaTools | runtime: 0.118 seconds

What might be going on?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] distro info

2008-06-29 Thread Jesse Alama
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Sat, Jun 14, 2008 at 6:35 PM, Jesse Alama wrote:
 Thomas A. Schmitz writes:

 The basis for my own comments in this thread do not lie in a preference
 for graphical tools, but rather for a straightforward way to stay
 up-to-date with the whole of ConTeXt in a way that ctxtools does not
 currently provide.  A command-line interface for that would be great,
 and so would a graphical tool.

 That's not a general solution, but if you need it for yourself, you
 can put the following to some file and execute it whenever you want:

 rsync -av rsync://contextgarden.net/minimals/current/context/beta/
 /path/to/your/texmf/
 rsync -av rsync://contextgarden.net/minimals/current/bin/luatex/linux/bin/
 /path/to/your/binaries/
 etc.

 There's a limited set of folders that you need to update, and it will
 only update new files, you don't need to update everything.

Two questions:

1. What's the difference between getting the texmf tree using rsync, as
you suggest, and using ctxtools --updatecontext?  Are those equivalent?

2. It looks like the subdirectories that I want are

  common
  context
  luatex
  man
  metapost

if I want to follow only luatex development.  (The only subdirectories
that aren't in that list are mswin, which doesn't apply to me, and
pdftex and xetex.)  I'd like to just put this on top of my TeXLive
(2007) distribution.  Once I copy thse binaries to my TeXLive binary
directory, what's the next step?  Do I need to rebuild the ConTeXt
format, for example?

What I'm looking for is a way to keep up-to-date with ConTeXt and LuaTeX
development; I'd rather not keep a separate installation with all and
only ConTeXt in it, together with a shell script that sets up *only*
ConTeXt.  I'm happy to keep up-to-date by overwriting the relevant parts
of my TeXLive distribution with the freshest texmf and binaries.  That
way, within a single shell I can use the freshest ConTeXt as well as
LaTeX and pacakges from the TeX Collection.  Perhaps I am going against
the intention of the minimal installation; but the discussion of how
to get a minimal ConTeXt installation overlaps with the discussion of
how to stay up-to-date.  I'm more interested in the latter than the
former.  Perhaps the best thing for such a user would be to just track
the TeXLive development tree using cvs or rsync.  I'm curious to hear
any suggetions.

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] AUCTeX and ConTeXt

2008-06-28 Thread Jesse Alama
Charles P. Schaum [EMAIL PROTECTED] writes:

 I really like the support that AUCTeX gives for ConTeXt. Actually, in
 general it does well with any flavor. I'll have to RTFM to see what I
 can do to start a new file specifically in ConTeXt, plain, or whatever,
 not just LaTeX.

 The weird thing is that it reports unspecified problems at the end of
 running context but no such problems really exist.

 The trivial snippet:

 \starttext
 Hello, world!
 \stoptext

 yields the message buffer:

 Updating define menu...
 Updating setup menu...
 Updating other macro's menu...
 Updating project structure menu...
 Updating section block menu...
 Updating section menu...
 Updating...done
 Type `C-c C-l' to display results of compilation.
 ConTeXt: problems after {1} page.

 The pdf generated is, however, entirely satisfactory, as are all texted
 documents.

 My strategy is to ignore it. This appears specific to AUCTeX, in this
 case running on GTK Emacs 22 / Ubuntu 8.04. By contrast, I have minimal
 to no problems on my OS X installation.

What are the exit codes for texexec?  Perhaps these are different from
what auctex is expecting.

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] distro info

2008-06-14 Thread Jesse Alama
Thomas A. Schmitz [EMAIL PROTECTED] writes:

 On Jun 14, 2008, at 1:07 PM, Oliver Buerschaper wrote:

 Actually, I strongly disagree with the opinion that the only way to
 properly interact with TeX is via the command line.

 Counter example: in Mac application development your IDE of choice
 will almost certainly be Xcode. Although it delegates the entire
 compilation process to gcc you *never* ever see the command line. And
 there's no need to. All errors and warnings output by gcc are
 intercepted and passed on to you via the graphical IDE and you won't
 lose a tiny bit of information. In fact you gain a lot when trying to
 track down a problem ...

 Furthermore, in my humble opinion interaction with TeX should
 concentrate on programming the actual typesetting language and not on
 fumbling around with dozens of configuration files ... for instance,
 if you develop applications you wouldn't want to reconfigure your
 compiler twice a week either but rather focus on the source code *you*
 write.

 Oliver

 Who said that the only way to properly interact with TeX is via the  
 command line? What I said is: you can provide all the GUI tools you  
 want, at some point (and this will be rather sooner than later)  
 problems will crop up, and these problems will be impossible to  
 resolve if you don't want to use the command line, don't want to learn  
 about PATH settings, don't want to learn about where configuration  
 files go and what they do. This may be different in, say 10 years, but  
 it would be misleading to pretend that it is different today. TeXLive  
 2008 is just being tested, and in this regard, it's no better than its  
 predecessors. Unless and until we have systems which will be easier to  
 maintain, users who expect to be able to stay away from the CLI are  
 bound to be disappointed.

 Your example about Apple's Xcode actually proves my point: I said that  
 if you can afford to throw a couple of million $ and a dozen  
 programmers at this, it is actually feasible (but will still take  
 time). Apple has done just that; the Xcode IDE hasn't been built by  
 volunteers in their spare time, now has it? So far, nobody has done  
 anything similar for TeX, and I had the impression that the volunteer  
 programmers who are actively contributing to it seem more interested  
 in adding new features and improving the code than in adding a  
 colorful pointy-clicky interface. But of course my impression could be  
 wrong and someone is already building such a GUI as we speak...

 As for fumbling around with dozens of configuration files: such  
 exaggerations are not very helpful in this discussion.

Let me add that I have no aversion at all to using command line tools.
The basis for my own comments in this thread do not lie in a preference
for graphical tools, but rather for a straightforward way to stay
up-to-date with the whole of ConTeXt in a way that ctxtools does not
currently provide.  A command-line interface for that would be great,
and so would a graphical tool.

I'm of course familiar with the minimals, but what's unpleasant about
that approach to staying current with ConTeXt is that one has to put
aside other installations.  What I mean, more specifically, is that
TeXlive is ignored.  As far as I can see, I can't both use latex and the
minimal ConTeXt in the same shell, because if I want to use the latter I
can't use the former.  For me an optimal solution would be a tool like,
say, ctxtools --updatecontext, that combines downloading the latest
binaries, fonts, and TeX code into one package, and overwrites the old
contents in my TeXlive tree.  A command-line tool to do that would
certainly be appreciated.

The discussion of environment variables leads me to wonder: is there a
definitive discussion of these?  I'm familiar with the TeXlive
documentation, but what more should users know to gain a mastery of
these variables in connection with ConTeXt?

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] distro info

2008-06-11 Thread Jesse Alama
I second Andrea's opinion -- I'm also looking forward to a
straightforward way of updating ConTeXt and kin.  I'm comfortable with

  ctxtools --updatecontext, 

but much less comfortable updating binaries and fonts, based on my
experience screwing up my installation; a nice Mac OS X interface to
deal with all these would be great.  How about allowing installation of
modules from http://modules.contextgarden.net, too?

(I admit that there's probably a good deal of FUD here on my part and
it's not as complicated as I think it is.  My guess, though, is that I'm
not alone.)

Jesse

Andrea Valle [EMAIL PROTECTED] writes:

 Wow, much needed.
 Looking forward to see it.

 Best

 -a-

 On 11 Jun 2008, at 18:05, Mojca Miklavec wrote:

 On Wed, Jun 11, 2008 at 4:55 PM, Andrea Valle wrote:

 Hi Oliver,

 I've already assembled a working ConTeXt package based on the minimals
 that installs via the Apple installer. In other words, it will provide
 the same seamless installation experience to the user as known from
 the MacTeX package and, in fact, as known from any decent Mac
 software.

 Fantastic. Exactly what I need. But will you include TeXShop?

 You can use the existing TeXShop or any other editor. Besides that, in
 summer or autumn a new cross-platform editor by Jonathan Kew will be
 available.

 Will the tex
 file system be local (i.e. separated from the usual locations) ?

 You will be able to use PreferencePane to select whether you want to
 use MacTeX or ConTeXt minimals (and which version), and that will be
 done globally. /usr/texbin will be a symlink to binaries.

 Mojca
 
 ___
 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
 
 ___

 --
 Andrea Valle
 --
 CIRMA - DAMS
 Università degli Studi di Torino
 -- http://www.cirma.unito.it/andrea/
 -- http://www.myspace.com/andreavalle
 -- [EMAIL PROTECTED]
 --

 
 Think of it as seasoning
 . noise [salt] is boring
 . F(blah) [food without salt] can be boring
 . F(noise, blah) can be really tasty
 
 (Ken Perlin on noise)

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

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] \Asterisk

2008-05-23 Thread Jesse Alama
I was working on a document in which I wanted use a symbol that,
acording to the Comprehensive LaTeX Symbol List, goes by the name of
\Asterisk or \bigast (see p. 22).  I saw, though, that this seems to be
missing in ConTeXt.  Might it be tucked away in some module, or is it
just absent?  If it's really not there, what would it take to add it?

Thanks,

Jesse

PS Is there such a thing for ConTeXt as the Comprehensive Symbol List
for LaTex?
 
-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] old-style numerals and .

2008-02-27 Thread Jesse Alama
Idris Samawi Hamid [EMAIL PROTECTED] writes:

 On Fri, 22 Feb 2008 20:03:12 -0700, Jesse Alama [EMAIL PROTECTED] wrote:

 I tried switching to nice old-style numerals for a table of contents,
 and found to my chagrin that the periods in the numbers, such as the .
 in 2.3, get typeset as triangles.  You can see the result (verified on
 the live context in the garden) with

   \starttext
   {\os 2.3}
   \stoptext

 What's going on?  How can I get periods rather than triangles?

 If you are using pdfTeX, you have to switch to an encoding that uses  
 oldstyle numerals. This is because the knuthian font with oldstyle is a  
 special, not general purpose, font, and has triangles where the period  
 would be etc. You have to activate oldstyle globally for any but the most  
 narrow purposes.

 Something like the following

 \usetypescript[modern-base][texnansi]  % a simplified latin-modern  
 typescript
 \usetypescript [map]   [latin-modern-os] [texnansi]
 \setupbodyfont[reset]
 \setupbodyfont[modern,11pt]

 used to work in mkii (pdftex + context) but I don't know if it still does  
 -- mkii support for oldstyle has not been a stable feature (due to the  
 changes from cm to lm): I had to recalibrate every couple of years or so.  
 So try and see.

It looks like this is more complicated than I thought.  What would I do
if I wanted old-style numerals just for a table of contents?  Currently,
my table of contents is set up like so:

  \setupcombinedlist[content][alternative=c,numberstyle={\os},pagestyle={\os}]

This produces the triangles for periods, and I think I understand why
that is so.  What value should go in for the numberstyle key to enable
old-style numerals just for the table of contents?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] colors in pgf within context

2008-02-19 Thread Jesse Alama
Aditya Mahajan [EMAIL PROTECTED] writes:

 The example features some \definecolor's which I just did away with
 (sadly) by simply substituting their defining values for their
 occurences.  (This is unfortunate, but perhaps necessary until some
 other mechanism is produced.)  The problem is that the text box to the
 right of the picture is supposed to be colored, and with rounded
 corners.  But the box is missing.  Look at p. 20 of

 The TikZ manual make a lot of uses of the xcolor syntax
 (e.g. \color{red!20}). There is no equivalent ConTeXt syntax. You need
 to define a color, say lightred, as follows

 \definecolor[lightred][r=0.2]

 For tikz key-value options, pgf works behind the scene to define
 appropriate colors, so xcolor syntax works for them. So
 \fill[fillcolor=red!20] will work as expected. However, when using
 \color inside any box, you need to follow ConTeXt syntax. So
 \color[red!20] will not work, you need to define a context color and
 then use that.

I'm still not able to get fillcolor to work with the information box:

  \starttikzpicture[scale=4,information text/.style={fill=red}]
  \draw[xshift=1.85cm] node[right,text width=6cm,information text] 
  { 
  The \color[green]{angle $\alpha$} is
$30^\circ$ in the example ($\pi/6$ in radians). The \color[red]{sine
  of $\alpha$}, which is the height of the red line, is
  \startformula
  \color[red]{\sin \alpha} = 1/2.
  \stopformula
  By the Theorem of Pythagoras ... 
  };

Is ConTeXt correctly parsing the key information tex/.style?

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] colors in pgf within context

2008-02-18 Thread Jesse Alama
Hi Aditya,

Thanks for the help -- I think I now see why there is such trouble with
colors in pgf and context.  It looks like one can systematically
transform LaTeX-like PGF examples of \color into ConTeXt examples.

The reason why this came up is that I'm trying to go through Till
Tantau's Example for Karl's Students tutorial in the PGF/TikZ manual.
Has anyone managed to ConTeXt-ify that example?  The closest that I've come is

  \usemodule[tikz]
  \setupcolors[state=start]
  \starttext
  \starttikzpicture
[scale=3,
 line cap=thin,
 %Styles
 axes/.style=, 
 important line/.style={very thick}, 
 information text/.style={rounded corners,fill=red!10,inner sep=1ex}] 
  % Local definitions 
  \def\costhirty{0.8660256} 
  % The graphic 
  \draw[help lines,step=0.5cm] (-1.4,-1.4) grid (1.4,1.4); 
  \draw (0,0) circle (1cm); 
  \startscope[axes] 
  \draw[-] (-1.5,0) -- (1.5,0) node[right] {$x$} coordinate(x axis); 
  \draw[-] (0,-1.5) -- (0,1.5) node[above] {$y$} coordinate(y axis); 
  \foreach \x/\xtext in {-1, -.5/-\frac{1}{2}, 1} 
  \draw[xshift=\x cm] (0pt,1pt) -- (0pt,-1pt) node[below,fill=white] 
{$\xtext$}; 
  \foreach \y/\ytext in {-1, -.5/-\frac{1}{2}, .5/\frac{1}{2}, 1} 
  \draw[yshift=\y cm] (1pt,0pt) -- (-1pt,0pt) node[left,fill=white] {$\ytext$}; 
  \stopscope
  \filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0pt) 
arc(0:30:3mm); 
  \draw (15:2mm) node[green!50!black] {$\alpha$}; 
  \draw[important line,red] 
  (30:1cm) -- node[left=1pt,fill=white] {$\sin \alpha$} (30:1cm |- x axis); 
  
  \draw[important line,orange!80!black] (1,0) -- node[right=1pt,fill=white] { 
  $\displaystyle \tan \alpha \color[black]{=}
  \frac{\color[red]{\sin \alpha}}{\color[blue]{\cos \alpha}}$} 
  (intersection of 0,0--30:1cm and 1,0--1,1) coordinate (t); 
  \draw (0,0) -- (t); 
  \draw[xshift=1.85cm] 
  node[right,text width=6cm,information text] 
  { 
  The \color[green!50!black]{angle $\alpha$} is $30^\circ$ in the 
  example ($\pi/6$ in radians). The \color[red]{sine of 
  $\alpha$}, which is the height of the red line, is 
  \startformula
  \color[red]{\sin \alpha} = 1/2.
  \stopformula
  By the Theorem of Pythagoras ... 
  }; 
  \stoptikzpicture
  \stoptext

The example features some \definecolor's which I just did away with
(sadly) by simply substituting their defining values for their
occurences.  (This is unfortunate, but perhaps necessary until some
other mechanism is produced.)  The problem is that the text box to the
right of the picture is supposed to be colored, and with rounded
corners.  But the box is missing.  Look at p. 20 of

  http://altermundus.com/downloads/pgfmanual_cvs.pdf
  
to see what I mean.  Also, the phrase angle $\alpha$ is supposed to be
in a kind of green, but that's not working either.  What might be
happening?

Thanks,

Jesse

Aditya Mahajan [EMAIL PROTECTED] writes:

 I am CCing to the context list also.

 On Mon, 18 Feb 2008, Jesse Alama wrote:

 Hi Aditya,

 I recently came across a thread on the PGF users mailing list in which
 you mention some problems with ConTeXt, PGF and colors.  For example:

  http://article.gmane.org/gmane.comp.tex.pgf.user/38

 Have these issues beein resolved for your?  I just downloaded PFG 1.18
 from the modules part of the contextgarden, installed it, and, when
 trying to compile the following example PGF code

  \starttikzpicture[scale=3]
\clip (-2,-0.2) rectangle (2,0.8);
\draw[step=.5cm,gray,very thin] (-1.4,-1.4) grid (1.4,1.4);
\filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0mm) arc
(0:30:3mm) -- cycle;
\draw[-] (-1.5,0) -- (1.5,0) coordinate (x axis);
\draw[-] (0,-1.5) -- (0,1.5) coordinate (y axis);
\draw (0,0) circle (1cm);

\draw[very thick,red]
  (30:1cm) -- node[left=1pt,fill=white] {$\sin \alpha$} (30:1cm |- x 
 axis);
\draw[very thick,blue]
  (30:1cm |- x axis) -- node[below=2pt,fill=white] {$\cos \alpha$} (0,0);
\draw[very thick,orange]  (1,0) -- node [right=1pt,fill=white]
  {$\displaystyle \tan \alpha \color{black}=
\frac{{\color[red]\sin \alpha}}{{\color[blue]\cos \alpha}}$}
  (intersection of 0,0--30:1cm and 1,0--1,1) coordinate (t);

\draw (0,0) -- (t);
\foreach \x/\xtext in {-1, -0.5/-\frac{1}{2}, 1}
\draw (\x cm,1pt) -- (\x cm,-1pt) node[anchor=north,fill=white] 
 {$\xtext$};
\foreach \y/\ytext in {-1, -0.5/-\frac{1}{2}, 0.5/\frac{1}{2}, 1}
\draw (1pt,\y cm) -- (-1pt,\y cm) node[anchor=east,fill=white] {$\ytext$};
  \stoptikzpicture

 (which is taken from the PGF manual), I get

  ! Use of \color doesn't match its definition.
  [EMAIL PROTECTED] ...{$\displaystyle \tan \alpha \color {
black}= \frac {{\color 
 {re...

  [EMAIL PROTECTED]@[EMAIL PROTECTED] ...mmand [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL 
 PROTECTED]@[EMAIL PROTECTED]@...

  [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@onpath

[NTG-context] trouble with indices

2008-02-17 Thread Jesse Alama
I've noticed that with the most recent ConTeXt release I'm unable to
make indices.  This example fails:

  \starttext
  Hello, this \index{copula}is an index.
  \completeindex
  \stoptext

The error I get is:

  chapter : 1 \headtext {index}
  ! Extra }, or forgotten \endgroup.
  \stoppacked -\par \ifvmode \egroup 
  \ifdim \lastskip =\noparskipsignal 
\rela...
  
  \doutilities ...protectutilities \unprotect \fi #4
\the 
\everybeforeutilityre...
  
  \doplaceregister ...ster \stoppacked \stopcolumns 
\endgroup \fi 
  \docompleteregister ...ter [\currentregister ][#2]
\page [\v!yes ]\endgroup 
\fi 
  to be read again 
 \par 
  l.6 
  
  ? 

The error arises both with pdftex or xetex.  I think that some recent
change must be responsible for this, because I didn't notice any
problems with indices, say, a couple months ago.  What might be going
on?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] math too big when in small contexts

2008-01-06 Thread Jesse Alama
Consider an example like the following:

  \definestartstop
[extract]
[style=small]
  \starttext
  \startextract
  As you can see, the $M$ Math is too big.
  \stopextract
  \stoptext

When typeset, the math M is bigger than the capital M in Math following
it.  What might be going on?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] on block quotes

2007-11-14 Thread Jesse Alama
Hans Hagen [EMAIL PROTECTED] writes:

 Wolfgang Schuster wrote:

 \definedelimitedtext
[\v!blockquote][\v!quotation]
 

 \setupdelimitedtext
   [\v!blockquote]
   [\c!left=,
\c!right=]

 added

Excellent -- thanks!  If I do a ctxtools --updatecontext, will this be
available?

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] project structure and dissertations

2007-11-01 Thread Jesse Alama
I'm unsure about an aspect of The ConTeXt Way and its application to my
current situation: typesetting a dissertation, namely: how can I take
advantage of project sttructure?

It seems natural to regard the dissertation as a project and the
chapters as products (which sounds strange to my mind, in this case).
But then I have no idea what would correspond to components; it seems
like excessive, unnecessary structuring to regard sections of chapters
as components.  And if sections aren't components, I don't know what
they would be.

Earlier messages on this mailing list suggest that projects aren't
supposed to be compiled; only components and products are supposed to be
compiled.  This suggests that the whole dissertation not be a project;
clearly I would want to compile the whole dissertation.

Another approach would be to skip projects and stick with just products
and components.  In this case, the whole dissertation would be a product
(which sounds right to me), and chapters would be components.

But then, if I follow that route, how would the logical structure
interact with the typographical structure (what is called
meta-structure in the ConTeXt manual)?  I want to say something like

  \startfrontmatter
\chapter{Preface}
  \stopfrontmatter

  \startbodymatter
\chapter{Introduction}
  \stopbodymatter

  \startappendices
\chapter{Complex Proof that was Skipped}
  \stopappendices

  \startbackmatter
\chapter{Colofon}
  \stopbackmatter

in dissertation.tex, to indicate the typographical/meta structure.  But then
where would the \component commands go?  Would it look something like
this:

  \startproductproduct dissertation

  \startfrontmatter
\chapter{Preface}
\component{Preface}
  \stopbodymatter

  ...

  or would I somehow be able to refer to the whole text of the
  preface and do something like

  \startproduct dissertation
  \component preface
\chapter{Preface}
\getbuffer{buf:preface}
  \startfrontmatter

  ...

with the whole text of the preface in a buffer?

I would appreciate any advice!

Thanks,

Jesse  

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] metapost question

2007-10-08 Thread Jesse Alama
And here's a page dedicated to the MetaPost package that's used for
those polyhedra:

  http://melusine.eu.org/syracuse/poulecl/geometriesyr16/

Download:

  
http://melusine.eu.org/syracuse/poulecl/geometriesyr16/distrib/geometriesyr16.tgz

Jesse

Otared Kavian [EMAIL PROTECTED] writes:

 Hi Thomas,

 I think you can find what you are looking for at:

 http://melusine.eu.org/syracuse/poulecl/albums/espace3/

 Best regards: OK

 On 8 oct. 2007, at 15:47, Thomas A. Schmitz wrote:

 Just because I hope that someone may have done this already: does  
 anyone have metapost code to draw the Platonic solids (I hope the  
 attachment comes through).

 All best

 Thomas

 platonic.png
 __ 
 _
 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
 ___


-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] a question about formula labels: letters preceding numbers

2007-10-03 Thread Jesse Alama
I'd like to typeset equations like these:

  some formula(S1)

  another formula (S2)

From the documentation, I can see how to produce labels such as 1S,
with the S following the equation number, but I don't yet see how to
make the S come in front.  Since there are only two such equations in
the particular document that I'm working with, a brutish one-off
solution would suffice.  But a method for prefixing a letter to a number
(rather than the other way around) would be nicer.

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] bib module fails to produce publication list under certain conditions

2007-09-16 Thread Jesse Alama
Taco Hoekwater [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 I recently came across an unusual error with the bib module: depending
 on the section structure of a document, the publication list is
 sometimes not produced.  I've attached a simple document and a one-entry
 bib file that illustrates the error.  If either the second section of
 the subsection is commented out, the publication list is produced; if
 both are uncommented, the publication list is not produced.  What might
 be going on?

 This is a known limitation introduced by the transparant per-section
 publication support (it is now clear I should not have done that,
 but is too late to fix now).  Normally being explicit like

\placepublicationlist[criterium=all]

 fixes the problem.

That solved the problem -- thanks.  (Using

  \completepublicationlist[criterium=all] ,

which is what I actually need, also works.)

Thanks,

Jesse

PS It be `criterion' rather than `criterium'.  According to my
dictionary, the latter means a one-day bicycle race on a circuit road
course.

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] bib module fails to produce publication list under certain conditions

2007-09-16 Thread Jesse Alama
Jesse Alama [EMAIL PROTECTED] writes:

 Taco Hoekwater [EMAIL PROTECTED] writes:

 Jesse Alama wrote:
 I recently came across an unusual error with the bib module: depending
 on the section structure of a document, the publication list is
 sometimes not produced.  I've attached a simple document and a one-entry
 bib file that illustrates the error.  If either the second section of
 the subsection is commented out, the publication list is produced; if
 both are uncommented, the publication list is not produced.  What might
 be going on?

 This is a known limitation introduced by the transparant per-section
 publication support (it is now clear I should not have done that,
 but is too late to fix now).  Normally being explicit like

\placepublicationlist[criterium=all]

 fixes the problem.

 That solved the problem -- thanks.  (Using

   \completepublicationlist[criterium=all] ,

 which is what I actually need, also works.)

 Thanks,

 Jesse

 PS It be `criterion' rather than `criterium'.  According to my
 dictionary, the latter means a one-day bicycle race on a circuit road
 course.

Clearly it should read

  It is `criterion' rather than `criterium'.

rather than

  It be `criterion' rather than `criterium'.

(I one-up'd Taco by making a grammatical rather than lexicographic
error.  Failure to proofread messages before sending them will be the
death of me yet.)

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] \coloneqq

2007-09-14 Thread Jesse Alama
I'd like to use a colon-equals sign symbol to indicate a definition.
According to The Comprehensive LaTeX Symbol List, this symbol is
available in the txfonts (LaTeX) package.  However, it seems that the
txfonts support in ConTeXt doesn't contain that symbol.  And, in any
case, a search for \coloneqq on the wiki gave no results.  Perhaps the
symbol I want isn't called coloneqq in ConTeXt, or perhaps the symbol is
currently missing.  How can I get this symbol in my ConTeXt document?

Thanks for your help,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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] \overleftrightarrow

2007-07-11 Thread Jesse Alama
Hi Aditya,

Aditya Mahajan [EMAIL PROTECTED] writes:

 On Thu, 28 Jun 2007, Jesse Alama wrote:

 I'm preparing a geometry course using ConTeXt and am impressed with the
 system so far.  One thing I need is to do is typeset various geometrical
 symbols.  It looks like ConTeXt already has the \overleftarrow and
 \overrightarrow commands, but one thing I'd like to have is
 \overleftrightarrow, for typesetting the symbol customarily used to
 denote the line determined by two points.  It seems, though, that this
 isn't available in ConTeXt, or, at least, it is not available by
 default.  I tried looking on the contextgarden and google, but didn't
 come across anything.  Is the \overleftrightarrow command already
 available?

 Actually just adding overleftrightarrow is easy, but better will be an 
 interface to easily define such commands. So 

 If not, what can I do so that I can use it?

 ConTeXt uses overleftarrow and overrightarrow as defined in plain 
 tex. This does not work in subscripts.

 $\overleftarrow{A}$ $\overleftarrow{ABC}$
 $a_{\overleftarrow{A}}$ $b_{\overleftarrow{ABC}}$

 Here is a solution. First we patch math-ext so that arrowfills take a 
 style.

 \unprotect

 \def\mtharrowfill#1#2#3#4#5#6#7#8% AM: Added #8 (for displaystyle)
   {$\mathsurround 0pt
 \thickmuskip0mu\medmuskip\thickmuskip\thinmuskip\thickmuskip
 \relax#8#5%
 \mkern-#1mu
 \cleaders\hbox{$#8\mkern -#2mu#6\mkern -#3mu$}\hfill
 \mkern-#4mu#7$}

 %D Now we need to make sure that the extensible arrows do not get 
 %D affected. So...

 \def\domthxarr#1#2#3#4#5% hm, looks like we do a double mathrel
   {\begingroup
\def\mtharrfactor{1}%
\def\mtharrextra {0}%
\processaction[#1] % will be sped up
  [  \v!none=\def\mtharrfactor{0},
\v!small=\def\mtharrextra{10},
   \v!medium=\def\mtharrextra{15},
  \v!big=\def\mtharrextra{20},
   \v!normal=,
  \v!default=,
  \v!unknown=\doifnumberelse{#1}{\def\mtharrextra{#1}}\donothing]%
\mathsurround\zeropoint
\muskip0=\thirdoffourarguments  #2mu
\muskip2=\fourthoffourarguments #2mu
\muskip4=\firstoffourarguments  #2mu
\muskip6=\secondoffourarguments #2mu
\muskip0=\mtharrfactor\muskip0 \advance\muskip0 \mtharrextra mu
\muskip2=\mtharrfactor\muskip2 \advance\muskip2 \mtharrextra mu
\setbox0\hbox{$\scriptstyle
   \mkern\muskip4\relax
   \mkern\muskip0\relax
   #5\relax
   \mkern\muskip2\relax
   \mkern\muskip6\relax
  $}%
\setbox4\hbox{#3\displaystyle}% AM: Added displaystyle
\dimen0\wd0
\ifdim\wd4\dimen0 \dimen0\wd4 \fi
\setbox2\hbox{$\scriptstyle
   \mkern\muskip4\relax
   \mkern\muskip0\relax
   #4\relax
   \mkern\muskip2\relax
   \mkern\muskip6\relax
  $}%
\ifdim\wd2\dimen0 \dimen0\wd2 \fi
\setbox4\hbox to \dimen0{#3\displaystyle}% AM: added dislaystyle
\mathrel{\mathop{\hbox to 
 \dimen0{\hss\copy4\hss}}\limits^{\box0}_{\box2}}
\endgroup}

 \let\domthxarrsingle\domthxarr

 %D Now, for defining overarrows.

 \def\definemathoverarrow
   {\dotripleargument\dodefinemathoverarrow}

 \def\dodefinemathoverarrow[#1][#2][#3]%
   {\ifthirdargument
 \setvalue{#1}{\dohandlemathoverarrow[#2][#3]}%
\else
 \setvalue{#1}{\dohandlemathoverarrow[\zeropoint][#2]}%
\fi}

 \def\dohandlemathoverarrow[#1][#2]%
   {\mathpalette{\dodohanglemathoverarrow{#1}{#2}}}

 % Note: math-pln has \kern-\onepoint, amsmath does not. I keep the
 % kern amount as an option. This is useful with overharpoons.


 \def\dodohanglemathoverarrow#1#2#3#4%
   {\vbox{\ialign{##\crcr
#2#3\crcr
\noalign{\kern#1\nointerlineskip}
[EMAIL PROTECTED]

 \protect

 \definemathoverarrow  [overleftarrow]   [\leftarrowfill]
 \definemathoverarrow  [overrightarrow]  [\rightarrowfill]
 \definemathoverarrow  [overleftrightarrow]  [\leftrightarrowfill]


 $\overleftarrow{A}$ $\overleftarrow{ABC}$
 $a_{\overleftarrow{A}}$ $b_{\overleftarrow{ABC}}$

 $\overleftrightarrow{A}$ $\overleftrightarrow{ABC}$

 $a_{\overleftrightarrow{A}}$ $b_{\overleftrightarrow{ABC}}$


 As an added bonus:

 \definemathoverarrow [overtwoheadrightarrow]  [\twoheadrightarrowfill]
 \definemathoverarrow [overtwoheadleftarrow]   [\twoheadleftarrowfill]
 \definemathoverarrow [overrightharpoondown] [1pt] [\rightharpoondownfill]
 \definemathoverarrow [overrightharpoonup] [\rightharpoonupfill]
 \definemathoverarrow [overleftharpoondown]  [1pt] [\leftharpoondownfill]
 \definemathoverarrow [overleftharpoonup]  [\leftharpoonupfill]

 $\overtwoheadrightarrow  {XYZ}$
 $\overtwoheadleftarrow   {XYZ}$
 $\overrightharpoondown   {XYZ}$
 $\overrightharpoonup {XYZ}$
 $\overleftharpoondown{XYZ}$
 $\overleftharpoonup  {XYZ}$

 There are also underarrows, which will not be too hard to do. I will 
 patch math-ext

[NTG-context] \overleftrightarrow

2007-06-28 Thread Jesse Alama
I'm preparing a geometry course using ConTeXt and am impressed with the
system so far.  One thing I need is to do is typeset various geometrical
symbols.  It looks like ConTeXt already has the \overleftarrow and
\overrightarrow commands, but one thing I'd like to have is
\overleftrightarrow, for typesetting the symbol customarily used to
denote the line determined by two points.  It seems, though, that this
isn't available in ConTeXt, or, at least, it is not available by
default.  I tried looking on the contextgarden and google, but didn't
come across anything.  Is the \overleftrightarrow command already
available?  If not, what can I do so that I can use it?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
*65: thesis is allowed only inside a proof

___
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] using a symbol from the wasy physics symbol set

2007-06-28 Thread Jesse Alama
I'd like to use the symbol varangle from the wasy physics symbol set.
In my file I've got

\usesymbols[was]
\showsymbolset[wasy physics]

$\symbol[varangle]$

In the PDF that's generated, I see the symbols in the wasy physics
symbol set just fine, but following the symbol set table, I just see an
OE ligature glyph.  What might be going on?  And is there any way I can
use

  \varangle

rather than

  \symbol[varangle]

?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
*65: thesis is allowed only inside a proof

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