Re: [NTG-context] replacement for \getcitedata

2016-07-12 Thread Michael Eidenbenz
thanks.
but i'm encountering my old problem:

\externalfigure[\cite[file][Eidenbenz2016]]

gives me an error.
Do I need a lua approach here?

Michael



> On 12 Jul 2016, at 16:09, Alan BRASLAU  wrote:
> 
> On Tue, 12 Jul 2016 10:51:06 +0200
> Michael Eidenbenz  wrote:
> 
>> is there a way to extract data from the bib database to use it in a
>> macro?
>> 
>> something like a replacement for the old \getcitedata
> 
> \cite[title] [Eidenbenz2016]
> 
> (Any field can be obtained with this mechanism.)
> 
> 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] replacement for \getcitedata

2016-07-12 Thread Alan BRASLAU
On Tue, 12 Jul 2016 20:39:27 +0200
Michael Eidenbenz  wrote:

> but i'm encountering my old problem:
> 
> \externalfigure[\cite[file][Eidenbenz2016]]
> 
> gives me an error.

This is not the right approach, as explained earlier.

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] replacement for \getcitedata

2016-07-12 Thread Alan BRASLAU
On Tue, 12 Jul 2016 10:51:06 +0200
Michael Eidenbenz  wrote:

> is there a way to extract data from the bib database to use it in a
> macro?
> 
> something like a replacement for the old \getcitedata

\cite[title] [Eidenbenz2016]

(Any field can be obtained with this mechanism.)

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] Replacement with a predefined table?

2013-09-11 Thread Hans Hagen

On 9/11/2013 7:10 PM, H. Özoguz wrote:

Is the following possible in ConText?

I want to define a table like this:

1: Hans
2: Wolfgang
3: Aditja
4: Marco


in which I can look up by a function, which allows the following command:

\name{number}. E.g. This is \name{3} should compile to This is Aditja.

For my purpose, the table would have 114 entries.


\startluacode

document.SomeNames = {
Hans,
Wolfgang,
Aditja,
Marco,
}

\stopluacode

\def\SomeName#1{\cldcontext{document.SomeNames[\number#1]}}

\starttext

\SomeName{1}

\stoptext

-
  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] replacement of \...@. ?

2009-05-18 Thread Wolfgang Schuster


Am 15.05.2009 um 22:11 schrieb Peter Münster:


On Thu, 14 May 2009, Wolfgang Schuster wrote:

@Hans: There is something wrong with \nonfrenchspacing (or  
spacefactor) in mkiv.


Indeed. See also: http://tracker.luatex.org/view.php?id=117



Another test file, as you can see (ConTeXt and Hans extended plain  
TeX) it happens

only with OT fonts but not with Type1.

\font\one=cmr10
\font\two=file:texgyrepagella-regular

\bgroup

A A A

\primitive\sfcode`A=2000

A A A

\egroup

\bgroup\one

A A A

\primitive\sfcode`A=2000

A A A

\egroup

\bgroup\two

A A A

\primitive\sfcode`A=2000

A A A

\egroup

\bye

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] replacement of \...@. ?

2009-05-15 Thread Peter Münster
On Thu, 14 May 2009, Wolfgang Schuster wrote:

 @Hans: There is something wrong with \nonfrenchspacing (or spacefactor) in
 mkiv.

Indeed. See also: http://tracker.luatex.org/view.php?id=117
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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] replacement of \...@. ?

2009-05-14 Thread Martin Schröder
2009/5/14, Yue Wang yuleo...@gmail.com:
 I think in Professional typesetting, the same amount of space should
  be left for all full stop/comma/whaever.

Not always: http://en.wikipedia.org/wiki/French_spacing

Best
   Martin
___
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] replacement of \...@. ?

2009-05-14 Thread Wolfgang Schuster


Am 14.05.2009 um 03:51 schrieb Ryo Furue:


Hi ConTeXt users,

I'm wondering what's the ConTeXt version
of LaTeX's \...@.  (which indicates an end-of-sentence
period).  I can define

 \d...@{\spacefactor1000}

and use it, but if there is an official version
I'd like to know.


... USA.\ ...

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] replacement of \...@. ?

2009-05-14 Thread Hans Hagen

Yue Wang wrote:

On Thu, May 14, 2009 at 9:51 AM, Ryo Furue fu...@hawaii.edu wrote:

Hi ConTeXt users,

I'm wondering what's the ConTeXt version
of LaTeX's \...@.  (which indicates an end-of-sentence
period).  I can define

 \d...@{\spacefactor1000}

and use it, but if there is an official version
I'd like to know.



I think in Professional typesetting, the same amount of space should
be left for all full stop/comma/whaever.
You'd better change TeX's default behavior.


huh?

each language can has its own rules ... spacing after period or comma is 
one, but also think of quotes in quotations etc; and, the french have 
spacing before and after : ; . , (it has always been a selling point for 
tex to be able to deal with it)


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] replacement of \...@. ?

2009-05-14 Thread Khaled Hosny
On Thu, May 14, 2009 at 09:04:51AM +0200, Hans Hagen wrote:
 Yue Wang wrote:
 On Thu, May 14, 2009 at 9:51 AM, Ryo Furue fu...@hawaii.edu wrote:
 Hi ConTeXt users,

 I'm wondering what's the ConTeXt version
 of LaTeX's \...@.  (which indicates an end-of-sentence
 period).  I can define

  \d...@{\spacefactor1000}

 and use it, but if there is an official version
 I'd like to know.


 I think in Professional typesetting, the same amount of space should
 be left for all full stop/comma/whaever.
 You'd better change TeX's default behavior.

 huh?

 each language can has its own rules ... spacing after period or comma is  
 one, but also think of quotes in quotations etc; and, the french have  
 spacing before and after : ; . , (it has always been a selling point for  
 tex to be able to deal with it)

Not only French, it is also the case for traditional Arabic typesetting,
though people tend to follow the English rules these days.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital 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] replacement of \...@. ?

2009-05-14 Thread Ryo Furue
|  I'm wondering what's the ConTeXt version
|  of LaTeX's \...@.  (which indicates an end-of-sentence
|  period).  I can define
| 
|   \d...@{\spacefactor1000}
| 
|  and use it, but if there is an official version
|  I'd like to know.
| 
| ... USA.\ ...

Thanks, but that doesn't change the spacing, in my environment
at least.  (I use texlive-context on the testing distribution
of Debian.)

I think the command \  inserts an inter-word spacing,
not an inter-sentence spacing.  You can compare whether

   USA.\ This is another sentence

gives the same result as

   USA\spacefactor1000. This is another sentence

I know there is a typographic style where the inter-word
and inter-sentence spacings are the same.  But, by default,
ConTeXt uses a larger inter-sentence spacing than the
inter-word spacing.  In such a case, there has to be a means
to indicate an inter-sentence spacing when a sentence ends
with a capital letter and a period.

Regards,
Ryo
___
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] replacement of \...@. ?

2009-05-14 Thread Wolfgang Schuster


Am 14.05.2009 um 21:59 schrieb Ryo Furue:


I know there is a typographic style where the inter-word
and inter-sentence spacings are the same.  But, by default,
ConTeXt uses a larger inter-sentence spacing than the
inter-word spacing.  In such a case, there has to be a means
to indicate an inter-sentence spacing when a sentence ends
with a capital letter and a period.


The TeXbook suggest to use \null before the period,
e.g. USA\null. This is another sentence but I would prefer
here LaTeX's \...@.

@Hans: There is something wrong with \nonfrenchspacing (or  
spacefactor) in mkiv.


\starttext

USA. This is another sentence

USA.\ This is another sentence

USA\null. This is another sentence

USA\spacefactor1000. This is another sentence

\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] replacement of \...@. ?

2009-05-14 Thread Peter Münster
On Thu, 14 May 2009, Hans Hagen wrote:

 each language can has its own rules ... spacing after period or comma is one,
 but also think of quotes in quotations etc; and, the french have spacing
 before and after : ; . , (it has always been a selling point for tex to be
 able to deal with it)

Hello Hans,

Could you please comment on this message:
http://archive.contextgarden.net/message/20080718.192231.d8036759.en.html

It seems, that the contents of this message is still up-to-date.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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] replacement of \...@. ?

2009-05-13 Thread Yue Wang
On Thu, May 14, 2009 at 9:51 AM, Ryo Furue fu...@hawaii.edu wrote:
 Hi ConTeXt users,

 I'm wondering what's the ConTeXt version
 of LaTeX's \...@.  (which indicates an end-of-sentence
 period).  I can define

  \d...@{\spacefactor1000}

 and use it, but if there is an official version
 I'd like to know.


I think in Professional typesetting, the same amount of space should
be left for all full stop/comma/whaever.
You'd better change TeX's default behavior.

 Regards,
 Ryo
 ___
 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] replacement for \nolist ?

2009-05-05 Thread Henning Hraban Ramm

Am 2009-05-05 um 01:07 schrieb Kevin D. Robbins:


I asked this one last week. Wolfgang provided the (one?) answer:
http://archive.contextgarden.net/message/20090424.173741.4c33e4d3.en.html



Thank you!
Sorry, I forgot to search the ML first.

\select works; good to learn about that mechanism (I hope it won't  
disappear soon like some others...), even if \nolist was much simpler.



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] replacement for \nolist ?

2009-05-04 Thread Kevin D. Robbins
I asked this one last week. Wolfgang provided the (one?) answer:

http://archive.contextgarden.net/message/20090424.173741.4c33e4d3.en.html

Kevin

On Mon, May 4, 2009 at 2:12 PM, Henning Hraban Ramm hra...@fiee.net wrote:

 Another command that disappeared from MkIV is \nolist (to exclude parts of
 a title from a table of contents).

 What's its replacement?


 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

 ___

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