-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HELP] How to differentiate narrative in-text citation and parenthetical citation? #7067
Comments
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". |
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 :
```lua
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 GitHub<#7067 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABDTWJUGPOVJG2AOEMRX3L3ZEMDQ5AVCNFSM6AAAAABIK25SEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZTGE3TQOJSG4>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
The text was updated successfully, but these errors were encountered: