* Question about cite_export basic
@ 2022-09-09 9:08 Dominik Schrempf
2022-09-09 10:20 ` Alain.Cochard
2022-09-10 4:38 ` Ihor Radchenko
0 siblings, 2 replies; 8+ messages in thread
From: Dominik Schrempf @ 2022-09-09 9:08 UTC (permalink / raw)
To: emacs-orgmode
Hello!
When using the basic org cite export processor, that is:
#+cite_export: basic
bibliography items with curly braces are rendered in an unexpected way.
For example,
@InCollection{Geyer2011,
author = {Geyer, Charles J},
title = {{Introduction to Markov Chain Monte Carlo}},
year = 2011,
booktitle = {{Handbook of Markov Chain Monte Carlo}},
editor = {Brooks, Steve and Gelman, Andrew and Jones, Galin and Meng,
Xiao-Li},
publisher = {CRC press},
pages = 45,
}
Is rendered as
Geyer, Charles J (2011). {Introduction to Markov Chain Monte Carlo}, CRC press.
In particular, the curly braces are printed. Curly braces are often
used in bib files to indicate that the capitalization is to be
preserved.
Do we want to change the default behavior of the basic processor so
that it correctly handles these cases?
Thanks,
Dominik
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question about cite_export basic
2022-09-09 9:08 Question about cite_export basic Dominik Schrempf
@ 2022-09-09 10:20 ` Alain.Cochard
2022-09-09 10:38 ` Ihor Radchenko
2022-09-10 4:38 ` Ihor Radchenko
1 sibling, 1 reply; 8+ messages in thread
From: Alain.Cochard @ 2022-09-09 10:20 UTC (permalink / raw)
To: Dominik Schrempf; +Cc: emacs-orgmode
Dominik Schrempf writes on Fri 9 Sep 2022 11:08:
> Hello!
>
> When using the basic org cite export processor, that is:
>
> #+cite_export: basic
>
> bibliography items with curly braces are rendered in an unexpected way.
>
> [...]
>
> In particular, the curly braces are printed.
I don't observe that. I even used your Geyer2011 example:
#+bibliography: ~/Ref/coch.bib
[cite:@Geyer2011]
#+print_bibliography:
Org mode version 9.5.4 (9.5.4-ge0b05b @ /home/cochard/.emacs.d/elpa/org-9.5.4/)
--
EOST (École et Observatoire des Sciences de la Terre)
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44
F-67084 Strasbourg Cedex, France | [ slot available for rent ]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question about cite_export basic
2022-09-09 10:20 ` Alain.Cochard
@ 2022-09-09 10:38 ` Ihor Radchenko
2022-09-09 10:47 ` Alain.Cochard
0 siblings, 1 reply; 8+ messages in thread
From: Ihor Radchenko @ 2022-09-09 10:38 UTC (permalink / raw)
To: alain.cochard; +Cc: Dominik Schrempf, emacs-orgmode
Alain.Cochard@unistra.fr writes:
> > In particular, the curly braces are printed.
>
> I don't observe that. I even used your Geyer2011 example:
>
> #+bibliography: ~/Ref/coch.bib
> [cite:@Geyer2011]
> #+print_bibliography:
>
> Org mode version 9.5.4 (9.5.4-ge0b05b @ /home/cochard/.emacs.d/elpa/org-9.5.4/)
This is confusing. I actually can reproduce. I used the same Org file
and a bib file containing the only record - Geyer2011.
I did export using C-c C-e t A (ASCII to buffer) and I got the
following:
------------------------------------
Ihor Radchenko
Table of Contents
_________________
(Geyer, Charles J, 2011)
Geyer, Charles J (2011). /{Introduction to Markov Chain Monte Carlo}/,
CRC press.
------------------------------------
Note the curly brackets.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question about cite_export basic
2022-09-09 10:38 ` Ihor Radchenko
@ 2022-09-09 10:47 ` Alain.Cochard
0 siblings, 0 replies; 8+ messages in thread
From: Alain.Cochard @ 2022-09-09 10:47 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: alain.cochard, Dominik Schrempf, emacs-orgmode
Ihor Radchenko writes on Fri 9 Sep 2022 18:38:
> This is confusing. I actually can reproduce.
> [...]
> I did export using C-c C-e t A (ASCII to buffer)
Sorry, it did not occur to me that there is a life out of latex
export. I used C-c C-e l o. I can also reproduce with C-c C-e t A.
--
EOST (École et Observatoire des Sciences de la Terre)
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44
F-67084 Strasbourg Cedex, France | [ slot available for rent ]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question about cite_export basic
2022-09-09 9:08 Question about cite_export basic Dominik Schrempf
2022-09-09 10:20 ` Alain.Cochard
@ 2022-09-10 4:38 ` Ihor Radchenko
2022-09-13 13:53 ` Dominik Schrempf
1 sibling, 1 reply; 8+ messages in thread
From: Ihor Radchenko @ 2022-09-10 4:38 UTC (permalink / raw)
To: Dominik Schrempf; +Cc: emacs-orgmode
Dominik Schrempf <dominik.schrempf@gmail.com> writes:
> title = {{Introduction to Markov Chain Monte Carlo}},
> ...
> Is rendered as
>
> Geyer, Charles J (2011). {Introduction to Markov Chain Monte Carlo}, CRC press.
>
> In particular, the curly braces are printed. Curly braces are often
> used in bib files to indicate that the capitalization is to be
> preserved.
>
> Do we want to change the default behavior of the basic processor so
> that it correctly handles these cases?
This makes sense. However, I see it as something to be done by
bibtex.el; not by Org. Or we may need to write a small exporter for
BibTeX fields specifically. So that
http://www.bibtex.org/SpecialSymbols/ is obeyed. We may also handle
upcasing the title words in such exporter.
For now, I reached Emacs devs asking to provide the parsing within
bibtex.el. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57712
Lets see what they reply first.
--
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Question about cite_export basic
2022-09-10 4:38 ` Ihor Radchenko
@ 2022-09-13 13:53 ` Dominik Schrempf
2022-09-14 2:57 ` Ihor Radchenko
0 siblings, 1 reply; 8+ messages in thread
From: Dominik Schrempf @ 2022-09-13 13:53 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
Ihor Radchenko <yantar92@gmail.com> writes:
> Dominik Schrempf <dominik.schrempf@gmail.com> writes:
>
>> title = {{Introduction to Markov Chain Monte Carlo}},
>> ...
>> Is rendered as
>>
>> Geyer, Charles J (2011). {Introduction to Markov Chain Monte Carlo}, CRC press.
>>
>> In particular, the curly braces are printed. Curly braces are often
>> used in bib files to indicate that the capitalization is to be
>> preserved.
>>
>> Do we want to change the default behavior of the basic processor so
>> that it correctly handles these cases?
>
> This makes sense. However, I see it as something to be done by
> bibtex.el; not by Org. Or we may need to write a small exporter for
> BibTeX fields specifically. So that
> http://www.bibtex.org/SpecialSymbols/ is obeyed. We may also handle
> upcasing the title words in such exporter.
>
> For now, I reached Emacs devs asking to provide the parsing within
> bibtex.el. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57712
> Lets see what they reply first.
>
Dear Ihor!
Thank you for posting the BibTeX brace problem upstream. From what I can
see by reading through the conversation, we are going down a rabbit
hole. It seems to be pretty difficult to convert a BibTeX entry to a
proper ascii string (I think this is what the basic export processor is
doing). Is that true?
Not sure how to proceed. I do not think that post processing
`bibtex-parse-entry` output which seems to contain LaTeX code makes
sense.
Best,
Dominik
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-02-29 9:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-09 9:08 Question about cite_export basic Dominik Schrempf
2022-09-09 10:20 ` Alain.Cochard
2022-09-09 10:38 ` Ihor Radchenko
2022-09-09 10:47 ` Alain.Cochard
2022-09-10 4:38 ` Ihor Radchenko
2022-09-13 13:53 ` Dominik Schrempf
2022-09-14 2:57 ` Ihor Radchenko
2024-02-29 9:25 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).