Hi, I hate the way LyX creates URLs from Insert/URL. I don't want to use ERT, but still I would like to make URLs behave better. Of course, I would like to do something in the spirit of
\let\oldurl=\url \renewcommand{\url}[1]{... do something with \oldurl and #1} but LyX creates description \url{URL} so when I would like to create (for example, what exactly would new \url do is not important): \let\oldurl=\url \newcommand{\dourl}[2]{\htmladdnormallink{#1}{#2}} \renewcommand{\url}[1]{MIRACLE HAPPENS HERE% \dourl{description}{#1}} I would have to persuade \url to take one string (separated by spaces) BEFORE the command. I think, that it should be possible to do it with some magical use of \csname and \expandafter, but I am not enough TeX guru to know how to make it fly. Can anybody help me? Thanks a lot, Matej -- Matej Cepl, http://www.ceplovi.cz/matej GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 The politician attempts to remedy the evil by increasing the very thing that caused the evil in the first place: legal plunder. -- Frederick Bastiat