
単語間の大きなスペースを削除できるように、これをより適切にフォーマットすることは可能ですか?
使用したコード:
\bibliographystyle{abbrv}
\bibliography{library}
.bib
ライブラリ内のコード:
@misc{marsrover,
author = {Greicius, Tony},
booktitle = {NASA},
file = {:Users/user/Library/Application Support/Zotero/Profiles/zotero/storage/index.html:html},
howpublished = {http://www.nasa.gov/mission\_pages/msl/index.html},
title = {{\{NASA\} - Mars Science Laboratory}},
url = {http://www.nasa.gov/mission\_pages/msl/index.html}
}
これは、ドキュメントの「両端揃え」スタイルによるものでしょうか? 参考文献の両端揃えを防ぐことはできるでしょうか? 私のドキュメントは次のように始まります:
\documentclass[12pt,a4paper]{report}
\usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry}
\linespread{1.5}
編集
これは「両端揃え」によるものであることが確認できます。\raggedright
参考文献の直前に追加したので、テキストが左揃えになりました。
しかし、私はそれを均等配置にしたいのですが、間隔は空けません...余白を編集するのは効率的ではありません。これを実現する方法を誰か知っていますか?
答え1
問題は、フィールド「howpublished」が URL として認識されていないため、URL を分割するために提供されたどの方法も機能しないことです。パッケージをロードしurl
、.bib
アイテムを適切に変更して、次のようにファイル\url
にエンコードします。.bib
@misc{marsrover,
Author = {Greicius, Tony},
Booktitle = {NASA},
Howpublished = {\url{http://www.nasa.gov/mission\_pages/msl/index.html}},
Title = {{\{NASA\} - Mars Science Laboratory}},
Url = {http://www.nasa.gov/mission\_pages/msl/index.html},
}
最小限のドキュメント:
\documentclass{article}
\bibliographystyle{abbrv}
\usepackage{url}
\begin{document}
\cite{marsrover}
\bibliography{library}
\end{document}