When I use the \cite{}
command, TeXstudio doesn't find any bib items.
Normally, I would expect that after typing \cite{
TeXstudio would suggest me all bib items available but it doesn't suggest me any. Even if I type in a existing bib item (\cite{Anderson.2012}
) TeXstudio tells me (mouse over) that it doesn't know that bib item (underlined green).
My bibliography does contain the following item:
@book{Anderson.2012,
author = {Anderson, David J. and Roock, Arne and Wolf, Henning},
year = {2012},
title = {Kanban: Evolution{\"a}res Change Management f{\"u}r IT-Organisationen},
price = {EUR 34.90 (DE), EUR 35.90 (AT), sfr 49.90 (freier Pr.)},
keywords = {Kanban;Kanban-System},
address = {Heidelberg},
edition = {Dt. Ausg. der 1. amerikan. Aufl., 1. korr. Nachdr},
publisher = {dpunkt-Verl.},
isbn = {9783898647304},
series = {it-agile}
}
I use the following LaTeX template:
DHBW Horb LaTex Template
EDIT:
For clarification: TeXstudio does correctly work with the cite command. So it does find them. But the intellisense doesn't find (no suggestion) the bib item and therefore is no help (that’s the problem). I have to copy the bib key out of the .bib
-file instead of TeXstudio suggesting all possible bib items.
MWE:
The problem seems to be when the options of biblatex
are written in multiple lines.
For example:
\usepackage[
backend=biber
]{biblatex}
In the template I use, the options are written as followed:
\usepackage[
backend=biber,
bibwarn=true,
bibencoding=utf8,
sortlocale=de_DE,
style=alphabetic
]{biblatex}
If I delete all line breaks, TeXstudio does recognize the bib file.
As MWE:
\documentclass{article}
\usepackage[
backend=biber
]{biblatex}
\addbibresource{bibliographie.bib}
\begin{document}
\cite{Anderson.2012}
\end{document}
Best Answer
In order to close this topic - I summarize:
For now, you will have to do
in one line or you tick the corresponding
.cwl
-file as can be seen below:The discussion about this issue has been closed: https://sourceforge.net/p/texstudio/bugs/1648/
You may want to create a file
biblatexTemp.cwl
with:Save this as
biblatexTemp.cwl
in~/.config/texstudio/ or %APPDATA%\texstudio\
and load it as "Permanently active completion files" as seen above.This new file is offering you the solution mentioned by @samcarter.