-
Notifications
You must be signed in to change notification settings - Fork 55
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
Discrepancies in citation format when using citar-insert-reference
#784
Comments
Are you using the default formatter, or the citeproc-el one? I realize it's not documented in the README (PR welcome), but I suspect that's it; either you aren't using the citeproc formatter, or you're using a different style for that? |
Thanks for the quick reply. In my config, the values of In case it helps understand what might be going on, I interned |
OK. To go back to this:
Here we're using the citar cache, which we populated using Obviously that enhances responsiveness, at the expense of some correctness. Not sure if there's an easy way to resolve that, or if we could make it configurable. |
@benthamite can you confirm my hunch in my last reply? |
Apologies, I hadn't seen your previous message. I should be able to look into this within the next couple of days. |
Hi @bdarcus, For testing purposes, I created @online{Hanson2023CanHumansBe,
abstract = {It is one of the most fundamental questions in the
social and human sciences: how culturally plastic are
people? Many anthropologists have long championed the
view that humans are very plastic; with matching
upbringing people can be made to behave a very wide
range of ways, and to want a very wide range of
things. Others say human nature is far more
constrained, and collect descriptions of "human
universals" (See Brown's 1991},
author = {Hanson, Robin},
langid = {english},
timestamp = {2023-06-14 15:12:51 (GMT)},
title = {Can humans be the {FORTRAN} of creatures?},
url =
{https://www.overcomingbias.com/p/how-plastic-are-peoplehtml},
urldate = {2023-06-14},
} and (setq org-cite-global-bibliography '("bibliography.bib"))
(setq org-cite-export-processors
'((t . (csl "ieee.csl"))))
(setq citar-bibliography '("bibliography.bib")) After evaluating the latter, I evaluate (("Hanson2023CanHumansBe" (URL . "https://www.overcomingbias.com/p/how-plastic-are-peoplehtml") (title . "Can humans be the fortran of creatures?") (blt-type . "online") (type . "webpage") (language . "en-US") (abstract . "It is one of the most fundamental questions in the social and human sciences: how culturally plastic are people? Many anthropologists have long championed the view that humans are very plastic; with matching upbringing people can be made to behave a very wide range of ways, and to want a very wide range of things. Others say human nature is far more constrained, and collect descriptions of \"human universals\" (See Brown’s 1991") (author ((family . "Hanson") (given . "Robin"))) (accessed (date-parts (2023 6 14))))) By contrast, if I create
and run <a href="#citeproc_bib_item_1">[1]</a>
<style>.csl-left-margin{float: left; padding-right: 0em;}
.csl-right-inline{margin: 0 0 0 1em;}</style><div class="csl-bib-body">
<div class="csl-entry"><a id="citeproc_bib_item_1"></a>
<div class="csl-left-margin">[1]</div><div class="csl-right-inline">R. Hanson, “Can humans be the FORTRAN of creatures?” <a href="https://www.overcomingbias.com/p/how-plastic-are-peoplehtml">https://www.overcomingbias.com/p/how-plastic-are-peoplehtml</a> (accessed Jun. 14, 2023).</div>
</div>
</div> As you can see, the word "FORTRAN" is in all caps in the exported Markdown, but not in the output of I'm not entirely sure this is the kind of test you wanted me to run. Please let me know if there's anything else I should do. I'm attaching the relevant files in case it helps you reproduce the issue. |
Thanks. I'm almost certain my assumption is correct; that using our cache for the formatting means the TeX markup gets stripped before citeproc sees it. Still not sure what we can, or should, do about that. |
I wanted to bump this, as I just stumbled upon the same issue. |
Maybe a quick fix would just be a manual (prefix) toggle whether to use the cache or not? |
Oh, nevermind, I think that was just an issue with a CSL style. Am I right in assuming that this got fixed, actually? |
Nothing changed on this end. And I should clarify: it's not per se the cache, but rather that we use We would do the same without a cache, and the alternative would be us parsing the input. |
Apologies if I'm missing something obvious, but I notice that when I insert a formatted reference with
citar-insert-reference
, there are various discrepancies between the inserted reference and the same reference as it appears when exported with one of theorg-mode
export commands, such asorg-md-export-to-markdown
. Most notably, the titles are not capitalized correctly (e.g. the braces surrounding a word are not respected).As an example, consider the following bibtex entry:
Inserting this reference by invoking
citar-insert-reference
results inWhereas exporting a file that cites that work via
org-md-export-to-markdown
will show it in the "bibliography" section asI have used the IEEE csl citation style in this case, but the issue occurs with all the styles I tried.
The text was updated successfully, but these errors were encountered: