Karakas Online

6.4.5. URLs with underscore display '_' instead of '_'

Any URL that has an underscore in it (like the link to awkscr_insert_index_items) shows '&lowbar' in place of '_'. To correct this, you must check the checkbox “ HTML type” when you insert the URL in LyX, see Figure 6-1.

Figure 6-1. Insert URL with underscores in LyX.

Insert URL with underscores in LyX.

Insert URL with underscores in LyX.

When you do this, you should NOT write underscores as '_'. You should write an underscore as is, i.e. as '_', in both the URL and the Name fields Figure 6-1.

FIXME: This still does not solve the problem in PDFs: there, the underscore is interpreted mathematically, making the character following the underscore to appear as a subscript. Moreover, if the link does not have an ending, it gets the standard ending for PDFs, namely “.pdf” attached to it, which is definitely wrong. Try this link: awkscr_insert_index_items, in HTML and in PDF to see the difference!

Last updated Mon Sep 24 01:19:25 CEST 2007 Permalink: http://www.karakas-online.de/mySGML/urls-with-underscore.html All contents © 2002-2007 Chris Karakas