BibTeX, biblatex and biberTitle loses formatting

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
nancyh
Posts: 7
Joined: Tue Mar 05, 2013 2:30 pm

Title loses formatting

Post by nancyh »

When the title of a journal displays in my bibliography there is no formatting. So

title={Four IRAC Sources with an Extremely Red H – [3.6] Color: Passive or Dusty Galaxies at z > 4.5?}

becomes

four irac sources with an extremely red h [3.6] color: Passive or dusty galax-
ies at z ¿ 4.5?

Plus I also get the following warnings when I compile.


Underfull \hbox (badness 1571) in paragraph at lines 39--45
\OT1/cmr/m/n/10.95 "four irac sources with an ex-tremely red h [3.6] color: Pa
s-sive or dusty galax-

I read somewhere that it should leave the formatting as it is if the text is inside braces, but this doesn't seem to be the case.

Does anyone know how I can get the title to display as intended?

Thanks

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Title loses formatting

Post by Stefan Kottwitz »

Hi,

welcome to the board!

You could protect the contents by additional braces, such as:

Code: Select all

title={{Four IRAC Sources with an Extremely Red H – [3.6] Color:
  Passive or Dusty Galaxies at z > 4.5?}}
It should also work partially, such as

Code: Select all

title={Four {IRAC} Sources with an Extremely Red H – [3.6] Color:
  Passive or Dusty Galaxies at z > 4.5?}
to protect one word. I just would not use {E}xtemely or similar to not harm kerning within a word.

To get a proper > sign, I would switch to T1 font encoding:

Code: Select all

\usepackage[T1]{fontenc}
Stefan
LaTeX.org admin
nancyh
Posts: 7
Joined: Tue Mar 05, 2013 2:30 pm

Title loses formatting

Post by nancyh »

Thanks. I had tried the brackets around IRAC, but that didn't work. What I have found does work is

Code: Select all

title= "{F}our {IRAC} {S}ources with an {E}xtremely {R}ed {H -- [3.6]} {C}olor: {P}assive or {D}usty {G}alaxies at {z $>$ 4.5?}"
Though it does seem rather messy. I'll try the double brackets round the whole thing next time.

I'm now having trouble working out how to get the symbol ~ to appear. I've tried $~$ but that didn't work. Any suggestions?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Title loses formatting

Post by Stefan Kottwitz »

$\sim$ would work.

In textmode, you could use \char`\~ or \texttt{\char`\~}.

Stefan
LaTeX.org admin
nancyh
Posts: 7
Joined: Tue Mar 05, 2013 2:30 pm

Re: Title loses formatting

Post by nancyh »

Great, thanks.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Title loses formatting

Post by cgnieder »

For completeness' sake: there's also LaTeX's \textasciitilde.

Regards
site moderator & package author
Post Reply