![Hangparas 环境使文本超出页面范围](https://linux22.com/image/419204/Hangparas%20%E7%8E%AF%E5%A2%83%E4%BD%BF%E6%96%87%E6%9C%AC%E8%B6%85%E5%87%BA%E9%A1%B5%E9%9D%A2%E8%8C%83%E5%9B%B4.png)
我一直在使用 hangparas 环境手动制作参考书目绞刑环境,但文本超出了页面范围。这里是我编译时的样子。这是一个 MWE:
\documentclass[12pt]{report}
\usepackage{hanging}
\begin{document}
text
\begin{hangparas}{0.5in}{1}
Allen, Barry. ``Chan Buddhism." In \textit{Vanishing into Things}, 140-65. Cambridge, Massachusetts; London, England: Harvard University Press, 2015. Accessed August 13, 2020. www.jstor.org/stable/j.ctt1c84dn5.7.
Hershock, Peter. ``Chan Buddhism." \textit{Stanford Encyclopedia of Philosophy}. Stanford University, March 2, 2019. Last modified March 2, 2019. Accessed August 13, 2020. https://plato.stanford.edu/entries/buddhism-chan/.
Sharf, Robert. "Mindfulness and Mindlessness in Early Chan." \textit{Philosophy East and West} 64, no. 4 (2014): 933-64. Accessed August 13, 2020. www.jstor.org/stable/43285932.
Wang, Youru. "Liberating Oneself from the Absolutized Boundary of Language: A Liminological Approach to the Interplay of Speech and Silence in Chan Buddhism." \textit{Philosophy East and West} 51, no. 1 (2001): 83-99. Accessed August 13, 2020. www.jstor.org/stable/1400037.
Y\"u, Ch\"un-fang. ``The Meditation Tradition: Chan Buddhism." In \textit{Chinese Buddhism: A Thematic History}, 172-97. Honolulu: University of Hawai'i Press, 2020. Accessed August 13, 2020. doi:10.2307/j.ctv105b9zz.11.
Zong, Desheng. ``Three Language-Related Methods in Early Chinese Chan Buddhism." \textit{Philosophy East and West} 55, no. 4 (2005): 584-602. Accessed August 13, 2020. www.jstor.org/stable/4487989.
\end{hangparas}
\end{document}
我是否做错了什么或者忽略了什么?
PS 我知道我应该使用 BibLaTeX/baber 或其他一些书目制作工具,但目前我没有时间坐下来学习如何使用这些工具。我只想现在解决这个问题,完成作业,然后再学习如何使用 BibLaTeX。
答案1
我知道我应该使用 BibLaTeX/baber
你也知道thebibliography
环境吗?它只是手动制作参考书目,没有包也没有外部文件,带有悬挂缩进但自动标记\编号,并允许在文本中使用参考文献的关键字进行交叉引用,并自动打印页眉。
引用总是在内[]
(例如:[23]
或者[Simth05]
如果在中有标签“Simth05” \bibitem
),但下面的例子展示了使用括号的肮脏伎俩。
您hyperref
还可以使引用成为活动链接,也可以使用命令\url{}
使 URL 成为活动链接,此外,正如 David Purton 所建议的那样,解决一些长 URL 侵入右边距的问题:
下一个示例展示如何使用假作者年份(标签)样式或数字(当然,混合仅用于演示目的)引用参考文献。
代码:
\documentclass[12pt]{article}
\usepackage{url}
\usepackage[colorlinks,citecolor=blue]{hyperref}
\usepackage{natbib}\setcitestyle{numbers} % dirty trick to change [] to ()
\begin{document}
Some numeric cites about Buddhism \cite{Hershock2019} or whatever \cite{Sharf2014,Wang2001}. Some author-year cites about meditation text \cite{Yu2020} and Buddhism \cite{Barry2015, Zong2005}.
\begin{thebibliography}{xxx}
\bibitem{Hershock2019} Hershock, Peter. Chan Buddhism.\textit{Stanford Encyclopedia of Philosophy}. Stanford University, March 2, 2019. Last modified March 2, 2019. Accessed August 13, 2020. \url{https://plato.stanford.edu/entries/buddhism-chan/}.
\bibitem{Sharf2014} Sharf, Robert. "Mindfulness and Mindlessness in Early Chan. \textit{Philosophy East and West} 64, no. 4 (2014): 933-64. Accessed August 13, 2020. \url{www.jstor.org/stable/43285932}.
\bibitem{Wang2001} Wang, Youru. Liberating Oneself from the Absolutized Boundary of Language: A Liminological Approach to the Interplay of Speech and Silence in Chan Buddhism. \textit{Philosophy East and West} 51, no. 1 (2001): 83-99. Accessed August 13, 2020. \url{www.jstor.org/stable/1400037}.
\bibitem[Barry,~2015]{Barry2015} Allen, Barry. Chan Buddhism. In \textit{Vanishing into Things}, 140-65. Cambridge, Massachusetts; London, England: Harvard University Press, 2015. Accessed August 13, 2020. \url{www.jstor.org/stable/j.ctt1c84dn5.7.}
\bibitem[Zong,~2005]{Zong2005} Zong, Desheng. Three Language-Related Methods in Early Chinese Chan Buddhism. \textit{Philosophy East and West} 55, no. 4 (2005): 584-602. Accessed August 13, 2020. \url{www.jstor.org/stable/4487989}.
\bibitem[Yü,~2020]{Yu2020} Yü, Chü-fang. The Meditation Tradition: Chan Buddhism.In \textit{Chinese Buddhism: A Thematic History}, 172-97. Honolulu: University of Hawaii Press, 2020. Accessed August 13, 2020. \url{doi:10.2307/j.ctv105b9zz.11}.
\end{thebibliography}
\end{document}
笔记:
由于关于括号的一条评论来自cite
包的作者,这里有一种使用的替代方法natbib
,也可以在引用中更改括号:
\usepackage[biblabel]{cite}
\renewcommand\citeleft{(}
\renewcommand\citeright{)}
答案2
是的,您应该使用诸如 Biber 或 BibTeX 之类的参考书目工具。
无论如何,您面临的主要问题是 URL。
\documentclass[12pt]{report}
\usepackage{hanging}
\usepackage{xurl}
\begin{document}
text text text text text text text text
text text text text text text text text
text text text text text text text text
text text text text text text text text
text text text text text text text text
\bigskip
\begin{hangparas}{0.5in}{1}
Allen, Barry. ``Chan Buddhism.'' In \textit{Vanishing into Things}, 140-65.
Cambridge, Massachusetts; London, England: Harvard University Press, 2015.
Accessed August 13, 2020. \url{www.jstor.org/stable/j.ctt1c84dn5.7}.
Hershock, Peter. ``Chan Buddhism.'' \textit{Stanford Encyclopedia of Philosophy}.
Stanford University, March 2, 2019. Last modified March 2, 2019. Accessed August 13, 2020.
\url{https://plato.stanford.edu/entries/buddhism-chan/}.
Sharf, Robert. ``Mindfulness and Mindlessness in Early Chan.'' \textit{Philosophy East and West}
64, no. 4 (2014): 933-64. Accessed August 13, 2020. \url{www.jstor.org/stable/43285932}.
Wang, Youru. ``Liberating Oneself from the Absolutized Boundary of Language: A Liminological
Approach to the Interplay of Speech and Silence in Chan Buddhism.''
\textit{Philosophy East and West} 51, no. 1 (2001): 83-99. Accessed August 13, 2020.
\url{www.jstor.org/stable/1400037}.
Y\"u, Ch\"un-fang. ``The Meditation Tradition: Chan Buddhism.'' In
\textit{Chinese Buddhism: A Thematic History}, 172-97.
Honolulu: University of Hawai'i Press, 2020. Accessed August 13, 2020.
\url{doi:10.2307/j.ctv105b9zz.11}.
Zong, Desheng. ``Three Language-Related Methods in Early Chinese Chan Buddhism.''
\textit{Philosophy East and West} 55, no. 4 (2005): 584-602. Accessed August 13, 2020.
\url{www.jstor.org/stable/4487989}.
\end{hangparas}
\end{document}
有了xurl
,任何一点都适合打破 URL。
您还应该遵循以下引言:
`` opening
'' closing