Re: [NTG-context] Problems with inner products

2009-09-05 Thread Mojca Miklavec
On Sat, Sep 5, 2009 at 02:10, Guilherme P. de Freitas wrote:
 Hi everybody,

 I am trying to define a command for inner products. I would like to
 type $\innerprod{x, y}$ and obtain in the output x, y. Now, I
 defined

 \define[2]\innerprod
  {\langle #1, #2 \rangle}

If you define it that way then you have to use
\innerprod{x}{y}+z

If you want to use it the way you described below then use just
\define[1]\innerprod
{\langle #1 \rangle}
or something like
\def\innerprod#1{\left\langle#1\right\rangle}

 but then, when I used the command, I got some weird behavior: the next
 character after y would jump in the inner product. For example,
 when writing

 $\innerprod{x, y} + z$

 I was hoping to obtain as an output

 x, y + z

 But I got as an output

 x, y + z

 I am using the ConTeXt that came with MacTeX 2008 (I downloaded it a
 few days ago).

This doesn't prevent the fact that ConTeXt that came with it is old ;) :) :)

But keep using it as long as it works for you. If you will ever need
some kind of support (fixing a bug) then you'll probably need to
switch to a newer version of ConTeXt.

MacTeX 2009 is out already (for testing), but that doesn't make much
difference (last time when I checked ConTeXt has not been updated in
TeX Live yet ... and I wonder what exactly will be done; the version
of LuaTeX that comes with TeX Live is not compatible with current
version of ConTeXt; and pdftex version is considered history ... That
means that no matter what version of ConTeXt will be used for TL, it
will be either too old and unsupported or disfunctional.)

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
___


[NTG-context] Slovenian alphabetic itemize broken in MKIV

2009-09-05 Thread Mojca Miklavec
Hello,

I guess again that the following example only breaks on my computer
(this time it's probably true by definition). Any ideas about
circumventing the problem are most welcome (PS: Translate your text
to English is not considered a valid answer :).

\mainlanguage[sl]
\starttext
\startitemize[a]
\item something
\item something
\item something
\item something
\stopitemize
\stoptext

! LuaTeX error ...min3/tex/texmf-context/tex/context/base/core-con.lua:173:
attempt to index global 'code' (a nil value)
stack traceback:
...min3/tex/texmf-context/tex/context/base/core-con.lua:173: in 
function 'chr'
...min3/tex/texmf-context/tex/context/base/core-con.lua:155: in
function 'do_alphabetic'
...min3/tex/texmf-context/tex/context/base/core-con.lua:178: in
function 'alphabetic'
main ctx instance:1: in main chunk.
\sloveniancharacters ...phabetic(\number #1,sl)}

l.1 \convertnumber{a}{1}

\doconvertedstructurecounter ...!criterium , } )}
  \endgroup
to be read again
   \fi
\doactualitemnumber ...rrentitemgroupcounter ]\fi
  \dohandleitemreference \en...
\actualitemnumber ...fi \else \doactualitemnumber
  \fi
...
l.4 \item s
   omething
?

Thanks,
Mojca (who is going to try the latest version now, but I doubt
that it makes any difference)
___
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] References in MKIV and bib module

2009-09-05 Thread Mojca Miklavec
Hello,

I have not been following the list too closely ... what is the status
of cross-references in MKIV? I don't seem to get any number printed.

\starttext
this is in figure \in[bla]
\placefigure[force][bla]{caption}{figure}
\stoptext

The bib module almost works (Hans and Taco - thanks a lot!). But
self-defined publication layouts seem to have problems or don't appear
in the list of references at least:

\newbibfield[conference]
\newbibfield[cobissid]

\setuppublicationlayout[conference]{%
\insertartauthors{}{\unskip. }{}%
\insertarttitle{\bgroup }{\egroup. }{}%
\insertconference{\bgroup \it}{\egroup\insertday{, }{.
}{}\insertmonth{}{\ }{}\insertpubyear{}{}{}. }{}%
\insertcobissid{[COBISS.SI-ID\ }{]}{}%
}

\startpublication
[k=key,
 t=conference,
 y=2009,
 s=,
 u=,
]
\artauthor[]{Me}[M.]{}{Personally}
\arttitle{Very important title}
\conference{Very important conference in Bochum}
\pubyear{2009}\month{March}\day{16-20}
\cobissid{42}
\stoppublication

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] Intro to Luatex

2009-09-05 Thread Mojca Miklavec
2009/9/4 John Culleton:

 Simple question: using xetex style \font statements how do I get
 curly quotes from
 texexec --xtx book.tex?

 Is the answer different for
 texexec --lua book.tex?

Do you mean \quotation{something} that should work out of the box or
the curly quote as in I'm? If you are talking about the I'm case:
1.) in XeTeX you need to use \font\a=Font Name;mapping=tlig (or
mapping=tex-text, but it might be that tex-text is missing in
minimals; not sure).
2.) It's differet in luatex, but I don't know it by heart; it
something like \font\a=fontname*default (or fontname*myfeatures + you
need to define trep=yes in myfeatures:
\definefontfeature[myfeatures][tlig=yes,trep=yes]). But please wait
for a better answer and explanation.

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] References in MKIV and bib module

2009-09-05 Thread Jean Magnan de Bornier
Le 05 septembre à 11:23:44 Mojca Miklavec mojca.miklavec.li...@gmail.com 
écrit notamment:

| The bib module almost works (Hans and Taco - thanks a lot!).

Here is how it works for me:

texexec --xtx myfile: creates and populates myfile.bbl, and bib works ok

Then,

context myfile: myfile.bbl is still there but is now **empty**!!
And no more references...

:-(

This is LuaTeX, Version beta-0.43.0-2009081914

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


Re: [NTG-context] Slovenian alphabetic itemize broken in MKIV

2009-09-05 Thread Peter Rolf

Mojca Miklavec schrieb:

Hello,

I guess again that the following example only breaks on my computer
(this time it's probably true by definition). Any ideas about
circumventing the problem are most welcome (PS: Translate your text
to English is not considered a valid answer :).

\mainlanguage[sl]
\starttext
\startitemize[a]
\item something
\item something
\item something
\item something
\stopitemize
\stoptext

! LuaTeX error ...min3/tex/texmf-context/tex/context/base/core-con.lua:173:
attempt to index global 'code' (a nil value)
stack traceback:
...min3/tex/texmf-context/tex/context/base/core-con.lua:173: in 
function 'chr'
...min3/tex/texmf-context/tex/context/base/core-con.lua:155: in
function 'do_alphabetic'
...min3/tex/texmf-context/tex/context/base/core-con.lua:178: in
function 'alphabetic'
main ctx instance:1: in main chunk.
\sloveniancharacters ...phabetic(\number #1,sl)}

l.1 \convertnumber{a}{1}

\doconvertedstructurecounter ...!criterium , } )}
  \endgroup
to be read again
   \fi
\doactualitemnumber ...rrentitemgroupcounter ]\fi
  \dohandleitemreference \en...
\actualitemnumber ...fi \else \doactualitemnumber
  \fi
...
l.4 \item s
   omething
?

Thanks,
Mojca (who is going to try the latest version now, but I doubt
that it makes any difference)
  

no compilation problems here... so you are right with your assumption ;)

MTXrun | current version: 2009.08.30 12:25
This is LuaTeX, Version beta-0.43.0-2009083109


___
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] Roman Page numbers

2009-09-05 Thread Derek CORDEIRO
Thanks a lot, it works as required. I added a note to the wiki
Table_of_Contents page. Just an unrelated question, Since MkIV is quite
different and incompatible with MkII, wouldn't it be better to keep all MkIV
specific information separate in the wiki?

On Fri, Sep 4, 2009 at 3:36 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 04.09.2009 um 11:03 schrieb Derek CORDEIRO:

  I do get romannumerals on each page now, but this is not reflected in the
 TOC as it does in MkII. Below is the minimal example.


 The new code is more complicated than i thought, here is solution to the
 problem.

 As Hans suggested we should collect such setups on the wiki.

 \definestructureconversionset[frontpart:pagenumber][][romannumerals]
 \definestructureconversionset[bodypart:pagenumber] [][numbers]

 \setuplist[chapter][pageconversionset=pagenumber]

 \startstructureblockenvironment[frontpart]

 \setupuserpagenumber[numberconversion=romannumerals]
 \setuppagenumber[number=1]

 \stopstructureblockenvironment

 \startstructureblockenvironment[bodypart]

 \setuppagenumber[number=1]

 \stopstructureblockenvironment

 \starttext

 \startfrontmatter

 \completecontent[criterium=all]

 \chapter{Intro}

 \input tufte

 \stopfrontmatter

 \startbodymatter

 \chapter{knuth}

 \input knuth

 \stopbodymatter

 \stoptext

 Wolfgang


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

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

 ___

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

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


[NTG-context] framing in TABLEs

2009-09-05 Thread Gerhard Kugler
Hi,

I'm updating a book of 2007 with many tables with empty, but framed
cells. But if I see the new results, part of the cells are not framed
as in the following example:


\enableregime   [il1]
\mainlanguage   [de]

\starttext

\setupTABLE[row][each][align=lohi,height=0.08\textheight]

\bTABLE

\setupTABLE[textwidth=\textwidth]%
\setupTABLE[column][1][width=0.77\textwidth]%
\setupTABLE[column][2][width=0.23\textwidth]%

\switchtobodyfont[small]%

\bTR
\bTD Schmerzliche und schwierige Dinge, die ich erlebe \eTD
\bTD Wie lange ist das schon der Fall? \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\bTR
\bTD[m=2] \eTD
\eTR
\eTABLE

\stoptext


I tried several setupTABLE ... framed=on, but without success.

Gerhard

-- 
Gerhard Kugler
Psychotherapeut
Bensheim (Germany)
http://www.psychotherapie-kugler.de
___
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] Offtopic: a gift for Luigi

2009-09-05 Thread Idris Samawi Hamid ادريس سماوي ح امد

Dear gang,

Here is a gift for our favorite off-topic expert:

Typography Fans Say Ikea Should Stick to Furniture
http://www.nytimes.com/2009/09/05/arts/design/05ikea.html?hp

Hans, you have to replace all your IKEA furniture now...

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Offtopic: a gift for Luigi

2009-09-05 Thread Hans Hagen

Idris Samawi Hamid ادريس سماوي حامد wrote:

Dear gang,

Here is a gift for our favorite off-topic expert:

Typography Fans Say Ikea Should Stick to Furniture
http://www.nytimes.com/2009/09/05/arts/design/05ikea.html?hp


ah, those wars .. as if anyone really cares how a such catalog looks

(they probably want to mathe print and web)

it's not that we collect those catalogues for future generations as 
examples of well designed and typeset docs -)



Hans, you have to replace all your IKEA furniture now...


actually i don't have that much ... only the kitchen and some small 
(straightforward) woooden tables plus some lightning


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] Helvetica Neue and Snow Leopard

2009-09-05 Thread Hans Hagen

Brian R. Landy wrote:

Sorry for the long delay in replying.

mtxrun doesn't seem to find the fonts when I put them under my TeX 
tree.  I tried a few different places.  If I place them in 
~/Library/Fonts, it does use them, although the System ttc file 
overrides my local dfont.  Is there something else I need to do to add 
them in the main Tex tree (using minimals)?  I'm rerunning mtxrun, of 
course.


i cannot test it as i have no Snow L

Per your other message (for your interest), I've attached the list of 
the other Helvetica fonts I have.


maybe names.tma in the luatex mkiv cache provides a clue

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
___


[NTG-context] Thanks

2009-09-05 Thread Vyatcheslav Yatskovsky

Thanks to everybody who organized and attended EuroTeX and ConTeXt meeting!

I'm now at home, wishing I could spend more time in a such a good 
company and a such a good place.


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

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


Re: [NTG-context] Roman Page numbers

2009-09-05 Thread Hans Hagen

Derek CORDEIRO wrote:

Thanks a lot, it works as required. I added a note to the wiki
Table_of_Contents page. Just an unrelated question, Since MkIV is quite
different and incompatible with MkII, wouldn't it be better to keep all MkIV
specific information separate in the wiki?


keep in mind that we're in the process of getting rid of some of those 
incompatibilities so update the wiki page accordingly



-
  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] Slovenian alphabetic itemize broken in MKIV

2009-09-05 Thread Hans Hagen

Mojca Miklavec wrote:

Hello,

I guess again that the following example only breaks on my computer
(this time it's probably true by definition). Any ideas about
circumventing the problem are most welcome (PS: Translate your text
to English is not considered a valid answer :).

\mainlanguage[sl]
\starttext
\startitemize[a]
\item something
\item something
\item something
\item something
\stopitemize
\stoptext


i'll send you a fix


-
  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] References in MKIV and bib module

2009-09-05 Thread Hans Hagen

Mojca Miklavec wrote:


The bib module almost works (Hans and Taco - thanks a lot!). But
self-defined publication layouts seem to have problems or don't appear
in the list of references at least:


\setuppublications
  [numbering=yes]

\newbibfield[conference]
\newbibfield[cobissid]

\setuppublicationlayout[conference]{%
\insertartauthors{}{\unskip. }{}%
\insertarttitle{\bgroup }{\egroup. }{}%
\insertconference{\bgroup \it}{\egroup\insertday{, }{.
}{}\insertmonth{}{\ }{}\insertpubyear{}{}{}. }{}%
\insertcobissid{[COBISS.SI-ID\ }{]}{}%
}

\startpublication[k=key,t=conference,y=2009,s=,u=]
\artauthor[]{Me}[M.]{}{Personally}
\arttitle{Very important title}
\conference{Very important conference in Bochum}
\pubyear{2009}\month{March}\day{16-20}
\cobissid{42}
\stoppublication

\starttext

\cite[key]

\placepublications[criterium=all]

\stoptext


shows a cite and a description

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

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


[NTG-context] [OT] Record men

2009-09-05 Thread luigi scarso
AFAIK , me and Nino are the only two  who,in the same day, were able  to
see face-to-face
0) Arthur (~Statelessnes)
1) Taco in The Nederlands
2) Wolfgang in Germany
3) Mojca in Slovenia

ie, four columns in their rispective countries

Also, AFAIK me and Nino are the only two who have seen Mojca's thesis,
and this count double.

PS x Idris
I doubt that you will be able to find an offtopic like this...
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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