Reputation: 39
I tried to export a document with orgmode to a pdf. Unfortunately it doesnt export the citations. I make a minimal example of and export it. Same Problem. So maybe i think there is a Problem with the \printbibliography.
org file
# Latexheader
#+LATEX_HEADER: \documentclass[12pt]{article}
#+LATEX_HEADER: \usepackage[a4paper, left=4cm, right=2cm, top=3cm, bottom=3cm,margin=2cm]{geometry}
#+LATEX_HEADER: \usepackage{biblatex}
# Bibliography
#+bibliography: ../lit.bib
#+cite_export: csl <PATH>/ieee.csl
# Document
* Heading
Test [cite:@all]
#+print_bibliography:
lit.bib
@inproceedings{all,
title={papertitle},
author={paperauthor},
booktitle={PAPER3000},
year={2002}
}
tex file
% Created 2022-09-20 Di 20:59
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{minted}
\documentclass[12pt]{article}
\usepackage[a4paper, left=4cm, right=2cm, top=3cm, bottom=3cm,margin=2cm]{geometry}
\author{xdobx}
\date{\today}
\title{}
\hypersetup{
pdfauthor={xdobx},
pdftitle={},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 28.1 (Org mode 9.5.2)},
pdflang={English}}
\makeatletter
\newcommand{\citeprocitem}[2]{\hyper@linkstart{cite}{citeproc_bib_item_#1}#2\hyper@linkend}
\makeatother
\usepackage[notquote]{hanging}
\begin{document}
\tableofcontents
\section{Heading}
\label{sec:org89209e9}
Test TEST [1]
\printbibliography
\end{document}
The output is unsatisfying.
I tried different ways:
#+LATEX_HEADER: \usepackage{biblatex}
as @samcarter_is_at_topanswers.xyz suggest
: correct export of header, but no difference in .pdfHow can i get a nice IEEE-Style formatted bibliography at the end of my document?
Edit I
\printbibliography
to #+print_bibliography:
and it works in the minimal example, if i tried it at the original document it only works if i don't use #+cite_export: csl <PATH>/ieee.csl
.
If i use it, i get a error: unknown bibliography extension: nil
Edit II
#+BIBLIOGRAPHY: here
from citeproc-org somewhere in the big file.Upvotes: 1
Views: 893
Reputation: 39
The correct solution is to load \biblatex with
#+LATEX_HEADER: \usepackage{biblatex}
and insert bibliography with#+print_bibliography:
where you want. Correct minimal example .org :
# Latexheader
#+LATEX_HEADER: \documentclass[12pt]{article}
#+LATEX_HEADER: \usepackage[a4paper, left=4cm, right=2cm, top=3cm, bottom=3cm,margin=2cm]{geometry}
#+LATEX_HEADER: \usepackage{biblatex}
# Bibliography
#+bibliography: ../lit.bib
#+cite_export: csl <PATH>/ieee.csl
# Document
* Heading
Test [cite:@all]
#+print_bibliography:
Upvotes: 2