LaTeX forum ⇒ BibTeX, biblatex and biberHow to insert a hyphen or dash in first name in .bib Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Vahid
Posts: 3
Joined: Thu Feb 22, 2024 12:47 am

How to insert a hyphen or dash in first name in .bib

Postby Vahid » Thu Feb 22, 2024 12:55 am

I have the following entry in my .bib file

@article{Cho2010,
  author  			= "Y. C. Cho and S. Lee and M. Ajmal and W.- K. Kim and C. R. Cho and S.-Y. Jeong and J. H. Park and S. E. Park and S. Park and H.-K. Pak and H. C. Kim",
  title				= "Copper Better than Silver: Electrical Resistivity of the Grain-Free Single-Crystal Copper Wire",
  journal			= "Cryst. Growth Des.",
  volume			= "10",
  pages			= "2780-2784",
  year			= "2010"
} 


The output is

[10] Y.C. Cho, S. Lee, M. Ajmal, W.K. Kim, C.R. Cho, S.Y. Jeong, J.H. Park, S.E. Park, S. Park, H.K. Pak, H.C. Kim, Copper better than silver: Electrical resistiv- ity of the grain-free single-crystal copper wire. Cryst. Growth Des. 10, 2780–2784 (2010)


I am using the following packages required by the MRS Communications:

\usepackage{graphicx}%
\usepackage{multirow}%
\usepackage{amsmath,amssymb,amsfonts}%
\usepackage{amsthm}%
\usepackage{mathrsfs}%
\usepackage[title]{appendix}%
\usepackage{xcolor}%
\usepackage{textcomp}%
\usepackage{manyfoot}%
\usepackage{booktabs}%
\usepackage{algorithm}%
\usepackage{algorithmicx}%
\usepackage{algpseudocode}%
\usepackage{listings}%



I have tried W.{-} K. Kim but Latex still ignores the dash. I would like the output to be W.-K. Kim not W. K. Kim.

Thank you,
Vahid

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10228
Joined: Mon Mar 10, 2008 9:44 pm

How to insert a hyphen or dash in first name in .bib

Postby Stefan Kottwitz » Sat Feb 24, 2024 6:05 pm

Hi Vahid,

welcome to the forum!

When I use a hyphen, it is correctly displayed in the bibliography. Perhaps show your code (reduced but compilable, as a Infominimal working example), so we can test and fix it.

Stefan
LaTeX.org admin

Vahid
Posts: 3
Joined: Thu Feb 22, 2024 12:47 am

How to insert a hyphen or dash in first name in .bib

Postby Vahid » Sat Feb 24, 2024 7:47 pm

Hi Stefan,

Attached please see a minimum example with all the files created. The .pdf file shows no dash in the references. I am using TexShop Version 5.27 on Mac.

Thanks,
Vahid
Attachments
minimum.zip
(153.34 KiB) Downloaded 665 times

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

How to insert a hyphen or dash in first name in .bib  Topic is solved

Postby Stefan Kottwitz » Sat Feb 24, 2024 10:24 pm

Hi Vahid,

very good example to test! It works if you protect the name by enclosing it within braces, such as {M. -W. Oh}.

Stefan
LaTeX.org admin

Vahid
Posts: 3
Joined: Thu Feb 22, 2024 12:47 am

How to insert a hyphen or dash in first name in .bib

Postby Vahid » Sat Feb 24, 2024 10:32 pm

Hi Stefan,

You are right. Your suggestion works on my end as well.

Thank you,
Vahid

jiyahana

How to insert a hyphen or dash in first name in .bib

Postby jiyahana » Wed Nov 06, 2024 11:10 am

The issue is resolved by enclosing the name in braces, like {M. -W. Oh}. This ensures that LaTeX correctly interprets the hyphen or dash. Glad the suggestion worked


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests