我正在用 Latex 写一篇评论,我将参考文献直接写入 main.tex 文件中的“参考书目”部分,而不使用 BibTex 或 bibitems 或类似的东西。我想缩进除每个参考文献第一行之外的所有内容。我尝试了所有技术来对普通文本执行此操作,例如使用,\parindent
但它对直接写入“参考书目”部分的文本不起作用。
这就是我现在所拥有的:
\begin{thebibliography}{} \normalsize
Adams, F. C., Batygin, K., Bloch, A. M., \& Laughlin, G. (2020). Energy optimization in extrasolar planetary
systems:The transition from peas-in-a-pod to runaway growth. Monthly Notices of the Royal Astronomical Society,
493(4), 5520–5531. https://doi.org/10.1093/mnras/staa624\\[2mm]
Adams, E. R., Seager, S.,\& Elkins-Tanton, L. (2008). Ocean planet or thick atmosphere: On the mass-radius
relationship for solid exoplanets with massive atmospheres. The Astrophysical Journal, 673, 1160–1164.
https://doi.org/10.1086/524925\\[2mm]
ALMA Partnership, Brogan, C. L., Pérez, L. M., Hunter, T. R., Dent, W. R. F., Hales, A. S., et al. (2015).
The 2014 ALMA long baseline campaign: First results from high angular resolution observations toward the HL
Tau region. The Astrophysical Journal Letters, 808(1), L3. https://doi.org/10.1088/2041-8205/808/1/L3\\[2mm]
我知道这不太实用,也不是正确的方法,但我没有时间学习如何正确地做到这一点。提前谢谢您。
答案1
像这样吗?
\documentclass{article}
\usepackage{xurl}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\usepackage[authoryear,round,compress]{natbib}
\bibliographystyle{apalike}
\begin{document}
... \citep{adams-etal:2020,adams-etal:2008,alma-etal:2015}
\begin{thebibliography}{999}
\normalsize
\bibitem[Adams et al.(2020)]{adams-etal:2020} Adams, F. C., Batygin, K., Bloch, A. M., \& Laughlin, G. (2020).
Energy optimization in extrasolar planetary systems: The transition from peas-in-a-pod to runaway growth.
\emph{Monthly Notices of the Royal Astronomical Society},
\emph{493}(4), 5520--5531.
\url{https://doi.org/10.1093/mnras/staa624}
\bibitem[Adams et al.(2008)]{adams-etal:2008}Adams, E. R., Seager, S., \& Elkins-Tanton, L. (2008).
Ocean planet or thick atmosphere: On the mass-radius relationship for solid exoplanets with massive atmospheres.
\emph{The Astrophysical Journal}, \emph{673}, 1160--1164.
\url{https://doi.org/10.1086/524925}
\bibitem[ALMA Parternership et al.(2015)]{alma-etal:2015}ALMA Partnership, Brogan, C. L., Pérez, L. M., Hunter, T. R., Dent, W. R. F., Hales, A. S., et al. (2015).
The 2014 ALMA long baseline campaign: First results from high angular resolution observations toward the HL Tau region.
\emph{The Astrophysical Journal Letters}, \emph{808}(1), L3.
\url{https://doi.org/10.1088/2041-8205/808/1/L3}
\end{thebibliography}
\end{document}