Re: LyX-Code env, bash source code, and "Bad character code (-1)"
Jean-Marc Lasgouttes wrote: "Santiago" == Santiago Romero <[EMAIL PROTECTED]> writes: Santiago> I've tried to add \noshorthandsspanish in the Document Santiago> Preamble (Document -> Configuration -> LaTeX Preamble), and Santiago> I get an error: Santiago> "Undefined control sequence Santiago> \noshorthandsspanish Try to put it as ERT at the beginning of your document. JMarc Sorry, I don't know what do you mean or how to do that :? -- Santiago Romero
Re: LyX-Code env, bash source code, and "Bad character code (-1)"
Santiago> Any idea of what I'm doing wrong? :? What you are doing wrong is write in Spanish :) The Spanish mode makes the ~ character active so that people can type ~n for ñ and stuff like that. This is unfortunately not compatible with LyX-Code where hard spaces are output as ~. Try to add \noshorthandsspanish in the preamble. You're right. If I change Document Language from Spanish to English, then it works perfectly, although I read "Chapter 1" instead of "Capitulo 1" in the resulting DVI file. I've tried to add \noshorthandsspanish in the Document Preamble (Document -> Configuration -> LaTeX Preamble), and I get an error: "Undefined control sequence \noshorthandsspanish The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. " Any idea? :? -- Santiago Romero
LyX-Code env, bash source code, and "Bad character code (-1)"
Hi, I'm running LyX 1.4.3-2~edgy1 under kubuntu, and I have an strange error that I don't remember to suffer in previous LyX versions (it's been 1 year since last time I used LyX). I'm writing a document (book) and I need to include shell (bash) source code embebed. I'm using the LyX-Code environment and pasting the source code as lines. The problem is that I can't paste "-" characters. I mean, I paste under LyX-Code the following source code: #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` exec softlimit -m 300 \ (...) Then I select View -> DVI and I get the following error in each of the - (minus) signs of the above code: " Bad character code (-1) QMAILDUID=`id~-u ~qmaild` A character number must be between 0 and 255. I changed this one to zero. " (The same error for each of the "-" signs in my code). If I remember correctly, I've used "-" signs in my source code into the "Lyx-Code" environment for years and I never got this message ... Any idea of what I'm doing wrong? :? Thanks -- Santiago Romero