1 line
2.7 KiB
Plaintext
1 line
2.7 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Hello everyone,</p> <p>I am trying to write a report in org mode of which the references are handled by org-cite. So far, everything is working really well, meaning I am able to include references from a .bib and export them to a .pdf via latex-export without any major issues.</p> <p>However I noticed the inline citations in the final pdf, print the citation number twice like so: "1[1]". I would like to get rid of the first '1' in a way the result looks like: "[1]". I am probably (not) doing something that causes this. </p> <p>Here is what I do to replicate the issue:</p> <p>references.bib:</p> <pre><code>@article{hello, title={Hello}, journal={Journal of Hello}, author={Test McTesty}, year={2018} } </code></pre> <p>test.org:</p> <pre><code>#+TITLE: Test #+AUTHOR: Test McTesty #+CITE_EXPORT: csl "~/Repositories/styles/ieee.csl" #+BIBLIOGRAPHY: references.bib [cite:@hello] #+print_bibliography: </code></pre> <p>exported test.tex:</p> <pre><code>% Created 2021-11-16 Tue 21:30 % Intended LaTeX compiler: pdflatex \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \author{Test McTesty} \date{\today} \title{Test} \hypersetup{ pdfauthor={Test McTesty}, pdftitle={Test}, pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 28.0.60 (Org mode 9.5)}, pdflang={English}} \usepackage{hanging} \begin{document} \maketitle \tableofcontents % Added this comment in post: would like it to be \citeprocitem{[1]} \citeprocitem{1}{[1]} \hypertarget{citeproc_bib_item_1}{[1] T. McTesty, “Hello,” \textit{Journal of Hello}, 2018.} \end{document} </code></pre> <p>I have the same behaviour for other CSL styles, so it is not just the ieee style used. When using a different export-processor, such as natbib, it does not add the citation number twice, so it probably has to do something with the oc-csl configuration. If it matters, I am using DOOM emacs.</p> <p>If anyone can point me in the right direction to solve this, it would be greatly appreciated.</p> <p>Thanks for the help in advance!</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/Tijntj3"> /u/Tijntj3 </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/qvhqex/orgcite_csl_latex_export_outputs_citation_number/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/qvhqex/orgcite_csl_latex_export_outputs_citation_number/">[comments]</a></span> |