Text FormattingItalics in title BMC template

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

Italics in title BMC template

Post by arnabroy »

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
(13.84 KiB) Downloaded 492 times
Last edited by cgnieder on Tue Aug 11, 2015 3:13 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Italics in title BMC template

Post by cgnieder »

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:

Code: Select all

\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 any
Text for this section.

\parttitle{Second part title} %if any
Text 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
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Italics in title BMC template

Post by Stefan Kottwitz »

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
LaTeX.org admin
ophil
Posts: 2
Joined: Wed Jan 06, 2016 6:59 pm

Italics in title BMC template

Post by ophil »

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.

Code: Select all

\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:

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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
(54.43 KiB) Downloaded 397 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Italics in title BMC template

Post by Johannes_B »

Welcome,

the class is licensed under the LPPL, meaning you cannot just change the class.

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

Italics in title BMC template

Post by ophil »

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.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Italics in title BMC template

Post by Johannes_B »

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.
machadodj
Posts: 1
Joined: Wed May 27, 2020 4:38 pm

Italics in title BMC template

Post by machadodj »

Using the bmcart.cls ("LaTeX 2e class file for the processing of LaTeX2e files for the BioMed Central", available from http://www.biomedcentral.com/authors/tex, accessed on May 15, 2020), you can add italicized text to the title using {\it Italicized text}. For example:

Code: Select all

\title{Beggining of the title followed by {\it italicized text}.}
rakkioo7
Posts: 1
Joined: Sat Sep 12, 2020 10:09 am

Italics in title BMC template

Post by rakkioo7 »

Pleasant, I see you can peruse the data given in the remarks of a document. Numerous clients appear to have lost that capacity and change records as they need. We can positively discover an answer to the issue, yet that would mean kicking out a portion of the highlights Springer has presented. Their fabricate content won't be extremely cheerful about this, and I don't need us to put time into an issue, that will get dismissed at long last. I would propose to connect for the editors, they may even have an answer nearby.
Post Reply