I'm using TeXmaker for OS X with pdflatex
extension (I'm new to LaTeX, too), I've a problem with the hyperref
package. I can't put https://
, and special char like ?
. My document class is report
.
Here is how I use the command:
\url{www.orange-sans-guigne.com/osg-forum/viewtopic.php?id=379}
And I get
www.orange-sans-guigne.com/osg-forum/viewtopic.php\protect\relax?id=379
When I add https://
I get:
https\protect\relax:\@beginparpenalty=\@M\relax//www.orange-sans-guigne. com/osg-forum/viewtopic.php\protect\relax?id=379
I tried to use url
package, but I get an error because I use hyperref
.
Solution
\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{french} % This is why I got my url broken
\usepackage[french]{babel} % This is the solution
\PassOptionsToPackage{hyphens}{url}\usepackage[pdfpagelabels,plainpages=false]{hyperref}
\usepackage{url}
\begin{document}
\url{www.orange-sans-guigne.com/osg-forum/viewtopic.php?id=379}
\end{document}
\documentclass{report} \usepackage[pdfpagelabels,plainpages=false]{hyperref} \usepackage{url} \begin{document} \url{www.orange-sans-guigne.com/osg-forum/viewtopic.php?id=379} \end{document}
french
package is not commonly used, a minimal example of code is really necessary.