Re: [NTG-context] Bibliography issue, @ELECTRONIC editor

2017-02-24 Thread Rik Kabel

On 2017-02-24 19:31, Alan Braslau wrote:

On Fri, 24 Feb 2017 12:36:28 -0500
Rik Kabel  wrote:


Although either editor or author should be accepted, only author is
processed. There is a warning message generated by the publications
subsystem: unable to create short for 'Edited', needs one of
[author,editor] but clearly there is an editor. A reasonable
workaround is to use author instead of editor, but it would be nice
to have a fix.

Editor is not a standard field for the entry @electronic.
It is defined for @article, @periodical, @book, @inbook, @incollection,
and @proceedings. This follows the bibtex documentation and the
standard tools used for maintaining bib files.

Of course, we could add this, or any other field, but I find no entry
either in the APA Specifications describing this.

Alan

Sorry. You are, of course, right about that. I misread the table in 
mkiv-publications.


The problem I have is that all non-author electronic entries are grouped 
at the top of the bibliography by date. However, APA for electronic 
entries with no author should use the title (or a few salient words from 
the text) at the beginning of the bibliography entry. Currently ConTeXt 
uses a blank space and the date.


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography issue, @ELECTRONIC editor

2017-02-24 Thread Alan Braslau
On Fri, 24 Feb 2017 12:36:28 -0500
Rik Kabel  wrote:

> Although either editor or author should be accepted, only author is
> processed. There is a warning message generated by the publications
> subsystem: unable to create short for 'Edited', needs one of
> [author,editor] but clearly there is an editor. A reasonable
> workaround is to use author instead of editor, but it would be nice
> to have a fix.

Editor is not a standard field for the entry @electronic.
It is defined for @article, @periodical, @book, @inbook, @incollection,
and @proceedings. This follows the bibtex documentation and the
standard tools used for maintaining bib files.

Of course, we could add this, or any other field, but I find no entry
either in the APA Specifications describing this.

Alan

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography issue, @ELECTRONIC editor

2017-02-24 Thread Rik Kabel

ConTeXters,

The following example demonstrates an issue with the ELECTRONIC bib type:

   \startbuffer[TestBib]
   @ELECTRONIC{Edited,
  editor = {An Editor},
  title = {A title},
  url = {http://www.example.com},
  year = {2017},
   }
   @ELECTRONIC{Authored,
  author = {An Author},
  title = {Another title},
  url = {http://www.example.com},
  year = {2017},
   }
   \stopbuffer
 \loadbtxdefinitionfile[apa]
 \usebtxdefinitions[apa]
 \usebtxdataset[TestBib.buffer]
 \definebtxrendering   [Pubs][apa]
   \enabletrackers[publications.authorhash]
   \starttext
   \nocite[*]
   \placelistofpublications[Pubs]
   \stoptext

Although either editor or author should be accepted, only author is 
processed. There is a warning message generated by the publications 
subsystem:


   unable to create short for 'Edited', needs one of [author,editor]

but clearly there is an editor. A reasonable workaround is to use author 
instead of editor, but it would be nice to have a fix.


--
Rik
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] new lua/stack error

2017-02-24 Thread Aditya Mahajan

On Fri, 24 Feb 2017, Alan Bowen wrote:


Excellent, Hans. Many thanks!


Please wifify this!

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] floats on pages without headers

2017-02-24 Thread Henning Hraban Ramm
> \startplacefigure[title=Cow,location={page,high,header}]
>\externalfigure[cow.pdf][width=.7\textwidth,frame=on]
> \stopplacefigure

Thank you!
Wikified at http://wiki.contextgarden.net/Floating_Objects


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Columns with different width.

2017-02-24 Thread Henning Hraban Ramm
Am 2017-02-24 um 10:05 schrieb Jose Luis Arellano :

> Dear list,
> Is there any way to write a document in columns with different width?

You can use column sets, see 
http://www.pragma-ade.com/general/manuals/columns.pdf

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] floats on pages without headers

2017-02-24 Thread Alan Bowen
Thanks, again, Hans. That is a great help.

Alan

On Fri, Feb 24, 2017 at 6:22 AM, Hans Hagen  wrote:

> On 2/23/2017 10:09 PM, Alan Bowen wrote:
>
>> I have some large floats that look best on empty pages, i.e., pages that
>> do not have headers?
>>
>> The wiki suggests that
>> location=page
>> will put the float on an empty page but this does not seem to be the case:
>>
>> \starttext
>> \dorecurse{3}{\input knuth}
>>
>> \startplacefigure[title=Cow,
>> location={page}]
>> {\externalfigure[cow.pdf][width=.7\textwidth]}
>> \stopplacefigure
>>
>> \dorecurse{3}{\input knuth}
>>
>> \stoptext
>>
>> I am using the latest beta.
>>
> \startplacefigure[title=Cow,location={page,high,header}]
> \externalfigure[cow.pdf][width=.7\textwidth,frame=on]
> \stopplacefigure
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] new lua/stack error

2017-02-24 Thread Alan Bowen
Excellent, Hans. Many thanks!
Alan

On Fri, Feb 24, 2017 at 5:21 AM, Hans Hagen  wrote:

> On 2/23/2017 10:41 PM, Alan Bowen wrote:
>
>> In my larger document (approx 600 pages, over 1000 references)
>> problematic entries like \cite[{{A, B, and C}}] did not display at all,
>> though the document did process without claims of stack errors etc.
>> Curiously,
>> \goto{A, B, and C}[{{A, B, and C}}]
>> does work as expected.
>>
>
> i'll upload a beta that support this:
>
> \setupinteraction[state=start]
>
> \starttext
>
> \startchapter[reference={{A, B, and C}},title={Foo}]
>
> \in{IN}[name{A, B, and C}]
>
> \in{IN}[name(A, B, and C)]
>
> \stopchapter
>
> you need to be aware of the fact that references have some kind of syntax
> and are parsed (so that we only need one system for every kind of
> referencing); most make only sense for \goto but parsing happens anyway for
> \in and \at so i hooked name() into it, similar to [page(123)] we can have
> [name(abc)] now
>
> Hans
>
>
> Alan
>>
>> On Thu, Feb 23, 2017 at 4:12 PM, Alan Bowen > > wrote:
>>
>> Thanks, Hans! That does work nicely.
>>
>> On Thu, Feb 23, 2017 at 3:42 PM, Hans Hagen > > wrote:
>>
>> On 2/22/2017 6:21 PM, Alan Bowen wrote:
>>
>> Here is the file that I have been working with:
>>
>> \installlanguage[packed][en]
>> \setuplanguage[packed][spacing=packed]
>> \startsetups[tightspace]
>>   \spaceskip 0.5\interwordspace plus .5\interwordstretch minus
>> \interwordshrink
>> \stopsetups
>>
>> \def\dostartbibitem[#1]{\startBibItem[title={#1},reference={
>> #1}]}
>> \def\startbibitem{\dosingleempty\dostartbibitem}
>> \def\stopbibitem{\stopBibItem}
>>
>> \definedescription[BibItem][
>> width=broad,
>> margin=1.5pc,
>> indenting={no},
>> indentnext=no,
>> alternative=hanging,
>> hang=1,
>> headcommand=\gobbleoneargument,
>> align=right,
>> before={\directsetup{tightspace}\bgroup\language[packed]},
>> after={\egroup},
>> ]
>>
>> \definereferenceformat [cite]  [type=title,left={},right={}]
>> \definereferenceformat [bibpage]   [type=page]
>>
>> \starttext
>>
>> \startbibitem[A, B, and C]\stopbibitem % TEST by commenting
>> these
>> %\startbibitem[A{,} B{,} and C]\stopbibitem% lines out
>>
>> \startbibitem[ABC]\stopbibitem
>> \startbibitem[A]\stopbibitem
>> \startbibitem[B]\stopbibitem
>> \startbibitem[C]\stopbibitem
>>
>> * \cite[A, B, and C] \qquad{\red output should  be: A{,}
>> B{,} and C}
>>
>> **\cite[ABC] \qquad{\red output should be: ABC}
>>
>> ***\cite[A], \cite[B], \cite[C]  \qquad{\red output should
>> be: A, B, C}
>>
>> \cite[A]\cite[B]\cite[C] \qquad{\red output should be:
>> ABC}
>>
>> \stoptext
>>
>>
>> references can be a comma separated list, so
>>
>> A, B, and C
>>
>> is actually three tags:  "A" "B" "and C"
>>
>> so, you run into parsing problems, so how to deal with:
>>
>> [A, B, and C]
>>
>> maybe:
>>
>> [{A, B, and C}]
>>
>> alas, in comma separated list the first level of {} is removed
>> but we can cheat:
>>
>> [{{A, B, and C}}]
>>
>> works with \cite [{{A, B, and C}}]
>>
>> Hans
>>
>>
>> -
>>   Hans Hagen | PRAGMA ADE
>>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>tel: 038 477 53 69 | www.pragma-ade.nl
>>  | 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>>
>>
>>
>>
>> 

[NTG-context] xtables different frame thickness for one side only

2017-02-24 Thread Csikos Bela
Dear context users:

Is it possible to change the rulethickness of one side of a row in xtables?
I the example below I'd like the bottom of the first row to be thicker than 
other sides.

\starttext
\startxtable[frame=on]
\startxrow % bottom frame of this row should be thicker
\startxcell AAA \stopxcell
\startxcell BBB \stopxcell
\stopxrow
\startxrow
\startxcell CCC \stopxcell
\startxcell DDD \stopxcell
\stopxrow
\stopxtable
\stoptext

If I understand correctly xtables uses framed mechanism. For framed I could not
find an option to change the frame thickness of individual sides. There's only
rulethickness option which applies to all sides. According to this what I want 
to do
in xtabels is not feasible. Please correct if I misunderstand something.

Thanks you in advance,

bcsikos


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] decomposed and precomposde glyphs

2017-02-24 Thread Hans Hagen

On 2/24/2017 10:35 AM, Ulrike Fischer wrote:

Am Thu, 23 Feb 2017 17:20:05 +0100 schrieb Arthur Reutenauer:


I looked at the code and it actually uses an idea that I had already
tried. The problem I couldn't solve was do decompose a glyph.
Looking at an context example it seems that context can do it. The B
with dot below (U+1E04) ends as BU+0323 in the pdf. But how does
context does it?


It uses the Unicode composition information (part of UnicodeData.txt),
they’re made into a Lua table in ConTeXt (named char-def.lua, if it
hasn’t changed).


I know of char-def.lua but the question was more *how* the
information is used and *when*. In an input call back? Through a
font feature?


in the case of the feature i sent you it's a font feature (so it 
operates on the stream of characters that the font machinery sees)


but in context we can also do it in the input (several ways)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] floats on pages without headers

2017-02-24 Thread Hans Hagen

On 2/23/2017 10:09 PM, Alan Bowen wrote:

I have some large floats that look best on empty pages, i.e., pages that
do not have headers?

The wiki suggests that
location=page
will put the float on an empty page but this does not seem to be the case:

\starttext
\dorecurse{3}{\input knuth}

\startplacefigure[title=Cow,
location={page}]
{\externalfigure[cow.pdf][width=.7\textwidth]}
\stopplacefigure

\dorecurse{3}{\input knuth}

\stoptext

I am using the latest beta.

\startplacefigure[title=Cow,location={page,high,header}]
\externalfigure[cow.pdf][width=.7\textwidth,frame=on]
\stopplacefigure


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] new lua/stack error

2017-02-24 Thread Hans Hagen

On 2/23/2017 10:41 PM, Alan Bowen wrote:

In my larger document (approx 600 pages, over 1000 references)
problematic entries like \cite[{{A, B, and C}}] did not display at all,
though the document did process without claims of stack errors etc.
Curiously,
\goto{A, B, and C}[{{A, B, and C}}]
does work as expected.


i'll upload a beta that support this:

\setupinteraction[state=start]

\starttext

\startchapter[reference={{A, B, and C}},title={Foo}]

\in{IN}[name{A, B, and C}]

\in{IN}[name(A, B, and C)]

\stopchapter

you need to be aware of the fact that references have some kind of 
syntax and are parsed (so that we only need one system for every kind of 
referencing); most make only sense for \goto but parsing happens anyway 
for \in and \at so i hooked name() into it, similar to [page(123)] we 
can have [name(abc)] now


Hans



Alan

On Thu, Feb 23, 2017 at 4:12 PM, Alan Bowen > wrote:

Thanks, Hans! That does work nicely.

On Thu, Feb 23, 2017 at 3:42 PM, Hans Hagen > wrote:

On 2/22/2017 6:21 PM, Alan Bowen wrote:

Here is the file that I have been working with:

\installlanguage[packed][en]
\setuplanguage[packed][spacing=packed]
\startsetups[tightspace]
  \spaceskip 0.5\interwordspace plus .5\interwordstretch minus
\interwordshrink
\stopsetups

\def\dostartbibitem[#1]{\startBibItem[title={#1},reference={#1}]}
\def\startbibitem{\dosingleempty\dostartbibitem}
\def\stopbibitem{\stopBibItem}

\definedescription[BibItem][
width=broad,
margin=1.5pc,
indenting={no},
indentnext=no,
alternative=hanging,
hang=1,
headcommand=\gobbleoneargument,
align=right,
before={\directsetup{tightspace}\bgroup\language[packed]},
after={\egroup},
]

\definereferenceformat [cite]  [type=title,left={},right={}]
\definereferenceformat [bibpage]   [type=page]

\starttext

\startbibitem[A, B, and C]\stopbibitem % TEST by commenting
these
%\startbibitem[A{,} B{,} and C]\stopbibitem% lines out

\startbibitem[ABC]\stopbibitem
\startbibitem[A]\stopbibitem
\startbibitem[B]\stopbibitem
\startbibitem[C]\stopbibitem

* \cite[A, B, and C] \qquad{\red output should  be: A{,}
B{,} and C}

**\cite[ABC] \qquad{\red output should be: ABC}

***\cite[A], \cite[B], \cite[C]  \qquad{\red output should
be: A, B, C}

\cite[A]\cite[B]\cite[C] \qquad{\red output should be: ABC}

\stoptext


references can be a comma separated list, so

A, B, and C

is actually three tags:  "A" "B" "and C"

so, you run into parsing problems, so how to deal with:

[A, B, and C]

maybe:

[{A, B, and C}]

alas, in comma separated list the first level of {} is removed
but we can cheat:

[{{A, B, and C}}]

works with \cite [{{A, B, and C}}]

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl
 | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--


Re: [NTG-context] decomposed and precomposde glyphs

2017-02-24 Thread Ulrike Fischer
Am Thu, 23 Feb 2017 17:20:05 +0100 schrieb Arthur Reutenauer:

>> I looked at the code and it actually uses an idea that I had already
>> tried. The problem I couldn't solve was do decompose a glyph.
>> Looking at an context example it seems that context can do it. The B
>> with dot below (U+1E04) ends as BU+0323 in the pdf. But how does
>> context does it?
> 
> It uses the Unicode composition information (part of UnicodeData.txt),
> they’re made into a Lua table in ConTeXt (named char-def.lua, if it
> hasn’t changed).

I know of char-def.lua but the question was more *how* the
information is used and *when*. In an input call back? Through a
font feature?

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Columns with different width.

2017-02-24 Thread Jose Luis Arellano
Dear list,
Is there any way to write a document in columns with different width?

Thanks in advance.

jl
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___