[NTG-context] setting language issue

2014-10-12 Thread Andrea Valle
Dear,

I’m typesetting in Italian and thus using 
\mainlanguage[it]

I suspected something went wrong, and in fact I see in terminal:

But I get

system   'cont-new.mkiv' loaded
(/Users/andrea/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'attiZaffiri', input './attiZaffiri', result 
'attiZaffiri'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active

What am I doing wong?


Best

-a-



--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.fonurgia.unito.it/andrea/
-- http://www.flickr.com/photos/vanderaalle/sets/
-- http://vimeo.com/vanderaalle
-- andrea.va...@unito.it
--

This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous. 
(Jeffrey 'The Dude' Lebowski)

___
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] Automatic reference prefixing in heads with prefix=+ broken?

2014-10-12 Thread Christoph Reller
On Tue, Sep 30, 2014 at 8:08 AM, Christoph Reller 
christoph.rel...@gmail.com wrote:

 On Sat, Sep 27, 2014 at 12:00 PM, Christoph Reller 
 christoph.rel...@gmail.com wrote:

 Hi,

 Various documents mention a namespace feature for references by setting
 prefix=+. This is a really cool feature but I cannot get it to work. Why
 does the following example not work:

 \setupinteraction[state=start]
 \setuphead[chapter][prefix=+]

 \starttext

 \startchapter[reference=chap1,title={First Chapter}]
   \startsection[reference=sec1,title={First Section in First Chapter}]
 Reference \type{sec1} is \about[sec1].\par
 Reference \type{chap2:sec1} is \about[chap2:sec1].\par
   \stopsection
 \stopchapter

 \startchapter[reference=chap2,title={Second Chapter}]
   \startsection[reference=sec1,title={First Section in Second Chapter}]
 Reference \type{sec1} is \about[sec1].\par
 Reference \type{chap1:sec1} is \about[chap1:sec1].\par
   \stopsection
 \stopchapter

 \stoptext

 Any help is appreciated.

 Christoph Reller


 Does anybody have a minimal working example on this topic? Because of the
 concise syntax prefix=+ it is difficult to google for an example.

 This feature is mentioned in two places:
 1. contextref.pdf in section 12.5 Cross references explains the main
 mechanism but seems a little outdated.
 2.  Hans Hagen, This Way - Cross document referencing, September 2011.
 This is more up to date, but mentions the feature only briefly. The
 mentioned key there is not prefix but referenceprefix, which doesn't
 seem to work either.

 Regards,
 Christoph Reller


Hi everybody

Is automatic prefixing of references partially broken?
I have found the following example for mkiv in the unofficial test suite (
https://github.com/melmothx/context-unofficial-test-suite):

\setuphead[chapter][referenceprefix=+]
\starttext
\chapter[one]{Chapter One}
\section[bla]{Blablabla}
\chapter[two]{Chapter Two}
See \in{Section}[one:bla]
\stoptext

The test suite also contains the output pdf with the correct reference. So
there must have been a time when mkiv did resolve the reference in the
above example correctly. On my ConTeXt standalone dating 2014.08.19 11:57,
the above example does, however, not work.

The example does only a test of non-local references (from within the
namespace two to the different namespace one). Local references do,
however, work even with my version of ConTeXt. Here is an example:

\setuphead[chapter][referenceprefix=+]
\starttext
\startchapter[reference=chap1,title=First Chapter]
  \startsection[reference=sec1,title=First Section in First Chapter]
Reference \type{sec1} is \about[sec1].
  \stopsection
\stopchapter
\startchapter[reference=chap2,title=Second Chapter]
  \startsection[reference=sec1,title=First Section in Second Chapter]
Reference \type{sec1} is \about[sec1].
  \stopsection
\stopchapter
\stoptext

But how can I now reference chap1:sec1 from withing chap2? I tried
\about[chap1:sec1], but in vain.

Referencing the global namespace with -: does, surprisingly, work. Here
is an example:

\setuphead[chapter][referenceprefix=+]
\starttext
\startsection[reference=sec1,title=Freefloating Section]
  \about[sec1]
\stopsection
\startchapter[reference=chap1,title=First Chapter]
  \startsection[reference=sec1,title=First Section in First Chapter]
Reference \type{sec1} is \about[sec1].\par
Reference \type{-:sec1} is \about[-:sec1]
  \stopsection
\stopchapter
\stoptext

Any help is appreciated.

Regards,
Christoph Reller
___
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] Possibly bug: misalignment with matrix

2014-10-12 Thread Xan
Another bug.

@Hans: At least for user view point it's a bug. 
@Thangalin: thanks. A bigskip will solve me problems, but thanks.


\definemathmatrix[det]
[left={\left\lvert\,},right={\,\right\rvert}]


\starttext
Calculeu els determinants següents:

\startitemize[a,columns]

\item $\startdet[n=4]
\NC 1 \NC 1 \NC 1 \NC 1 \NR
\NC 1 \NC 2 \NC 3 \NC 4 \NR
\NC 1 \NC 3 \NC 6 \NC 10 \NR
\NC 1 \NC 4 \NC 10 \NC 20 \NR
\stopdet$

\item $\startdet[n=4]
\NC 1 \NC -2 \NC 0 \NC 1 \NR
\NC 1 \NC 1 \NC 0 \NC 2 \NR
\NC 0 \NC 3 \NC -2 \NC -1 \NR
\NC 1 \NC 1 \NC 1 \NC 3 \NR
\stopdet$

\item $\startdet[n=5]
\NC 1 \NC 2 \NC 3 \NC 4 \NC 5 \NR
\NC 2 \NC 3 \NC 4 \NC 5 \NC 1 \NR
\NC 3 \NC 4 \NC 5 \NC 1 \NC 2 \NR
\NC 4 \NC 5 \NC 1 \NC 2 \NC 3 \NR
\NC 5 \NC 1 \NC 2 \NC 3 \NC 4 \NR
\stopdet$

\item $\startdet[n=3]
\NC 1 \NC 2 \NC 3 \NR
\NC 1 \NC 4 \NC 9 \NR
\NC 1 \NC 8 \NC 27 \NR
\stopdet$

\stopitemize

Proveu, sense desenvolupar, que els determinants següents són nuls:

\startitemize[a]
\item $\startdet[n=3]
\NC -\sqrt{3} \NC 3 \NR
\NC 5 \NC -\sqrt{3}\cdot 5 \NR
\stopdet$

\item $\startdet[n=3]
\NC 2 \NC 1 \NC 3 \NR
\NC 1 \NC 0 \NC 1 \NR
\NC -3 \NC 2 \NC -1 \NR
\stopdet$

\stopitemize

\stoptext



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

Re: [NTG-context] Possibly bug: misalignment with matrix

2014-10-12 Thread Xan
and 

\item $\startdet[n=3]
\NC yz \NC \frac{1}{x} \NC x \NR
\NC zx \NC \frac{1}{y} \NC y \NR
\NC xy \NC \frac{1}{z} \NC z \NR
\stopdet$


puts x over 1 in the second row
___
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] \writetolist in mkiv

2014-10-12 Thread Jano Kula

Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the 
section starts?


% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK
\startsection[title=Section]
Here we would like to see the local list of manual subsections
\placecontent[section,criterium=local] % local TOC not OK
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\stopchapter}
\stoptext
% stop minimal example

Longer Story

Predefined \startchapter|section inserts titledata in TUC file:
  [titledata]={
   [label]=chapter,
   [title]=Chapter,
  },
  ...
  [titledata]={
   [label]=section,
   [title]=Section,
  },
while \writetolist[subsection]{whatever}{Manual Subsection #1} inserts 
userdata:

  [userdata]={
   [first]=whatever,
   [second]=Manual Subsection \\recurselevel -1,
  },
Is this the reason and can I force to write titledata in the TUC file?

Real case is of course more complicated and also PDF hyperlinks should work.

Thank you in advance,

Jano

___
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] \writetolist in mkiv

2014-10-12 Thread Wolfgang Schuster

Am 12.10.2014 um 20:39 schrieb Jano Kula jano.k...@gmail.com:

 Hello to everybody!
 
 Minimal story
 -
 How to insert local TOC of manually created subsections after the section 
 starts?
 
 % start minimal example
 \def\ManualSubsection#1{\blank%
 {\bf Manual Subsection #1}\par%
 \writetolist[subsection]{whatever}{Manual Subsection #1}%
 \input tufte\relax}
 
 \starttext
 \dorecurse{3}{%
 \startchapter[title=Chapter]
 \placecontent[chapter,criterium=local] % local TOC OK

You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
same argument
of a setup-command, what you’re looking for is 
\placelist[chapter][criterium=local].

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

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula

Hello Wolfgang,

On 12.10.2014 21:28, Wolfgang Schuster wrote:


Am 12.10.2014 um 20:39 schrieb Jano Kula jano.k...@gmail.com:


Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the section 
starts?

% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK


You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
same argument
of a setup-command, what you’re looking for is 
\placelist[chapter][criterium=local].

Wolfgang


Thanks, got it: \placelist[section][criterium=local] places the list of 
sections included in the chapter.


Still, how to do the same with subsections manually inserted by 
\writetolist[subsection]{}{Subsection title}?


Jano

___
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] \writetolist in mkiv

2014-10-12 Thread Wolfgang Schuster

Am 12.10.2014 um 22:57 schrieb Jano Kula jano.k...@gmail.com:

 Hello Wolfgang,
 
 On 12.10.2014 21:28, Wolfgang Schuster wrote:
 
 Am 12.10.2014 um 20:39 schrieb Jano Kula jano.k...@gmail.com:
 
 Hello to everybody!
 
 Minimal story
 -
 How to insert local TOC of manually created subsections after the section 
 starts?
 
 % start minimal example
 \def\ManualSubsection#1{\blank%
 {\bf Manual Subsection #1}\par%
 \writetolist[subsection]{whatever}{Manual Subsection #1}%
 \input tufte\relax}
 
 \starttext
 \dorecurse{3}{%
 \startchapter[title=Chapter]
 \placecontent[chapter,criterium=local] % local TOC OK
 
 You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
 same argument
 of a setup-command, what you’re looking for is 
 \placelist[chapter][criterium=local].
 
 Wolfgang
 
 Thanks, got it: \placelist[section][criterium=local] places the list of 
 sections included in the chapter.
 
 Still, how to do the same with subsections manually inserted by 
 \writetolist[subsection]{}{Subsection title}?

\placelist[subsection][criterium=section]

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