xdobx
xdobx

Reputation: 39

Emacs org-mode latex export doesnt export bibliography

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.

PDF without bibliography

I tried different ways:

How can i get a nice IEEE-Style formatted bibliography at the end of my document?

Edit I

Edit II

Upvotes: 1

Views: 893

Answers (1)

xdobx
xdobx

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

Related Questions