我想引用这白皮书,但我得到了如下图所示的内容
我怎样才能删除 2016 到 2017 之间的奇怪符号。我想要像 2016-2017 这样的东西。
我还没有发现任何类似的问题来解决这个问题。
编辑:
\documentclass[journal,comsoc]{IEEEtran}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{newtxtext}
\usepackage{cite}
\usepackage{url}
\begin{document}
\bibliographystyle{IEEEtran}
\bibliography{references}
\end{document}
请注意参考文件中有:
@Report{cisco,
title = {Cisco Visual Networking Index: Global Mobile Data Traffic Forecast Update, 2016–2021 White Paper},
year = {2017},
date = {2017-03-28},
url = {https://www.cisco.com/c/en/us/solutions/collateral/service-provider/visual-networking-index-vni/mobile-white-paper-c11-520862.html},
答案1
我删除了该包cite
,然后添加了某些包来添加颜色和超链接,该natbib
包与该参考书目样式不兼容,该包允许自动引用作者姓名。
*我使用 arara 来自动化我的编译,它的注释格式对其他编译器没有影响。
结果:
MWE:主要乳胶文件:
% arara: pdflatex: {synctex: yes, action: nonstopmode}
% arara: bibtex
% arara: bibtex
% arara: pdflatex: {synctex: yes, action: nonstopmode}
% arara: pdflatex: {synctex: yes, action: nonstopmode}
\documentclass[journal,comsoc]{IEEEtran}
\usepackage[utf8]{inputenc} % input encoding for interpreter
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{newtxtext}
\usepackage[usenames,dvipsnames]{xcolor} % Allows the definition of hex colors
\usepackage{colortbl} % colors library.
\definecolor{klein}{HTML}{002fa7} % Klein blue
\usepackage[hyphens,spaces,obeyspaces]{url}
\usepackage[colorlinks=True,citecolor=red,urlcolor=klein]{hyperref}% For Hyperlinks
\usepackage[all]{hypcap}
%\usepackage{natbib} %Is not compatible with IEEEtran %Try using plainnat
% Enables to cite using author names commands \citet \citep
\usepackage{lipsum}
\begin{document}
\lipsum[1-8]
Some author \cite{cultLIBRE}, another author or reference\cite{cisco}.\\
\bibliographystyle{IEEEtran}
\bibliography{references}
\end{document}
书目文件:references.bib
@article{cultLIBRE,
author = { Lessig, Lawrence },
title = {{Free Culture: How Big Media uses Technology and the Law to lock down Culture
and control Creativity}},
journal ={ Versión en Español, por LOM Ediciones},
year = {2005},
numpages ={270},
url = {https://www.derechosdigitales.org/culturalibre/cultura_libre.pdf},
pages={31-209},
Abstract={Todo sobre la cultura libre},
language = {spanish}}
@Report{cisco,
title = {{Cisco Visual Networking Index: Global Mobile Data Traffic Forecast Update, 2016–2021 White Paper}},
year = {2017},
date = {2017-03-28},
url = {https://www.cisco.com/c/en/us/solutions/collateral/service-provider/visual-networking-index-vni/mobile-white-paper-c11-520862.html}}