Re: [NTG-context] Two questions on bibliography

2018-11-14 Thread Joshua Moerman
Dear Alan,

>> Q1: Shouldn't the order of multiple citations (using a single \cite 
>> command) be the same as the order in the publications list? In the 
>> example below, the orders are different.
>
> In the APA specification, the order of the bibliography list as well as
> the order of the citations within a pair of parenthesis is to be
> alphabetical then year ("authoryear"). You can set a different sort order
> if you do not want to follow the APA specification.

Both the list and the citation are sorted on "authoryear". But the orders in
the pdf are different. Is this a bug in ConTeXT?

>> Q2: Is there a way to capitalise the first letter of a last name in 
>> \cite[...]? For example, this may be necessary when starting a new
sentence.
>> But it is also generally preferred in Dutch when the last name starts 
>> with 'van' (or something similar).
>
> You are referring to a "van" or "particle" element of a name. These
> have specific rules (and all is not straight yet, for these rules depend
> on the language and are not clear).

Yes indeed. I do not need a general solution (as that would be way too
complicated). But is there a nice way to fine-tune the rendering on the
spot? (In this case, I only need to have the first character capitalised, in
a few occasions.)

Thank you for your reply,

All the best,
Joshua Moerman

___
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] Two questions on bibliography

2018-11-13 Thread Joshua Moerman
Dear mailing list,

My questions are related to one by Rik a few weeks back (but he did not get
an answer yet). I am using the APA style (context version 2018.10.03 16:02).

Q1: Shouldn't the order of multiple citations (using a single \cite command)
be the same as the order in the publications list? In the example below, the
orders are different.

Q2: Is there a way to capitalise the first letter of a last name in
\cite[...]? For example, this may be necessary when starting a new sentence.
But it is also generally preferred in Dutch when the last name starts with
'van' (or something similar).


\startbuffer[biblio]
@article{PAPER1,
author= {First Author},
title = {A paper},
year  = {2016}
}

@article{PAPER2,
author= {First Writer},
title = {Another paper},
year  = {2017}
}

@article{PAPER3,
author= {Jan van Amsterdam},
title = {Yet another paper},
year  = {2018}
}
\stopbuffer

\usebtxdataset[biblio.buffer]
\usebtxdefinitions[apa]

\starttext
% Order is 3, 1, 2
We refer to \cite[authoryears][PAPER1, PAPER2, PAPER3].

\cite[authoryears][PAPER3] provides background.

\blank
% Order is 1, 3, 2 (unlike before)
\placelistofpublications
\stoptext

\showbtxdatasetcompleteness


Thanks in advance,
All the best,
Joshua Moerman

___
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] xrightarrow is not straight

2018-08-08 Thread Joshua Moerman
Dear Alan,

Thanks for the reply! Using \definemathstackers I can set the voffset to adjust 
the vertical spacing. This is exactly what I needed, thanks!

However, I couldn't use the ahlength variable. I tried different values, but it 
doesn't seem to change anything (and the current arrowhead is tiny). (Using 
startMPcode and drawarrow gives a big arrowhead.)
Also I noticed that the content of \rightarrow{...} was not in mathmode, so I 
tried using middlecommand=\mathermatics (I found this on the wiki and in the 
docs). But that doesn't change anything. Is this a bug?

Example:

\useMPlibrary[mat]
\definemathstackers [mp]
[alternative=mp, voffset=-.3\mathexheight, middlecommand=\mathematics]
\definemathextensible [mp] [rightarrow] ["2192]

\startMPinitializations
  ahlength  := EmWidth ; % Does not work?
  ahangle   := 30 ;
  ahvariant := 1 ;
  ahdimple  := 4/5 ;
\stopMPinitializations

\setuppapersize[A7]

\starttext
$A \rightarrow{$\neq f$ and $\neq g$} B$

$A \rightarrow{\neq f \text{ and } \neq g} B$ % Is not typeset in mathmode
\stoptext


Thanks in advance,
Kind regards,
Joshua

-Original Message-
From: Alan Braslau  
Sent: 07 August 2018 17:01
To: Joshua Moerman 
Cc: mailing list for ConTeXt users 
Subject: Re: [NTG-context] xrightarrow is not straight

On Tue, 7 Aug 2018 10:42:01 +0200
"Joshua Moerman"  wrote:

> Hi ConTeXt mailing list,
> 
> I am using the extensible arrows and I am not really satisfied with 
> the looks of it.
> 
> The most important issue I have is that the vertical spacing is too 
> much. You can see this in the attached picture: the left arrow is 
> using \xrightarrow{\neq a} and the right arrow is using \stackrel{\neq 
> a}{\longrightarrow}. I think the right one (with stackrel) looks more 
> natural. Is there a way to setup the vertical spacing?
> 
> Another thing I noticed is that the line is not very consistent. This 
> might be a font issue (I am using Euler). Luckily, the inconsistent 
> overlap is barely visible when printed.
> 
> Thanks again!
> 
> Groetjes,
> Joshua
> 

Hello,

You can also use MetaPost to render math stackers, rather than relying on TeX 
constructs and any particular font.

For example:


\useMPlibrary[mat]

\definemathstackers
   [mp]
   [alternative=mp]

\definemathextensible [mp] [leftarrow]  ["2190]
\definemathextensible [mp] [rightarrow] ["2192]
\definemathextensible [mp] [leftrightarrow] ["2194]
\definemathextensible [mp] [longleftrightarrow] ["27F7] \definemathextensible 
[mp] [rightoverleftarrow] ["21C4]
\definemathextensible [mp] [underbrace] ["FE3DF]

\setupbodyfont [dejavu-condensed,12pt]

\starttext
$\rightarrow{≠a}$
\stoptext



Furthermore, the MP arrow can be tuned

\startMPinitializations

ahlength := .5EmWidth ;
ahvariant := 1 ; % dimpled straight

\stopMPinitializations

as can line widths, etc.

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

[NTG-context] xrightarrow is not straight

2018-08-07 Thread Joshua Moerman
Hi ConTeXt mailing list,

I am using the extensible arrows and I am not really satisfied with the
looks of it.

The most important issue I have is that the vertical spacing is too much.
You can see this in the attached picture: the left arrow is using
\xrightarrow{\neq a} and the right arrow is using \stackrel{\neq
a}{\longrightarrow}. I think the right one (with stackrel) looks more
natural. Is there a way to setup the vertical spacing?

Another thing I noticed is that the line is not very consistent. This might
be a font issue (I am using Euler). Luckily, the inconsistent overlap is
barely visible when printed.

Thanks again!

Groetjes,
Joshua

___
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] Issue with bibtex crossref in combination with {-}

2018-08-02 Thread Joshua Moerman
Hi ConTeXt people,

I found another issue with the crossref feature in ConTeXt. I get an error
when a {-} is used in a crossref. If it is used directly in the paper entry,
it works just fine. Replacing {-} by only - works, but the DBLP database
generates {-} and it would be nice to use that directly.

Example:
\usebtxdefinitions[apa]

\startbuffer[biblio]
@inproceedings{PAPER,
author= {First Last},
title = {PaperTitle},
booktitle = {Conference of BlaBla},
year  = {2017},
crossref  = {CONF},
}

@proceedings{CONF,
title = {Conference on BlaBla},
year  = {2017},
editor= {Jan{-}Willem Jansen},
publisher = {Springer},
}
\stopbuffer

\usebtxdataset[biblio.buffer]

\starttext
See \cite{PAPER}.
\blank
\placelistofpublications
\blank
\showbtxdatasetcompleteness
\stoptext

This gives the error:
tex error   > tex error on line 1 in file
C:/Users/joshua/Documents/PhD/Thesis/ConTeXtTests/biblio.tex: ! Extra }, or
forgotten \endgroup

But it should just work without errors (I think), since using extra {}
should work.
Thanks in advance.

Groetjes,
Joshua



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