Re: [NTG-context] language in bibliography

2014-10-09 Thread Alan BRASLAU
You are using the mkii bibliography mechanism
http://wiki.contextgarden.net/Bibliography
(even if you are running mkiv).

Where do you get "chapter"? I suppose that this is a header associated
with \completepublications? Does this produce "Bibliografia"?

Alan


On Thu, 9 Oct 2014 23:30:25 +0200
Andrea Valle  wrote:

> Dear all, 
> I’m using \setuppublicationlist.
> Actually I have \mainlanguage[it] but I get e.g. “chapter” while I’d
> like to have “capitolo”. Is there a way to have Italian names?
> 
> Thanks
> 
> 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] LuaTeX Crashes

2014-10-09 Thread luigi scarso
On Fri, Oct 10, 2014 at 12:36 AM, Thangalin  wrote:

> Hi,
>
> This Heisenbug was arduous to nail down. The following code causes the
> stack overflow on the first run:
>
> http://pastebin.com/raw.php?i=qwGGBrJf
>
> If the file is changed to compile successfully, then the compile will
> succeed on subsequent attempts, even if the changes are reverted to
> the original state. It only breaks on the first try. Something must be
> cached, but I don't know what.
>
> $ context --version
> mtx-context | current version: 2014.10.07 11:14
>
> $ luatex --version
> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
>
> $ uname -a
> Linux 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014
> x86_64 x86_64 x86_64 GNU/Linux
>
> There might be some extraneous bits, but hopefully that will be enough
> of a clue as to the problem.
>
> ___
> 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
>
> ___
>

no crash here
current version: 2014.10.09 15:22



$ luatex --version
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)



$ uname -a
Linux  3.14.1-031401-generic #201404141220 SMP Mon Apr 14 16:21:48 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux



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

Re: [NTG-context] LuaTeX Crashes

2014-10-09 Thread Thangalin
Hi,

This Heisenbug was arduous to nail down. The following code causes the
stack overflow on the first run:

http://pastebin.com/raw.php?i=qwGGBrJf

If the file is changed to compile successfully, then the compile will
succeed on subsequent attempts, even if the changes are reverted to
the original state. It only breaks on the first try. Something must be
cached, but I don't know what.

$ context --version
mtx-context | current version: 2014.10.07 11:14

$ luatex --version
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)

$ uname -a
Linux 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

There might be some extraneous bits, but hopefully that will be enough
of a clue as to the problem.
___
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] language in bibliography

2014-10-09 Thread Andrea Valle
Dear all, 
I’m using \setuppublicationlist.
Actually I have \mainlanguage[it] but I get e.g. “chapter” while I’d like to 
have “capitolo”.
Is there a way to have Italian names?

Thanks

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] Possibly bug: misalignment with matrix

2014-10-09 Thread Thangalin
Hi Xan,

It's not exactly what you want, but maybe it'll give you some other ideas:

\definemathmatrix[pmatrix][
  left={\left(\,},
  right={\,\right)},
]

\definenumber[pmatrix]
\resetnumber[pmatrix]

\define\nextmatrix{
  \incrementnumber[pmatrix]
  \getnumber[pmatrix].
}

\define[2]\pmatrices{
  \blank[big]
  \framed[frame=off]{
\startmixedcolumns[n=#1]
  #2
\stopmixedcolumns
  }
}

\starttext
Digueu quines de les matrius següents són regulars. Quan ho siguin,
trobeu la inversa

\pmatrices{4}{
  \nextmatrix
  \startpmatrix
\NC 2 \NC 3 \NR
\NC 6 \NC 7 \NR
  \stoppmatrix
  \column

  \nextmatrix
  \startpmatrix
\NC 3 \NC 2 \NC 1 \NR
\NC 4 \NC 5 \NC 3 \NR
\NC 5 \NC 0 \NC -2 \NR
  \stoppmatrix
  \column

  \nextmatrix
  \startpmatrix
\NC 5 \NC 4 \NC 2 \NR
\NC 2 \NC 2 \NC 3 \NR
\NC 7 \NC 6 \NC 5 \NR
  \stoppmatrix
  \column

  \nextmatrix
  \startpmatrix
\NC a \NC 0 \NC 0 \NC 0 \NR
\NC 0 \NC b \NC 0 \NC 0 \NR
\NC 0 \NC 0 \NC c \NC 0 \NR
\NC 0 \NC 0 \NC 0 \NC d \NR
  \stoppmatrix
}
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Error with alternative (interactive) TOC

2014-10-09 Thread Thangalin
Hi,

How do you make a custom TOC entry that links to the correct page?

In the following example, the last TOC item is not hyperlinked, and
all the section hyperlinks are incorrect (off by one). Note that the
chapters and sections are separate pages.

\setupinteraction[state=start,]
\setuphead[chapter,section][page=yes,continue=no,]

\define[3]\SectionTOC{#3 #2}

% Using alternative causes the cross-reference to be off-by-one.
\setuplist[section][
  alternative=interactive,
  command=\SectionTOC,
]

\starttext
  \placecontent

  \startchapter[title=Chapter]
\dorecurse{4}{
  \startsection[title=Section]
Level \recurselevel.
  \stopsection
}
  \stopchapter
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] frac and tfrac with sqrt

2014-10-09 Thread Keith J. Schultz

Am 07.10.2014 um 09:20 schrieb Hans Hagen :

> On 10/7/2014 7:33 AM, Mikael P. Sundqvist wrote:
>> On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster
>>  wrote:
>>> \setupmathradical[alternative=default]
>> 
>> Very good!
>> 
>> Hans, will the default be default in next beta? :)
> 
> no, but there will be different settings ... the problem with fractions and 
> radicals and their mixing is that we have to (somehow) deal with 
> unpredictable math styles (and esp in radicals there are fuzzy concepts like 
> 'the surrounding style is used' while inside a different one is used (all a 
> side effect of parsing first and generating next)
the way I look at it one should the use a look forward parsing and 
clean up or look backward. 
or look backward. It depends how much of the parse tree you keep before 
generating an entity!


> anyway, the next release will have a split setup for display and inline and 
> (hopefully) work as intended (the major bottleneck is not the radical but 
> \text and it's kind o ftricky to get both of them okay at the same time)
> 
> and of course we also want the plugins (mp) and coloring and so working
> 

___
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-09 Thread Aditya Mahajan

On Thu, 9 Oct 2014, Hans Hagen wrote:


On 10/7/2014 8:06 PM, Thangalin wrote:

Looks like a bug; adding blank rows works around the problem (but
looks terrible):

\definemathmatrix[pmatrix] [left={\left(\,},right={\,\right)}]

\starttext
Digueu quines de les matrius següents són regulars. Quan ho siguin,
trobeu la inversa

\startitemize[a,columns,four]
\item \startpmatrix[n=4]
\NC \NR
\NC 2 \NC 3 \NR
\NC 6 \NC 7 \NR
\NC \NR
\stoppmatrix

\item \startpmatrix[n=4]
\NC 3 \NC 2 \NC 1 \NR
\NC 4 \NC 5 \NC 3 \NR
\NC 5 \NC 0 \NC -2 \NR
\NC
\stoppmatrix

\item \startpmatrix[n=4]
\NC 5 \NC 4 \NC 2 \NR
\NC 2 \NC 2 \NC 3 \NR
\NC 7 \NC 6 \NC 5 \NR
\NC
\stoppmatrix

\item \startpmatrix[n=4]
\NC a \NC 0 \NC 0 \NC 0 \NR
\NC 0 \NC b \NC 0 \NC 0 \NR
\NC 0 \NC 0 \NC c \NC 0 \NR
\NC 0 \NC 0 \NC 0 \NC d \NR
\stoppmatrix

\stopitemize

\stoptext


not a bug ...

(1) the matrix is centered around the math axis and has equal height and 
depth so indeed in columns that will not align horizontally


IIRC, we had added a `location=(high|middle|low)` key to change that 
behaviour. (Sorry, cannot test right now).


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

Re: [NTG-context] (MKIV beta) APA citations: "et al." incorrectly written

2014-10-09 Thread Robert Blackstone

On 9 Oct 2014, at 08:52 , Sander Maijers  wrote:

>  Am I correct in that you would enforce a single concrete
> citation format throughout the document that way?
No, it would just change the Author-field for one particular entry that is 
causing trouble.
One can correct all faulty entries that way of cause. 

>  You were asking for comments
> about your solution, I hope the following remarks are informative to
> you.
> 
> My .bib file is being autogenerated by Mendeley, a reference manager,
> and changes often in terms of contents. That workflow seems
> incompatible with your solution. Furthermore, I may not let the
> authors appear in citations with all their names every time, it should
> be limited to the first time (the APA 6 rules, that I referred to).
> With your solution, 1 out of n citations would be correct, while in
> the current situation (without manual intervention) n-1 out of n would
> be correct (all but the first).
> 
 I clearly misunderstood your problem, which, as I see now, thanks to your 
remarks, is rather different from mine. 
I would not have sent you my silly answer if I had known this.

On the other hand, I too need citations and bibliographic references to appear 
in different forms, three in my case:
In the Bibliography with Author: Last name, first name, 
In the text and footnotes the first time with Author(s): First name(s), last 
name(s),  and full title of the work, and in all the following citations with 
Author(s): Last name(s) only and short title of the work. 
I could think of no other way to accomplish this than to generate the .bbl, 
make two copies, “Inversed Author” and “Short Title”, make the necessary 
changes in these .bbl’s, including the cite-key to mark it for these two 
alternatives. I should add that I could not use apa  but an apa-like, modified 
in many details which also forced me to tweak the .bbl.

It all seems a lot of work but it is straightforward, it works for me and it 
protects me from an enormous amount of frustration.
(And I’m glad my .bib-file is not autogenerated.)

Best regards,

Robert Blackstone



___
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-09 Thread Hans Hagen

On 10/7/2014 8:06 PM, Thangalin wrote:

Looks like a bug; adding blank rows works around the problem (but
looks terrible):

\definemathmatrix[pmatrix] [left={\left(\,},right={\,\right)}]

\starttext
Digueu quines de les matrius següents són regulars. Quan ho siguin,
trobeu la inversa

\startitemize[a,columns,four]
\item \startpmatrix[n=4]
\NC \NR
\NC 2 \NC 3 \NR
\NC 6 \NC 7 \NR
\NC \NR
\stoppmatrix

\item \startpmatrix[n=4]
\NC 3 \NC 2 \NC 1 \NR
\NC 4 \NC 5 \NC 3 \NR
\NC 5 \NC 0 \NC -2 \NR
\NC
\stoppmatrix

\item \startpmatrix[n=4]
\NC 5 \NC 4 \NC 2 \NR
\NC 2 \NC 2 \NC 3 \NR
\NC 7 \NC 6 \NC 5 \NR
\NC
\stoppmatrix

\item \startpmatrix[n=4]
\NC a \NC 0 \NC 0 \NC 0 \NR
\NC 0 \NC b \NC 0 \NC 0 \NR
\NC 0 \NC 0 \NC c \NC 0 \NR
\NC 0 \NC 0 \NC 0 \NC d \NR
\stoppmatrix

\stopitemize

\stoptext


not a bug ...

(1) the matrix is centered around the math axis and has equal height and 
depth so indeed in columns that will not align horizontally


(2) there is no n|m key support in matrices so the n does nothing in 
this kind of matrix


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___