Steve Litt wrote:
I have a special LyX URL environment that references LaTeX URLL environment that redefines quote, but no matter how hard I try, I can't get it to underline more than the first character of the URL. I already have the ulem package loaded, not that it's helped me.
Attached a possible solution using the package "hyperref" for the url command "\href" (produces a real hyperlink in the output) and the package "soul" for proper underlining also if the URL runs over a linebreak.
regards Uwe
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble %enable underlining together with linebreaks \usepackage{soul} \renewcommand{\underbar}[1]{\ul{#1}}
%generate real hyperlinks \usepackage[pdfborder={0 0 0}]{hyperref} \end_preamble \language ngerman \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 4 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet \layout Standard hello \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash href{http://lyx.org}{ \end_inset \bar under LyX-adress \bar default \begin_inset ERT status Collapsed \layout Standard } \end_inset \layout Standard olleh \the_end
newfile1.pdf
Description: Adobe PDF document