Re: [NTG-context] References to annotations broken, mkiv

2012-09-12 Thread Dominik Leopold Forkert
Thanks again for the excellent help!

Dominik
___
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] References to annotations broken, mkiv

2012-09-11 Thread Wolfgang Schuster

Am 11.09.2012 um 17:17 schrieb Dominik Leopold Forkert 
dominik.fork...@gmail.com:

 Hello,
 
 the recent update of the Annotation module (2012.09.05), mkiv broke
 the references to annotations for me:
 
 \usemodule[annotation]
 \defineannotation[definition][text=Definition,number=yes]
 
 \starttext
 \definition[reference=def1]{blabla}
 In \in{Definition}[def1]  ...
 \stoptext
 
 In the example above the rather strange output is:
 Definition 2blabla
 
 In Definition 1 ...
 
 
 In addition, I do not know how to correctly get the annotation counter
 displayed in a 'bychapter'-style. I tried:
 
 \usemodule[annotation]
 \definenumber[DefinitionCounter][prefix=yes,way=bysection]
 \defineannotation[definition][text=Definition,number=yes,counter=DefinitionCounter]
 
 \starttext
 \chapter{A chapter}
 \section{A section}
 Counter: \getnumber[DefinitionCounter]
 \definition[reference=def1]{blabla}
 
 Counter: \getnumber[DefinitionCounter]
 
 In \in{Definition}[def1] blabla ...
 \stoptext
 
 Again the behavior of the counter is really weird. Now I get
 Definition 1.1.2 blabla, but \in[def1] just shows 1 instead of
 1.1.2.
 
 I sincerely hope for clarification!

I uploaded a new version where I fixed the counter bug for the annotation 
command
and also the output of the reference-output.

There is also no need to create a new counter because each annotation has it’s 
own
counter with the same name as the environment/command but to change the way
how it is displayed you have to use \setupannotation.

\usemodule[annotation]

\defineannotation[definition][text=Definition,number=yes]

\setupannotation[definition][prefix=yes,way=bychapter,prefixsegments=chapter]

\starttext

\chapter{A chapter}
\section{A section}

\definition[reference=definition:1]{blabla}

Counter: 
\rawcountervalue[definition]/\convertedcounter[definition][prefix=yes,prefixsegments=chapter]

In \in{Definition}[definition:1] blabla ...

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


Re: [NTG-context] References to itemize items

2012-05-24 Thread Hans Hagen

On 23-5-2012 04:54, Rogers, Michael K wrote:

I'll try again:

ConTeXt used to match the conversion style in a reference to the itemize item 
with the number/character of the item.  Now it doesn't convert numbers to 
characters.  Does this happen to anyone else?  Example:

\setupitemgroup[itemize][1][n]
\setupitemgroup[itemize][2][a]
\starttext
\startitemize %level 1
\item One
\startitemize %level 2
\item AA \item[BB] BB
\stopitemize\stopitemize
\type{\in[BB]} = \in[BB] (used to print b, now prints 2)
\stoptext

Is there a way to get \in[BB] to convert the reference to the corresponding 
character?


fixed in next beta


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


Re: [NTG-context] References to itemize items

2012-05-24 Thread Rogers, Michael K

On May 24, 2012, at 6:06 AM, Hans Hagen wrote:

 On 23-5-2012 04:54, Rogers, Michael K wrote:
 I'll try again:

 ConTeXt used to match the conversion style in a reference to the itemize 
 item with the number/character of the item.  Now it doesn't convert numbers 
 to characters.  Does this happen to anyone else?  Example:

 \setupitemgroup[itemize][1][n]
 \setupitemgroup[itemize][2][a]
 \starttext
 \startitemize %level 1
 \item One
 \startitemize %level 2
 \item AA \item[BB] BB
 \stopitemize\stopitemize
 \type{\in[BB]} = \in[BB] (used to print b, now prints 2)
 \stoptext

 Is there a way to get \in[BB] to convert the reference to the corresponding 
 character?

 fixed in next beta

Great!  It works.  Thanks.



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] References to itemize items

2012-05-22 Thread Rogers, Michael K
I'll try again:

ConTeXt used to match the conversion style in a reference to the itemize item 
with the number/character of the item.  Now it doesn't convert numbers to 
characters.  Does this happen to anyone else?  Example:

\setupitemgroup[itemize][1][n]
\setupitemgroup[itemize][2][a]
\starttext
\startitemize %level 1
\item One
\startitemize %level 2
\item AA \item[BB] BB
\stopitemize\stopitemize
\type{\in[BB]} = \in[BB] (used to print b, now prints 2)
\stoptext

Is there a way to get \in[BB] to convert the reference to the corresponding 
character?

Thanks,

Michael




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] References to floats

2012-05-09 Thread Robert Blackstone
On Mon, 7 May 2012 22:25:37, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 07.05.2012 um 15:03 schrieb Robert Blackstone:

 On Mon, May 7, 2012 at 12:00 PM,   Hans Hagen pra...@wxs.nl
 wrote

 On 6-5-2012 23:18, Robert Blackstone wrote:

 Sometimes however the example is placed at the same page as the text 
 discussing it.
 Is there any trick to adapt the reference to this situation, so that, 
 instead of saying, for instance, ex. 3.4 on page 12, it just says ex. 
 3.4, or ex. 3.4 below or even ex. 3.4 on this page?



 you can try \atpage[ref]



 The best way is to define your own command for this.

 \starttext

 \somewhere{above}{below}[fig:test]

 \page

 \somewhere{above}{below}[fig:test]

 \placefigure[][fig:test]{Test}{\framed{test}}

 \page

 \somewhere{above}{below}[fig:test]

 \stoptext

 Wolfgang

Thank you, Wolfgang, for your help. Though this command works
perfectly and is nicely adaptable, in the end it does not give me what
I would have liked.
Perhaps my description of what I want was not clear enough.

For me, both commands, \somewhere{}{}[ref] and \atpage[ref], have in
common that they are imprecise when I want precision, namely when the
float is not at the same page as its reference, and precise when they
are in fact redundant, that is, when float and reference are on the
same page, where the reader will see it at one glance, whether it is
above or below.

Writing, for instance, on page 20: See example 2 on page 20 is not
wrong but somehow it looks clumsy and unprofessional to me, and
unworthy of ConTeXt, if I may say so.
The challenge would seem to pick ConTeXt's brain just before the
final processing run, when it knows whether float and reference will
be on the same page or not. Could this perhaps be solvable by some
Lua-code?

Anyway, for lack of a better solution, I will for the time being refer
to each float with
\in{ex.}[ref]
on \at{page}[ref]
\somewhere{on the previous page}{on the next page}[ref]
\somewhere{above}{below}[ref]

and manually comment out, after the final processing run, what I cannot use.
Not very elegant, to put it mildly, and I hope that someone on this
list has a better solution.

Kind 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] References to floats

2012-05-09 Thread Alan BRASLAU
 On Mon, May 7, 2012 at 15:03, Robert Blackstone wrote:
 
 Thank you, Hans, for your quick reply. Unfortunately it does not help
 me. The result is basically the same as when I write on
 \at{page}[ref], except that, instead of on page 20, I get at page
 20, (with the float sitting on page 20).
 Frankly, I'm rather surprised that this wish of mine seems not to have
 come up before.
 

Indeed, something clean and automatic should be easy -
after all the color of the reference is different (contrastcolor)
when it is to be found on the same page or on a different page.

\at{page}[ref] could be smart enough...

What should the behavior be?
on \at{page}[ref] could return on ,
but this would not be right.
\at{on page}[ref] could return ,
but otherwise on page would be a (colored) active link.
I might try
\in{figure}[ref] \at{(page }{)}[ref]
and hope/expect (page xx) to be replaced by 
when referring to the current page.
Maybe Wolfgang is right in suggesting writing a custom macro.

I haven't looked at the code, though.

Alan
___
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] References to floats.

2012-05-07 Thread Hans Hagen

On 6-5-2012 23:18, Robert Blackstone wrote:

Dear list,

Presently I am working on a book that contains many musical examples, some of 
them rather large (even page-filling). It is difficult to predict where they 
will finally be placed, at least  when I do not want to spoil the layout too 
much by forcing every example to be placed at the point where it occurs in the 
.tex-file.

So when dicussing an example I always refer to it with \in{ex.}{ref} and 
\at{page}[ref].

Sometimes however the example is placed at the same page as the text discussing 
it.
Is there any trick to adapt the reference to this situation, so that, instead of saying, for instance, ex. 3.4 on 
page 12, it just says ex. 3.4, or ex. 3.4 below or even ex. 3.4 on this page?

(One imagines that in the last stage of typesetting the file ConTeXt knows 
that the reference and the referenced float will be on the same page, but I have no clue 
how I could use this knowledge.)
Thanks in advance for any help.


you can try \atpage[ref]

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


Re: [NTG-context] References to floats

2012-05-07 Thread Robert Blackstone
On Mon, May 7, 2012 at 12:00 PM,   Hans Hagen pra...@wxs.nl
wrote

 On 6-5-2012 23:18, Robert Blackstone wrote:

 Sometimes however the example is placed at the same page as the text 
 discussing it.
 Is there any trick to adapt the reference to this situation, so that, 
 instead of saying, for instance, ex. 3.4 on page 12, it just says ex. 
 3.4, or ex. 3.4 below or even ex. 3.4 on this page?



 you can try \atpage[ref]


Thank you, Hans, for your quick reply. Unfortunately it does not help me.
The result is basically the same as when I write on \at{page}[ref],
except that, instead of on page 20, I get at page 20, (with the
float sitting on page 20).
Frankly, I'm rather surprised that this wish of mine seems not to have
come up before.

Kind regards,
Robert
___
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] References to floats

2012-05-07 Thread Wolfgang Schuster

Am 07.05.2012 um 15:03 schrieb Robert Blackstone:

 On Mon, May 7, 2012 at 12:00 PM,   Hans Hagen pra...@wxs.nl
 wrote
 
 On 6-5-2012 23:18, Robert Blackstone wrote:
 
 Sometimes however the example is placed at the same page as the text 
 discussing it.
 Is there any trick to adapt the reference to this situation, so that, 
 instead of saying, for instance, ex. 3.4 on page 12, it just says ex. 
 3.4, or ex. 3.4 below or even ex. 3.4 on this page?
 
 
 
 you can try \atpage[ref]
 
 
 Thank you, Hans, for your quick reply. Unfortunately it does not help me.
 The result is basically the same as when I write on \at{page}[ref],
 except that, instead of on page 20, I get at page 20, (with the
 float sitting on page 20).
 Frankly, I'm rather surprised that this wish of mine seems not to have
 come up before.

The mechanism to check if float and reference are on the same page is available
as Hans has shown with \atpage but there are to many ways to format the output.

The best way is to define your own command for this.

\starttext

\somewhere{above}{below}[fig:test]

\page

\somewhere{above}{below}[fig:test]

\placefigure[][fig:test]{Test}{\framed{test}}

\page

\somewhere{above}{below}[fig:test]

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


Re: [NTG-context] References broken when using more than one component?

2012-03-23 Thread Steffen Fritzsche
Does anybody know when this will be fixed?

Thanks!
Steffen


Am 21.03.2012 um 15:09 schrieb Steffen Wolfrum:

 
 I consider it a bug.
 
 Steffen W.
 
 
 Am 21.03.2012 um 13:54 schrieb Steffen Fritzsche:
 
 Hi,
 
 I've got a deep hierarchy of components, while everything builds fine I have 
 a problem using references. Have a look at the following sample files:
 
 reftest.tex:
 \setuphead[chapter][referenceprefix=+]
 
 \starttext
 
 \chapter[one]{Chapter One}
 
 \section[bla]{Blablabla}
 See \in{Section}[three:foobar]
 
 \chapter[two]{Chapter Two}
 
 \section[blubb]{BlubbBlubbBlubb}
 
 \subsection{BlubberBlubber}
 See \in{Section}[one:bla]
 
 \component refcomp
 
 \stoptext
 
 refcomp.tex:
 \startcomponent refcomp
 \chapter[three]{Chapter Three}
 \component refcompsec
 \stopcomponent
 
 refcompsec.tex:
 \section[foobar]{Foobar Section}
 See \in{Section}[two:blubb] for more details!
 \stopcomponent
 
 
 If I move the second component refcompsec.tex into the refcomp.tex 
 component the reference in chapter one is found. If I translate it as shown 
 using two components the reference in the first chapter is lost.
 
 Is this a bug or am I doing something wrong?
 
 Cheers,
 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 



smime.p7s
Description: S/MIME cryptographic signature
___
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] References broken when using more than one component?

2012-03-23 Thread Hans Hagen

On 23-3-2012 14:05, Steffen Fritzsche wrote:

Does anybody know when this will be fixed?


I'll look into it when I have time.

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
___


Re: [NTG-context] References broken when using more than one component?

2012-03-21 Thread Steffen Fritzsche
Oh, forgot to mention I'm using mkiv with the latest beta.

Steffen



Am 21.03.2012 um 13:54 schrieb Steffen Fritzsche:

 Hi,
 
 I've got a deep hierarchy of components, while everything builds fine I have 
 a problem using references. Have a look at the following sample files:
 
 reftest.tex:
 \setuphead[chapter][referenceprefix=+]
 
 \starttext
 
 \chapter[one]{Chapter One}
 
 \section[bla]{Blablabla}
 See \in{Section}[three:foobar]
 
 \chapter[two]{Chapter Two}
 
 \section[blubb]{BlubbBlubbBlubb}
 
 \subsection{BlubberBlubber}
 See \in{Section}[one:bla]
 
 \component refcomp
 
 \stoptext
 
 refcomp.tex:
 \startcomponent refcomp
 \chapter[three]{Chapter Three}
 \component refcompsec
 \stopcomponent
 
 refcompsec.tex:
 \section[foobar]{Foobar Section}
 See \in{Section}[two:blubb] for more details!
 \stopcomponent
 
 
 If I move the second component refcompsec.tex into the refcomp.tex 
 component the reference in chapter one is found. If I translate it as shown 
 using two components the reference in the first chapter is lost.
 
 Is this a bug or am I doing something wrong?
 
 Cheers,
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___




smime.p7s
Description: S/MIME cryptographic signature
___
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] References to annotations

2011-10-07 Thread Michael Green
Thank you again!

 You need the following mode setting:
 
 \usemodule[letter]
 
 \startletter
 
 \startnotmode[*trialtypesetting]
 \placetable[here][]{title}
 \starttable[|l|]
 \NC That?s all \NC\MR
 \stoptable
 \stopnotmode
 
 \stopletter
___
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] References to annotations

2011-10-06 Thread Wolfgang Schuster

Am 06.10.2011 um 03:10 schrieb Michael Green:

 That works. Thank you very much!
 
 Coincidentally, I found a similar issue with the letter module. The table in 
 the example below will be numbered Table 2
 
 \usemodule[letter]
 
 \starttext
 
 \startletter
 
 \placetable[here][]{title}
 \starttable[|l|]
 \NC That’s all \NC\MR
 \stoptable
 
 \stopletter
 \stoptext 


You need the following mode setting:

\usemodule[letter]

\startletter

\startnotmode[*trialtypesetting]
\placetable[here][]{title}
\starttable[|l|]
\NC That’s all \NC\MR
\stoptable
\stopnotmode

\stopletter

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] References to annotations

2011-10-05 Thread Wolfgang Schuster

Am 05.10.2011 um 19:50 schrieb Michael Green:

 I'm getting two unexpected results from references to annotations:
 
 1. The numbering is different: \placeannotationnumber starts at 1, \in[ref] 
 starts at 0

Fixed.

 2. \atpage sometimes gives the page number and sometimes yields something 
 surprising: as we show below (or above). That's nifty, but unexpected.

Use \at{page}[reference].

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] References to annotations

2011-10-05 Thread Michael Green
That works. Thank you very much!

Coincidentally, I found a similar issue with the letter module. The table in 
the example below will be numbered Table 2

\usemodule[letter]

\starttext

\startletter

\placetable[here][]{title}
\starttable[|l|]
\NC That’s all \NC\MR
\stoptable

\stopletter
\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] references

2011-03-01 Thread Stefan Müller

On 28.02.2011 17:58, Wolfgang Schuster wrote:


Am 28.02.2011 um 17:38 schrieb Stefan Müller:


I just learned that some of those labels are, in fact, reused. That caused some 
confusion when I tried something like

\setuplabeltext[en][section=section~]

Is there a list or something which labels alexist and what values they have?


Only the source files, mkii gets the labels from the lang-xxx.mkii files
and mkiv from lang-lab.lua. What you can do is to list them on the wiki.

Wolfgang


Only for clarification: did you mean lang-txt.lua with a lot stuff like
  ...
  july={
   labels={
af=julie,
...
in it? Or is there something wrong with my files (couldn't find this 
file at http://source.contextgarden.net/tex/context/base only on my 
harddrive...)?


If that's the file: it looks like a clever thing to me to let a 
lua-function read data.labels and format it properly (table or 
something) and/or show only one language or something, rather then 
putting it on the wiki. Especially since there are some gaps in this 
file and there could be a lot updates in the future.


I'll look into that in the not too far away future, but I'm not very 
experienced with Lua.


Stefan.
___
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] references

2011-03-01 Thread Vedran Miletić
2011/3/1 Stefan Müller warrence@gmx.de

 On 28.02.2011 17:58, Wolfgang Schuster wrote:


 Am 28.02.2011 um 17:38 schrieb Stefan Müller:

  I just learned that some of those labels are, in fact, reused. That
 caused some confusion when I tried something like

 \setuplabeltext[en][section=section~]

 Is there a list or something which labels alexist and what values they
 have?


 Only the source files, mkii gets the labels from the lang-xxx.mkii files
 and mkiv from lang-lab.lua. What you can do is to list them on the wiki.

 Wolfgang


 Only for clarification: did you mean lang-txt.lua with a lot stuff like
  ...
  july={
   labels={
af=julie,
...
 in it? Or is there something wrong with my files (couldn't find this file
 at http://source.contextgarden.net/tex/context/base only on my
 harddrive...)?


That's because that repository is quite a bit out of date; the file was
introduced quite recently.

Regards,

Vedran Miletić
___
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] references

2011-02-28 Thread Stefan Müller

Hi,

I think it could be useful to be able to reuse the label text setups 
elsewhere, too.


I have for example

\definereferenceformat[inexp][label=example]
\setuplabeltext[en][example=example~]

in one of my documents. Why not specify this label when defining an 
enumeration example:


\defineenumeration[example][label=example]

This way I could easily use several languages in parallel with one 
setup. The first letter should probably be capitalized in the 
enumeration label...


Stefan.

On 11.02.2011 18:27, Hans Hagen wrote:

Hi,

I uploaded a beta. New:

- Improved \textxt behaviour (for Mojca's code).
- Korean labels and index tagging (with help from Jeong Dalyoung).
- Cleaned of referencing (formats).

\setupinteraction[state=start]

\startbuffer[definitions]
\definereferenceformat [PageOne] [left=(,right=),text=sometext]
\definereferenceformat [PageTwo] [label=page]
\definereferenceformat [PageThree] [label=*]
\definereferenceformat [PageFour] [label=both]

\setuplabeltext[en][page=page~]
\setuplabeltext[en][chapter=chapter~]
\setuplabeltext[en][both={chapter~,~retpahc}]
\stopbuffer

\getbuffer[definitions]

\starttext

\chapter[one]{One}

\typebuffer[definitions]

\startbuffer
\PageOne[two]
\PageTwo[two]
\PageThree[two]
\PageFour[two]
\at{(}{)}[two]
\at{!}[two]
\at{page}[two]
\at[two]
\stopbuffer

\typebuffer \startlines \getbuffer \stoplines

\chapter[two]{Two}

\typebuffer[definitions]

\startbuffer
\PageOne[one]
\PageTwo[one]
\PageThree[one]
\PageFour[one]
\at{(}{)}[one]
\at{!}[one]
\at{page}[one]
\at[one]
\stopbuffer

\typebuffer \startlines \getbuffer \stoplines

\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] references

2011-02-28 Thread Stefan Müller
I just learned that some of those labels are, in fact, reused. That 
caused some confusion when I tried something like


\setuplabeltext[en][section=section~]

Is there a list or something which labels alexist and what values they 
have?


Stefan

On 28.02.2011 16:08, Stefan Müller wrote:

Hi,

I think it could be useful to be able to reuse the label text setups
elsewhere, too.

I have for example

\definereferenceformat[inexp][label=example]
\setuplabeltext[en][example=example~]

in one of my documents. Why not specify this label when defining an
enumeration example:

\defineenumeration[example][label=example]

This way I could easily use several languages in parallel with one
setup. The first letter should probably be capitalized in the
enumeration label...

Stefan.

On 11.02.2011 18:27, Hans Hagen wrote:

Hi,

I uploaded a beta. New:

- Improved \textxt behaviour (for Mojca's code).
- Korean labels and index tagging (with help from Jeong Dalyoung).
- Cleaned of referencing (formats).

\setupinteraction[state=start]

\startbuffer[definitions]
\definereferenceformat [PageOne] [left=(,right=),text=sometext]
\definereferenceformat [PageTwo] [label=page]
\definereferenceformat [PageThree] [label=*]
\definereferenceformat [PageFour] [label=both]

\setuplabeltext[en][page=page~]
\setuplabeltext[en][chapter=chapter~]
\setuplabeltext[en][both={chapter~,~retpahc}]
\stopbuffer

\getbuffer[definitions]

\starttext

\chapter[one]{One}

\typebuffer[definitions]

\startbuffer
\PageOne[two]
\PageTwo[two]
\PageThree[two]
\PageFour[two]
\at{(}{)}[two]
\at{!}[two]
\at{page}[two]
\at[two]
\stopbuffer

\typebuffer \startlines \getbuffer \stoplines

\chapter[two]{Two}

\typebuffer[definitions]

\startbuffer
\PageOne[one]
\PageTwo[one]
\PageThree[one]
\PageFour[one]
\at{(}{)}[one]
\at{!}[one]
\at{page}[one]
\at[one]
\stopbuffer

\typebuffer \startlines \getbuffer \stoplines

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



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

2011-02-28 Thread Wolfgang Schuster

Am 28.02.2011 um 17:38 schrieb Stefan Müller:

 I just learned that some of those labels are, in fact, reused. That caused 
 some confusion when I tried something like
 
 \setuplabeltext[en][section=section~]
 
 Is there a list or something which labels alexist and what values they have?

Only the source files, mkii gets the labels from the lang-xxx.mkii files
and mkiv from lang-lab.lua. What you can do is to list them on the wiki.

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] references

2011-02-15 Thread Florian Wobbe
 fyi: you can say autocase=yes so that e.g. page becomes Page when it ends up 
 at the beginning of a line.

Hans, thanks for the new functionality. How would I use autocase? This does not 
seem to work:

\definereferenceformat [aPage] [label=page, autocase=yes]
See \aPage[one]. \aPage[one] is important. % Page is always capitalised

Florian

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

2011-02-15 Thread Hans Hagen

On 15-2-2011 12:00, Florian Wobbe wrote:

\definereferenceformat [aPage] [label=page, autocase=yes]
See \aPage[one]. \aPage[one] is important. % Page is always capitalised


fixed in next beta

--

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


Re: [NTG-context] references

2011-02-14 Thread Hans Hagen

On 14-2-2011 8:32, Florian Wobbe wrote:


Of cause, but I didn't want to include Figure in the link. Never mind, as 
long as I can work around this with a reference format.


fyi: you can say autocase=yes so that e.g. page becomes Page when it 
ends up at the beginning of a line.


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
___


Re: [NTG-context] references

2011-02-11 Thread Florian Wobbe
 I uploaded a beta. New:
 [...]
 \at{(}{)}[two]

Hi Hans,
is there a way to get rid of the extra space after the opening bracket?

Florian

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

2011-02-11 Thread Hans Hagen

On 11-2-2011 8:23, Florian Wobbe wrote:

I uploaded a beta. New:
[...]
\at{(}{)}[two]


Hi Hans,
is there a way to get rid of the extra space after the opening bracket?


unofficially yes, but officially no as it is expected when you use 
'page' instead of '(' and the \at command is definitely to be downward 
compatible


so, if you want it different, you need to define a reference format

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
___


Re: [NTG-context] References russian translation (Yury G. Kudryashov)

2010-06-19 Thread Yury G. Kudryashov
Vyatcheslav Yatskovsky wrote:

 References russian translation (Yury G. Kudryashov)
 
 What is Список літературі? In Ukrainian, it is Список літератури, if
 you meant this.
Thanks, I looked at Список літератури, typed Список літературі, and my 
wife (she is from Ukraine) haven't catched the typo.

___
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] References russian translation (Yury G. Kudryashov)

2010-06-19 Thread Vyatcheslav Yatskovsky

Thanks for providing translations. )

I also wonder why ru is specified in your code. Maybe ua (uk) ?
% Список літератури
\setupheadtext [\s!ru]


--
Best Regards,
Vyatcheslav Yatskovsky
___
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] References russian translation (Yury G. Kudryashov)

2010-06-19 Thread Yury G. Kudryashov
Vyatcheslav Yatskovsky wrote:

 Thanks for providing translations. )
 
 I also wonder why ru is specified in your code. Maybe ua (uk) ?
 % Список літератури
 \setupheadtext [\s!ru]
Copy+paste, forgotten to edit. Next time I will send just Russian, and 
you'll add Ukranian, OK (I'm from Russia, and don't speak Ukranian)?

___
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] References russian translation (Yury G. Kudryashov)

2010-06-19 Thread Vyatcheslav Yatskovsky



Copy+paste, forgotten to edit. Next time I will send just Russian, and
you'll add Ukranian, OK (I'm from Russia, and don't speak Ukranian)?



Sure, deal ;)

(I'm from Ukraine, speak both)

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] references to footnotes are broken in mkiv

2009-10-25 Thread Thomas A. Schmitz


On Oct 22, 2009, at 11:33 PM, Hans Hagen wrote:


i'll fix this (we just need to register this ref class)

it will be possible to nil the stoppers for those numbers in an  
upcoming release, so you have to live with it for the moment.


Hans


Hi Hans,

thanks for fixing this! There still is a slight inconsistency in the  
mkiv reference code. Look at the following example:


\starttext
\section{One}
\startitemize[n]
\item[one] One
\item Two
\stopitemize
In item \in[one].
\stoptext

In mkiv, the reference becomes 11 because the section number is  
prefixed. I didn't find a way to configure this, and if it gets  
prefixed, there should be something typeset in between, so it becomes  
1:1 or 1-1 or something.


All best

Thomas
___
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] references to footnotes are broken in mkiv

2009-10-22 Thread Hans Hagen

Thomas A. Schmitz wrote:


On Oct 19, 2009, at 11:14 AM, Thomas A. Schmitz wrote:


fixed in next version; i'll send you a patch


Excellent, your patch works!

Thanks, and all best

Thomas


Sorry to be a PITA, but could you fix references to items as well? They 
don't work either in mkiv:


\starttext

\startitemize[n]
\item[one] One
\item Two
\stopitemize

In item \in[one].

\stoptext

(Works in mkii, but not in mkiv)


i'll fix this (we just need to register this ref class)

it will be possible to nil the stoppers for those numbers in an upcoming 
release, so you have to live with it for the moment.


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


Re: [NTG-context] references to footnotes are broken in mkiv

2009-10-19 Thread Hans Hagen

Thomas A. Schmitz wrote:

Hi all,

the following example produces the correct reference in mkii but no 
reference in mkiv. Has anything changed, or is this a bug?


Thanks

Thomas

\starttext

A text\footnote[fnt:1]{A footnote} with a 
reference\footnote[fnt:2]{Another one} to a \in[fnt:2] footnote.


\stoptext


fixed in next version; i'll send you a patch

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


Re: [NTG-context] references to footnotes are broken in mkiv

2009-10-19 Thread Thomas A. Schmitz


On Oct 19, 2009, at 10:34 AM, Hans Hagen wrote:


fixed in next version; i'll send you a patch


Excellent, your patch works!

Thanks, and all best

Thomas
___
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] references to footnotes are broken in mkiv

2009-10-19 Thread Thomas A. Schmitz


On Oct 19, 2009, at 11:14 AM, Thomas A. Schmitz wrote:


fixed in next version; i'll send you a patch


Excellent, your patch works!

Thanks, and all best

Thomas


Sorry to be a PITA, but could you fix references to items as well?  
They don't work either in mkiv:


\starttext

\startitemize[n]
\item[one] One
\item Two
\stopitemize

In item \in[one].

\stoptext

(Works in mkii, but not in mkiv)

All best

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

2009-09-13 Thread Thomas A. Schmitz


On Sep 9, 2009, at 12:07 AM, Hans Hagen wrote:

hard to test ... anyway, Thomas Schmitz is coordinating the bib  
tests so best coordinate with him


Hans


OK, I'm back from my vacation and ready to roll. For coordinating  
tests with bib: bibliographies offer so many different possibilities  
and so many switches that it is impossible to write a complete test  
suit. I will set up a page on the wiki that will just offer a  
container for a bib file and a tex file. When users meet problems in  
their real-life work, I would ask them to boil them down to minimal  
examples and just add them to the page, which I hope to watch on a  
regular basis.


For the time being, however, I can't do any testing . I tried the  
latest beta and get this error with my minimal bib test files:


structure   : subsection @ level 4 : 0.0.0.1 - Bibliography
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua: 
275: attempt to call global 'concat' (a nil value)

stack traceback:
	...text/tex/texmf-context/tex/context/base/strc-lst.lua:275: in  
function ...text/tex/texmf-context/tex/context/base/strc-lst.lua:138

(tail call): ?
	...text/tex/texmf-context/tex/context/base/strc-lst.lua:323: in  
function 'analyze'

main ctx instance:1: in main chunk.
\analysestructurelist analyze(#1,#2,#3)}

\dodeterminelistcharacteristics ...ter \c!number }
  \xdef  
\utilitylistlength {...

to be read again
   \initializepubslist
\dodoplacepublications ...ubs]\initializepubslist
  \doifnot  
{\namedlistparame...

l.36 \placepublications[criterium=cite]

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

Thomas A. Schmitz wrote:


On Sep 9, 2009, at 12:07 AM, Hans Hagen wrote:

hard to test ... anyway, Thomas Schmitz is coordinating the bib tests 
so best coordinate with him


Hans


OK, I'm back from my vacation and ready to roll. For coordinating tests 
with bib: bibliographies offer so many different possibilities and so 
many switches that it is impossible to write a complete test suit. I 
will set up a page on the wiki that will just offer a container for a 
bib file and a tex file. When users meet problems in their real-life 
work, I would ask them to boil them down to minimal examples and just 
add them to the page, which I hope to watch on a regular basis.


For the time being, however, I can't do any testing . I tried the latest 
beta and get this error with my minimal bib test files:


line 16 strc-lst.lua:

local concat, insert, remove = table.concat, table.insert, table.remove

-
  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-13 Thread Hans Hagen

Thomas A. Schmitz wrote:


On Sep 13, 2009, at 2:23 PM, Hans Hagen wrote:


line 16 strc-lst.lua:

local concat, insert, remove = table.concat, table.insert, table.remove


Thanks, that helped. One new problem (this used to work three weeks 
ago): the criterium=cite key is not applied. Example:


ok, revert ... (patch to criterum=here)


\def\typesetpubslist
  {\dobeginoflist
   \the\initializebibdefinitions
   \edef\currentlist{pubs}%

\doif{\listparameter\c!criterium}\v!cite{\setuplist[pubs][\c!criterium=\v!here]}%
   \ctxlua{bibtex.hacks.reset(\number\bibtexoncemode)}%

\placestructurelist{pubs}{\listparameter\c!criterium}{\listparameter\c!number}% 
only collects

   \ctxlua{bibtex.hacks.flush(\@@pbsorttype)}%
   \doendoflist}



-
  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-13 Thread Thomas A. Schmitz


On Sep 13, 2009, at 9:34 PM, Hans Hagen wrote:


ok, revert ... (patch to criterum=here)


\def\typesetpubslist
 {\dobeginoflist
  \the\initializebibdefinitions
  \edef\currentlist{pubs}%
\doif{\listparameter\c!criterium}\v!cite{\setuplist[pubs][\c! 
criterium=\v!here]}%

  \ctxlua{bibtex.hacks.reset(\number\bibtexoncemode)}%
\placestructurelist{pubs}{\listparameter\c!criterium}{\listparameter 
\c!number}% only collects

  \ctxlua{bibtex.hacks.flush(\@@pbsorttype)}%
  \doendoflist}


Excellent, works again! Thanks, and I'll look into other things  
tomorrow.


Thomas

___
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-09 Thread Jean Magnan de Bornier
Le 09 septembre à 00:07:50 Hans Hagen pra...@wxs.nl écrit notamment:

| Jean Magnan de Bornier wrote:
|  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

| hard to test ... anyway, Thomas Schmitz is coordinating the bib tests
| so best coordinate with him


Here are two small files:
bbaa.tex
...
\usemodule[bib]

\setupbibtex [database=/home/jean/bbaa]
\setuppublications[sorttype=bbl]
\starttext

\cite[aj]

\completepublications[criterium=all]
\stoptext


and bbaa.bib


@article{aj,
   author= {H. Averch and L. Johnson},
   title = {Behavior of the Firm under Regulatory Constraint},
   journal   = {American Economic Review},
   year  = {1962},
   volume= {52}
}
.

With texexec I get what is expected, not with context (producing an empty
bbl file).

With texexec I have these lines in the .blg file:

Database file #1: /home/jean/bbaa.bib
You've used 1 entry,
2181 wiz_defined-function locations,
499 strings with 3613 characters,
and the built_in function-call counts, 436 in all, are:  

Whereas with context:

I found no \citation commands---while reading file bbaa.aux
I found no \bibdata command---while reading file bbaa.aux
I found no \bibstyle command---while reading file bbaa.aux

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

2009-09-08 Thread Hans Hagen

Jean Magnan de Bornier wrote:

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


hard to test ... anyway, Thomas Schmitz is coordinating the bib tests so 
best coordinate with him


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


Re: [NTG-context] references (mainlanguage)

2009-07-02 Thread Willi Egger

Hi,

On Jul 2, 2009, at 9:17 PM, Alan BRASLAU wrote:


First question:
Should the reference labels follow \mainlanguage?
(in the example below [fr], by chance, \in{figure} might seem OK,
but not \in{chapter}!)


The text included in the braces must be in french \in{chaptre}[ref]



Second question:
How can one \Cap{\in{figure}}?


Hm, do not know, my test do not reveal the expected result


Third question:
Why is the chapter label text blank by default?


If I understand you correctly you want  Chaptre 1 The title of the  
chapter.
In this case I would say, that this uncommon to use at least in Dutch  
and German. In case you need it you have to set the labeltext.


Thanks.
Alan

Minimal example:

\mainlanguage[fr]

\setupinteraction[state=start]
\setuplabeltext[chapter=Chaptre ] % why is this not by default?
\starttext

\chapter[ch:first]{Premier}
\placefigure[here][fig:1-1] {}{}
\chapter[ch:second]{Second}

\in{figure}[fig:1-1] du \in{chapter}[ch:first]\ldots

\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
__ 
_


___
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 (mainlanguage)

2009-07-02 Thread Hans Hagen

Alan BRASLAU wrote:

First question:
Should the reference labels follow \mainlanguage?
(in the example below [fr], by chance, \in{figure} might seem OK,
but not \in{chapter}!)

Second question:
How can one \Cap{\in{figure}}?

Third question:
Why is the chapter label text blank by default?

Thanks.
Alan

Minimal example:

\mainlanguage[fr]

\setupinteraction[state=start]
\setuplabeltext[chapter=Chaptre ] % why is this not by default?
\starttext

\chapter[ch:first]{Premier}
\placefigure[here][fig:1-1] {}{}
\chapter[ch:second]{Second}

\in{figure}[fig:1-1] du \in{chapter}[ch:first]\ldots

\stoptext


actually, in mkiv we have info available that permit ssoem auto label 
approach ... remind me in a couple of weeks



-
  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 with or without interaction

2008-04-06 Thread Hans Hagen
Morgan Brassel wrote:
 Hi everyone,
 
 I noticed what seems to be a lack of coherence when typesetting references 
 with interaction enabled. Look at the example below:
 
 \setupinteraction[state=start]
 \starttext
 See \in{figure}[fig:a]. {\it See \in{figure}[fig:a].}
 \placefigure
[][fig:a]
{A caption.}
{HELLO}
 \stoptext
 
 When interaction is enabled, the two references are typeset bold and 
 upshape. When it's not, the first one is upshape, the other is italic. 
 This can lead to overfull hbox when turning on interaction, and this is 
 quite unintuitive. Is there a reason why it is so in ConTeXt?

\setupinteraction[style=]

-
   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 with or without interaction

2008-04-06 Thread Morgan Brassel


On Sun, 6 Apr 2008, Hans Hagen wrote:

 Morgan Brassel wrote:
 Hi everyone,

 I noticed what seems to be a lack of coherence when typesetting references
 with interaction enabled. Look at the example below:

 \setupinteraction[state=start]
 \starttext
 See \in{figure}[fig:a]. {\it See \in{figure}[fig:a].}
 \placefigure
[][fig:a]
{A caption.}
{HELLO}
 \stoptext

 When interaction is enabled, the two references are typeset bold and
 upshape. When it's not, the first one is upshape, the other is italic.
 This can lead to overfull hbox when turning on interaction, and this is
 quite unintuitive. Is there a reason why it is so in ConTeXt?

 \setupinteraction[style=]

Thank you Hans, and sorry for my post: I should have looked more carefully 
in texshow...

Best regards,
Morgan
___
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 and formulae numbers in upshape

2008-03-15 Thread Wolfgang Schuster
On Fri, 14 Mar 2008 22:30:30 +0100
Morgan Brassel [EMAIL PROTECTED] wrote:

 Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
  What do you want seems to be not possible but you could use the
  following solution although it is better to define a new command.
 
  \let\normalin\in
 
  \definereferenceformat
[figref]
[left=\normal,
 text=\normal Figure,
 command=\normalin]
 
  \let\in\figref
 
  \starttext
 
  \placefigure
[here][fig:det]
{Example}
{\blackrule[width=3cm,height=3cm]}
 
  \it See \in[fig:det] for details.
 
  \stoptext

 Thank you for your help, Wolfgang! I think I'll define a new \ref command 
 similar to the one in LaTeX, with upshape number. But maybe a new option 
 would be welcome? (just as for numberstyle=normal in \setupformulae). What do 
 you think? Is it a bad idea? I'm just curious...

A new command to set the style for the number is OK but you need also
one for the text but this need to be done by Hans because it is not
possible to change the style for the predefined command in, at ... with
the current implementation.

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] References and formulae numbers in upshape

2008-03-15 Thread Jan-Erik Hägglöf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wolfgang Schuster skrev:
 On Fri, 14 Mar 2008 22:30:30 +0100
 Morgan Brassel [EMAIL PROTECTED] wrote:
 
 Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
 What do you want seems to be not possible but you could use the
 following solution although it is better to define a new command.

 \let\normalin\in

 \definereferenceformat
   [figref]
   [left=\normal,
text=\normal Figure,
command=\normalin]

 \let\in\figref

 \starttext

 \placefigure
   [here][fig:det]
   {Example}
   {\blackrule[width=3cm,height=3cm]}

 \it See \in[fig:det] for details.

 \stoptext
 
 Thank you for your help, Wolfgang! I think I'll define a new \ref command 
 similar to the one in LaTeX, with upshape number. But maybe a new option 
 would be welcome? (just as for numberstyle=normal in \setupformulae). What 
 do 
 you think? Is it a bad idea? I'm just curious...
 
 A new command to set the style for the number is OK but you need also
 one for the text but this need to be done by Hans because it is not
 possible to change the style for the predefined command in, at ... with
 the current implementation.
 
 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
 ___
 
Hi!

As a new Context user (former LateX) from Sweden according to the above
discussion about references style to figures. I have a following
question. How do I customize the appearance of the figure text, I mean
for example:
Under every figure there is : Figure 1, Figure 2, Figure 3 and so on.
How do I make it like this : Picture 1, Picture 2, Picture 3 or
Picture 1a .1band such.?
In the swedish translation there is Figur 1...
I understand that it has to do with defining my own kind of \definefloat
or similar.

Best Regards

Janneman

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E
QuGKQMpRfcnoMSU0lXkVE28=
=wSRD
-END PGP SIGNATURE-
___
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 and formulae numbers in upshape

2008-03-15 Thread Johan Sandblom
I believe the easy way is

\mainlanguage{sv]

which also has lots of other useful side effects.

Johan, also from Sweden

2008/3/15, Jan-Erik Hägglöf [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  Wolfgang Schuster skrev:

  On Fri, 14 Mar 2008 22:30:30 +0100
   Morgan Brassel [EMAIL PROTECTED] wrote:
  
   Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
   What do you want seems to be not possible but you could use the
   following solution although it is better to define a new command.
  
   \let\normalin\in
  
   \definereferenceformat
 [figref]
 [left=\normal,
  text=\normal Figure,
  command=\normalin]
  
   \let\in\figref
  
   \starttext
  
   \placefigure
 [here][fig:det]
 {Example}
 {\blackrule[width=3cm,height=3cm]}
  
   \it See \in[fig:det] for details.
  
   \stoptext
  
   Thank you for your help, Wolfgang! I think I'll define a new \ref command
   similar to the one in LaTeX, with upshape number. But maybe a new option
   would be welcome? (just as for numberstyle=normal in \setupformulae). 
 What do
   you think? Is it a bad idea? I'm just curious...
  
   A new command to set the style for the number is OK but you need also
   one for the text but this need to be done by Hans because it is not
   possible to change the style for the predefined command in, at ... with
   the current implementation.
  
   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
   
 ___
  

 Hi!

  As a new Context user (former LateX) from Sweden according to the above
  discussion about references style to figures. I have a following
  question. How do I customize the appearance of the figure text, I mean
  for example:
  Under every figure there is : Figure 1, Figure 2, Figure 3 and so on.
  How do I make it like this : Picture 1, Picture 2, Picture 3 or
  Picture 1a .1band such.?
  In the swedish translation there is Figur 1...
  I understand that it has to do with defining my own kind of \definefloat
  or similar.

  Best Regards

  Janneman

  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.6 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

  iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E
  QuGKQMpRfcnoMSU0lXkVE28=
  =wSRD
  -END PGP SIGNATURE-

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



-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
What is wanted is not the will to believe, but the
will to find out, which is the exact opposite
- Bertrand Russell
___
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 and formulae numbers in upshape

2008-03-15 Thread Jan-Erik Hägglöf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johan Sandblom skrev:
 I believe the easy way is
 
 \mainlanguage{sv]
 
 which also has lots of other useful side effects.
 
 Johan, also from Sweden
 
 2008/3/15, Jan-Erik Hägglöf [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  Wolfgang Schuster skrev:

 On Fri, 14 Mar 2008 22:30:30 +0100
   Morgan Brassel [EMAIL PROTECTED] wrote:
  
   Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
   What do you want seems to be not possible but you could use the
   following solution although it is better to define a new command.
  
   \let\normalin\in
  
   \definereferenceformat
 [figref]
 [left=\normal,
  text=\normal Figure,
  command=\normalin]
  
   \let\in\figref
  
   \starttext
  
   \placefigure
 [here][fig:det]
 {Example}
 {\blackrule[width=3cm,height=3cm]}
  
   \it See \in[fig:det] for details.
  
   \stoptext
  
   Thank you for your help, Wolfgang! I think I'll define a new \ref command
   similar to the one in LaTeX, with upshape number. But maybe a new option
   would be welcome? (just as for numberstyle=normal in \setupformulae). 
 What do
   you think? Is it a bad idea? I'm just curious...
  
   A new command to set the style for the number is OK but you need also
   one for the text but this need to be done by Hans because it is not
   possible to change the style for the predefined command in, at ... with
   the current implementation.
  
   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
   
 ___
  

 Hi!

  As a new Context user (former LateX) from Sweden according to the above
  discussion about references style to figures. I have a following
  question. How do I customize the appearance of the figure text, I mean
  for example:
  Under every figure there is : Figure 1, Figure 2, Figure 3 and so on.
  How do I make it like this : Picture 1, Picture 2, Picture 3 or
  Picture 1a .1band such.?
  In the swedish translation there is Figur 1...
  I understand that it has to do with defining my own kind of \definefloat
  or similar.

  Best Regards

  Janneman

  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.6 (GNU/Linux)
  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

  iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E
  QuGKQMpRfcnoMSU0lXkVE28=
  =wSRD
  -END PGP SIGNATURE-

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

 
 
Good to have more pals from sweden!

Thanks for the answer, actually it was not what I meant.
I already use \mainlanguage[sv], but how do you customize so it appears
like: Bild 1 , Bild 2, .. or  whatever 1 whatever 2 .  or maybe
if you want to referencing to subfigures like whatever 1a  whatever 1b ?

Thanks in Advance

Best Regards

Janneman -- Örebro - sweden


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH25Kb/zRis+sQPvARApFAAKC+TUUkQObvJwQQPvkjNP86tCH3CgCgjRZI
mcVAhziSRr0JkjOU2otjqT4=
=Eo0R
-END PGP SIGNATURE-
___
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 and formulae numbers in upshape

2008-03-15 Thread Wolfgang Schuster
 Good to have more pals from sweden!
 
 Thanks for the answer, actually it was not what I meant.
 I already use \mainlanguage[sv], but how do you customize so it appears
 like: Bild 1 , Bild 2, .. or  whatever 1 whatever 2 .  or maybe

\setuplabeltext[sv][figure=Bild ]

 if you want to referencing to subfigures like whatever 1a  whatever 1b ?

\placefigure[here][fig:dummy]
  {\startcombination[2*1]
 {\externalfigure[dummy]}{a}
 {\externalfigure[dummy]}{b}
   \stopcombination}

See \in{figure}{a}[fig:dummy] and \in{figure}{b}[fig:dummy].

Greetings
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] References and formulae numbers in upshape

2008-03-15 Thread Jan-Erik Hägglöf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wolfgang Schuster skrev:
 Good to have more pals from sweden!

 Thanks for the answer, actually it was not what I meant.
 I already use \mainlanguage[sv], but how do you customize so it appears
 like: Bild 1 , Bild 2, .. or  whatever 1 whatever 2 .  or maybe
 
 \setuplabeltext[sv][figure=Bild ]
 
 if you want to referencing to subfigures like whatever 1a  whatever 1b ?
 
 \placefigure[here][fig:dummy]
   {\startcombination[2*1]
  {\externalfigure[dummy]}{a}
  {\externalfigure[dummy]}{b}
\stopcombination}
 
 See \in{figure}{a}[fig:dummy] and \in{figure}{b}[fig:dummy].
 
 Greetings
 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
 ___
 

Just Great!
Many thanks, it is good to to have you around!

Janneman - Örebro - Sweden




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH2+go/zRis+sQPvARAgszAKDEanNAprgNVuj49C4432GlBEMgIACg4qp7
aKqRPDNCxystR4CtZpnXH10=
=Im34
-END PGP SIGNATURE-
___
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 and formulae numbers in upshape

2008-03-14 Thread Wolfgang Schuster
On Fri, 14 Mar 2008 03:49:19 +0100
Morgan Brassel [EMAIL PROTECTED] wrote:

 
   \definereferenceformat
[eqref]
[left=\bgroup\normal(,
 right=)\egroup]
 
  This was my first attempt, but it gave some trouble. I need to go back and
  check.
 
  Aditya
 
 I now realize that my first question was not very clear: what I need in fact 
 is to typeset *all* references obtained by the \in command in upshape. For 
 example, in {\it See \in{Figure}[fig:det] for details.}, I would like to 
 see 'Figure 1' in upshape and the rest in italic. I tried:
 
 \setupreferencing
   [left=\bgroup\normal,
right=\egroup]
 
 without success. Is there a way to achieve this without defining new 
 reference 
 formats?

What do you want seems to be not possible but you could use the
following solution although it is better to define a new command.

\let\normalin\in

\definereferenceformat
  [figref]
  [left=\normal,
   text=\normal Figure,
   command=\normalin]

\let\in\figref

\starttext

\placefigure
  [here][fig:det]
  {Example}
  {\blackrule[width=3cm,height=3cm]}

\it See \in[fig:det] for details.

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


Re: [NTG-context] References and formulae numbers in upshape

2008-03-14 Thread Morgan Brassel
Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
 What do you want seems to be not possible but you could use the
 following solution although it is better to define a new command.

 \let\normalin\in

 \definereferenceformat
   [figref]
   [left=\normal,
text=\normal Figure,
command=\normalin]

 \let\in\figref

 \starttext

 \placefigure
   [here][fig:det]
   {Example}
   {\blackrule[width=3cm,height=3cm]}

 \it See \in[fig:det] for details.

 \stoptext

 Wolfgang

Thank you for your help, Wolfgang! I think I'll define a new \ref command 
similar to the one in LaTeX, with upshape number. But maybe a new option 
would be welcome? (just as for numberstyle=normal in \setupformulae). What do 
you think? Is it a bad idea? I'm just curious...

Morgan
___
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 and formulae numbers in upshape

2008-03-13 Thread Aditya Mahajan
On Thu, 13 Mar 2008, Morgan Brassel wrote:


 Hi everyone,

 I'm looking for an easy way to typeset all references produced by the \in
 command in upshape format (even in an italic paragraph for example). I
 tried with the 'left' option of \definereferenceformat, but without good
 results.

 I would also like to typeset all formulae numbers in upshape. I know
 Aditya posted about this a long time ago but I can't find the thread
 any more...

I also could not get things to work with \definereferenceformat. 
This is what I use:

\definereferenceformat  [doeqref]   [left=(,right=)]
\def\eqref[#1]{{\normal \doeqref[#1]}}

And then \eqref[tag]..

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] References and formulae numbers in upshape

2008-03-13 Thread Morgan Brassel
Le Thursday 13 March 2008 13:03:22 Aditya Mahajan, vous avez écrit :
 On Thu, 13 Mar 2008, Morgan Brassel wrote:
  Hi everyone,
 
  I'm looking for an easy way to typeset all references produced by the \in
  command in upshape format (even in an italic paragraph for example). I
  tried with the 'left' option of \definereferenceformat, but without good
  results.
 
  I would also like to typeset all formulae numbers in upshape. I know
  Aditya posted about this a long time ago but I can't find the thread
  any more...

 I also could not get things to work with \definereferenceformat.
 This is what I use:

 \definereferenceformat  [doeqref]   [left=(,right=)]
 \def\eqref[#1]{{\normal \doeqref[#1]}}

 And then \eqref[tag]..

 Aditya

Thank you, I'll use this too! It could be useful to add an option to 
\definereferenceformat to get the same result. Is it hard to implement?

And concerning the equation tag itself, I mean the one introduced by 
\placeformula, is there a way to have it always typeset in upshape?

Morgan
___
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 and formulae numbers in upshape

2008-03-13 Thread Wolfgang Schuster
On Thu, 13 Mar 2008 08:03:22 -0400 (EDT)
Aditya Mahajan [EMAIL PROTECTED] wrote:

 On Thu, 13 Mar 2008, Morgan Brassel wrote:
 
 
  Hi everyone,
 
  I'm looking for an easy way to typeset all references produced by the \in
  command in upshape format (even in an italic paragraph for example). I
  tried with the 'left' option of \definereferenceformat, but without good
  results.
 
  I would also like to typeset all formulae numbers in upshape. I know
  Aditya posted about this a long time ago but I can't find the thread
  any more...
 
 I also could not get things to work with \definereferenceformat. 
 This is what I use:
 
 \definereferenceformat  [doeqref]   [left=(,right=)]
 \def\eqref[#1]{{\normal \doeqref[#1]}}

Why not

\definereferenceformat
  [eqref]
  [left=\normal(,
   right=)]

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] References and formulae numbers in upshape

2008-03-13 Thread Morgan Brassel
Le Thursday 13 March 2008 19:16:02 Wolfgang Schuster, vous avez écrit :
 On Thu, 13 Mar 2008 08:03:22 -0400 (EDT)

 Aditya Mahajan [EMAIL PROTECTED] wrote:
  On Thu, 13 Mar 2008, Morgan Brassel wrote:
   Hi everyone,
  
   I'm looking for an easy way to typeset all references produced by the
   \in command in upshape format (even in an italic paragraph for
   example). I tried with the 'left' option of \definereferenceformat, but
   without good results.
  
   I would also like to typeset all formulae numbers in upshape. I know
   Aditya posted about this a long time ago but I can't find the thread
   any more...
 
  I also could not get things to work with \definereferenceformat.
  This is what I use:
 
  \definereferenceformat  [doeqref]   [left=(,right=)]
  \def\eqref[#1]{{\normal \doeqref[#1]}}

 Why not

 \definereferenceformat
   [eqref]
   [left=\normal(,
right=)]

 Wolfgang

Is it so simple, really? Great! But can't this have some side effects in 
particular cases? I mean, the {} around \normal aren't needed here?

Well, it seems ok for me in slanted enumerations for theorems and such.
Thank you!

Morgan
___
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 and formulae numbers in upshape

2008-03-13 Thread Wolfgang Schuster
On Thu, 13 Mar 2008 19:44:06 +0100
Morgan Brassel [EMAIL PROTECTED] wrote:

 Le Thursday 13 March 2008 19:16:02 Wolfgang Schuster, vous avez écrit :
  On Thu, 13 Mar 2008 08:03:22 -0400 (EDT)
 
  Aditya Mahajan [EMAIL PROTECTED] wrote:
   On Thu, 13 Mar 2008, Morgan Brassel wrote:
Hi everyone,
   
I'm looking for an easy way to typeset all references produced by the
\in command in upshape format (even in an italic paragraph for
example). I tried with the 'left' option of \definereferenceformat, but
without good results.
   
I would also like to typeset all formulae numbers in upshape. I know
Aditya posted about this a long time ago but I can't find the thread
any more...
  
   I also could not get things to work with \definereferenceformat.
   This is what I use:
  
   \definereferenceformat  [doeqref]   [left=(,right=)]
   \def\eqref[#1]{{\normal \doeqref[#1]}}
 
  Why not
 
  \definereferenceformat
[eqref]
[left=\normal(,
 right=)]
 
  Wolfgang
 
 Is it so simple, really? Great! But can't this have some side effects in 
 particular cases? I mean, the {} around \normal aren't needed here?

Not in this case because references are grouped by themselve but it is
better to use grouping.

\definereferenceformat
  [eqref]
  [left=\bgroup\normal(,
   right=)\egroup]

 Well, it seems ok for me in slanted enumerations for theorems and such.

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] References and formulae numbers in upshape

2008-03-13 Thread Aditya Mahajan

On Thu, 13 Mar 2008, Wolfgang Schuster wrote:


On Thu, 13 Mar 2008 19:44:06 +0100
Morgan Brassel [EMAIL PROTECTED] wrote:


Le Thursday 13 March 2008 19:16:02 Wolfgang Schuster, vous avez écrit :

On Thu, 13 Mar 2008 08:03:22 -0400 (EDT)

Aditya Mahajan [EMAIL PROTECTED] wrote:

On Thu, 13 Mar 2008, Morgan Brassel wrote:

Hi everyone,

I'm looking for an easy way to typeset all references produced by the
\in command in upshape format (even in an italic paragraph for
example). I tried with the 'left' option of \definereferenceformat, but
without good results.

I would also like to typeset all formulae numbers in upshape. I know
Aditya posted about this a long time ago but I can't find the thread
any more...


I also could not get things to work with \definereferenceformat.
This is what I use:

\definereferenceformat  [doeqref]   [left=(,right=)]
\def\eqref[#1]{{\normal \doeqref[#1]}}


Why not

\definereferenceformat
  [eqref]
  [left=\normal(,
   right=)]

Wolfgang


Is it so simple, really? Great! But can't this have some side effects in
particular cases? I mean, the {} around \normal aren't needed here?


Not in this case because references are grouped by themselve but it is
better to use grouping.

\definereferenceformat
 [eqref]
 [left=\bgroup\normal(,
  right=)\egroup]


This was my first attempt, but it gave some trouble. I need to go back and 
check.


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] References and formulae numbers in upshape

2008-03-13 Thread Aditya Mahajan

On Thu, 13 Mar 2008, Morgan Brassel wrote:


Le Thursday 13 March 2008 13:03:22 Aditya Mahajan, vous avez écrit :

On Thu, 13 Mar 2008, Morgan Brassel wrote:

Hi everyone,

I'm looking for an easy way to typeset all references produced by the \in
command in upshape format (even in an italic paragraph for example). I
tried with the 'left' option of \definereferenceformat, but without good
results.

I would also like to typeset all formulae numbers in upshape. I know
Aditya posted about this a long time ago but I can't find the thread
any more...


I also could not get things to work with \definereferenceformat.
This is what I use:

\definereferenceformat  [doeqref]   [left=(,right=)]
\def\eqref[#1]{{\normal \doeqref[#1]}}

And then \eqref[tag]..

Aditya


Thank you, I'll use this too! It could be useful to add an option to
\definereferenceformat to get the same result. Is it hard to implement?

And concerning the equation tag itself, I mean the one introduced by
\placeformula, is there a way to have it always typeset in upshape?


\setupformulas[numberstyle=normal]

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] References and formulae numbers in upshape

2008-03-13 Thread Morgan Brassel

  \definereferenceformat
   [eqref]
   [left=\bgroup\normal(,
right=)\egroup]

 This was my first attempt, but it gave some trouble. I need to go back and
 check.

 Aditya

I now realize that my first question was not very clear: what I need in fact 
is to typeset *all* references obtained by the \in command in upshape. For 
example, in {\it See \in{Figure}[fig:det] for details.}, I would like to 
see 'Figure 1' in upshape and the rest in italic. I tried:

\setupreferencing
  [left=\bgroup\normal,
   right=\egroup]

without success. Is there a way to achieve this without defining new reference 
formats?

Thanks in advance,
Morgan
___
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 title in) Norwegian

2008-02-24 Thread Henning Hraban Ramm
Am 2008-02-22 um 08:26 schrieb Trond Lossius:

 I was just about to ask how to do the same concerning the list of
 contents when I realized that it automagically translates itself  
 when using
 \mainlanguage[no]

I remember a discussion whether ConTeXt's Norwegian is Bokmål or  
Nynorsk (I don't understand any and don't know the difference) - is  
this matter settled? We should add this information in the Wiki at
http://wiki.contextgarden.net/Language_Codes

The same goes for Spanish (Catalan, other...)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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 title in) Norwegian

2008-02-24 Thread Arthur Reutenauer
 I remember a discussion whether ConTeXt's Norwegian is Bokmål or  
 Nynorsk (I don't understand any and don't know the difference)

  Yes, over one year ago.  The discussion started on the dev-context
list and subsequently made a brief appearance here
(http://www.ntg.nl/pipermail/ntg-context/2007/023834.html).

  Not much has been done since then; it sure would be good to read over
that discussion and sum it up in a patch.

 The same goes for Spanish (Catalan, other...)

  The problem is different here: if you say Spanish it really means
Castilian (ISO 639-1 'es', ISO 639-2 and 639-3 'spa'), not Catalan (nor
Galician or Asturian, for that matter) -- unless otherwise specified, of
course.  Norwegian, on the contrary, is really ambiguous and can be
used for both the official languages of Norway (although in the mind of
many people it will mean Bokmål alone, I suspect).

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
___


Re: [NTG-context] References title in Norwegian

2008-02-21 Thread Willi Egger
Hi Trond,

Intreaguing question ...

\mainlanguage[no]
\setupheadtext[no][pubs=Literatur]

Willi

On Feb 21, 2008, at 6:41 PM, Trond Lossius wrote:

 Hi,

 I'm writing a publication in Norwegian containing citations and
 references. I use

 \completepublications[criterium=all]

 at the end of the tex file to get the references. The only problem is
 that the title of it when typeset show up as References in  
 English. Is
 it possible somehow to substitute that for the Norwgeian equivalent
 Litteratur?

 I'm using the MacTex distro from http://www.tug.org/mactex/


 Thanks a lot,
 Trond
 __ 
 _
 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
 __ 
 _

BOEDE
Book and Electronic Document Engineering
Willi Egger
[EMAIL PROTECTED]
KvK 17138708



___
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 title in Norwegian

2008-02-21 Thread Jean Magnan de Bornier
Le 21 février à 18:41:12 Trond Lossius [EMAIL PROTECTED] écrit notamment:

| Hi,

| I'm writing a publication in Norwegian containing citations and 
| references. I use

| \completepublications[criterium=all]

| at the end of the tex file to get the references. The only problem is 
| that the title of it when typeset show up as References in English. Is 
| it possible somehow to substitute that for the Norwgeian equivalent 
| Litteratur?

| I'm using the MacTex distro from http://www.tug.org/mactex/

For a french equivalent to your question, I have this in my preamble:

\setupheadtext[fr][pubs={Références}]  %, with of course:
\mainlanguage[fr]

hth,
-- 
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] References title in Norwegian

2008-02-21 Thread Charles Doherty

On 21 Feb 2008, at 17:41, Trond Lossius wrote:

 \completepublications[criterium=all]

Dear Trond,

Put the line below before \starttext

\setupheadtext[en][pubs=Litteratur]

Best wishes,
Charlie



 at the end of the tex file to get the references. The only problem is
 that the title of it when typeset show up as References in  
 English. Is
 it possible somehow to substitute that for the Norwgeian equivalent
 Litteratur?

___
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 title in Norwegian

2008-02-21 Thread Trond Lossius
Thanks, this works.

I was just about to ask how to do the same concerning the list of 
contents when I realized that it automagically translates itself when using

\mainlanguage[no]

Best,
Trond


  \mainlanguage[no]
  \setupheadtext[no][pubs=Litteratur]
 
  I'm writing a publication in Norwegian containing citations and
  references. I use
 
  \completepublications[criterium=all]
 
  at the end of the tex file to get the references. The only problem is
  that the title of it when typeset show up as References in English. Is
  it possible somehow to substitute that for the Norwgeian equivalent
___
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 formatting (m-bib related problems)

2006-04-01 Thread Renaud AUBIN

Hi Taco,

Taco Hoekwater a écrit :

About the overall formatting: have you tried using num-fr
together with \setuppublications[refcommand=authoryears] ?
  

Ok, formatting is better with
\setuppublications[alternative=num-fr,sorttype=bbl,numbering=yes]

I'll try to have a look at your labelling request today or
tomorrow, but I cannot promise.

I have not checked but I think I have already submitted this problem 2
or 3 months ago when I began to play with ConTeXt  m-bib... To all: Am
I the only one who want to do this kind of bib formatting ??? I think
LaTeX + bibTeX do that by default with apa style... IMHO, it's a key
feature...

Cheers,

Renaud


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] References formatting (m-bib related problems)

2006-04-01 Thread Taco Hoekwater
Renaud AUBIN wrote:
 I have not checked but I think I have already submitted this problem 2
 or 3 months ago when I began to play with ConTeXt  m-bib... To all: Am
 I the only one who want to do this kind of bib formatting ??? I think
 LaTeX + bibTeX do that by default with apa style... IMHO, it's a key
 feature...

If you want the bib module to do it's formatting a certain way, send
me an example of input  desired output. I do not know what LaTeX +
bibTeX do that by default with apa style, nor do I especially want
to learn precisely what it does, just so I can mimic it for the bib
module in case someone needs ConTeXt to behave exactly like LaTeX.

The formatting in bibl-apa is taken from the guidelines on
the http://www.apastyle.org website. If that is actually wrong,
I do not know where to look instead.

Greetings, Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] References formatting (m-bib related problems)

2006-04-01 Thread Renaud AUBIN
Taco Hoekwater a écrit :

If you want the bib module to do it's formatting a certain way, send
me an example of input  desired output.

Ok, see http://renojrl.lrv.uvsq.fr/bibsample.pdf (extracted from an old
report made in 2003 with a hacked bst based on
http://www.irit.fr/~Gael.Jaffre/LOGICIELS/LATEX_BIBTEX/MODIF_GAEL/frcomplet.bst)

I have just used normal \cite calls + a standard bib file...

 I do not know what LaTeX +
bibTeX do that by default with apa style, nor do I especially want
to learn precisely what it does, just so I can mimic it for the bib
module in case someone needs ConTeXt to behave exactly like LaTeX.

  

I have checked, this is not at all the default behaviour of
LaTeX+bibTeX, sorry...

The formatting in bibl-apa is taken from the guidelines on
the http://www.apastyle.org website. If that is actually wrong,
I do not know where to look instead.

  

You're right, using guidelines is the best approach. Ok, my wishes are
not in respect with the standards.

Greetings, Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] References formatting (m-bib related problems)

2006-03-31 Thread Renaud AUBIN




It's confirmed: same problems with t-bib-2006.03.13.zip

( Please Taco, is it possible to remove leftover "year needed" messages
? )

Renaud AUBIN a crit:

  Hi all,


At first, I use m-bib-beta-20060208.zip. Up to now, I used:

\setupbibtex[database=biblio,sort=author]
\setuppublications[alternative=num-fr,sorttype=bbl,numbering=yes]

%% In order to format Names with small capitals:
\def\mynormalauthor#1#2#3#4#5%
{\bibdoif{#1}{#1\bibalternative{firstnamesep}}%
\bibdoif{#2}{#2\bibalternative{vonsep}}%
\bgroup\sc#3\egroup\bibalternative{surnamesep}\unskip
\bibdoif{#5}{#5\unskip}}

\setuppublicationlist
  [artauthor=\mynormalauthor,
   editor=\mynormalauthor,
   author=\mynormalauthor]


Everything works fine, but now I would use apa-fr and I have some
problems. After discussing this topic with Taco on #context, I have
tried the following code:
% \cite[name00] should return [Name, 2000]
\unprotect\def\mybibcommand#1{\expanded{\cite[\@@pbk]}~~} \protect
\setupbibtex[database=biblio,sort=author]
\setuppublications[alternative=apa,sorttype=bbl,numbercommand=\mybibcommand,
numbering=yes,autohang=yes]

\setupcite[authoryears][left={[},right={]}]

So, just forget to format the authors with normalauthor  small
capitals It's ok for the cite command but labels of the references
listing is wrong (each label are the same and correspond in fact to the
last entry ! )... Any idea ???

Add to this the fact that I don't like the formatting of the year -
(1999). Since I like the formatting applied with num-fr, how to
reproduce it with apa-fr.
(I have tested apa and apa-fr and it gives same results in either)

Cheers,

Renaud





  
  

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
  




___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] References formatting (m-bib related problems)

2006-03-31 Thread Taco Hoekwater
Renaud AUBIN wrote:
 It's confirmed: same problems with t-bib-2006.03.13.zip

About the overall formatting: have you tried using num-fr
together with \setuppublications[refcommand=authoryears] ?

I'll try to have a look at your labelling request today or
tomorrow, but I cannot promise.

 ( Please Taco, is it possible to remove leftover year needed messages ? )

The are gone in the version I sent Hans for the next
context release (that will be real soon now, i hope)

Cheers,

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] References across projects, products, and components

2005-11-25 Thread Hans Hagen

David Arnold wrote:


All,

Where can I read about references that span projects, products, and  
components?


references do span them (but you can use prefixes to create namespaces 
(at section levels) so 'prefix' is the magic word here


Hans


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] references to external documents

2003-11-28 Thread Hans Hagen
At 12:55 26/11/2003, Pawel Jackowski na Onet wrote:
Hi all!

I'm working with huge XML documents which are compiled to PDF (with ConTeXt)
and converted to HTML (with XSLT and others). These XML documents contain
references to external files (images). References are mapped to paths with
XML code; i.e. imgref  id=cow  src=./images/cow.png/. Translating such
a map to ConTeXt is rather obvious. But how to implement simmilar mechanism
for external XML documents? In example I would like to use command
\useexternaldocument[intro][introduction.xml] and than process
'introduction.xml' on the base of is ID reference ('intro').
Is it possible? Does ConTeXt suport referencing documents as well as
figures?
you can use this:

\definefilesynonym[indirect][whatever.xml]

\starttext

\processXMLfile{\truefilename{indirect}}

\stoptext

given that the whatever.xml file is there

Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context