Re: LyX-Code doubt

2006-06-05 Thread Paul A. Rubin

Marc Vinyals wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

En/na Javier Moro Sotelo ha escrit:
Thank you for the help, now the lñast thing, where exactly shall I put those 
two lines?


If I understand Paul correctly, they should be at the LaTeX premble. You
 can access it through Document -> Settings... -> LaTeX Preamble. Just
copy and paste.



Yes, that's correct.

Incidentally, I filed a bug report on this.  Apparently the change from 
LyX 1.3.7 (where there is no problem) to LyX 1.4.1 (where the problem 
arises) was itself a fix for a difficult bug, so the initial reaction 
was that this bug might not be fixed.  However, that was just the first 
response; we'll see what other developers say.


Meanwhile, please let the list know if this fix works (in particular, 
does not cause any other problems).


/Paul



Re: LyX-Code doubt

2006-06-05 Thread Marc Vinyals
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

En/na Javier Moro Sotelo ha escrit:
> Thank you for the help, now the lñast thing, where exactly shall I put those 
> two lines?

If I understand Paul correctly, they should be at the LaTeX premble. You
 can access it through Document -> Settings... -> LaTeX Preamble. Just
copy and paste.

Marc.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEhKJIu4rFT+k3kmQRAr1AAKC3SwL06SiyGofAYgqIUiLEgoVnhwCfaWNj
x+arDDOALfZ7Ifolg17xc4Q=
=hL+1
-END PGP SIGNATURE-


Re: LyX-Code doubt

2006-06-05 Thread Javier Moro Sotelo
O Luns 05 Xuño 2006 18:31, Paul A. Rubin escribiu:
> \usepackage{babel}
> [EMAIL PROTECTED]

Thank you for the help, now the lñast thing, where exactly shall I put those 
two lines?

-- 
Javier Moro Sotelo <[EMAIL PROTECTED]>

key_id=0xA92B3FC8
server=hkp://subkeys.pgp.net


pgpD84MSKEYE9.pgp
Description: PGP signature


Re: LyX-Code doubt

2006-06-05 Thread Paul A. Rubin

Javier Moro Sotelo wrote:

O Luns 05 Xuño 2006 17:28, Paul A. Rubin escribiu:

This is a sample of the file, i get the error on the "n dcd -3, -5, -6" line

#LyX 1.4.1 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass article
\language spanish
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize default
\use_geometry false
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header

\begin_body

\begin_layout LyX-Code
area data
\end_layout

\begin_layout LyX-Code
n dcd -3, -5, -6
\end_layout

\end_body
\end_document



Congratulations!  You found a bug in LyX 1.4.1.  I'll report it to 
bugzilla.  Meanwhile, try the following two lines in your document preamble:


\usepackage{babel}
[EMAIL PROTECTED]


Hopefully that will fix the problem without screwing anything else up.

/Paul



Re: LyX-Code doubt

2006-06-05 Thread Javier Moro Sotelo
O Luns 05 Xuño 2006 17:28, Paul A. Rubin escribiu:

This is a sample of the file, i get the error on the "n dcd -3, -5, -6" line

#LyX 1.4.1 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass article
\language spanish
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize default
\use_geometry false
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header

\begin_body

\begin_layout LyX-Code
area data
\end_layout

\begin_layout LyX-Code
n dcd -3, -5, -6
\end_layout

\end_body
\end_document

> Javier Moro Sotelo wrote:
> > O Luns 05 Xuño 2006 00:00, Paul A. Rubin escribiu:
> >> Re: LyX-Code doubt
> >
> > First of all thaks for the help
> >
> > No, I'm not trying to define a new font, I'm trying to inserte an
> > assambler source code as part of my document (it's an article about ARM
> > assambler language)  but when I try to convert it to pdf I get the error:
> > "A character number must be beetweeb 0 and  255. I changed this one to
> > zero" because the source code contains some negative numbers:
> >
> > some code
> > ***
> > num1 dcd 3, 17, 27, 12, 322 ->> this is the line where I get the error
> > message ***
> > some code
> >
> > If you want I can send you the lyx file to see it clearly.
>
> The source code is just text to LaTeX, so the error message is probably
> something else -- possibly a non-printing character inconsistent with
> the document's character encoding got pasted in accidentally (?).
> Anyway, yes, the best thing would be to post the LyX file.  It would
> help if you cut it down to a minimal example.
>
> /Paul

-- 
Javier Moro Sotelo <[EMAIL PROTECTED]>

key_id=0xA92B3FC8
server=hkp://subkeys.pgp.net


pgpkzaZbwZmDG.pgp
Description: PGP signature


Re: LyX-Code doubt

2006-06-05 Thread Paul A. Rubin

Javier Moro Sotelo wrote:

O Luns 05 Xuño 2006 00:00, Paul A. Rubin escribiu:

Re: LyX-Code doubt


First of all thaks for the help

No, I'm not trying to define a new font, I'm trying to inserte an assambler 
source code as part of my document (it's an article about ARM assambler 
language)  but when I try to convert it to pdf I get the error: "A character 
number must be beetweeb 0 and  255. I changed this one to zero" because the 
source code contains some negative numbers:
 
some code

***
num1 dcd 3, 17, 27, 12, 322 ->> this is the line where I get the error message
***
some code

If you want I can send you the lyx file to see it clearly.



The source code is just text to LaTeX, so the error message is probably 
something else -- possibly a non-printing character inconsistent with 
the document's character encoding got pasted in accidentally (?). 
Anyway, yes, the best thing would be to post the LyX file.  It would 
help if you cut it down to a minimal example.


/Paul



Re: LyX-Code doubt

2006-06-04 Thread Javier Moro Sotelo
O Luns 05 Xuño 2006 00:00, Paul A. Rubin escribiu:
> Re: LyX-Code doubt

First of all thaks for the help

No, I'm not trying to define a new font, I'm trying to inserte an assambler 
source code as part of my document (it's an article about ARM assambler 
language)  but when I try to convert it to pdf I get the error: "A character 
number must be beetweeb 0 and  255. I changed this one to zero" because the 
source code contains some negative numbers:
 
some code
***
num1 dcd 3, 17, 27, 12, 322 ->> this is the line where I get the error message
***
some code

If you want I can send you the lyx file to see it clearly.

-- 
Javier Moro Sotelo <[EMAIL PROTECTED]>

key_id=0xA92B3FC8
server=hkp://subkeys.pgp.net


pgp7IVRk3eHAi.pgp
Description: PGP signature


Re: LyX-Code doubt

2006-06-04 Thread Paul A. Rubin

Javier Moro Sotelo wrote:

Hi everybody, first of all, my name is Javier and I'm new to latex lyx and to
the list of course.

The doubt I have is about using LyX-Code for inserting font code on a lyx
document. I followed the steps one by one, I inserted a ploat algorithm, then 
I

select the LyX-Code environment, and everything whent ok, but when I try to
convert it to pdf I get the error: A character number must be beetweeb 0 and
255. I changed this one to zero.

Ok I understand the error, it's in this line of the font code I inserted: NUM1
DCD 3, -17, -27, 12, 322, and it's because of the negative numbers.

My question is: Is there a way to insert negative numbers in my font code? Am 
I doing something wrong?


Thank you in advance for the help

Regards...

moro



Javier,

First, welcome to the list.  Second, I'm a little confused by what you 
mean by the "font code I inserted".  Are you defining a new font (in 
ERT)?  This does not match the arguments of the LaTeX font commands I've 
seen, but then I'm pretty weak when it comes to font commands.


Perhaps you could just post a minimal example that triggers the error 
message?


/Paul



LyX-Code doubt

2006-06-03 Thread Javier Moro Sotelo
Hi everybody, first of all, my name is Javier and I'm new to latex lyx and to
the list of course.

The doubt I have is about using LyX-Code for inserting font code on a lyx
document. I followed the steps one by one, I inserted a ploat algorithm, then 
I
select the LyX-Code environment, and everything whent ok, but when I try to
convert it to pdf I get the error: A character number must be beetweeb 0 and
255. I changed this one to zero.

Ok I understand the error, it's in this line of the font code I inserted: NUM1
DCD 3, -17, -27, 12, 322, and it's because of the negative numbers.

My question is: Is there a way to insert negative numbers in my font code? Am 
I doing something wrong?

Thank you in advance for the help

Regards...

moro

-- 
Javier Moro Sotelo <[EMAIL PROTECTED]>

key_id=0xA92B3FC8
server=hkp://subkeys.pgp.net


pgpISYjdr0GMA.pgp
Description: PGP signature