Re: [NTG-context] LuaTex choking on \definesynonyms?

2009-08-30 Thread Hans Hagen

Roland wrote:

Hi, sorry to get back to this so late but I still can't get it to work
with the latest updated ConTeXt Minimals. Am I using a wrong command?
Is the command already integrated in the latest Minimals? I can't seem
to find it in the setup-en.pdf file dated August 28th...


there is indeed a bug in the mkiv code; i'll have a look at it

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] LuaTex choking on \definesynonyms?

2009-08-30 Thread Hans Hagen

Roland wrote:

Hi, sorry to get back to this so late but I still can't get it to work
with the latest updated ConTeXt Minimals. Am I using a wrong command?
Is the command already integrated in the latest Minimals? I can't seem
to find it in the setup-en.pdf file dated August 28th...


Solution (in syst-aux.mkiv):

\def\HandleNoGroup % retrofit into mkii
  {\ifnum\currentgrouptype=\@@semisimplegroup
 \expandafter\HandleNoGroupA
   \else
 \expandafter\HandleNoGroupB
   \fi}

\long\def\HandleNoGroupA#1#2%
  {\long\def\AfterGroup{#2\endgroup}%
   \begingroup\aftergroup\AfterGroup#1}

\long\def\HandleNoGroupB#1#2%
  {\long\def\AfterGroup{#2\egroup}%
   \bgroup\aftergroup\AfterGroup#1}

Needs some testing

(In mkiv i occasionally use begingroup/endgroup instead if bgroup/egroup 
so that confuses the pseudo cap handler)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] publications and custom author separator

2009-08-30 Thread David Rogers
On Sun, Aug 30, 2009 at 16:55, Črt Gorupcrt.go...@gmail.com wrote:
 Hi

 I am trying to replace ('in' instead of 'and') a  separator between the last
 two authors for every article, but I am facing a semi success. My approach
 was to set the variable finalnamesep in \setuppublicationlist. At the moment
 it is working only when there are three or more authors per entry.

 This example with 5 authors is ok, there is 'in' between last two authors.

 Rong-En Fan, Kai-Wei Chang, Cho-Jui Hsieh, Xiang-Rui Wang in Chih-Jen
 Lin, LIBLINEAR: A library for large linear classification v Journal of
 Machine
 Learning Research, 2008.


 This example has only 2 authors, there should be 'in' instead of 'and'.

 T. M. J. Fruchterman and E. M. Reingold, Graph drawing by force-directed
 placement v Software: Practice and Experience, št. 11, zv. 21, str.
 1129-1164,
 1991.


 Does anybody have any idea?


I believe that in is only used when the name after in is an editor
- not an author. With two authors (or many authors) but no editor,
then and is correct.

Forgive me if I'm wrong.

David
___
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] MkIV issue with normal italics text in math mode

2009-08-30 Thread Brian R. Landy
Hi, I've run across what I believe to be a bug in MkIV -- I am unable  
to access non-math italics from within math mode.  A simple example is  
--


\starttext
\math{\text{\it Hello, World}}
\stoptext

This works in MkII.  Or perhaps there some other way I'm supposed to  
code this?


Thanks,
Brian
___
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] Helvetica Neue and Snow Leopard

2009-08-30 Thread Brian R. Landy
Hi, I've run into a problem using Helvetica Neue on a Mac under Snow  
Leopard.  The font is provided by Apple and was a dfont package on  
10.5, now it is a ttc.  I am getting garbled and funny text using it.   
An example is --


\usetypescriptfile[type-mac]
\usetypescript[helvetica-neue]
\setupbodyfont[helvetica-neue,sans,10pt]
\starttext
{\bf Hello World, 1234567890\par}
{Hello World, 1234567890\par}
\stoptext

I am attaching pdfs that show the correct (from Leopard) and incorrect  
output.  Both systems are running ConTeXt 2009.08.19 (actually I just  
updated to 2009.08.30 with no help, this is using minimals) and LuaTeX  
beta-0.43.0-2009081811.  The bold font gets the letters correct but it  
looks terrible; normal sans text is completely garbled.  I have  
reloaded my font database but it didn't help.


Thanks,
Brian



bad.pdf
Description: Adobe PDF document


good.pdf
Description: Adobe PDF document
___
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] metapost-pdf problem

2009-08-30 Thread Jean Magnan de Bornier
Hi all,

I have had trouble with metapost lately; mptopdf seems broken. Here are
two small test files:

rent.mp:

input metafun;
numeric u; u=15mm;


beginfig(1);
  drawarrow (0,0)..(8u,0);
draw (3u,-.2u)..(3u,.5u);
label.bot(btex 0 etex, (3.2u,0));
  endfig;

end

...

rent.tex:

...
\starttext
 
\externalfigure[/home/jean/graph/rent.1]

\stoptext
...

I run metapost on the first file and (nearly) everything seems all right;
rent.1 is created and I can visualize it.

ThenI run in order mkiv, mkii, texexec --dvi, and mptopdf:

** mkiv output:
ERROR: Leaders not followed by proper glue.

--- TeX said ---
to be read again 
   \normalhskip 
\forcecolorhack -\leaders \hrule \normalhskip 
   \zeropoint 
\dohandleobject ...hss }\fi \fi }}\forcecolorhack 
  \box \scratchbox \endgroup 
l.3 ...ox{\getobject{FIG}{/home/jean/graph/rent.1}
  }
--- HELP ---
No help available



** mkii output:

name: dummy
file: rent
state: unknown

** texexec --dvi output:

OK


** 07:23 j...@boldair /home/jean/graph % mptopdf rent  

MPtoPDF 1.3.3 : no filename matches rent


My context system from minimals is updated from tomorrow night (mptopdf
was slightly different but failed anyway before thet update)


Sorry if the question was already discussed here!

--
jean 







































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