我正在使用biber
,PDFLaTeX
如果参考文献大于 9,则在我的参考文献页面中我会得到如下参考文献:
References:
[1] ref .........................
[2] ref ..........................
[3] ref ..........................
[4] ref ..........................
[5] ref ..........................
[6] ref ..........................
[7] ref ..........................
[8] ref ..........................
[9] ref ..........................
[10] ref ..........................
但是,我希望它们看起来像这样:
References:
[1] ref .........................
[2] ref ..........................
[3] ref ..........................
[4] ref ..........................
[5] ref ..........................
[6] ref ..........................
[7] ref ..........................
[8] ref ..........................
[9] ref ..........................
[10] ref ..........................
这是我的 MWA(atiflar.bib 包含 10 个项目):
\documentclass[a4paper, 12pt]{article}
\usepackage[turkish,shorthands=:!]{babel}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,
natbib=false,
style=numeric-comp,
sorting=none]{biblatex}
\addbibresource{atiflar.bib}
\begin{document}
\nocite{*}
\printbibliography[heading=bibintoc]
\end{document}
这是所要求的 atiflar.bib(它包含一些带有土耳其语字符的项目):
@article{lorente,
author = "Wechsatol W., Lorente S., Bejan A.",
title = "Tree-Shaped Insulated Design for Uniform Distribution of Hot Water Over an Area",
journal = "Int. J. Heat Mass Transfer",
volume = "44",
number = "16",
pages = "3111--3123",
year = "2001",
}
@patent{kavur,
author = "Kavur K. H.",
title = "Heart Flowerpot",
year = "2006",
number = "D518,755",
location = "U.S. Patent and Trademark Office",
}
@report{ts2478,
author = "TS 2478",
title = "Odunun Statik Eğilmede Elastikiyet Modülün Tayini",
institution = "Türk Standartları Enstitüsü",
year = "1976",
location = "Ankara"
}
@article{lorente2,
author = "Wechsatol, W. and Lorente, S. and Bejan, A.",
title = "Tree-Shaped Insulated Design for Uniform Distribution of Hot Water Over an Area",
journal = "Int. J. Heat Mass Transfer",
doi = "10.1002/er.907",
}
@book{thermo,
author = "Tester, Jefferson W. and Modell, Michael",
title = "Thermodynamics and Its Applications",
year = "1997",
edition = "3"
}
@inbook{burton1995,
title = "Sediment Toxicity Testing",
author = "Burton Jr, G Allen and Denton, Debra L",
booktitle = "Handbook of ecotoxicology",
edition = "3",
pages = "111--151",
year = "1995",
publisher = "CRC Press, New York",
editor = "Hoffman, D. J. and Rattner, B. A. and Burton, G. A"
}
@conference{bilgin2006,
author = "Bilgin, A. and Mendi, A. and Yağcı, Ç.",
title = "Esnek Gruplar İçeren Polimerik Ftalosiyaninlerin Sentezi ve Karakterizasyonu",
organization= "VI. Kimya Kongresi",
location = "Kayseri, Türkiye",
date = "2006-06-24",
}
@mastersthesis{unlu2006,
author = "Ünlü, M.",
title = "Anahtarlı Relüktans Makinasının Modellenmesi ve Dinamik Davranışı",
institution = "Kocaeli Üniversitesi, Fen Bilimleri Enstitüsü, Kocaeli",
year = "2006",
note = "154848",
}
@report{werner1982,
author = "Werner, R. W. and Krikorion, O. H.",
title = "Synfuels from Fusion Using The Tandem Mirror Reactor and a Thermochemical Cycle to Produce Hydrogen",
type = "",
institution = "Livermore National Laboratory",
year = "1982",
pages = "120--150",
note = "UCID-19311",
}
@online{citingguide,
url = "http://www.bournemouth.ac.uk/library/using/guide_to_citing.html",
urldate = "2005-09-10",
}
有什么方法可以实现这一点吗?我搜索过了,但没找到。提前致谢。
答案1
简短版本:
\documentclass[a4paper, 12pt]{article}
\usepackage[turkish,shorthands=:!]{babel}%
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,
style=numeric-comp,
sorting=none]{biblatex}
\addbibresource{atiflar.bib}
\AtBeginBibliography{\renewcommand*{\makelabel}[1]{#1\hss}}
\begin{document}
\nocite{*}
\printbibliography[heading=bibintoc]
\end{document}
答案2
您只需要定义一个新的 bib 环境并\hss
从\makelabel
宏中删除。
以下是 MWE:
\documentclass{article}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\pagestyle{empty}
% taken from numeric.bbx
% remove \hss from \renewcommand*{\makelabel}[1]{\hss##1}
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{%
\printfield{labelprefix}%
\printfield{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{##1}}
{\endlist}
{\item}
\begin{document}
\nocite{aksin,angenendt,baez/article,bertram,doody,gillies,glashow,herrmann,kastenholz,murray}
\printbibliography
\end{document}