呢段落结束之前\ href@split完成。<要再次阅读

发布于 2025-02-06 03:41:48 字数 1547 浏览 2 评论 0原文

我正在尝试完成报告,但无法修复参考部分。

首先,我使用一些软件包来设置我的参考文献的显示方式。

% Bibliografia
\usepackage[round]{natbib}
\usepackage{hyperref}
\hypersetup{
  colorlinks=true,
  linkcolor=black,      
  urlcolor=blue,
  citecolor=black
}

在代码中,我编写了这些行以创建参考列表。

\bibliographystyle{dinat}

\bibliography{bibliografia2.bib}    

我还创建了.bib文件来存储以这种方式写文章的文章:

@article{gan2014longitudinal,
  title={Longitudinal wave propagation in a rod with 
  variable cross-section},
  author={Gan, Chunbiao and Wei, Yimin and Yang, 
  Shixi},
  journal={Journal of Sound and Vibration},
  volume={333},
  number={2},
  pages={434--445},
  year={2014},
  publisher={Elsevier},
  note  = {Disponível em 
  \href{https://doi.org/10.1016/j.jsv.2013.09.010}}
}

书籍是这样写的:

@book{graff2012wave,
  title={Wave motion in elastic solids},
  author={Graff, Karl F},
  year={2012},
  publisher={Courier Corporation},

}

,最后我使用\ citep命令在文本中引用:“ ... nos estudos de \ citep { wen2020 enhanced} mostra-se que avariaçãoda...“。

如果我评论行” \参考书目{bibliografia2.bib}该代码是正确编译的,因此我很确定该错误在参考部分中的某个位置。 [在此处输入图像描述] [1]

错误1:!在\ href@split完成之前结束段落。\ par

错误2:!乳胶错误:\ begin {thebibliography}在输入行1上以\ end {document {document}结尾。请参阅latex手册或乳胶伴侣以示意为hs type h,以立即提供帮助.. \ end end {document {document {文档} [1]: https://i.sstatic.net/7rzsz.png

谢谢大家!!!!

I am trying to finish a report but I can't fix the reference section.

First, I used some packages to set the way my references would be shown.

% Bibliografia
\usepackage[round]{natbib}
\usepackage{hyperref}
\hypersetup{
  colorlinks=true,
  linkcolor=black,      
  urlcolor=blue,
  citecolor=black
}

In the of the code, I wrote these lines to create the references list.

\bibliographystyle{dinat}

\bibliography{bibliografia2.bib}    

I also created .bib file to store the articles where articles were written this way:

@article{gan2014longitudinal,
  title={Longitudinal wave propagation in a rod with 
  variable cross-section},
  author={Gan, Chunbiao and Wei, Yimin and Yang, 
  Shixi},
  journal={Journal of Sound and Vibration},
  volume={333},
  number={2},
  pages={434--445},
  year={2014},
  publisher={Elsevier},
  note  = {Disponível em 
  \href{https://doi.org/10.1016/j.jsv.2013.09.010}}
}

books were written this way:

@book{graff2012wave,
  title={Wave motion in elastic solids},
  author={Graff, Karl F},
  year={2012},
  publisher={Courier Corporation},

}

And finally I cited in the text using the \citep command: "...Nos estudos de \citep{wen2020enhanced}
mostra-se que a variação da...".

If I comment the line "\bibliography{bibliografia2.bib} the code is compiled correctly so I am pretty sure the error is somewhere in the reference section.
[enter image description here][1]

error 1:! Paragraph ended before \href@split was complete.\par

error 2: ! LaTeX Error: \begin{thebibliography} on input line 1 ended by \end{document}.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... \end{document}
[1]: https://i.sstatic.net/7RzsZ.png

Thank you everybody !!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

っ左 2025-02-13 03:41:48

语法\ href {https://doi.org/10.1016/j.jsv.2013.09.010}是错误的。您要么想要

  • href {https://doi.org/10.1016/j.jsv.2013.09.010} {sere

\

  • } ://doi.org/10.1016/j.jsv.2013.09.010}

完整MWE:

\documentclass{article}

\usepackage{hyperref}

\begin{document}

\href{https://doi.org/10.1016/j.jsv.2013.09.010}{click here}

\url{https://doi.org/10.1016/j.jsv.2013.09.010}

\end{document}

The syntax \href{https://doi.org/10.1016/j.jsv.2013.09.010} is wrong. You either want

  • \href{https://doi.org/10.1016/j.jsv.2013.09.010}{click here} (notice the two mandatory arguments)

or

  • \url{https://doi.org/10.1016/j.jsv.2013.09.010}

Full MWE:

\documentclass{article}

\usepackage{hyperref}

\begin{document}

\href{https://doi.org/10.1016/j.jsv.2013.09.010}{click here}

\url{https://doi.org/10.1016/j.jsv.2013.09.010}

\end{document}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文