Skip to content

Cite auto trigger - bibliography inside class file #175

Description

@cnasikas

Hi

First of all I would like to thank you for this great and useful plugin.

I have a template with the following structure and the cite auto trigger can not find the bib file.

My tex structure is:

  • root file: main.tex
  • class file: myclass.cls
  • chapters' folder with %!TEX root = ../main.tex in every tex file

Inside the class file I have the following command:

\renewcommand{\backmatter}{
    \include{chapters/abbreviations}

    % appendix
    \begin{appendix}
      % mark the beginning of the appendix
      \appendixstartedtrue

      % add appendix line to ToC
      \phantomsection
      \addcontentsline{toc}{chapter}{APPENDICES}

      \include{chapters/appendixA}
    \end{appendix}
    \bibliographystyle{plain}
    \bibliography{./references.bib}
    % include it also in ToC (do sth on your own)
    \addcontentsline{toc}{chapter}{REFERENCES}
}

and in the main.tex file \backmatter is being called. Compilation is working fine, without any errors or warnings.

If I move the \bibliography{./references.bib} inside main.tex file cite auto trigger is working as expected.

Is it possible to make cite auto trigger command to also look for bibliography commands inside a class file ?

Thanks in advanced

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions