Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-06 Thread Zhichu Chen
On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer
[EMAIL PROTECTED] wrote:
 but it might make more sense to look into metatables (i assume that you
 own the programming in lua book which explains that)

 I don't have one :(, I'll take a good at it later.

  You really should look into the book, it has a whole chapter about
 object-oriented programming in Lua, and explains useful conventions.

Oh it's a long document. I almost took a day to finish it. I've got the main
idea now. Thanks.

I'm sorry, I got another question now. How to link two variables? Like if I
change one, the other would be changed as well. This may be a piece of cake
for you and please forgive my laziness.


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

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




-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
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] bug in minimals: dvipdfmx.dll not found

2008-12-06 Thread Yue Wang
Mojca:

I think you forgot to put the windows version of dvipdfmx.dll in the
minimals tree.
also: mp help tools like mpto and dvitomp are not needed anymore. you
can safely remove them.

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

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


[NTG-context] questions on ctxtools and line break.

2008-12-06 Thread Dalyoung Jeong
Dear all,

Here are two questions.

1. about ctxtools

Recently, I updated TeXLive 2008 using tlmgr. After that I try to  
update ConTeXt using ctxtools --update.
It downloaded cont-tmp.zip  and extracting it. After mktexlsr, there  
was the first error but it proceeded without stop.

.
mktexlsr: Updating /usr/local/texlive/2008/texmf-var/ls-R...
mktexlsr: Done.

LuaTools | error unable to identify cnf file
LuaTools | error unable to identify cnf file
LuaTools | no cnf files found (TEXMFCNF may not be set/known)
LuaTools | to be replaced old script /usr/texbin/luatools
LuaTools | unable to locate new script
LuaTools |
LuaTools | runtime: 0.003 seconds

MtxRun | error unable to identify cnf file
MtxRun | error unable to identify cnf file
MtxRun | no cnf files found (TEXMFCNF may not be set/known)
MtxRun | to be replaced old script /usr/texbin/mtxrun
MtxRun | unable to locate new script

LuaTools | error unable to identify cnf file
LuaTools | error unable to identify cnf file
LuaTools | no cnf files found (TEXMFCNF may not be set/known)
LuaTools |
LuaTools | runtime: 0.002 seconds
TeXExec | using search method 'kpsewhich'
TeXExec | using existing database
TeXExec | using tex engine pdftex
TeXExec | using tex format path /Users/dalyoung/Library/texmf/web2c/ 
pdftex
TeXExec | generating tex format cont-en
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) (INITEX)
  %-line parsing enabled.
  (/usr/local/texlive/2008/texmf/web2c/natural.tcx)
entering extended mode
(/usr/local/texlive/2008/../texmf-local/tex/context/base/cont-en.tex
.

I got a following error and I couldn't continue.
.
(/usr/local/texlive/2008/../texmf-local/tex/context/base/core-fil.tex
loading : Context Core Macros / File Support
) (/usr/local/texlive/2008/../texmf-local/tex/context/base/core-con.tex
loading : Context Core Macros / Conversion Macros
! Undefined control sequence.
argument \??cv :\c!n
:\v!one
\setvalue #1-\expandafter \def \csname #1
   \endcsname
l.618 \setvalue{\??cv:\c!n:\v!one  }
 {1}
?

Is it OK to use ctxtools for updating? What is the best way to update  
ConTeXt in TL2008?

2. about line break for sentences in Korean.

When I compile Korean text using XeTeX + ConTeXt or LuaTeX, there are  
many overfull errors because of  the linebreaking. But by adding the  
command \XeTeXlinebreaklocale[ko]  the overfull errors were cleared  
in XeTeX+ ConTeXt. Is there a similar command in LuaTeX to handle the  
overfull errors? If not, is it possible to add such a command?

Thank you for reading.

best regards,

Dalyoung 
   
___
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] Additional arrows in flow chart

2008-12-06 Thread Berend de Boer
Hi All,

Is there a way to specify additional arrows in a flow chart? Some people
prefer to see a starting arrow (an arrow at the beginning of the line)
instead of only one at the end.

-- 
Cheers,

Berend de Boer
___
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] Disabling automatic hyphenation

2008-12-06 Thread Wolfgang Schuster
Hi Hans,

I wan't to disable in a document TeX's automatic hyphenation
and allow only manuell brackpoints with \- or settings in
\hyphenation.

The only working solution I found was to define new language
in the core and add a file with empty patterns to the core
files, my setting for the language is

\def\s!empty{empty}

\installlanguage
   [\s!empty]
   [\c!default=\s!en,
\s!patterns=\s!empty,
\c!state=\v!stop]

I use now the patterns of this language in my document and set
now my own hyphen points with \hyphenation.

Can you add this to your own files or do you have a better
solution for my problem.

Wolfgang

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

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


[NTG-context] font dimen (mkiv)

2008-12-06 Thread Peter Rolf
Hi,

a space between the font dimension number and the unit breaks
compilation. And before anyone asks... the space was inserted by chance. :)


\definefont[FOO] [Sans at 30 pt]
%   ^
\starttext
\FOO Hello world!
\stoptext


Best wishes, Peter
___
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] chapter-like headings with separate numbering

2008-12-06 Thread Aditya Mahajan
On Mon, 24 Nov 2008, Sanjoy Mahajan wrote:

 I'm experimenting with making a heading that is like a chapter in format
 but has its own numbering (or lettering).  The purpose to have an
 interlude, or extended example, every few chapters.  The following
 almost-minimal example almost does so.  However, the second interlude is
 numbered with 'A' instead of 'B'.  Is there a missing key=value pair, or
 is the approach completely wrong?

An enumeration passes the duck test [1] for headings, so ...

[1] http://en.wikipedia.org/wiki/Duck_test

\defineenumeration
[interlude]
 [before=\page,conversion=Characters,way=bytext,list=interlude,
  text={Interlude }]


\defineenumeration
[interludeA]
 [before=\page,conversion=Characters,way=bytext,list=interludeA,
  text=, listtext=,
  title=yes, titleleft=, titleright=]

\starttext

\title{Contents}
\placelist[chapter,enumeration:interlude,enumeration:interludeA]

\chapter{Chap 1}

\interlude{Interlude 1}

\interludeA{{Interlude 1}}

\chapter{Chap 2}

\interlude{Interlude 2}

\interludeA{{Interlude 2}}

\stoptext


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

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


Re: [NTG-context] Movie control buttons?

2008-12-06 Thread Alan STONE
On Thu, Dec 4, 2008 at 7:32 PM, Matthias Weber [EMAIL PROTECTED] wrote:

 Dear all,

 has somebody created simple control buttons (play, pause, etc)  for
 included movies (for instance using metapost)
 which I could borrow?


You might consider using these Matthias...
 http://wiki.contextgarden.net/Symbols/nav
-- 
Best,
Alan

* TeX engine = LuaTeX
*ConTeXt minimals ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.21  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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] current beta gives error with m-subsub

2008-12-06 Thread Steffen Wolfrum
Hi,


since summer I didn't update context, today I did.

Unfortunately this results in an error (when using module m-subsub):


system  : module m-subsub loaded
(/usr/local/texlive/2008/../texmf-local/tex/context/base/m-subsub.tex
system  : mark subsubsubsubsubsection defined  
[subsubsubsubsubsection]
system  : mark subsubsubsubsubsectionnumber defined  
[subsubsubsubsubsec
tionnumber]
! Undefined control sequence.
argument \v!subsubsubsubsubsubsection



What's wrong?

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

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


Re: [NTG-context] bug in minimals: dvipdfmx.dll not found

2008-12-06 Thread Mojca Miklavec
On Fri, Dec 5, 2008 at 1:29 PM, Yue Wang wrote:
 Mojca:

Hello Yue Wang,

Thanks a lot for your reports.

 I think you forgot to put the windows version of dvipdfmx.dll in the
 minimals tree.

Mea culpa! I fixed that. I didn't notice that one needs dll and nobody
has complained so far.

Out of curiosity: how do you use it? Does ConTeXt work OK with it at
all? That binary is on the shortlist of being put to a special section
that one would need to install as a separate module (option in
mtx-update.lua for example), so I would like to know how/when it is
still used. Also: that binary is badly supported in tikz for ConTeXt
for example. So it is nice to know how much one needs to invest in
trying to keep compatibility with those engines.

##
afm2pl.exe
afm2tfm.exe
ttf2afm.exe
##
bibtex.exe
##
dvipdfmx.exe
dvips.exe
## Knuthian
pltotf.exe
tftopl.exe
vftovp.exe
vptovf.exe

 also: mp help tools like mpto and dvitomp are not needed anymore. you
 can safely remove them.

I removed makempx.exe, and mpto.exe. I did that for unix flavours last
time, but forgot about windows. Now about dvitomp.exe. Last time when
I tried removing dvitomp it failed, but I forgot to ask Taco at what
place one should fix it. See the conversation below.

I'm just wondering: should these binaries go out of W32TeX as well? Taco?
Does are no longer distributed mean: sorry, we don't care about
trying to compile and distribute them ourselves or rather no reason
why one would distribute them/one should not distribute them?

  The one but big user-visible change is that the btex ... etex
  label conversion is now handled internally instead of via
  the external mpware programs. These programs are therefore
  no longer distributed.

 With a minimal example

 \starttext
 \startMPcode
 draw btex xYz etex;
 \stopMPcode
 \stoptext

 I still get

 This is MetaPost, version 1.110 (kpathsea version 3.5.7)
 (./xpost-mpgraph.mp
 xpost-mpgraph.mp
 xpost-mpgraph.mpx
 ! Unable to make mpx file.
 l.147 draw btex
 xYz etex

 It does, but only if MAKEMPX is not set (which it probably is).

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
___


Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-06 Thread Yue Wang
variables are only symbols in lua.
they are reference to values (a place in the memory).

On 12/5/08, Zhichu Chen [EMAIL PROTECTED] wrote:
 On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer
 [EMAIL PROTECTED] wrote:
  but it might make more sense to look into metatables (i assume that you
  own the programming in lua book which explains that)
 
  I don't have one :(, I'll take a good at it later.
 
   You really should look into the book, it has a whole chapter about
  object-oriented programming in Lua, and explains useful conventions.

 Oh it's a long document. I almost took a day to finish it. I've got the main
 idea now. Thanks.

 I'm sorry, I got another question now. How to link two variables? Like if I
 change one, the other would be changed as well. This may be a piece of cake
 for you and please forgive my laziness.

 
 Arthur
  ___
  If your question is of interest to others as well, please add an entry to 
  the Wiki!
 
  maillist : ntg-context@ntg.nl / 
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
  ___
 



 --
 Best Regards
 Chen
 

  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

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

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

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


Re: [NTG-context] Movie control buttons?

2008-12-06 Thread Wolfgang Schuster

Am 04.12.2008 um 19:32 schrieb Matthias Weber:

 Dear all,

 has somebody created simple control buttons (play, pause, etc)  for
 included movies (for instance using metapost)
 which I could borrow?


http://wiki.contextgarden.net/Symbols/nav

Wolfgang

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

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


Re: [NTG-context] Movie control buttons?

2008-12-06 Thread Taco Hoekwater


Matthias Weber wrote:
 Dear all,
 
 has somebody created simple control buttons (play, pause, etc)  for  
 included movies (for instance using metapost)
 which I could borrow?

Thre are some buttons in the contnav font, that is already in the
distribution. See symb-nav.tex for predefined symbols.

Best wishes,
Taco


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

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


Re: [NTG-context] chapter-like headings with separate numbering

2008-12-06 Thread Sanjoy Mahajan
Thanks, that's a nice approach.  It doesn't fully pass the duck test:
The page headlines come from the chapter titles, even in the interludes.
Here is an example.

\startsetups[chheadline]
  {\ss\it Chapter \getmarking[chapternumber].\quad\getmarking[chapter]}
\stopsetups
\setupheadertexts[\setups{chheadline}][pagenumber]

\defineenumeration
[interlude]
[before=\page,conversion=Characters,way=bytext,list=interlude,
 text={Interlude }]

\defineenumeration
[interludeA]
[before=\page,conversion=Characters,way=bytext,list=interludeA,
 text=, listtext=,
 title=yes, titleleft=, titleright=]

\starttext

\title{Contents}
\placelist[chapter,enumeration:interlude,enumeration:interludeA]

\chapter{Chap 1}

\interlude{Interlude 1}

\interludeA{{Interlude 1}}

\chapter{Chap 2}

\interlude{Interlude 2}

\interludeA{{Interlude 2}}

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

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


Re: [NTG-context] can not include movie AKA embedding 3d pdf

2008-12-06 Thread Michail Vidiassov
Dear Hans,

On Mon, 1 Dec 2008, Hans Hagen wrote:

 i uploaded an alpha zip which has mov inclusion working
 Where to?

 website

Sorry for stupid question :(
That inclusion does really work but for a minor problem -
label parameter is ignored and the label (or name as it is displayed
by the Reader - that is what in the T key of movie annotation dictionary)
is always set to dummy.

To reproduce - context the following

\pdfcompresslevel=0
\pdfminorversion=7
\starttext
\placefigure[here]{none}{\externalfigure[nonexistentfile.mov][label=mylabel,width=0.7\textwidth,
 height=.7\textwidth]}
\stoptext

and look into pdf with text/binary editor or open it in Adobe Reader.

 Sincerely, Michail
___
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] chapter-like headings with separate numbering

2008-12-06 Thread Aditya Mahajan
On Sat, 6 Dec 2008, Sanjoy Mahajan wrote:

 Thanks, that's a nice approach.  It doesn't fully pass the duck test:
 The page headlines come from the chapter titles, even in the interludes.

Then beat the hell out of it, until it starts behaving like a duck. 
The main trouble is that descriptions do not set any marking, and there 
are not enough hooks to set a mark. But we can still use poor man's marks: 
macros!

% First we need two types of headings: for chapters and for interludes

startsetups[headline:chapter]
   {\ss\it Chapter \getmarking[chapternumber].\quad\getmarking[chapter]}
\stopsetups

% Marking version does not work ... see comment below
% \definemarking[interlude]
% \definemarking[interludenumber][expansion=yes]
%
% \startsetups[headline:interlude]
%   {\ss\it Interlude 
\getmarking[interludenumber].\quad\getmarking[interlude]}
% \stopsetups

% So we define our own marks

\def\interludeMARK{empty}
\def\interludenumberMARK{empty}

% And a second version of heading
\startsetups[headline:interlude]
   {\ss\it Interlude \interludenumberMARK.\quad\interludeMARK}
\stopsetups

% The header texts need to switch between the two
\setupheadertexts[\setups{headline:\CURRENTDIVISION}][pagenumber]
\setuppagenumbering[location=]

% We start with current division as chapter
\def\CURRENTDIVISION{chapter}

% Provide an option of switching on interlude pages
\couplepage[interlude][before={\gdef\CURRENTDIVISION{interlude}}]

\startsetups interlude
   \page
   \pagetype[interlude]
\stopsetups

% And switch back on chapter pages
\setuphead[chapter][before={\page[right]\def\CURRENTDIVISION{chapter}}]


% Now define the enumeration
\defineenumeration[interlude]
   [before=\setups{interlude},
conversion=Characters,way=bytext,list=interludeA,
text=, listtext=,
title=yes, titleleft=, titleright=,
titlecommand=\interludemarking]


\def\interludemarking#1%
   {\gdef\interludeMARK{#1}%
\global
\edef\interludenumberMARK{\getnumber[\currentdescriptionnumber]}%
#1}


% Ideally, I would have liked to use marks, but this does not work
% Probably because we are inside a box
% \def\interludemarking#1%
%   {\marking[interlude]{#1}%
%\marking[interludenumber]{\getnumber[\currentdescriptionnumber]}%
%#1}


\starttext

\title{Contents}
\placelist[chapter,enumeration:interlude,enumeration:interludeA]


\chapter{Chap 1}
   \dorecurse{5}{\input knuth \endgraf}

\startinterlude {Interlude 1}
   \dorecurse{5}{\input knuth \endgraf}
\stopinterlude


\chapter{Chap 2}
   \dorecurse{5}{\input knuth \endgraf}

\startinterlude {Interlude 2}
   \dorecurse{5}{\input knuth \endgraf}
\stopinterlude

\stoptext


At this stage I am not sure whether you gain anything by using 
enumerations. You get predefined support for numbering and lists, but that 
is not too hard to write on your own.

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

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


[NTG-context] Dangling lines.

2008-12-06 Thread Bart C. Wise
I created an Author's note (code below).  It is designed to print out a note, 
skip a line, and then follow with the Author's signature.  The problem I'm 
having is that ConTeXt will break the page just before the author's signature 
leaving it dangling on the next page.  If I use a \vbox, that has problems 
when the notes need to go more than the current page.  How do I fix the code 
below?

\definestartstop[AuthorNote][
before={
\bgroup
\startnarrower
\switchtobodyfont[10pt]
},
 after={
\vskip-0.2ex
Author
\stopnarrower
\egroup
\blank
\noindentation
 },
]

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

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


[NTG-context] \translateinput and discretionaries

2008-12-06 Thread Wolfgang Schuster
Hi,

the \translateinput command has a problem with discretionaries
in the replacement text.

In the following example

\usemodule[translate]

\translateinput[Auflage][Auf|*|lage]

\starttext

Auflage

\enableinputtranslation

Auflage

\stoptext

I get a error message.

! Undefined control sequence.
l.11 Auf\CCC
 :4:124 *\CCC:4:124 lage


I could prevent the message after I protected the | signs with

\translateinput[Auflage][Auf\string|*\string|lage]

but can't this be done in the \translateinput macro itself.


Wolfgang

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

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


Re: [NTG-context] bug in minimals: dvipdfmx.dll not found

2008-12-06 Thread Yue Wang
On Sat, Dec 6, 2008 at 10:25 PM, Mojca Miklavec
[EMAIL PROTECTED] wrote:
 On Fri, Dec 5, 2008 at 1:29 PM, Yue Wang wrote:
 Mojca:

 Hello Yue Wang,

 Thanks a lot for your reports.

 I think you forgot to put the windows version of dvipdfmx.dll in the
 minimals tree.

 Mea culpa! I fixed that. I didn't notice that one needs dll and nobody
 has complained so far.


Well, I use an old release of context (august) and it seems to have
it. but after upgrade to the latest version, something broken here.

 Out of curiosity: how do you use it? Does ConTeXt work OK with it at
 all? That binary is on the shortlist of being put to a special section
 that one would need to install as a separate module (option in
 mtx-update.lua for example), so I would like to know how/when it is
 still used. Also: that binary is badly supported in tikz for ConTeXt
 for example. So it is nice to know how much one needs to invest in
 trying to keep compatibility with those engines.



Well, I should say it works in some cases: especially for documents
with no hyperlinks and metapost graphics (and no hz features enabled
too). And it is fun to use it for CID font embedding (it is the most
popular tex driver in Asia since it have good support for CJK font. in
fact luatex also use dvipdfmx code for CID font embedding).

However, hyperlinks are always point to the wrong place, and
MPGraphics are usually in the wrong place too. I send a bug report to
Hans, but it seems not fixed yet. (Also, focus=standard is not fixed
yet. it is still higher or lower than the content it points to). These
are not dvipdfmx specific problems. XeTeX-xdvipdfmx has those
problems too.

When I use teTeX 3.0 (context version 2005.1.30 pdfetex 1.21), many
dvi specific features work well. One important reason is that ConTeXt
use dvi as default output at that time. So when there is a bug, it
will be easy to get report from users. However, pdf became the default
output in the late 2005, and after four years of development, dvi
features support are somewhat buggy now.

BTW, the latest dvipdfmx driver supports metafun, as announced on the
official web page of dvipdfmx.

 ##
 afm2pl.exe
 afm2tfm.exe
 ttf2afm.exe
 ##
 bibtex.exe
 ##
 dvipdfmx.exe
 dvips.exe
 ## Knuthian
 pltotf.exe
 tftopl.exe
 vftovp.exe
 vptovf.exe

 also: mp help tools like mpto and dvitomp are not needed anymore. you
 can safely remove them.

 I removed makempx.exe, and mpto.exe. I did that for unix flavours last
 time, but forgot about windows. Now about dvitomp.exe. Last time when
 I tried removing dvitomp it failed, but I forgot to ask Taco at what
 place one should fix it. See the conversation below.

 I'm just wondering: should these binaries go out of W32TeX as well? Taco?
 Does are no longer distributed mean: sorry, we don't care about
 trying to compile and distribute them ourselves or rather no reason
 why one would distribute them/one should not distribute them?

  The one but big user-visible change is that the btex ... etex
  label conversion is now handled internally instead of via
  the external mpware programs. These programs are therefore
  no longer distributed.

 With a minimal example

 \starttext
 \startMPcode
 draw btex xYz etex;
 \stopMPcode
 \stoptext

 I still get

 This is MetaPost, version 1.110 (kpathsea version 3.5.7)
 (./xpost-mpgraph.mp
 xpost-mpgraph.mp
 xpost-mpgraph.mpx
 ! Unable to make mpx file.
 l.147 draw btex
 xYz etex

 It does, but only if MAKEMPX is not set (which it probably is).

 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
 ___

___
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] questions on ctxtools and line break.

2008-12-06 Thread Mojca Miklavec
Hello Dalyoung,

On Sat, Dec 6, 2008 at 3:29 AM, Dalyoung Jeong wrote:
 Dear all,

 Here are two questions.

 1. about ctxtools

 Recently, I updated TeXLive 2008 using tlmgr. After that I try to
 update ConTeXt using ctxtools --update.

 Is it OK to use ctxtools for updating? What is the best way to update
 ConTeXt in TL2008?

ctxtools have some issues. See this page (maybe the section about
updating will be moved to some other place):

http://wiki.contextgarden.net/Running_Mark_IV

 2. about line break for sentences in Korean.

 When I compile Korean text using XeTeX + ConTeXt or LuaTeX, there are
 many overfull errors because of  the linebreaking. But by adding the
 command \XeTeXlinebreaklocale[ko]  the overfull errors were cleared
 in XeTeX+ ConTeXt. Is there a similar command in LuaTeX to handle the
 overfull errors? If not, is it possible to add such a command?

It most probably needs to be implemented by either Hans or Taco. I
assume that either of them will ask you to provide him exact
specification about what that locale needs to do.

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
___


Re: [NTG-context] bug in minimals: dvipdfmx.dll not found

2008-12-06 Thread Mojca Miklavec
On Sat, Dec 6, 2008 at 6:52 PM, Yue Wang wrote:
 On Sat, Dec 6, 2008 at 10:25 PM, Mojca Miklavec
 [EMAIL PROTECTED] wrote:
 On Fri, Dec 5, 2008 at 1:29 PM, Yue Wang wrote:
 Mojca:

 Hello Yue Wang,

 Thanks a lot for your reports.

 I think you forgot to put the windows version of dvipdfmx.dll in the
 minimals tree.

 Mea culpa! I fixed that. I didn't notice that one needs dll and nobody
 has complained so far.


 Well, I use an old release of context (august) and it seems to have
 it. but after upgrade to the latest version, something broken here.

Interesting. (No piece of code in the minimals did change in that
respect, at least none that I would know of.) Maybe the old
dvipdfmx.exe did not require the dll file to be present?

 Out of curiosity: how do you use it? Does ConTeXt work OK with it at
 all? That binary is on the shortlist of being put to a special section
 that one would need to install as a separate module (option in
 mtx-update.lua for example), so I would like to know how/when it is
 still used. Also: that binary is badly supported in tikz for ConTeXt
 for example. So it is nice to know how much one needs to invest in
 trying to keep compatibility with those engines.

 Well, I should say it works in some cases: especially for documents
 with no hyperlinks and metapost graphics (and no hz features enabled
 too). And it is fun to use it for CID font embedding (it is the most
 popular tex driver in Asia since it have good support for CJK font. in
 fact luatex also use dvipdfmx code for CID font embedding).

 However, hyperlinks are always point to the wrong place, and
 MPGraphics are usually in the wrong place too. I send a bug report to
 Hans, but it seems not fixed yet. (Also, focus=standard is not fixed
 yet. it is still higher or lower than the content it points to). These
 are not dvipdfmx specific problems. XeTeX-xdvipdfmx has those
 problems too.

Does XeTeX also place MP graphics to the wrong place?
(I still use mostly pdfTeX for documents that do not require any
programming or foreign fonts, so I did not notice weird behaviour
yet.)

 When I use teTeX 3.0 (context version 2005.1.30 pdfetex 1.21), many
 dvi specific features work well. One important reason is that ConTeXt
 use dvi as default output at that time. So when there is a bug, it
 will be easy to get report from users. However, pdf became the default
 output in the late 2005, and after four years of development, dvi
 features support are somewhat buggy now.

That's why I wonder if dvi-based workflows work at all. I've seen some
issues and none of theme were likely to be fixed.

How different is it when you work with dvipdfmx compared to xetex or luatex?

 BTW, the latest dvipdfmx driver supports metafun, as announced on the
 official web page of dvipdfmx.

That's nice :)

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
___


Re: [NTG-context] Experience on writing a thesis with MKIV

2008-12-06 Thread Mohamed Bana
Hi Aditya,

Any news on bib module - t-bib.tex?

If enable the colouring in cite commands in macros.tex I get;

\setupcite  [interaction=start, compress=no,color=darkgreen]

Teams and games
Multi-agent systems can be classified as teams and games on the basis of 
the ob-
jective of the agents. In teams all agents have the same objective; in 
games, each
agent has its own objective. Historically, games were first studied in 
the seminal
work of and were later developed as a subfield of mathematical economics 
called
game theory (Aumann and Hart, , , ). Teams were first studied in
mathematical economics by and , and later in control systems by , , , , 
and others

Instead of;

Teams and games
Multi-agent systems can be classified as teams and games on the basis of 
the ob-
jective of the agents. In teams all agents have the same objective; in 
games, each
agent has its own objective. Historically, games were first studied in 
the seminal
work of von Neumann and Morgenstern () and were later developed as a 
sub-
field of mathematical economics called game theory (Aumann and Hart, 
, ,
). Teams were first studied in mathematical economics by Radner 
() and
Marschak and Radner (), and later in control systems by Witsenhausen 
(a,
), Ho et al. (), Ho (), and others.


Obviously I had to move t-bib.tex from the current directory to even get 
the it compile.

Thanks
Mohamed

Aditya Mahajan wrote:
 
 * Bibliography. For a large part, the bib module was very easy. In the 
 end, there were a few glitches with the formatting of the bibliography 
 (too title space between entries) which I had to manually correct. (Look 
 for \help inside the bbl file).
 
   The bbl file sorted authors with multiple entries incorrectly. If I had 
 authors with four publications in a year, say 2000, the came out as 2000d, 
 2000c, 2000b, 2000a. I wanted 2000a, 2000b, 2000c, and 2000d, so in the 
 end I just edited the bbl file by hand.
 
   There was also problem with maybe year. If I had 2000a and 2000b in the 
 bib file, but only referred to 2000b in the thesis, the year came out as 
 2000b rather than 2000. For this also, I edited the bbl file by hand.
 
 
 Overall, ConTeXt made writing the thesis fairly easy. I mean the 
 typesetting part of it. For those who are wondering, ConTeXt does not help 
 with the content of the thesis :-) I would like to thank Hans and Taco for 
 providing ConTeXt and everyone on the mailing list for answering my 
 various questions.
 
 
 Aditya

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

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


Re: [NTG-context] Experience on writing a thesis with MKIV

2008-12-06 Thread Aditya Mahajan

Hi Mohamed,

On Sun, 7 Dec 2008, Mohamed Bana wrote:


Hi Aditya,

Any news on bib module - t-bib.tex?


Sorry for not replying to your earlier message.


If enable the colouring in cite commands in macros.tex I get;

\setupcite  [interaction=start, compress=no,color=darkgreen]


The current bib module does not support changing the color of links. The 
color=darkgreen was a local change that I did in my copy of t-bib. So, 
color=darkgreen should just be silently ignored. However, compress=no does 
affect the output of the \cite command but I do not understand why it 
changes things like like Aumann and Hart (...) instead of (Aumann and 
Hard, ... ).


Can you try to create a minimal example just using the bib 
module specific setups?


Aditya



Teams and games
Multi-agent systems can be classified as teams and games on the basis of
the ob-
jective of the agents. In teams all agents have the same objective; in
games, each
agent has its own objective. Historically, games were first studied in
the seminal
work of and were later developed as a subfield of mathematical economics
called
game theory (Aumann and Hart, , , ). Teams were first studied in
mathematical economics by and , and later in control systems by , , , ,
and others

Instead of;

Teams and games
Multi-agent systems can be classified as teams and games on the basis of
the ob-
jective of the agents. In teams all agents have the same objective; in
games, each
agent has its own objective. Historically, games were first studied in
the seminal
work of von Neumann and Morgenstern () and were later developed as a
sub-
field of mathematical economics called game theory (Aumann and Hart,
, ,
). Teams were first studied in mathematical economics by Radner
() and
Marschak and Radner (), and later in control systems by Witsenhausen
(a,
), Ho et al. (), Ho (), and others.


Obviously I had to move t-bib.tex from the current directory to even get
the it compile.

Thanks
Mohamed

Aditya Mahajan wrote:


* Bibliography. For a large part, the bib module was very easy. In the
end, there were a few glitches with the formatting of the bibliography
(too title space between entries) which I had to manually correct. (Look
for \help inside the bbl file).

  The bbl file sorted authors with multiple entries incorrectly. If I had
authors with four publications in a year, say 2000, the came out as 2000d,
2000c, 2000b, 2000a. I wanted 2000a, 2000b, 2000c, and 2000d, so in the
end I just edited the bbl file by hand.

  There was also problem with maybe year. If I had 2000a and 2000b in the
bib file, but only referred to 2000b in the thesis, the year came out as
2000b rather than 2000. For this also, I edited the bbl file by hand.


Overall, ConTeXt made writing the thesis fairly easy. I mean the
typesetting part of it. For those who are wondering, ConTeXt does not help
with the content of the thesis :-) I would like to thank Hans and Taco for
providing ConTeXt and everyone on the mailing list for answering my
various questions.


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

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


Re: [NTG-context] bug in minimals: dvipdfmx.dll not found

2008-12-06 Thread Yue Wang
Hi,

 Interesting. (No piece of code in the minimals did change in that
 respect, at least none that I would know of.) Maybe the old
 dvipdfmx.exe did not require the dll file to be present?


well, maybe  and maybe I am wrong.

 Does XeTeX also place MP graphics to the wrong place?
 (I still use mostly pdfTeX for documents that do not require any
 programming or foreign fonts, so I did not notice weird behaviour
 yet.)


yes, and it also point hyperlinks to the wrong place too.
(see the latest latex/context war on this mailing list)


 That's why I wonder if dvi-based workflows work at all. I've seen some
 issues and none of theme were likely to be fixed.

 How different is it when you work with dvipdfmx compared to xetex or luatex?

well, the experience of using dvipdfmx \approx the experience of using xetex.
but pdftex- dvipdfmx is much faster and consumes much less space.
and since luatex and xetex can hardly be used for production (because
mkiv/luatex changes all the time, and context does not support xetex
very well.), so I use pdftex (usually for English documents) or
etex-dvipdfmx (usually for Chinese documents) for our journal. [Our
compile server stay at the 2005.01.30 version and does not upgrade any
more to ensure the document will always produce the same result during
the years.]

But usually I will use luatex for personal purpose like composing my
essays. but I still use pdftex or etex- dvipdfmx to prepare the draft
documents before the final luatex compilation since they are quite
fast (inasmuch as my old computer [Core 2 Duo T5050, 1G Mem] cannot
suffice for such huge mem/cpu usage footprint). On the final
compilation, I only adjust the layout and fonts. So LuaTeX is nice and
can produce much better results at the cost of memory and speed ^_^
(and sometimes mkiv will run into problems and does not work as
expected, so I have no choice but to downgrade the minimals)


 BTW, the latest dvipdfmx driver supports metafun, as announced on the
 official web page of dvipdfmx.

 That's nice :)

 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
 ___


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

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