[Tex/LaTex] Using option for bibliography style


I am trying to write with the BioMed Central template.

For the bibliotraphy, I have a file named:


In the main .tex, the bibliography is included by:

% if your bibliography is in bibtex format, use those commands:
\bibliographystyle{bmc-mathphys} % Style BST file
\bibliography{bmc_article}      % Bibliography file (usually '*.bib' )

In the bmc-mathphys.sty the following commands appear:

\DeclareOption{undef}    {\only@first{\def\bibliography@style{0}\def\bibliography@key{undef}
\DeclareOption{basic}    {\only@first{\def\bibliography@style{1}\def\bibliography@key{basic}
                          \def\bibliography@style@name{Basic Springer}}} 
\DeclareOption{bmc}      {\only@first{\def\bibliography@style{10}\def\bibliography@key{bmc}
                          \def\bibliography@style@name{BMC Reference Style}}}

I guess I need the "bmc" style, but how can I select that option? Where should I select it?

Best Answer

There should be a call


in the document preamble.

Here's a test document, using the files in the distribution.




\usepackage[utf8]{inputenc} %unicode support

%%% Put your definitions there:

%%% Begin ...

%%% Start of article front matter


\title{A sample article title}

   addressref={aff1},                   % id's of addresses, e.g. {aff1,aff2}
   corref={aff1},                       % id of corresponding address, if any
   noteref={n1},                        % id's of article notes, if any
   email={jane.e.doe@cambridge.co.uk}   % email address
]{\inits{JE}\fnm{Jane E} \snm{Doe}}
]{\inits{JRS}\fnm{John RS} \snm{Smith}}

\address[id=aff1]{%                           % unique id
  \orgname{Department of Zoology, Cambridge}, % university, etc
  \street{Waterloo Road},                     %
  %\postcode{}                                % post or zip code
  \city{London},                              % city
  \cny{UK}                                    % country
  \orgname{Marine Ecology Department, Institute of Marine Sciences Kiel},
  \street{D\"{u}sternbrooker Weg 20},

\note[id=n1]{Equal contributor} % note, connected to author

\end{fmbox}% comment this for two column layout


\begin{abstract} % abstract
\parttitle{First part title} %if any
Text for this section.

\parttitle{Second part title} %if any
Text for this section.





Text and results for this section, as per the individual journal's instructions for authors. 


\section*{Competing interests}
  The authors declare that they have no competing interests.

\section*{Author's contributions}
    Text for this section \ldots

  Text for this section \ldots

\bibliographystyle{bmc-mathphys} % Style BST file
\bibliography{bmc_article}      % Bibliography file (usually '*.bib' )


enter image description here

Related Question