Closed yunitad closed 4 days ago
Assuming you're using Zotero, you would realise the narrative citations by using the "Omit author" checkbox and then manually writing the names including "and". See this article: Narrative Citations with Omit Author ("According to Smith (1776)")
Thank you for the advice. Sorry for not adding context, I use Quarto with R Studio...
CSL doesn't provide the feature out of the box just yet, but in that case you can use a filter :
text = require 'text'
function AmpersandToAnd ()
-- returns a
return "and"
end
function Cite (cite)
-- only touch AuthorInText citations
if cite.citations[1].mode == 'AuthorInText' then
-- walk over cite content:
inlines = cite.content
for i = 1, #inlines, 1 do
if inlines[i].t == 'Str' and inlines[i].text == "&" then
inlines[i].text = AmpersandToAnd ()
end
end
end
return cite
end
At least this used to work with earlier versions of pandoc. I haven't tested with newer versions.
Von: Yunita Dewanti @.> Gesendet: Montag, 27. Mai 2024 12:32 An: citation-style-language/styles @.> Cc: Subscribed @.***> Betreff: Re: [citation-style-language/styles] [HELP] How to differentiate narrative in-text citation and parenthetical citation? (Issue #7067)
Thank you for the advice. Sorry for not adding context, I use Quarto with R Studio...
- Reply to this email directly, view it on GitHubhttps://github.com/citation-style-language/styles/issues/7067#issuecomment-2133178927, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDTWJUGPOVJG2AOEMRX3L3ZEMDQ5AVCNFSM6AAAAABIK25SEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGE3TQOJSG4. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>
Hi,
American Psychological Association in APA 7th Style format categorizes citation into two types: narrative in-text and parenthetical citation (see https://apastyle.apa.org/style-grammar-guidelines/citations/basic-principles/parenthetical-versus-narrative), we expected outputs:
It has "and" as text in narrative in-text and "&" as symbol in parenthetical citation. When we run the .csl and it doesn't work. Both types of citations can only use symbols OR text. Also, we've edited the xml language into Bahasa Indonesia (id) and replaced "and" with "dan" and "et al." with "dkk."
Any solution? Thank you very much in advance!
Note: