Re: [NTG-context] Achieving different \cite styles

2022-12-09 Thread Max Chernoff via ntg-context

Hi Jethro,

> I am interested in being able to cite in different ways. By analogy, I
> refer to the \texcite{}, \parencite{} and other options available with
> biblatex in LaTeX. How do I achieve something like \textcite{} in
> ConTeXt?

Page 34 of the publications manual lists the various styles:

   https://www.pragma-ade.nl/general/manuals/mkiv-publications.pdf#page=35
   
\parencite is like \cite[authoryear][article] and \textcite is like
\cite[authoryears][article]. The names are admittedly a little confusing,
but you can define your own wrappers with something like

   \define\parencite[1]{\cite[authoryear][#1]}
   \define\textcite[1]{\cite[authoryears][#1]}

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

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


Re: [NTG-context] Achieving different \cite styles

2022-12-09 Thread Henning Hraban Ramm via ntg-context

Am 09.12.22 um 04:42 schrieb Jethro Djan via ntg-context:

Hello everyone

I am interested in being able to cite in different ways. By analogy, I 
refer to the \texcite{}, \parencite{} and other options available with 
biblatex in LaTeX. How do I achieve something like \textcite{} in 
ConTeXt?


Please assume that most ConTeXt users (and even more, developers) aren’t 
very familiar with LaTeX and its many packages. Please explain what 
you’d like to achieve.


Hraban

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

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


[NTG-context] Achieving different \cite styles

2022-12-08 Thread Jethro Djan via ntg-context
Hello everyone

I am interested in being able to cite in different ways. By analogy, I
refer to the \texcite{}, \parencite{} and other options available with
biblatex in LaTeX. How do I achieve something like \textcite{} in ConTeXt?
Here is my MWE:

\startbuffer[ref]

@Article{wn:2017,
  author  = {Who, Nobody and What, Everyone},
  journal = {Good Journal},
  title   = {The Art of Being},
  year= {2017},
}

\stopbuffer

\definebtxdataset[ref]
\usebtxdataset[ref][ref.buffer]
\setupbtx[
  dataset=ref,
]
\definebtxrendering
  [ref]
  [apa]
  [
  dataset=ref,
  ]
\usebtxdefinitions[apa]

\starttext

In \cite[wn:2017], they illustrated that it is impossible to not be them.
\cite[wn:2017] said it was worth the discovery.

\startsection[title={References}, number=no, incrementnumber=no]
\placelistofpublications[ref][method=dataset]
\stopsection

\stoptext

The first sentence is okay. In the second, I would like the parenthesis
around the citation to come off because of the way I am citing it.

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

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