我正在尝试在 latex 中编写以下代码。但它们的输出效果不佳。如何修改此代码
\bibitem{wikibook}
Repetition code,
\url{https://en.wikipedia.org/wiki/Repetition_code}
\bibitem{ccode}
Cyclic Codes,
\url{http://www.work.caltech.edu/~ling/webs/EE127/EE127A/handout/Ch8.pdf}
\bibitem{cth}
\text{ Coding theory: the first 50 years}
\url{https://plus.maths.org/content/coding-theory-first-50-years}
答案1
我假设您正在加载url
和/或hyperref
包。为了避免单词之间出现较大的间隙,我建议您加载xurl
包而不是包url
。如果您hyperref
也加载包,请确保在the
“xurl”包之后加载它。
\documentclass{article}
\usepackage{xurl} % not 'url'
\usepackage[colorlinks,allcolors=blue]{hyperref} % optional
\begin{document}
\begin{thebibliography}{9}
\bibitem{wikibook}
Repetition code,
\url{https://en.wikipedia.org/wiki/Repetition_code}
\bibitem{ccode}
Cyclic Codes,
\url{http://www.work.caltech.edu/~ling/webs/EE127/EE127A/handout/Ch8.pdf}
\bibitem{cth}
Coding theory: the first 50 years,
\url{https://plus.maths.org/content/coding-theory-first-50-years}
\end{thebibliography}
\end{document}