Adding a new text class.

2007-01-18 Thread Ernesto Posse

Hi. I'm having problems adding my own text class. The layout file is
writen according to the documentation (and along the lines of typical
layout files) and is recognized by lyx (after rescanning for new tex
classes, reconfiguring and restarting,) but whenever I choose it as
the document class, I get the error "LyX: could not change class; The
document could not be converted into the document class MyClass."

 I don't see what the problem is, even though my example is very minimalistic

 First I have a tex class file called "MyClass.cls" which contains
the following:


\ProvidesClass{MyClass}


\newcommand{\hello}{Hello}


 This file is placed under a latex tree, and I did texhash so that
tex would find where it is. In LyX I do a rescan in the TeX info
dialog and it finds it.

 Then the layout file MyClass.layout, which is located in my
~/.lyx/layouts directory contains the following:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[MyClass]{MyClass}

Format 2
Columns 1
Sides   2
PageStyle   Headers

Input stdclass.inc

MaxCounter  Counter_Section
SecNumDepth 4
TocDepth3

Preamble
   \usepackage[dvips]{geometry}
EndPreamble

 I do a reconfigure and restart. The new class does appear in the
"document class" list but if I choose it, I get the error, even on a
new (empty) file.

 What am I doing wrong? Why is it not working?

 Thanks.




--
Ernesto Posse
Modelling, Simulation and Design Lab - School of Computer Science
McGill University - Montreal, Quebec, Canada
url: http://moncs.cs.mcgill.ca/people/eposse


Re: EPS problem

2007-01-18 Thread Paul A. Rubin

John Hughes wrote:
I would like to include EPS figures in my documents, but when I insert 
them they do not appear in the resulting PDF files. The documentation 
implies that EPS files should be supported natively - what am I doing 
wrong?




What platform are you running on?  Do you have ImageMagick installed? 
If you are a MikTeX user, is your MikTeX installation up to date?


/Paul



Re: replacing accented characters

2007-01-18 Thread Paul A. Rubin

Piersante Sestini wrote:

Maybe I should use a text editor on the lyx file?


That would be my approach.

/Paul



Re[6]: Bullets menu on LyX/Mac

2007-01-18 Thread Alan G Isaac
On Thu, 18 Jan 2007, Bob Lounsbury apparently wrote: 
> Yes, same problem here. Math fonts are not resized with 
> the Zoom function under 1.3.7 or 1.4.3. 


OK the, I see only one course of action:
HELP!
Can any developers comment??

Thank you,
Alan Isaac






Re[5]: Bullets menu on LyX/Mac

2007-01-18 Thread Bob Lounsbury


On Jan 18, 2007, at 10:16 AM, Alan G Isaac wrote:


On Thu, 18 Jan 2007, Bob Lounsbury apparently wrote:


What do mean by 'properly zoom the screen math fonts'?


I'm away from my computer but I think it was
Preferences->Look and Feel->Screen Fonts->Zoom
I'm trying to use Lyx in the classroom, so I need
the Zoom to be at least 200%.  When I change the
default to 200%, however, everything in a math
environment stays small.  (The rest of the text
is appropriately resized.)

Cheers,
Alan Isaac


Yes, same problem here. Math fonts are not resized with the Zoom  
function under 1.3.7 or 1.4.3.


Bob


Re: Custom text in enumerated list

2007-01-18 Thread Ingar Pareliussen
to. 18. januar 2007 17:29 skreiv John Yamokoski:
> Greetings everyone,
>
> I was wondering if someone could tell me how to do the following: I
> want to add some custom text to an enumerated list so that it comes
> out looking something like:
>
> Outcome 1. First item.
> Outcome 2. Second item.
> Outcome 3. Third item.

Hi
If you want a list with Outcome before the number in the list, that is not 
difficult and the answer is given here:
http://tug.org/TeXnik/mainFAQ.cgi?file=list/enumLabel

or for the lazy ;)
add
\renewcommand\labelenumi{Outcome \arabic{enumi}.}
to your preamble.

and you get 

Outcome 1. your text
Outcome 2. your text etc.

To get LaTeX to automagically add "first item" and "second item" etc spelled 
out is more tricky...

Ingar


Re: Bullets menu on LyX/Mac

2007-01-18 Thread Sue Kientz

Bob Lounsbury wrote:

On Jan 18, 2007, at 8:12 AM, Stephen Buonopane wrote:


I just noticed that the menu for changing bullet types
Documents Settings Bullets
has the bullet icons inverted with white characters on a black 
background which makes it very difficult to see.

Can anyone else confirm this?
I am using LyX 1.4.2 on Mac OS X 10.4.8

steve


Same for me under LyX 1.4.3 on Mac OS X 10.4.8.

Same for me, LyX 1.4.3, Mac OS X 10.4.8

Sue Kientz

Technical Writer/Web Manager
Computational Infrastructure for Geodynamics (CIG)
  http://www.geodynamics.org/
[EMAIL PROTECTED]
  ~Metaphors Be With You~





Re[4]: Bullets menu on LyX/Mac

2007-01-18 Thread Alan G Isaac
On Thu, 18 Jan 2007, Bob Lounsbury apparently wrote: 

> What do mean by 'properly zoom the screen math fonts'? 

I'm away from my computer but I think it was
Preferences->Look and Feel->Screen Fonts->Zoom
I'm trying to use Lyx in the classroom, so I need
the Zoom to be at least 200%.  When I change the
default to 200%, however, everything in a math
environment stays small.  (The rest of the text
is appropriately resized.)

Cheers,
Alan Isaac




Re[3]: Bullets menu on LyX/Mac

2007-01-18 Thread Bob Lounsbury


On Jan 18, 2007, at 10:05 AM, Alan G Isaac wrote:


On Thu, 18 Jan 2007, Bob Lounsbury apparently wrote:

LyX 1.4.3 on Mac OS X 10.4.8


Can you properly zoom the screen math fonts with this setup?
If so, did you have to do anything special to achieve that?

Thank you,
Alan Isaac


What do mean by 'properly zoom the screen math fonts'?




Re[2]: Bullets menu on LyX/Mac

2007-01-18 Thread Alan G Isaac
On Thu, 18 Jan 2007, Bob Lounsbury apparently wrote: 
> LyX 1.4.3 on Mac OS X 10.4.8 

Can you properly zoom the screen math fonts with this setup?
If so, did you have to do anything special to achieve that?

Thank you,
Alan Isaac






EPS problem

2007-01-18 Thread John Hughes
I would like to include EPS figures in my documents, but when I insert them 
they do not appear in the resulting PDF files. The documentation implies 
that EPS files should be supported natively - what am I doing wrong?


John

_
Find Love This New Year With match.com! http://msnuk.match.com



Re: Bullets menu on LyX/Mac

2007-01-18 Thread Bob Lounsbury


On Jan 18, 2007, at 8:12 AM, Stephen Buonopane wrote:


I just noticed that the menu for changing bullet types
Documents Settings Bullets
has the bullet icons inverted with white characters on a black  
background which makes it very difficult to see.

Can anyone else confirm this?
I am using LyX 1.4.2 on Mac OS X 10.4.8

steve


Same for me under LyX 1.4.3 on Mac OS X 10.4.8. However, under LyX  
1.3.7 it is a grey background with black bullet characters which is  
much nicer.


Bob Lounsbury
[EMAIL PROTECTED]
--
Please, if possible, don't send me MS Word or Powerpoint attachments.
Send plain text, rich text format, html, or pdf instead.
Why? See: http://www.gnu.org/philosophy/no-word-attachments.html
--
As an alternative to MS Word or Powerpoint.
LyX, OpenOffice




Custom text in enumerated list

2007-01-18 Thread John Yamokoski

Greetings everyone,

I was wondering if someone could tell me how to do the following: I
want to add some custom text to an enumerated list so that it comes
out looking something like:

Outcome 1. First item.
Outcome 2. Second item.
Outcome 3. Third item.

Thanks in advance,

J.D.


Bullets menu on LyX/Mac

2007-01-18 Thread Stephen Buonopane

I just noticed that the menu for changing bullet types
Documents Settings Bullets
has the bullet icons inverted with white characters on a black  
background which makes it very difficult to see.

Can anyone else confirm this?
I am using LyX 1.4.2 on Mac OS X 10.4.8

steve


Re: [announce] LyX150svn from 15-01-2007 for Windows

2007-01-18 Thread Olivier Ripoll

Uwe Stöhr wrote:

Olivier Ripoll schrieb:


This is bug 3091
http://bugzilla.lyx.org/show_bug.cgi?id=3091

Could you please post your example there, this assures that it won't 
get lost.


I am not sure it is the same. First because my bug is not limited to 
math mode, nor to the ^ character. And second, because this bug 
mentions subscript too, while subscript works fine for me.


The bug is more general, for me the first action I do fails. The formula 
was only one example.

But OK, open a separate bug to avaoid mixing the different cases.


There is no message in the console, unfortunately...


then start lyx from a console with the command

lyx -dbg any

Then there should be something in the console.


I posted the result in the bugzilla report for the crash.



regards Uwe



Best regards,

Olivier



Re: [announce] LyX150svn from 15-01-2007 for Windows

2007-01-18 Thread Uwe Stöhr

Olivier Ripoll schrieb:


This is bug 3091
http://bugzilla.lyx.org/show_bug.cgi?id=3091

Could you please post your example there, this assures that it won't 
get lost.


I am not sure it is the same. First because my bug is not limited to 
math mode, nor to the ^ character. And second, because this bug mentions 
subscript too, while subscript works fine for me.


The bug is more general, for me the first action I do fails. The formula was 
only one example.
But OK, open a separate bug to avaoid mixing the different cases.


There is no message in the console, unfortunately...


then start lyx from a console with the command

lyx -dbg any

Then there should be something in the console.


regards Uwe


Re: [announce] LyX150svn from 15-01-2007 for Windows

2007-01-18 Thread Olivier Ripoll

Uwe Stöhr wrote:

Olivier Ripoll schrieb:

I tested with a German keyboard and I have a very similar problem. In 
the German keyboard and a German layout, you have a key with " ´ " and 
" ` " as you said. The first time I used it to make a é (that is " ´ " 
followed by " e "), it returned a " è " and subsequent tries correctly 
produced " é ".


This is bug 3091
http://bugzilla.lyx.org/show_bug.cgi?id=3091

Could you please post your example there, this assures that it won't get 
lost.


I am not sure it is the same. First because my bug is not limited to 
math mode, nor to the ^ character. And second, because this bug mentions 
subscript too, while subscript works fine for me.


The Microsoft Layout program says that there is no error with my 
layout (I loaded it and validated it).  As I said, the only program 
failing is LyX. As you can see in my emails, I can produce all the 
accents I want.


I see. To help us, could you please open a new bug report and post the 
text that is displayed in LyX's console window when the accent creations 
fails, id there any error or warning message in the console?


There is no message in the console, unfortunately...

It seems that LyX interprets the first use of one of those keys as if 
SHIFT was on when not pressed and off when pressed (LyX inverses the 
character).


Please add this info to the bug report too.


I have opened 3115 for the crash, and included some details about the 
other diacritics there too.


However, the SHIFT 'inversion' is only for ` and ~ (same key on US 
keyboard) and for ´ and ` (same key on German keyboard). On US keyboard, 
 ' and " are on the same key, but the first time one is pressed, it 
does not result in the other being used instead. Just none.



regards Uwe


Best regards,

Olivier.



Re: [announce] LyX150svn from 15-01-2007 for Windows

2007-01-18 Thread Uwe Stöhr

Olivier Ripoll schrieb:

I tested with a German keyboard and I have a very similar problem. In 
the German keyboard and a German layout, you have a key with " ´ " and " 
` " as you said. The first time I used it to make a é (that is " ´ " 
followed by " e "), it returned a " è " and subsequent tries correctly 
produced " é ".


This is bug 3091
http://bugzilla.lyx.org/show_bug.cgi?id=3091

Could you please post your example there, this assures that it won't get lost.

The Microsoft Layout program says that there is no error with my layout 
(I loaded it and validated it).  As I said, the only program failing is 
LyX. As you can see in my emails, I can produce all the accents I want.


I see. To help us, could you please open a new bug report and post the text that is displayed in 
LyX's console window when the accent creations fails, id there any error or warning message in the 
console?


It seems that LyX interprets the first use of one of those keys as if 
SHIFT was on when not pressed and off when pressed (LyX inverses the 
character).


Please add this info to the bug report too.


regards Uwe


Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-18 Thread Jean-Marc Lasgouttes
> "Santiago" == Santiago Romero <[EMAIL PROTECTED]> writes:

Santiago> 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.

Santiago>  Sorry, I don't know what do you mean or how to do that :?

Fair enough :)

- go to the top of the document

- click on the TeX icon (ERT means "evil red text")

- enter \noshorthandsspanish in the box.

Now this \noshorthandsspanish command will be added explicitly to your
document.

Better?

JMarc


Re: LyX-Code env, bash source code, and "Bad character code (-1)"

2007-01-18 Thread Santiago Romero

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: [announce] LyX150svn from 15-01-2007 for Windows

2007-01-18 Thread Olivier Ripoll

Uwe Stöhr wrote:

Olivier Ripoll schrieb:

Using WinXP SP2, "English (United States)" keyboard with "United 
States International" layout, I observe a strange behaviour with the 
accents (^ ' ` " and ~).

With this layout, here is the expected behaviour:
"'" followed by "e" will give  é
"'" followed by space will give '
"'" followed by "'" will give ''


All these examples work here, the problem seems that you use the wrong 
character, use the " ´ " and not the " ' " key. I don't have an English 
keyboard, on my German the " ´ " and " ` " character are on the same 
keyboard button.


There is no such character on an American keyboard. The US-international 
layout I use on WinXP allows to produce nearly all the accentuated 
letters. It works on every software (PSPad, thunderbird, firefox, Word, 
OOo, outlook, Notepad, ...). The way to obtain the "acute" accentuated 
letters is by using the single quote (straight).


I tested with a German keyboard and I have a very similar problem. In 
the German keyboard and a German layout, you have a key with " ´ " and " 
` " as you said. The first time I used it to make a é (that is " ´ " 
followed by " e "), it returned a " è " and subsequent tries correctly 
produced " é ". I could also reproduce the crash (see below).


The Microsoft Layout program says that there is no error with my layout 
(I loaded it and validated it).  As I said, the only program failing is 
LyX. As you can see in my emails, I can produce all the accents I want.


It seems that LyX interprets the first use of one of those keys as if 
SHIFT was on when not pressed and off when pressed (LyX inverses the 
character).



 > Another bug I noticed is a crash (SIGSEV):

1- start LyX, create a new file
2- "ctrl+shift+m" to enter a display formula
3- type "a" followed by "^" then "2" (without the quotes) to produce a 
power 2

it crashes


Couldn't reproduce with latest SVN build. But anyway, when you found a 
bug please report it here:


bugzilla.lyx.org.
(please check that it isn't already reported)


I'll do this. I have four layouts installed on the computer which I can 
choose by the language bar. German and english-US (US-international) do 
result in this crash, but english-UK and english-US (US) dos not. 
However, those 2 cannot make any accentuated letters.


Best regards,

Olivier



replacing accented characters

2007-01-18 Thread Piersante Sestini
Having exported some Italian text to Tex from Abiword, I found that 
accented characters have been screwed, so that the accented "a" has been 
translated to "\`{a}" and so forth. Lyx doesn't understand this, and 
prints them as unaccented characters. How can I search-and-replace these 
characters? The search facility in lyx does not seem to find them 
neither as unaccented, accented, of with the \'{} code. Maybe I should 
use a text editor on the lyx file?


thanks,
Piersante