BibTeX, biblatex and biberStrange Character instead of dash between page numbers in re

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Naw_La
Posts: 5
Joined: Sun Dec 30, 2012 3:03 pm

Strange Character instead of dash between page numbers in re

Post by Naw_La »

Dear all,

I have been using natbib package and {unsrt} as bibliography style. In some of the references I get some different character instead of dash(-) either between page numbers in a certain reference or instead of a dash in the text of the reference.
Here are two examples:

Methods in Engineering, 79:1309˝U1331, (2009)
medium˝Ustructure-problem

Your help is appreciated.

Thanks

Recommended reading 2024:

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

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

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

Strange Character instead of dash between page numbers in re

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Perhaps post a Infominimal working example, which shows the problem, so we could fix it. A description is often not enough to know the cause. A minimal example should be compilable, i.e. contains your relevant packages and settings but as small as possible (i.e. no graphicx package needed etc.) - plus your BibTeX entry. Once we can test and verify a problem, it usually can be fixed.

Stefan
LaTeX.org admin
Naw_La
Posts: 5
Joined: Sun Dec 30, 2012 3:03 pm

Strange Character instead of dash between page numbers in re

Post by Naw_La »

Hi Stefan,

Thanks for your response. Please see below a test axample:

Code: Select all

%
\include{Macros/MacroFile1}
 \documentclass[oneside,12pt]{article}
%
%\usepackage{StyleFiles/watermark}
\usepackage{amsmath}
\usepackage [section]{placeins}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage[numbers]{natbib}
%
\begin{document}
%
Hi,\\\\

This is a test example to show the problem in the following references: \cite{FuBo04}, \cite{TaNiKo03} and \cite{XinGao11}

Thanks for your time.

\bibliographystyle{unsrt}
\renewcommand{\bibname}{References} 
\bibliography{References/references} 
\include{References/references}
\addcontentsline{toc}{chapter}{References} %adds References to contents pa
%\
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
References are contained in bib file (reference) as follows:

Code: Select all

%
@ARTICLE{FuBo04,
author={Author},
title={Discrete wavenumber solutions to numerical wave propagation in piecewise heterogeneous media–{I}. Theory of two-dimensional {SH} case},
journal={International Journal of},
volume={1},
year={(2004)},
pages={1-10},
}

@ARTICLE{TaNiKo03,
author={T. Takahashi and N. Nishimura and S. Kobayashi},
title={A fast {BIEM} for three-dimensional elastodynamics in time domain},
journal={International Journal of},
volume={7},
year={(2003)},
pages={1–6},
}

@ARTICLE{XinGao11,
author={T. Xin and L. Gao},
title={Reducing slab track vibration into bridge using elastic materials in high speed railway},
journal={International Journal of},
volume={3},
year={(2011)},
pages={7–48},
}
%
I hope I supplied you with enough information.

Thanks again.

Nawras
Last edited by cgnieder on Sun Dec 30, 2012 5:39 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Strange Character instead of dash between page numbers i

Post by Stefan Kottwitz »

In the BibTeX file I can see there are not normal dashes, but wider dashes, so not standard characters (I guess Unicode) which are not directly supported.

I guess you need to replace – by - in your .bib files. Also here you can see the difference: I pasted – to the forum, and this is a typed dash: -. If you don't see the difference, just zoom with your browser. And test it, change one wide dash, i.e. type a normal dash, run bibtex and (pdf)LaTeX again.

Stefan
LaTeX.org admin
Naw_La
Posts: 5
Joined: Sun Dec 30, 2012 3:03 pm

Re: Strange Character instead of dash between page numbers i

Post by Naw_La »

Problem solved!

Hi Stefan,

Thanks very much. It is working perfectly.


Nawras
Post Reply