在双栏论文中拆分长 URL

在双栏论文中拆分长 URL

我正在写双栏 Springer 论文,当我使用 \url{} 和长 URL 时,它不能正确拆分,我尝试了此链接中描述的一些解决方案tex.stackexchange.com/a/49791/124577。 但它们对我没有用。

在此处输入图片描述

\RequirePackage{fix-cm}

\documentclass[natbib,twocolumn]{svjour3}          % 
\PassOptionsToPackage{hyphens}{url}
\usepackage[colorlinks,citecolor=blue]{hyperref}
\usepackage{url}
%
\smartqed  % flush right qed marks, e.g. at end of proof
%Packages-------------------------------------------------------
% \usepackage{mathptmx}      % use Times fonts if available on your TeX system
%
% insert here the call for the packages your document requires
%\usepackage{latexsym}
% etc.
%
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{siunitx}
%\usepackage{booktabs}
\usepackage{refstyle}
%\usepackage{amsfonts,eqnarray}
\usepackage{empheq,etoolbox}
\usepackage{amstext}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{enumerate}
\usepackage{epstopdf}
\usepackage{breqn}
\usepackage{mathtools}
%--------------------------------------------------------------
\usepackage{newlfont}
\usepackage{booktabs,tabularx}% <-- new
\usepackage{ragged2e}% <-- new
\usepackage{lscape}
\usepackage{multirow}
\usepackage{epsfig}
\newcommand\hmmax{0}
\newcommand{\bmmax}{3}
\usepackage{bm}
\usepackage{soul}
\usepackage[titletoc,title]{appendix}
%--------------------------------------------------------------
\usepackage{algorithm}
\usepackage{algpseudocode}

\usepackage{mathptmx}
\usepackage{lipsum} % for mock text
\newcounter{resume}

\usepackage{float}
\usepackage{stfloats}
%---------------------------------------------------------------
% please place your own definitions here and don't use \def but
% \newcommand{}{}
% Update display of subequation numbering (Xy) > (X.y)
\patchcmd{\subequations}% <cmd>
  {\theparentequation\alph{equation}}% <search>
  {\theparentequation.\alph{equation}}% <replace>
  {}{}% <success><failure>
%--------------------------------------------------------------
\DeclareMathOperator{\Tria}{Tria}
%--------------------------------------------------------------
%end Packages--------------------------------------------------

\begin{document}

\begin{abstract}

\end{abstract}

\section{Introduction}
\label{intro}


\lipsum[1-2]
\ul{B. Second procedure : differentiating the QR algorithm}\\
We are using MATLAB version R2015b, which uses LAPACK library. and the MATLAB expression [Q,R] = qr(A,0) returns the output of LAPACK's dgeqrf routine (Linear Algebra PACKage, \url{http://www.netlib.org/lapack/explore-html/d3/d69/dgeqrf_8f.html}). The dgeqrf algorithm compute the QR
\lipsum[2]

\end{document}

答案1

在此处输入图片描述

\documentclass{article}

\usepackage{hyperref}

\begin{document}

\section{fussy}

\parbox{8.5cm}{\fussy
We are using MATLAB version 2015b, which uses LA\-PACK
libray and the  MATLAB zzzz zzzz zzzz zzzz zzzz zzzz
 zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz
zzzz zzzzzzzzzzzzzzzz
\url{http://www.netlib.org/lapack/explore-html/df/d32/dgerfs_8f.html}
The GEQRF zzz zzz.}


\section{sloppy}

\parbox{8.5cm}{\sloppy
We are using MATLAB version 2015b, which uses LA\-PACK
libray and the  MATLAB zzzz zzzz zzzz zzzz zzzz zzzz
 zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz
zzzz zzzzzzzzzzzzzzzz
\url{http://www.netlib.org/lapack/explore-html/df/d32/dgerfs_8f.html}
The GEQRF zzz zzz.}

\section{fussy with hfill}

\parbox{8.5cm}{\fussy
We are using MATLAB version 2015b, which uses LA\-PACK
libray and the  MATLAB zzzz zzzz zzzz zzzz zzzz zzzz
 zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz zzzz
zzzz zzzzzzzzzzzzzzzz \hfill
\url{http://www.netlib.org/lapack/explore-html/df/d32/dgerfs_8f.html}
The GEQRF zzz zzz.}




\end{document}

相关内容