LaTeX forum ⇒ Text FormattingItalics 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

Postby arnabroy » Thu Aug 06, 2015 11:15 pm

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 291 times
Last edited by cgnieder on Tue Aug 11, 2015 3:13 pm, edited 1 time in total.
Reason: added inline code markup

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Tue Aug 11, 2015 3:19 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:
  1. \documentclass{bmcart}
  2. \usepackage[utf8]{inputenc}
  3.  
  4. \def\includegraphic{}
  5. \def\includegraphics{}
  6.  
  7. \startlocaldefs
  8. \endlocaldefs
  9.  
  10. \begin{document}
  11.  
  12. \begin{frontmatter}
  13.  
  14. \begin{fmbox}
  15. \dochead{Research}
  16.  
  17. \title{A sample article title}
  18.  
  19. \author[
  20. addressref={aff1}, % id's of addresses, e.g. {aff1,aff2}
  21. corref={aff1}, % id of corresponding address, if any
  22. noteref={n1}, % id's of article notes, if any
  23. email={jane.e.doe@cambridge.co.uk} % email address
  24. ]{\inits{JE}\fnm{Jane E} \snm{Doe}}
  25. \author[
  26. addressref={aff1,aff2},
  27. email={john.RS.Smith@cambridge.co.uk}
  28. ]{\inits{JRS}\fnm{John RS} \snm{Smith}}
  29.  
  30. \address[id=aff1]{% % unique id
  31. \orgname{Department of Zoology, Cambridge}, % university, etc
  32. \street{Waterloo Road}, %
  33. %\postcode{} % post or zip code
  34. \city{London}, % city
  35. \cny{UK} % country
  36. }
  37. \address[id=aff2]{%
  38. \orgname{Marine Ecology Department, Institute of Marine Sciences Kiel},
  39. \street{D\"{u}sternbrooker Weg 20},
  40. \postcode{24105}
  41. \city{Kiel},
  42. \cny{Germany}
  43. }
  44.  
  45. \begin{artnotes}
  46. \note[id=n1]{Equal contributor} % note, connected to author
  47. \end{artnotes}
  48.  
  49. \end{fmbox}
  50.  
  51. \begin{abstractbox}
  52.  
  53. \begin{abstract} % abstract
  54. \parttitle{First part title} %if any
  55. Text for this section.
  56.  
  57. \parttitle{Second part title} %if any
  58. Text for this section.
  59. \end{abstract}
  60.  
  61. \begin{keyword}
  62. \kwd{sample}
  63. \kwd{article}
  64. \kwd{author}
  65. \end{keyword}
  66. \end{abstractbox}
  67.  
  68. \end{frontmatter}
  69.  
  70. \section*{Content}
  71.  
  72. \begin{backmatter}
  73.  
  74. % \bibliographystyle{bmc-mathphys}
  75. % \bibliography{bmc_article}
  76.  
  77. \end{backmatter}
  78. \end{document}


Regards
site moderator & package author

User avatar
Stefan Kottwitz
Site Admin
Posts: 9579
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Aug 11, 2015 11:36 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
LaTeX.org admin

ophil
Posts: 2
Joined: Wed Jan 06, 2016 6:59 pm

Postby ophil » Wed Jan 06, 2016 7:12 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.

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

  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TITLE
  2.  
  3. \let\PREHOOK@title@fmt\@gobble
  4.  
  5. \def\bmc@title{\@ifnextchar[{\title@fmt}{\title@fmt[]}}
  6. %\def\bmc@title{\title@fmt}
  7.  
  8. \def\title@fmt[#1]#2{%
  9.  
  10. \vskip\title@skip%
  11.  
  12. \setkeys{title}{#1}%
  13.  
  14. \bgroup%
  15. \no@harm%
  16. \let\protect\relax%
  17. \xdef\@runtitle{#2}%
  18. \egroup%
  19.  
  20. \bgroup%
  21. \no@harm%
  22. \let\protect\relax%
  23. \xdef\@argi{#2}%
  24. \egroup%
  25.  
  26. \write@pdfinfo{\hy@title}{\@argi}%
  27.  
  28. \bgroup
  29. \PREHOOK@title@fmt{#2}%
  30. \title@size\csname pretitle@text\endcsname #2\par%
  31. \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 232 times

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

Postby Johannes_B » Wed Jan 06, 2016 9:05 pm

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

Postby ophil » Wed Jan 06, 2016 9:47 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.

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

Postby Johannes_B » Wed Jan 06, 2016 11:20 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.

machadodj
Posts: 1
Joined: Wed May 27, 2020 4:38 pm

Postby machadodj » Wed May 27, 2020 4:48 pm

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \title{Beggining of the title followed by {\it italicized text}.}


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 4 guests