Hello, I’m working with a custom LaTeX class[1], based off of article, and I’ve made a LyX layout for it (attached below, modified from article.layout) that works well so far, except for the bibliography. The latex class specifies the bibliography style:
\bibliographystyle{lsst_aa} and there is no option in LyX’s BibTeX Bibliography window to use the “default” style, nor can I figure out a way to modify the custom layout file to not insert \bibliographystyle. Thus, the document cannot be built because there will be two styles. Is there a command to add to the layout file to prevent LyX from adding the bibliography style? Based on looking at other existing layouts, I tried adding either ``` Style Bibliography End ``` or ``` NoStyle Bibliography ``` but neither prevented `\bibliographystyle{…}` from being included in the produced LaTeX. I can add an ERT box with `\bibliography{…}` at the end of the LyX doc, but it’d be nice to remove that ERT. Any suggestions on how to modify my LyX layout, or otherwise tell the bibliography to not specify style in the output? Thank you, John 1: https://github.com/lsst/lsst-texmf/blob/master/texmf/tex/latex/lsst/lsstdoc.cls 2: lsstdoc.layout #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[lsstdoc, article]{LSST doc (Standard Class based on article)} # \DeclareCategory{Articles} # Article textclass definition file. Taken from initial LyX source code # Author : Matthias Ettrich <ettr...@informatik.uni-tuebingen.de> # Transposed by Pascal André <an...@via.ecp.fr> # Heavily modifed and enhanced by serveral developers. # Modified by John Parejko for LSST doc # NOTE: To use this with your LyX doc, you can select it as a "Local Layout" # NOTE: in Document->Settings->Document Class. Format 60 Input stdclass.inc SecNumDepth 3 TocDepth 3 NoStyle Chapter NoCounter chapter NoStyle Chapter* # lsstdoc loads a number of packages itself Provides hyperref 1 Provides geometry 1 Provides color 1 Provides babel 1 Provides natbib 1 # Provide the Insert->Short Title option Style Title Argument 1 LabelString "Short Title|S" Tooltip "Short title which will appear in the running header" InsertCotext 1 EndArgument End Style Part Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End Style Part* Align Left AlignPossible Left TopSep 2 BottomSep 1.5 Font Size Larger EndFont End