我对如何使参考书目项目左对齐有疑问。
我当前的书目输出如下:
@misc{Steven,
author = {{Berkeley - School of Information}},
title = {{Steven Weber}},
howpublished = "\url{https://www.ischool.berkeley.edu/people/steven-weber/}",
year = {2019},
note = "[Online; acessado em 25-fev-2019]"
}
@misc{AnnaLee,
author = {{Berkeley - School of Information}},
title = {{AnnaLee Saxenian}},
howpublished = "\url{https://www.ischool.berkeley.edu/people/AnnaLee-Saxenian/}",
year = {2019},
note = "[Online; acessado em 25-fev-2019]"
}
如您所见,参考项目代码目前是右对齐的,而我需要将其左对齐。有什么想法可以实现吗?
我当前的参考书目代码是:
\documentclass[tikz,table,border=2mm,12pt]{article}
\usepackage{sbc-template}
\usepackage{graphicx}
\usepackage{url}
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tabu}
\usepackage{colortbl}
\usepackage{PTSansNarrow}
\usepackage[T1]{fontenc}
\usepackage{array,tabularx}
\usepackage[most]{tcolorbox}
\usepackage[colorlinks,citecolor=black,urlcolor=blue]{hyperref}
\usepackage{multirow}
\usepackage{threeparttable}
\usepackage{enumitem}
\newlist{steps}{enumerate}{1}
\setlist[steps, 1]{label = Passo \arabic*:}
\usepackage{indentfirst}
\usepackage{textgreek}
\bibliographystyle{unsrt}
\bibliography{sbc-template}
\end{document}
答案1
该sbc
包对 有一个奇怪的重新定义thebibliography
,部分撤消了它:
\documentclass[tikz,table,border=2mm,12pt]{article}
\usepackage{sbc-template}
\usepackage{graphicx}
\usepackage{url}
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tabu}
\usepackage{colortbl}
\usepackage{PTSansNarrow}
\usepackage[T1]{fontenc}
\usepackage{array,tabularx}
\usepackage[most]{tcolorbox}
\usepackage[colorlinks,citecolor=black,urlcolor=blue]{hyperref}
\usepackage{multirow}
\usepackage{threeparttable}
\usepackage{enumitem}
\newlist{steps}{enumerate}{1}
\setlist[steps, 1]{label = Passo \arabic*:}
\usepackage{indentfirst}
\usepackage{textgreek}
\usepackage{ragged2e}
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
%% changed!
% \itemindent -\leftmargin
\itemsep 6pt
%%%%%%%%%%%
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
\begin{document}
test
\nocite{*}
{
\RaggedRight
\bibliographystyle{unsrt}
\bibliography{sbc-template}
}
\end{document}