eclipse-texlipse / texlipse

Eclipse Texlipse
https://projects.eclipse.org/projects/science.texlipse
Eclipse Public License 1.0
60 stars 20 forks source link

biblatex broken if put in non-main tex file #60

Open uhoefel opened 6 years ago

uhoefel commented 6 years ago

Bug report

Currently, if the\addbibresource command is used in a different.tex file input e.g. via \input{tex/biblatex}, it is not recognised by Texlipse, so that I only get something along the lines of

lualatex.exe> Package biblatex Warning: Please (re)run Biber on the file:
lualatex.exe> (biblatex)                document
lualatex.exe> (biblatex)                and rerun LaTeX afterwards.

This practically breaks modularization of bigger projects, where I want to explicitly avoid having single package commands in the main tex file.

What is the current behavior?

Texlipse seems not to find \addbibresource if issued in a different than the main .tex file

What is the expected or desired behavior?

Either allow for \addbibresource in tex files input via \input{}, or allow more explicit selection of build steps.

Please provide steps to reproduce:

document.tex:

\documentclass{article}
\input{biblatex}
\begin{document}
\section{Title}
\subsection{Subtitle}
Plain text.
\subsection{Another subtitle}
More plain text. \cite{0029-5515-57-10-102020}
\printbibliography
\end{document}

biblatex.tex:

\usepackage[backref=true,backend=biber]{biblatex}
\addbibresource{bibliography/bibliography.bib}

bibliography/bibliography.bib:

@Article{0029-5515-57-10-102020,
  author       = {Wolf, R. C. and others},
  title        = {Major results from the first plasma campaign of the Wendelstein 7-X stellarator},
  journaltitle = {Nuclear Fusion},
  date         = {2017-07-27},
  volume       = {57},
  number       = {10},
  pages        = {102020},
  doi          = {10.1088/1741-4326/aa770d},
}

Adding \addbibresource{bibliography/bibliography.bib} to document.tex makes it work.

Please describe your environment:

Operating system: