* Achieving different \cite styles
@ 2022-12-09 3:42 Jethro Djan via ntg-context
2022-12-09 9:09 ` Henning Hraban Ramm via ntg-context
2022-12-09 9:57 ` Max Chernoff via ntg-context
0 siblings, 2 replies; 3+ messages in thread
From: Jethro Djan via ntg-context @ 2022-12-09 3:42 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jethro Djan
[-- Attachment #1.1: Type: text/plain, Size: 1022 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1261 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Achieving different \cite styles
2022-12-09 3:42 Achieving different \cite styles Jethro Djan via ntg-context
@ 2022-12-09 9:09 ` Henning Hraban Ramm via ntg-context
2022-12-09 9:57 ` Max Chernoff via ntg-context
1 sibling, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-12-09 9:09 UTC (permalink / raw)
To: ntg-context; +Cc: Henning Hraban Ramm
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Achieving different \cite styles
2022-12-09 3:42 Achieving different \cite styles Jethro Djan via ntg-context
2022-12-09 9:09 ` Henning Hraban Ramm via ntg-context
@ 2022-12-09 9:57 ` Max Chernoff via ntg-context
1 sibling, 0 replies; 3+ messages in thread
From: Max Chernoff via ntg-context @ 2022-12-09 9:57 UTC (permalink / raw)
To: ntg-context; +Cc: Max Chernoff
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-09 9:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09 3:42 Achieving different \cite styles Jethro Djan via ntg-context
2022-12-09 9:09 ` Henning Hraban Ramm via ntg-context
2022-12-09 9:57 ` Max Chernoff via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).