## LaTeX forum ⇒ Text Formatting ⇒ Italics in title BMC template

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
arnabroy
Posts: 2
Joined: Thu Aug 06, 2015 10:39 pm

### Italics in title BMC template

Not able to italicize a part of the title in the attached Latex template. Please help. I have already tried \textit{} and \emph{}, but without luck.
Attachments
bmc_article.tex
Last edited by cgnieder on Tue Aug 11, 2015 3:13 pm, edited 1 time in total.

Tags:

cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm
Without the class file bmcart.cls (and possible other related files) it is impossible to say anything.

Also the file you attached is rather long… I cut it down a bit but I believe it still can be shortened to show you problems:
\documentclass{bmcart}\usepackage[utf8]{inputenc} \def\includegraphic{}\def\includegraphics{} \startlocaldefs\endlocaldefs \begin{document} \begin{frontmatter} \begin{fmbox}\dochead{Research} \title{A sample article title} \author[    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}}\author[    addressref={aff1,aff2},    email={john.RS.Smith@cambridge.co.uk}]{\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}\address[id=aff2]{%   \orgname{Marine Ecology Department, Institute of Marine Sciences Kiel},   \street{D\"{u}sternbrooker Weg 20},   \postcode{24105}   \city{Kiel},   \cny{Germany}} \begin{artnotes}\note[id=n1]{Equal contributor} % note, connected to author\end{artnotes} \end{fmbox} \begin{abstractbox} \begin{abstract} % abstract\parttitle{First part title} %if anyText for this section. \parttitle{Second part title} %if anyText for this section.\end{abstract} \begin{keyword}\kwd{sample}\kwd{article}\kwd{author}\end{keyword}\end{abstractbox} \end{frontmatter} \section*{Content} \begin{backmatter} % \bibliographystyle{bmc-mathphys}% \bibliography{bmc_article} \end{backmatter}\end{document}

Regards
site moderator & package author

Stefan Kottwitz
Posts: 9579
Joined: Mon Mar 10, 2008 9:44 pm
Is it the BioMed Central class? Do you publish via that Springer company, or do you use that class for another reason? I just ask, because publisher templates usually follow specific requirements which are not generally needed.

Stefan

ophil
Posts: 2
Joined: Wed Jan 06, 2016 6:59 pm
I've exactly the same problem. Is there any solution available for that issue.

Summarizing, I'm using the BMC template as well which refers to the bmcart.cls (find attached). When I want to italicize a part of the title e.g.

\title{This is an \textit{awesome} title}

then I receive the error message:

Use of \title@fmt doesn't match its definition. \title{This is an \textit{awesome} title}
.

This may be due to the formating in the bmcart.cls file. I assume that I've to change something in that part of the bmcart.cls file:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TITLE  \let\PREHOOK@title@fmt\@gobble \def\bmc@title{\@ifnextchar[{\title@fmt}{\title@fmt[]}}%\def\bmc@title{\title@fmt} \def\title@fmt[#1]#2{%    \vskip\title@skip%    \setkeys{title}{#1}%    \bgroup%     \no@harm%     \let\protect\relax%     \xdef\@runtitle{#2}%   \egroup%    \bgroup%     \no@harm%     \let\protect\relax%     \xdef\@argi{#2}%   \egroup%    \write@pdfinfo{\hy@title}{\@argi}%    \bgroup     \PREHOOK@title@fmt{#2}%     \title@size\csname pretitle@text\endcsname #2\par%   \egroup}

Unfortunately, I'm not that familiar with Latex and have no idea what I have to change here. I'd appreciate any help or suggestions.

Regards
Attachments
bmcart.cls

Johannes_B
Site Moderator
Posts: 4165
Joined: Thu Nov 01, 2012 4:08 pm
Welcome,

And why would you? Springer has taken care that the class follows it layout standard. Springer has a completely different and maybe unexpected workflow than you would expect.

The publishers are the real guys to address this topic.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

ophil
Posts: 2
Joined: Wed Jan 06, 2016 6:59 pm
In the preamble of the file I found:
%% You are free to use this style class as you see fit, provided
%% that you do not make changes to the file.
%% If you DO make changes, you are required to rename this file.

Hence, I assumed when I make changes I only have to rename it. I just hoped that others had the same problem and found a solution for it.
And yes, you are right, at the latest, when submitting the article to the journal, I've to deal with the editors regarding that issue.

Nevertheless, thanks for the fast response.

Johannes_B
Site Moderator
Posts: 4165
Joined: Thu Nov 01, 2012 4:08 pm
Nice, i see you can read information given in comments of a file. Many many users seem to have lost that ability and change files like they want.

We can certainly find a solution to the problem, but that would mean kicking out some of the features Spinger has introduced. Their build-script wont be very happy about this, and i don't want us to invest time into a matter, that will get rejected in the end.

I would suggest to reach out for the editors, they might even have a solution at hand (or say, don't worry, we will deal with that).

When the thumbs up is here, we can start working ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

\title{Beggining of the title followed by {\it italicized text}.}