Re: Off Topic: Database for citations?

2009-07-28 Thread Wolfgang Engelmann
Am Tuesday 28 July 2009 03:34:47 schrieb Ralf Schaa:

I am using in JabRef Web search  fetch medline (there are others)
Wolfgang
 Hi all,

 just wondering - instead of searching zillions of library pages to find the
 correct citation (downloadable in BibTex, Endnote, whatever...), there sure
 must be a webpage just dedicated to this sort of stuff ... something like
 'http://adsabs.harvard.edu/' only larger ... couldn't find it however. Any
 hints?

 Cheers
 -Ralf


Re: LyX and LaTeX?????, LyX y LaTeX?????

2009-07-28 Thread Siegfried Meunier-Guttin-Cluzel
Have you tried File - Import- LaTeX (plain) or something like that (my 
LyX is in french !).


Siegfried.


Re: noweb should be a module not a class

2009-07-28 Thread Sam Liddicott
* Sam Liddicott wrote, On 27/07/09 11:21:
 I think noweb should not exist as a class, but as a module; what if I
 want to do a KOMA-script book with noweb fragments in?

I am now absolutely certain that noweb should be a module and not a class.

I see however that noweb (literate) file format is important to exist so
that noweave knows when to be called.

This is not enough reason to have noweb as a format though, modules must
also have the capability to be inserted into the output pipeline and
make transformations.

noweave should be called if the noweb module is used.

- almost noweave should always be called if it exists!

However I see that there is no conversion filter from Lyx - Latex like
there is from noweb - latex

However when add add a conversion filter from Lyx - Latex I see that it
is never called; is there a way to make this work?

I would add a convertor which piped through awk to detect if noweb
module was used. If so; it would re-invoke through noweave, or after so
many lines of not finding the noweb module it would become pass-through.

Sam


Re: Off Topic: Database for citations?

2009-07-28 Thread Pavel Sanda
Ralf Schaa wrote:
 just wondering - instead of searching zillions of library pages to find the
 correct citation (downloadable in BibTex, Endnote, whatever...), there sure 
 must
 be a webpage just dedicated to this sort of stuff ... something like
 'http://adsabs.harvard.edu/' only larger ... couldn't find it however.
 Any hints? 

you can also change google scholar settings that for each paper you get
bibtex entry to download.

pavel


Re: noweb should be a module not a class

2009-07-28 Thread Sam Liddicott
Wahey: maybe we can get noweb as a module very simply...

I added this file noweb.module to my .lyx/layouts directory (and
reconfigured Lyx).

--8-8-8-8-8-8-8-8-8---
#\DeclareLyXModule[noweb.sty]{Noweb}
#DescriptionBegin
#Adds \usepackage{noweb} to your document, along with the Scrap style.
#Also fixes the CharStyle:Code to work with noweb, redefining nowebs
#\code command to \nwcode (if you need it).
#DescriptionEnd

Format 11

AddToPreamble
\usepackage{noweb}
% noweb breaks code command
\newcommand{\nwcode}{\code}
\renewcommand{\code}[1]{\texttt{#1}}
EndPreamble

Input literate-scrap.inc
--8-8-8-8-8-8-8-8-8---

And now I can add Noweb module to article (KOMA-Script) and have the
Scrap style made available.

Because literate-scrap.inc says:
OutputType  literate

I get my .nw conversions for free!

I get the warnings:

Package(s) required: noweb.sty.
WARNING: Some required packages are unavailable!

and

Warning: Package not available

The module literate requires a package that is
not available in your LaTeX installation. LaTeX output
may not be possible.


Which I don't understand as I have /usr/share/texmf/tex/plain/misc/noweb.sty

However LaTeX output is just fine!

If I get this fixed, perhaps we can add noweb as a module?

Sam


Re: paste gvim -- lyx

2009-07-28 Thread Hellmut Weber

Hi Ignacio,

Ignacio García schrieb:

El 27 de julio de 2009 23:16, Hellmut Weberm...@hellmutweber.de escribió:


Your recipe does not work for me when
* marking text in gvim using shift-V / C-v
* marking text with the mouse from the output in a terminal (konsole)

So thanks a lot, kedit provides a workaround.

Do you have any idea what to do with vim and from text output to a terminal?


In gvim Edit  Copy and in LyX Paste Special works fine here
And with gnome-terminal works the same too:
Marking text with the mouse,
Edit  Copy or Ctrl-Shift-C
then in LyX, EditPasteSpecialSimpleText or Ctrl-Shift-C
and the text is pasted with line breaks

(Sometimes I use the middle mouse button to paste, but no line breaks)

I think you use kde (I do not) and there the things can be a bit different.
Perhaps you get better help  from kde users in LyX users list.

Thanks that did it ;-)))

Sorry that I didn't mention KDE, your assumption is correct.

A bit of further testing shows that this process can be optimezed in 
both cases:


Konsole:
1. Mark text using the mouse
2. shift+ctrl+c
3. switch to lyx
4. shift+ctrl+v

gvim:
1. Mark text using shift+V + arrow keys
2. shift to lyx
3. shift+ctrl+v

Whenever I can I avoid using the mouse.

Thanks again and happy LyXing


Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



[Fwd: Re: paste gvim -- lyx]

2009-07-28 Thread Hellmut Weber

Sorry,
it must be

gvim:
1. Mark text using shift+V + arrow keys
2. alt+e, c (Menu edit, copy)
3. shift to lyx
4. shift+ctrl+v

Cheers

Hellmut


 Original-Nachricht 
Betreff: Re: paste gvim -- lyx
Datum: Tue, 28 Jul 2009 12:04:28 +0200
Von: Hellmut Weber m...@hellmutweber.de
Antwort an: m...@hellmutweber.de
An: Ignacio García ignacio.gmora...@gmail.com,  LyX Users List 
lyx-users@lists.lyx.org
Referenzen: 
5994c290907261132o5fc80fefy84fb74c99e734...@mail.gmail.com 
4a6e192b.8030...@hellmutweber.de 
5994c290907280110x6ef8c702hf9340c1ebbdf4...@mail.gmail.com


Hi Ignacio,

Ignacio García schrieb:

El 27 de julio de 2009 23:16, Hellmut Weberm...@hellmutweber.de escribió:


Your recipe does not work for me when
* marking text in gvim using shift-V / C-v
* marking text with the mouse from the output in a terminal (konsole)

So thanks a lot, kedit provides a workaround.

Do you have any idea what to do with vim and from text output to a terminal?


In gvim Edit  Copy and in LyX Paste Special works fine here
And with gnome-terminal works the same too:
Marking text with the mouse,
Edit  Copy or Ctrl-Shift-C
then in LyX, EditPasteSpecialSimpleText or Ctrl-Shift-C
and the text is pasted with line breaks

(Sometimes I use the middle mouse button to paste, but no line breaks)

I think you use kde (I do not) and there the things can be a bit different.
Perhaps you get better help  from kde users in LyX users list.

Thanks that did it ;-)))

Sorry that I didn't mention KDE, your assumption is correct.

A bit of further testing shows that this process can be optimezed in
both cases:

Konsole:
1. Mark text using the mouse
2. shift+ctrl+c
3. switch to lyx
4. shift+ctrl+v

gvim:
1. Mark text using shift+V + arrow keys
2. shift to lyx
3. shift+ctrl+v

Whenever I can I avoid using the mouse.

Thanks again and happy LyXing


Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: [Fwd: Re: paste gvim -- lyx]

2009-07-28 Thread Sam Liddicott
* Hellmut Weber wrote, On 28/07/09 11:08:
 Sorry,
 it must be
 
 gvim:
 1. Mark text using shift+V + arrow keys
 2. alt+e, c (Menu edit, copy)
 3. shift to lyx
 4. shift+ctrl+v

Lyx could do with a paste mode that used CTRL+Enter type line joinings,
which would make pasting into code-scraps much easier.

Sam


Question: View/Export PDF to Directory

2009-07-28 Thread Ken
Hi all,

I have a simple question which I could not find an answer to online to
which I was hoping an experienced LyX user may know the solution.

When I click on File  Export  PDF (pdflatex) the .pdf file gets
generated in the same folder as the .lyx file. Would it be possible to
have the .pdf file generated in a sub-directory of this folder--say, a
folder named ./pdf or ./export? (I like saving my figures in a
sub-directory and would similarly like the pdfs to automatically be
saved in a subfolder so that only .lyx files are in the main directory
for the project.

Related to the above, when I click on View  PDF (pdflatex) the .pdf
file gets generated in a temporary folder. Would if be possible to
have these generated in a sub-directory of the folder where the .lyx
file resides--say, a folder named ./draft?  Would it be possible to
add a date prefix to the filename too? This would be so that I could
save pdf drafts of the file.

How would I change the settings for these? (NB. I am a LyX 1.6.3 user
on Windows XP).

Thanks!

Ken


Re: Question: View/Export PDF to Directory

2009-07-28 Thread Sam Liddicott
* Ken wrote, On 28/07/09 12:28:
 Hi all,
 
 I have a simple question which I could not find an answer to online to
 which I was hoping an experienced LyX user may know the solution.
 
 When I click on File  Export  PDF (pdflatex) the .pdf file gets
 generated in the same folder as the .lyx file. Would it be possible to
 have the .pdf file generated in a sub-directory of this folder--say, a
 folder named ./pdf or ./export? (I like saving my figures in a
 sub-directory and would similarly like the pdfs to automatically be
 saved in a subfolder so that only .lyx files are in the main directory
 for the project.
 
 Related to the above, when I click on View  PDF (pdflatex) the .pdf
 file gets generated in a temporary folder. Would if be possible to
 have these generated in a sub-directory of the folder where the .lyx
 file resides--say, a folder named ./draft?  Would it be possible to
 add a date prefix to the filename too? This would be so that I could
 save pdf drafts of the file.
 
 How would I change the settings for these? (NB. I am a LyX 1.6.3 user
 on Windows XP).


I guess you look at your Lyx preferences File Handling, Converters.

For Latex (plain) - DVI I guess you could change the converter from
latex to c:\bin\latex-dvi.bat $$i $$o

and your batch file could be:

@echo off
mkdir draft
latex %1 %2
move %2 draft


Or something along those lines; and do likewise your your other converters

Sam


Re: Question: View/Export PDF to Directory

2009-07-28 Thread Richard Heck

On 07/28/2009 07:56 AM, Sam Liddicott wrote:

* Ken wrote, On 28/07/09 12:28:
   

Hi all,

I have a simple question which I could not find an answer to online to
which I was hoping an experienced LyX user may know the solution.

When I click on File  Export  PDF (pdflatex) the .pdf file gets
generated in the same folder as the .lyx file. Would it be possible to
have the .pdf file generated in a sub-directory of this folder--say, a
folder named ./pdf or ./export? (I like saving my figures in a
sub-directory and would similarly like the pdfs to automatically be
saved in a subfolder so that only .lyx files are in the main directory
for the project.

Related to the above, when I click on View  PDF (pdflatex) the .pdf
file gets generated in a temporary folder. Would if be possible to
have these generated in a sub-directory of the folder where the .lyx
file resides--say, a folder named ./draft?  Would it be possible to
add a date prefix to the filename too? This would be so that I could
save pdf drafts of the file.

How would I change the settings for these? (NB. I am a LyX 1.6.3 user
on Windows XP).
 



I guess you look at your Lyx preferences File Handling, Converters.

For Latex (plain) -  DVI I guess you could change the converter from
latex to c:\bin\latex-dvi.bat $$i $$o

and your batch file could be:

@echo off
mkdir draft
latex %1 %2
move %2 draft


Or something along those lines; and do likewise your your other converters

   
The other possibility would be to define a copier for the relevant 
format. But this only works for export. The View stuff will do its 
thing in the temporary directory. That's hardcoded.


Richard



Re: Trouble with lyx ftp site

2009-07-28 Thread Anton Driesse
Well, somewhere, something has changed because it works now!
Thank you again for your suggestions.

Anton


alternate code scrap definition

2009-07-28 Thread Sam Liddicott
This is a long post, but quite exciting to anyone who uses or wants to
improve literate programming with Lyx.

Along with using a literate module instead of a literate class
(attached), I've got a suggestion for an alternate code scrap definition.

Instead of using LatexType Paragraph with LabelType Static, (which
requires literal label= and @) I suggest these changes:

LatexType Environment
LatextName CodeScrap
LabelType Manual

It means that the first line which normally contains:
scrap-name=

will be the environment's label, shown in a different colour and we can
do without the  = because it will still have semantic meaning with
Lyx as the label.

So far, the Latex would come out like this:

\begin{CodeScrap}
[{scrap-name}]
int x=2;
int y=3;
\end{CodeScrap}

Which is not right, but some sed can turn:
  \begin{CodeScrap}\n[{scrap-name}]
into
  \nscrap-name=
and turn
  \end{CodeScrap}
into
  @

before we pass to notangle or noweave.

Such sed is:

sed -e '/\\begin{xdummy}/{s/^.*//;n;
s/^\[{//;s/}\] *$/=/;};/\\end{xdummy}/s/^.*/@\n/'

Further-more, we can use optional non-label text on the same line as the
label to contain a cross-reference definition such as would be used by:
  \nextchunklabel{LABEL-NAME}

This means that to add a cross-reference label to a code chunk you would:
1. select Scrap from the drop-down
2. type in the scrap name
3. press space
3a. press space again and type the xref label
4. press ctrl enter and start typeing code.

just miss out step 3a if you don't want a cross-reference label.

This sed will do all of that (makes use of the hold space to detect the
CodeScrap environment):

sed -e '/\\begin{CodeScrap}/{h;s/^.*//};/\\end{CodeScrap}/s/^.*/@\n/;
/^\[{/{
  x;/\\begin{CodeScrap}/{x
  s/^\[{//;
  s/^\(.* *}\]\) *\([^ ].*\)/\\nextchunklabel{\2}\n\1/
  s/ *}\] */=/
  x}
  x
}'

It converted this Lyx (CodeScrap environment):
--8-8-8-8-8---
something() start-of-something
  int something() {
int x=2;
int y=3;
  }

something_else
  #warning I'm bored
--8-8-8-8-8---

into this latex

--8-8-8-8-8---

\nextchunklabel{start-of-something}
something()=
int something() {
  int x=2;
  int y=3;
}

something_else=
#warning I'm bored
@
--8-8-8-8-8---

Which is spot on!

I wish that a module file could define the conversion filter. The
attached module file says:

OutputType literate

it would be good if there was also:

OutputFilter: sed -e 

which defines a filter which is used to produce the specified output type.

Sam
#\DeclareLyXModule[noweb.sty]{Noweb}
#DescriptionBegin
#Adds \usepackage{noweb} to your document, along with the Scrap style.
#Also fixes the CharStyle:Code to work with noweb, redefining nowebs
#\code command to \nwcode (if you need it).
#DescriptionEnd

#use this filter on the output before passing to notangle or noweave:
# sed -e 
'/\\begin{CodeScrap}/{h;s/^.*//};/\\end{CodeScrap}/s/^.*/@\n/;/^\[{/{x;/\\begin{CodeScrap}/{x;s/^\[{//;s/^\(.*
 *}\]\) *\([^ ].*\)/\\nextchunklabel{\2}\n\1/;s/ *}\] */=/;x};x}'

Format 11
OutputType  literate

AddToPreamble
\usepackage{noweb}
% noweb breaks code command
\newcommand{\nwcode}{\code}
\renewcommand{\code}[1]{\texttt{#1}}
EndPreamble


Style Scrap
MarginFirst_Dynamic
LatexType Environment
LatexName CodeScrap
NewLine   0
LeftMarginMMM
ParSep0.4
TopSep0.4
BottomSep 0.4
ItemSep   0.4
Align Left
AlignPossible Block,Left
FreeSpacing   1
PassThru  1
LabelType Manual
LabelFont
  Color   magenta
EndFont
TextFont
  Color   latex
  Family  Typewriter
EndFont
End



Re: Trouble with lyx ftp site

2009-07-28 Thread Paul A. Rubin

Anton Driesse wrote:

Well, somewhere, something has changed because it works now!
Thank you again for your suggestions.



Even gremlins occasionally need to rest.  :-)



default math mode for multiline equations

2009-07-28 Thread Oscar Lopez

Dear lyxers

I would like to know if there is some way to customize the math 
environment that lyx provides when Ctrl+Enter is used (multiline 
formulae). As it is described at the math documentation section 18.1 
when AMS math package is used the align environment is used as the default.


Now I would like to use lyx memoir book together with AMS math package 
but using gather environment as the default environment for multiline 
math expressions. However, I cannot find at the preferences or layout 
files where this can be set. Sorry if I have missed something evident 
but I've checked documentation and gmane mailing lists and I couldn't 
find any answer. Can I customize lyx behaviour to get gather multiline 
environment when I hit CTRL+Enter using the AMS math package?


Thanks in advance for your help
Best regards
Oscar



LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
I'm editing a 146K Lyx document (with no pictures) and the typing speed
is dreadful.

Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.

The same instance of Lyx tabbed to a small document is very fast.

Has anyone tips on speeding this up?

- hmm a few hours later and a few lyx restarts and it's speeded up again...

I'll keep an eye on it and report back if I find anything else.

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Rich Shepard

On Tue, 28 Jul 2009, Sam Liddicott wrote:


Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.


Sam,

  Probably not LyX but other processes running. If you watch top while lyx
is idle you can get a better sense of what else is happening.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
* Rich Shepard wrote, On 28/07/09 16:36:
 On Tue, 28 Jul 2009, Sam Liddicott wrote:
 
 Characters come out at about 1 character per second with top showing 94%
 CPU used by Lyx.
 
 Sam,
 
   Probably not LyX but other processes running. If you watch top while lyx
 is idle you can get a better sense of what else is happening.

?
Lyx was occupying the top process line of top at 94%. xorg was using 15%
(dual core).

I think if it was other processes Lyx would not have shown 94%.

But I'll check if it happens again, thanks for the advice.

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Steve Litt
On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
 I'm editing a 146K Lyx document (with no pictures) and the typing speed
 is dreadful.

That's a tiny document.


 Characters come out at about 1 character per second with top showing 94%
 CPU used by Lyx.

Interestingly, there was a similar symptom way back maybe 6 years ago, where 
someone used an n squared algorithm instead of n log n, or something like 
that, for wordwrapping. The developer found it easily and did one of those 
forehead slaps.

You're not using LyX 1.2 or something like that, are you? What LyX version, 
what operating system, how much RAM on the system?

 The same instance of Lyx tabbed to a small document is very fast.

 Has anyone tips on speeding this up?

 - hmm a few hours later and a few lyx restarts and it's speeded up again...

You have an intermittent. I hate those. Keep an eye on it, and keep your 
observation at peak performance.

SteveT



Subheading numbering

2009-07-28 Thread Ehud Kaplan
Is there a way to change the way Lyx/Latex numbers subheading, so that 
instead of

1 Introduction
it sill produce: 1. Introduction?
In other words, how do I produce a period following the last digit of a 
subheading number?

Thanks,



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott

Steve Litt wrote:

On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
  

I'm editing a 146K Lyx document (with no pictures) and the typing speed
is dreadful.



That's a tiny document.
  

Good :-)
  

Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.



Interestingly, there was a similar symptom way back maybe 6 years ago, where 
someone used an n squared algorithm instead of n log n, or something like 
that, for wordwrapping. The developer found it easily and did one of those 
forehead slaps.


You're not using LyX 1.2 or something like that, are you? What LyX version, 
what operating system, how much RAM on the system?
  


1.6.3 with 3Gig RAM, Ubuntu Jaunty 64 with radeonhd drivers.


The same instance of Lyx tabbed to a small document is very fast.

Has anyone tips on speeding this up?

- hmm a few hours later and a few lyx restarts and it's speeded up again...



You have an intermittent. I hate those. Keep an eye on it, and keep your 
  


Shall do, thanks for the advice.

Sam


Re: Subheading numbering

2009-07-28 Thread Paul A. Rubin

Ehud Kaplan wrote:
Is there a way to change the way Lyx/Latex numbers subheading, so that 
instead of

1 Introduction
it sill produce: 1. Introduction?
In other words, how do I produce a period following the last digit of a 
subheading number?

Thanks,




Change in the output: Try the titlesec package (see section 2.3 of the 
manual.


Change in the LyX GUI:  You would have to hack the layout file (or maybe 
create a module that overruled the default layout).


/Paul



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Steve Litt
On Tuesday 28 July 2009 14:41:54 you wrote:
 Steve Litt wrote:
  On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
  I'm editing a 146K Lyx document (with no pictures) and the typing speed
  is dreadful.
 
  That's a tiny document.

 Good :-)

sl...@mydesk:/d/at/books/stories$ ls -l stories.lyx
-rw-r--r-- 1 slitt slitt 612194 2008-12-12 12:19 stories.lyx
sl...@mydesk:/d/at/books/stories$

That's my 200 page Twenty Eight Tales of Troubleshooting, which has never 
had a problem keeping up with the typist.

  Characters come out at about 1 character per second with top showing 94%
  CPU used by Lyx.

What do you mean by coming out at 1 character per second? Do you mean it 
allows the typist only 1 char per second input, or do  you mean something 
else?


 
  Interestingly, there was a similar symptom way back maybe 6 years ago,
  where someone used an n squared algorithm instead of n log n, or
  something like that, for wordwrapping. The developer found it easily and
  did one of those forehead slaps.
 
  You're not using LyX 1.2 or something like that, are you? What LyX
  version, what operating system, how much RAM on the system?

 1.6.3 with 3Gig RAM, Ubuntu Jaunty 64 with radeonhd drivers.

I've got 1.6.3 with 8GB, and I have absolutely no problem like that. My last 
box had 2GB but lyx 1.5.x, and had absolutely no problems with speed.


  The same instance of Lyx tabbed to a small document is very fast.
 
  Has anyone tips on speeding this up?
 
  - hmm a few hours later and a few lyx restarts and it's speeded up
  again...
 
  You have an intermittent. I hate those. Keep an eye on it, and keep your

 Shall do, thanks for the advice.

 Sam



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
Richard Heck wrote:  

Did you have ViewSource open?

Yes - I'll bet that was it! Nicely spotted, thanks!

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott

Steve Litt wrote:


What do you mean by coming out at 1 character per second? Do you mean it 
allows the typist only 1 char per second input, or do  you mean something 
else?
  

I mean it can't keep up with my typing, but I think Richard guessed right.
I'll prove it tomorrow on the same document.

In other news I'm finding the literate module much more convenient than 
literate class, and the new layout with manual labels much more 
congenial for entering; and I don't get caught out by missing out the 
trailing @.


Sam


problem with bibliography

2009-07-28 Thread Beny Spira
Hi

I was using package abnt and got the following error:

*TeX capacity exceeded, sorry [parameter stack size=6000].
*

*
*

* \begin{thebibliography}{19}*

* *

*If you really absolutely need more capacity,*

*you can ask a wizard to enlarge me.*



I read elsewhere that this kind of error is sometimes due to an open
parenthesis in the preamble. However, my preamble is very short and could
not find any problem there.

When bibliography is removed the output is just fine.

Any suggestion of what might be wrong?

Beny


Re: Subheading numbering

2009-07-28 Thread Yago
You need the titlesec package in your preamble, and after that this command:

\titlelabel{\thetitle.\quad}
- Original Message - 
From: Ehud Kaplan ehud.kap...@mssm.edu
To: LyX User lyx-users@lists.lyx.org
Sent: Tuesday, July 28, 2009 8:11 PM
Subject: Subheading numbering


 Is there a way to change the way Lyx/Latex numbers subheading, so that 
 instead of
 1 Introduction
 it sill produce: 1. Introduction?
 In other words, how do I produce a period following the last digit of a 
 subheading number?
 Thanks,


Re: Off Topic: Database for citations?

2009-07-28 Thread Ralf
Ralf Schaa ralf.sc...@... writes:

Cool - Thanks both of you!

Cheers






whitespaces visible

2009-07-28 Thread Ralf
Hi all,

is there an option to make whitespaces visible in the Lyx GUI? You know, similar
as to 'show hidden text' in Word?

Reason for this: often I overlook that there is a whitespace missing before and
after citations and references.

Cheers
-Ralf



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Richard Heck

On 07/28/2009 03:31 PM, Sam Liddicott wrote:

Richard Heck wrote:

Did you have ViewSource open?


Yes - I'll bet that was it! Nicely spotted, thanks!


It'll be ok if you don't have Complete source (or whatever) checked.

rh



Re: problem with bibliography

2009-07-28 Thread Richard Heck

On 07/28/2009 03:42 PM, Beny Spira wrote:

Hi

I was using package abnt and got the following error:

*TeX capacity exceeded, sorry [parameter stack size=6000].
*

*
*

* \begin{thebibliography}{19}*

* *

*If you really absolutely need more capacity,*

*you can ask a wizard to enlarge me.*



I read elsewhere that this kind of error is sometimes due to an open
parenthesis in the preamble. However, my preamble is very short and could
not find any problem there.

When bibliography is removed the output is just fine.

Any suggestion of what might be wrong?

   

Probably an error in the BibTeX file?

rh



Re: whitespaces visible

2009-07-28 Thread Richard Heck

On 07/28/2009 10:14 PM, Ralf wrote:

Hi all,

is there an option to make whitespaces visible in the Lyx GUI? You know, similar
as to 'show hidden text' in Word?

Reason for this: often I overlook that there is a whitespace missing before and
after citations and references.

   
At present, I don't think so, but you could request it via trac. It 
can't be that hard. (So better yet, produce the patch)


rh



problem recognizing floats

2009-07-28 Thread Ralph Boland
I am using Linux (Ubuntu 9.02) and the version of Lyx that comes with it, namely
Lyx 1.6.2.
Except for resumes and letters I haven't used Lyx much since about 2003.
I am now trying to revive a couple of papers I wrote in Lyx  in 2002.
I have not modified the Lyx files from 2002.
But I am having problems with floats.  I assume the  problem is something
trivial that I have missed relating to a change to Lyx (or Linux or Latex)
since 2002.

Any suggestions would be much appreciated.

Ralph Boland


Appended  is the first few lines of the Tex file generated by Lyx.

The problem is with the lines:

\floatstyle{}
\newfloat{}{}{}
\floatname{}{}
\floatstyle{}
\newfloat{}{}{}
\floatname{}{}

Each of these lines generates an error when I do a  ctrl-T in Lyx
to view the document in pdf or run  latex on the .tex file
the command line.  (I generated the .tex file by  doing a export
to pdflatex.)

For example  the first line generates the error in Lyx:

 \floatstyle
   {}
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.

Similarly the second line generates the error in Lyx:

 \newfloat
 {}{}{}
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.


I tried adding the line:
 \usepackage{floatflt}
in the Lyx preamble but it didn't help.

I tried directly inserting it into the .tex file above the offending lines
but that didn't help either.

The output from the  latex file.tex  command is as follows:

latex srch55.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
entering extended mode
(./srch55.tex
LaTeX2e 2005/12/01
Babel v3.8h and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/home/rocky/texmf/tex/generic/thesisChapter.cls
Document Class: thesisChapter 2000/05/15 Ralph Boland thesis class
(/usr/share/texmf-texlive/tex/latex/amscls/amsbook.cls
Document Class: amsbook 2004/08/06 v2.20
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/latin1.def))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg))
(/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-texlive/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 2000/12/01
)
! Undefined control sequence.
l.19 \floatstyle
   {}
?






Here is the start of the file.tex file generated by Lyx:
=

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,twoside,english]{thesisChapter}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1.5in,rmargin=1in}
\pagestyle{headings}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{setspace}
\doublespacing


%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}

\floatstyle{}
\newfloat{}{}{}
\floatname{}{}
\floatstyle{}
\newfloat{}{}{}
\floatname{}{}

%% Textclass specific LaTeX commands.
 \numberwithin{section}{chapter}
 \theoremstyle{plain}
 \newtheorem{thm}{Theorem}[section]
 

Re: Off Topic: Database for citations?

2009-07-28 Thread Wolfgang Engelmann
Am Tuesday 28 July 2009 03:34:47 schrieb Ralf Schaa:

I am using in JabRef Web search  fetch medline (there are others)
Wolfgang
 Hi all,

 just wondering - instead of searching zillions of library pages to find the
 correct citation (downloadable in BibTex, Endnote, whatever...), there sure
 must be a webpage just dedicated to this sort of stuff ... something like
 'http://adsabs.harvard.edu/' only larger ... couldn't find it however. Any
 hints?

 Cheers
 -Ralf


Re: LyX and LaTeX?????, LyX y LaTeX?????

2009-07-28 Thread Siegfried Meunier-Guttin-Cluzel
Have you tried File - Import- LaTeX (plain) or something like that (my 
LyX is in french !).


Siegfried.


Re: noweb should be a module not a class

2009-07-28 Thread Sam Liddicott
* Sam Liddicott wrote, On 27/07/09 11:21:
 I think noweb should not exist as a class, but as a module; what if I
 want to do a KOMA-script book with noweb fragments in?

I am now absolutely certain that noweb should be a module and not a class.

I see however that noweb (literate) file format is important to exist so
that noweave knows when to be called.

This is not enough reason to have noweb as a format though, modules must
also have the capability to be inserted into the output pipeline and
make transformations.

noweave should be called if the noweb module is used.

- almost noweave should always be called if it exists!

However I see that there is no conversion filter from Lyx - Latex like
there is from noweb - latex

However when add add a conversion filter from Lyx - Latex I see that it
is never called; is there a way to make this work?

I would add a convertor which piped through awk to detect if noweb
module was used. If so; it would re-invoke through noweave, or after so
many lines of not finding the noweb module it would become pass-through.

Sam


Re: Off Topic: Database for citations?

2009-07-28 Thread Pavel Sanda
Ralf Schaa wrote:
 just wondering - instead of searching zillions of library pages to find the
 correct citation (downloadable in BibTex, Endnote, whatever...), there sure 
 must
 be a webpage just dedicated to this sort of stuff ... something like
 'http://adsabs.harvard.edu/' only larger ... couldn't find it however.
 Any hints? 

you can also change google scholar settings that for each paper you get
bibtex entry to download.

pavel


Re: noweb should be a module not a class

2009-07-28 Thread Sam Liddicott
Wahey: maybe we can get noweb as a module very simply...

I added this file noweb.module to my .lyx/layouts directory (and
reconfigured Lyx).

--8-8-8-8-8-8-8-8-8---
#\DeclareLyXModule[noweb.sty]{Noweb}
#DescriptionBegin
#Adds \usepackage{noweb} to your document, along with the Scrap style.
#Also fixes the CharStyle:Code to work with noweb, redefining nowebs
#\code command to \nwcode (if you need it).
#DescriptionEnd

Format 11

AddToPreamble
\usepackage{noweb}
% noweb breaks code command
\newcommand{\nwcode}{\code}
\renewcommand{\code}[1]{\texttt{#1}}
EndPreamble

Input literate-scrap.inc
--8-8-8-8-8-8-8-8-8---

And now I can add Noweb module to article (KOMA-Script) and have the
Scrap style made available.

Because literate-scrap.inc says:
OutputType  literate

I get my .nw conversions for free!

I get the warnings:

Package(s) required: noweb.sty.
WARNING: Some required packages are unavailable!

and

Warning: Package not available

The module literate requires a package that is
not available in your LaTeX installation. LaTeX output
may not be possible.


Which I don't understand as I have /usr/share/texmf/tex/plain/misc/noweb.sty

However LaTeX output is just fine!

If I get this fixed, perhaps we can add noweb as a module?

Sam


Re: paste gvim -- lyx

2009-07-28 Thread Hellmut Weber

Hi Ignacio,

Ignacio García schrieb:

El 27 de julio de 2009 23:16, Hellmut Weberm...@hellmutweber.de escribió:


Your recipe does not work for me when
* marking text in gvim using shift-V / C-v
* marking text with the mouse from the output in a terminal (konsole)

So thanks a lot, kedit provides a workaround.

Do you have any idea what to do with vim and from text output to a terminal?


In gvim Edit  Copy and in LyX Paste Special works fine here
And with gnome-terminal works the same too:
Marking text with the mouse,
Edit  Copy or Ctrl-Shift-C
then in LyX, EditPasteSpecialSimpleText or Ctrl-Shift-C
and the text is pasted with line breaks

(Sometimes I use the middle mouse button to paste, but no line breaks)

I think you use kde (I do not) and there the things can be a bit different.
Perhaps you get better help  from kde users in LyX users list.

Thanks that did it ;-)))

Sorry that I didn't mention KDE, your assumption is correct.

A bit of further testing shows that this process can be optimezed in 
both cases:


Konsole:
1. Mark text using the mouse
2. shift+ctrl+c
3. switch to lyx
4. shift+ctrl+v

gvim:
1. Mark text using shift+V + arrow keys
2. shift to lyx
3. shift+ctrl+v

Whenever I can I avoid using the mouse.

Thanks again and happy LyXing


Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



[Fwd: Re: paste gvim -- lyx]

2009-07-28 Thread Hellmut Weber

Sorry,
it must be

gvim:
1. Mark text using shift+V + arrow keys
2. alt+e, c (Menu edit, copy)
3. shift to lyx
4. shift+ctrl+v

Cheers

Hellmut


 Original-Nachricht 
Betreff: Re: paste gvim -- lyx
Datum: Tue, 28 Jul 2009 12:04:28 +0200
Von: Hellmut Weber m...@hellmutweber.de
Antwort an: m...@hellmutweber.de
An: Ignacio García ignacio.gmora...@gmail.com,  LyX Users List 
lyx-users@lists.lyx.org
Referenzen: 
5994c290907261132o5fc80fefy84fb74c99e734...@mail.gmail.com 
4a6e192b.8030...@hellmutweber.de 
5994c290907280110x6ef8c702hf9340c1ebbdf4...@mail.gmail.com


Hi Ignacio,

Ignacio García schrieb:

El 27 de julio de 2009 23:16, Hellmut Weberm...@hellmutweber.de escribió:


Your recipe does not work for me when
* marking text in gvim using shift-V / C-v
* marking text with the mouse from the output in a terminal (konsole)

So thanks a lot, kedit provides a workaround.

Do you have any idea what to do with vim and from text output to a terminal?


In gvim Edit  Copy and in LyX Paste Special works fine here
And with gnome-terminal works the same too:
Marking text with the mouse,
Edit  Copy or Ctrl-Shift-C
then in LyX, EditPasteSpecialSimpleText or Ctrl-Shift-C
and the text is pasted with line breaks

(Sometimes I use the middle mouse button to paste, but no line breaks)

I think you use kde (I do not) and there the things can be a bit different.
Perhaps you get better help  from kde users in LyX users list.

Thanks that did it ;-)))

Sorry that I didn't mention KDE, your assumption is correct.

A bit of further testing shows that this process can be optimezed in
both cases:

Konsole:
1. Mark text using the mouse
2. shift+ctrl+c
3. switch to lyx
4. shift+ctrl+v

gvim:
1. Mark text using shift+V + arrow keys
2. shift to lyx
3. shift+ctrl+v

Whenever I can I avoid using the mouse.

Thanks again and happy LyXing


Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: [Fwd: Re: paste gvim -- lyx]

2009-07-28 Thread Sam Liddicott
* Hellmut Weber wrote, On 28/07/09 11:08:
 Sorry,
 it must be
 
 gvim:
 1. Mark text using shift+V + arrow keys
 2. alt+e, c (Menu edit, copy)
 3. shift to lyx
 4. shift+ctrl+v

Lyx could do with a paste mode that used CTRL+Enter type line joinings,
which would make pasting into code-scraps much easier.

Sam


Question: View/Export PDF to Directory

2009-07-28 Thread Ken
Hi all,

I have a simple question which I could not find an answer to online to
which I was hoping an experienced LyX user may know the solution.

When I click on File  Export  PDF (pdflatex) the .pdf file gets
generated in the same folder as the .lyx file. Would it be possible to
have the .pdf file generated in a sub-directory of this folder--say, a
folder named ./pdf or ./export? (I like saving my figures in a
sub-directory and would similarly like the pdfs to automatically be
saved in a subfolder so that only .lyx files are in the main directory
for the project.

Related to the above, when I click on View  PDF (pdflatex) the .pdf
file gets generated in a temporary folder. Would if be possible to
have these generated in a sub-directory of the folder where the .lyx
file resides--say, a folder named ./draft?  Would it be possible to
add a date prefix to the filename too? This would be so that I could
save pdf drafts of the file.

How would I change the settings for these? (NB. I am a LyX 1.6.3 user
on Windows XP).

Thanks!

Ken


Re: Question: View/Export PDF to Directory

2009-07-28 Thread Sam Liddicott
* Ken wrote, On 28/07/09 12:28:
 Hi all,
 
 I have a simple question which I could not find an answer to online to
 which I was hoping an experienced LyX user may know the solution.
 
 When I click on File  Export  PDF (pdflatex) the .pdf file gets
 generated in the same folder as the .lyx file. Would it be possible to
 have the .pdf file generated in a sub-directory of this folder--say, a
 folder named ./pdf or ./export? (I like saving my figures in a
 sub-directory and would similarly like the pdfs to automatically be
 saved in a subfolder so that only .lyx files are in the main directory
 for the project.
 
 Related to the above, when I click on View  PDF (pdflatex) the .pdf
 file gets generated in a temporary folder. Would if be possible to
 have these generated in a sub-directory of the folder where the .lyx
 file resides--say, a folder named ./draft?  Would it be possible to
 add a date prefix to the filename too? This would be so that I could
 save pdf drafts of the file.
 
 How would I change the settings for these? (NB. I am a LyX 1.6.3 user
 on Windows XP).


I guess you look at your Lyx preferences File Handling, Converters.

For Latex (plain) - DVI I guess you could change the converter from
latex to c:\bin\latex-dvi.bat $$i $$o

and your batch file could be:

@echo off
mkdir draft
latex %1 %2
move %2 draft


Or something along those lines; and do likewise your your other converters

Sam


Re: Question: View/Export PDF to Directory

2009-07-28 Thread Richard Heck

On 07/28/2009 07:56 AM, Sam Liddicott wrote:

* Ken wrote, On 28/07/09 12:28:
   

Hi all,

I have a simple question which I could not find an answer to online to
which I was hoping an experienced LyX user may know the solution.

When I click on File  Export  PDF (pdflatex) the .pdf file gets
generated in the same folder as the .lyx file. Would it be possible to
have the .pdf file generated in a sub-directory of this folder--say, a
folder named ./pdf or ./export? (I like saving my figures in a
sub-directory and would similarly like the pdfs to automatically be
saved in a subfolder so that only .lyx files are in the main directory
for the project.

Related to the above, when I click on View  PDF (pdflatex) the .pdf
file gets generated in a temporary folder. Would if be possible to
have these generated in a sub-directory of the folder where the .lyx
file resides--say, a folder named ./draft?  Would it be possible to
add a date prefix to the filename too? This would be so that I could
save pdf drafts of the file.

How would I change the settings for these? (NB. I am a LyX 1.6.3 user
on Windows XP).
 



I guess you look at your Lyx preferences File Handling, Converters.

For Latex (plain) -  DVI I guess you could change the converter from
latex to c:\bin\latex-dvi.bat $$i $$o

and your batch file could be:

@echo off
mkdir draft
latex %1 %2
move %2 draft


Or something along those lines; and do likewise your your other converters

   
The other possibility would be to define a copier for the relevant 
format. But this only works for export. The View stuff will do its 
thing in the temporary directory. That's hardcoded.


Richard



Re: Trouble with lyx ftp site

2009-07-28 Thread Anton Driesse
Well, somewhere, something has changed because it works now!
Thank you again for your suggestions.

Anton


alternate code scrap definition

2009-07-28 Thread Sam Liddicott
This is a long post, but quite exciting to anyone who uses or wants to
improve literate programming with Lyx.

Along with using a literate module instead of a literate class
(attached), I've got a suggestion for an alternate code scrap definition.

Instead of using LatexType Paragraph with LabelType Static, (which
requires literal label= and @) I suggest these changes:

LatexType Environment
LatextName CodeScrap
LabelType Manual

It means that the first line which normally contains:
scrap-name=

will be the environment's label, shown in a different colour and we can
do without the  = because it will still have semantic meaning with
Lyx as the label.

So far, the Latex would come out like this:

\begin{CodeScrap}
[{scrap-name}]
int x=2;
int y=3;
\end{CodeScrap}

Which is not right, but some sed can turn:
  \begin{CodeScrap}\n[{scrap-name}]
into
  \nscrap-name=
and turn
  \end{CodeScrap}
into
  @

before we pass to notangle or noweave.

Such sed is:

sed -e '/\\begin{xdummy}/{s/^.*//;n;
s/^\[{//;s/}\] *$/=/;};/\\end{xdummy}/s/^.*/@\n/'

Further-more, we can use optional non-label text on the same line as the
label to contain a cross-reference definition such as would be used by:
  \nextchunklabel{LABEL-NAME}

This means that to add a cross-reference label to a code chunk you would:
1. select Scrap from the drop-down
2. type in the scrap name
3. press space
3a. press space again and type the xref label
4. press ctrl enter and start typeing code.

just miss out step 3a if you don't want a cross-reference label.

This sed will do all of that (makes use of the hold space to detect the
CodeScrap environment):

sed -e '/\\begin{CodeScrap}/{h;s/^.*//};/\\end{CodeScrap}/s/^.*/@\n/;
/^\[{/{
  x;/\\begin{CodeScrap}/{x
  s/^\[{//;
  s/^\(.* *}\]\) *\([^ ].*\)/\\nextchunklabel{\2}\n\1/
  s/ *}\] */=/
  x}
  x
}'

It converted this Lyx (CodeScrap environment):
--8-8-8-8-8---
something() start-of-something
  int something() {
int x=2;
int y=3;
  }

something_else
  #warning I'm bored
--8-8-8-8-8---

into this latex

--8-8-8-8-8---

\nextchunklabel{start-of-something}
something()=
int something() {
  int x=2;
  int y=3;
}

something_else=
#warning I'm bored
@
--8-8-8-8-8---

Which is spot on!

I wish that a module file could define the conversion filter. The
attached module file says:

OutputType literate

it would be good if there was also:

OutputFilter: sed -e 

which defines a filter which is used to produce the specified output type.

Sam
#\DeclareLyXModule[noweb.sty]{Noweb}
#DescriptionBegin
#Adds \usepackage{noweb} to your document, along with the Scrap style.
#Also fixes the CharStyle:Code to work with noweb, redefining nowebs
#\code command to \nwcode (if you need it).
#DescriptionEnd

#use this filter on the output before passing to notangle or noweave:
# sed -e 
'/\\begin{CodeScrap}/{h;s/^.*//};/\\end{CodeScrap}/s/^.*/@\n/;/^\[{/{x;/\\begin{CodeScrap}/{x;s/^\[{//;s/^\(.*
 *}\]\) *\([^ ].*\)/\\nextchunklabel{\2}\n\1/;s/ *}\] */=/;x};x}'

Format 11
OutputType  literate

AddToPreamble
\usepackage{noweb}
% noweb breaks code command
\newcommand{\nwcode}{\code}
\renewcommand{\code}[1]{\texttt{#1}}
EndPreamble


Style Scrap
MarginFirst_Dynamic
LatexType Environment
LatexName CodeScrap
NewLine   0
LeftMarginMMM
ParSep0.4
TopSep0.4
BottomSep 0.4
ItemSep   0.4
Align Left
AlignPossible Block,Left
FreeSpacing   1
PassThru  1
LabelType Manual
LabelFont
  Color   magenta
EndFont
TextFont
  Color   latex
  Family  Typewriter
EndFont
End



Re: Trouble with lyx ftp site

2009-07-28 Thread Paul A. Rubin

Anton Driesse wrote:

Well, somewhere, something has changed because it works now!
Thank you again for your suggestions.



Even gremlins occasionally need to rest.  :-)



default math mode for multiline equations

2009-07-28 Thread Oscar Lopez

Dear lyxers

I would like to know if there is some way to customize the math 
environment that lyx provides when Ctrl+Enter is used (multiline 
formulae). As it is described at the math documentation section 18.1 
when AMS math package is used the align environment is used as the default.


Now I would like to use lyx memoir book together with AMS math package 
but using gather environment as the default environment for multiline 
math expressions. However, I cannot find at the preferences or layout 
files where this can be set. Sorry if I have missed something evident 
but I've checked documentation and gmane mailing lists and I couldn't 
find any answer. Can I customize lyx behaviour to get gather multiline 
environment when I hit CTRL+Enter using the AMS math package?


Thanks in advance for your help
Best regards
Oscar



LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
I'm editing a 146K Lyx document (with no pictures) and the typing speed
is dreadful.

Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.

The same instance of Lyx tabbed to a small document is very fast.

Has anyone tips on speeding this up?

- hmm a few hours later and a few lyx restarts and it's speeded up again...

I'll keep an eye on it and report back if I find anything else.

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Rich Shepard

On Tue, 28 Jul 2009, Sam Liddicott wrote:


Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.


Sam,

  Probably not LyX but other processes running. If you watch top while lyx
is idle you can get a better sense of what else is happening.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
* Rich Shepard wrote, On 28/07/09 16:36:
 On Tue, 28 Jul 2009, Sam Liddicott wrote:
 
 Characters come out at about 1 character per second with top showing 94%
 CPU used by Lyx.
 
 Sam,
 
   Probably not LyX but other processes running. If you watch top while lyx
 is idle you can get a better sense of what else is happening.

?
Lyx was occupying the top process line of top at 94%. xorg was using 15%
(dual core).

I think if it was other processes Lyx would not have shown 94%.

But I'll check if it happens again, thanks for the advice.

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Steve Litt
On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
 I'm editing a 146K Lyx document (with no pictures) and the typing speed
 is dreadful.

That's a tiny document.


 Characters come out at about 1 character per second with top showing 94%
 CPU used by Lyx.

Interestingly, there was a similar symptom way back maybe 6 years ago, where 
someone used an n squared algorithm instead of n log n, or something like 
that, for wordwrapping. The developer found it easily and did one of those 
forehead slaps.

You're not using LyX 1.2 or something like that, are you? What LyX version, 
what operating system, how much RAM on the system?

 The same instance of Lyx tabbed to a small document is very fast.

 Has anyone tips on speeding this up?

 - hmm a few hours later and a few lyx restarts and it's speeded up again...

You have an intermittent. I hate those. Keep an eye on it, and keep your 
observation at peak performance.

SteveT



Subheading numbering

2009-07-28 Thread Ehud Kaplan
Is there a way to change the way Lyx/Latex numbers subheading, so that 
instead of

1 Introduction
it sill produce: 1. Introduction?
In other words, how do I produce a period following the last digit of a 
subheading number?

Thanks,



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott

Steve Litt wrote:

On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
  

I'm editing a 146K Lyx document (with no pictures) and the typing speed
is dreadful.



That's a tiny document.
  

Good :-)
  

Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.



Interestingly, there was a similar symptom way back maybe 6 years ago, where 
someone used an n squared algorithm instead of n log n, or something like 
that, for wordwrapping. The developer found it easily and did one of those 
forehead slaps.


You're not using LyX 1.2 or something like that, are you? What LyX version, 
what operating system, how much RAM on the system?
  


1.6.3 with 3Gig RAM, Ubuntu Jaunty 64 with radeonhd drivers.


The same instance of Lyx tabbed to a small document is very fast.

Has anyone tips on speeding this up?

- hmm a few hours later and a few lyx restarts and it's speeded up again...



You have an intermittent. I hate those. Keep an eye on it, and keep your 
  


Shall do, thanks for the advice.

Sam


Re: Subheading numbering

2009-07-28 Thread Paul A. Rubin

Ehud Kaplan wrote:
Is there a way to change the way Lyx/Latex numbers subheading, so that 
instead of

1 Introduction
it sill produce: 1. Introduction?
In other words, how do I produce a period following the last digit of a 
subheading number?

Thanks,




Change in the output: Try the titlesec package (see section 2.3 of the 
manual.


Change in the LyX GUI:  You would have to hack the layout file (or maybe 
create a module that overruled the default layout).


/Paul



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Steve Litt
On Tuesday 28 July 2009 14:41:54 you wrote:
 Steve Litt wrote:
  On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
  I'm editing a 146K Lyx document (with no pictures) and the typing speed
  is dreadful.
 
  That's a tiny document.

 Good :-)

sl...@mydesk:/d/at/books/stories$ ls -l stories.lyx
-rw-r--r-- 1 slitt slitt 612194 2008-12-12 12:19 stories.lyx
sl...@mydesk:/d/at/books/stories$

That's my 200 page Twenty Eight Tales of Troubleshooting, which has never 
had a problem keeping up with the typist.

  Characters come out at about 1 character per second with top showing 94%
  CPU used by Lyx.

What do you mean by coming out at 1 character per second? Do you mean it 
allows the typist only 1 char per second input, or do  you mean something 
else?


 
  Interestingly, there was a similar symptom way back maybe 6 years ago,
  where someone used an n squared algorithm instead of n log n, or
  something like that, for wordwrapping. The developer found it easily and
  did one of those forehead slaps.
 
  You're not using LyX 1.2 or something like that, are you? What LyX
  version, what operating system, how much RAM on the system?

 1.6.3 with 3Gig RAM, Ubuntu Jaunty 64 with radeonhd drivers.

I've got 1.6.3 with 8GB, and I have absolutely no problem like that. My last 
box had 2GB but lyx 1.5.x, and had absolutely no problems with speed.


  The same instance of Lyx tabbed to a small document is very fast.
 
  Has anyone tips on speeding this up?
 
  - hmm a few hours later and a few lyx restarts and it's speeded up
  again...
 
  You have an intermittent. I hate those. Keep an eye on it, and keep your

 Shall do, thanks for the advice.

 Sam



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
Richard Heck wrote:  

Did you have ViewSource open?

Yes - I'll bet that was it! Nicely spotted, thanks!

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott

Steve Litt wrote:


What do you mean by coming out at 1 character per second? Do you mean it 
allows the typist only 1 char per second input, or do  you mean something 
else?
  

I mean it can't keep up with my typing, but I think Richard guessed right.
I'll prove it tomorrow on the same document.

In other news I'm finding the literate module much more convenient than 
literate class, and the new layout with manual labels much more 
congenial for entering; and I don't get caught out by missing out the 
trailing @.


Sam


problem with bibliography

2009-07-28 Thread Beny Spira
Hi

I was using package abnt and got the following error:

*TeX capacity exceeded, sorry [parameter stack size=6000].
*

*
*

* \begin{thebibliography}{19}*

* *

*If you really absolutely need more capacity,*

*you can ask a wizard to enlarge me.*



I read elsewhere that this kind of error is sometimes due to an open
parenthesis in the preamble. However, my preamble is very short and could
not find any problem there.

When bibliography is removed the output is just fine.

Any suggestion of what might be wrong?

Beny


Re: Subheading numbering

2009-07-28 Thread Yago
You need the titlesec package in your preamble, and after that this command:

\titlelabel{\thetitle.\quad}
- Original Message - 
From: Ehud Kaplan ehud.kap...@mssm.edu
To: LyX User lyx-users@lists.lyx.org
Sent: Tuesday, July 28, 2009 8:11 PM
Subject: Subheading numbering


 Is there a way to change the way Lyx/Latex numbers subheading, so that 
 instead of
 1 Introduction
 it sill produce: 1. Introduction?
 In other words, how do I produce a period following the last digit of a 
 subheading number?
 Thanks,


Re: Off Topic: Database for citations?

2009-07-28 Thread Ralf
Ralf Schaa ralf.sc...@... writes:

Cool - Thanks both of you!

Cheers






whitespaces visible

2009-07-28 Thread Ralf
Hi all,

is there an option to make whitespaces visible in the Lyx GUI? You know, similar
as to 'show hidden text' in Word?

Reason for this: often I overlook that there is a whitespace missing before and
after citations and references.

Cheers
-Ralf



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Richard Heck

On 07/28/2009 03:31 PM, Sam Liddicott wrote:

Richard Heck wrote:

Did you have ViewSource open?


Yes - I'll bet that was it! Nicely spotted, thanks!


It'll be ok if you don't have Complete source (or whatever) checked.

rh



Re: problem with bibliography

2009-07-28 Thread Richard Heck

On 07/28/2009 03:42 PM, Beny Spira wrote:

Hi

I was using package abnt and got the following error:

*TeX capacity exceeded, sorry [parameter stack size=6000].
*

*
*

* \begin{thebibliography}{19}*

* *

*If you really absolutely need more capacity,*

*you can ask a wizard to enlarge me.*



I read elsewhere that this kind of error is sometimes due to an open
parenthesis in the preamble. However, my preamble is very short and could
not find any problem there.

When bibliography is removed the output is just fine.

Any suggestion of what might be wrong?

   

Probably an error in the BibTeX file?

rh



Re: whitespaces visible

2009-07-28 Thread Richard Heck

On 07/28/2009 10:14 PM, Ralf wrote:

Hi all,

is there an option to make whitespaces visible in the Lyx GUI? You know, similar
as to 'show hidden text' in Word?

Reason for this: often I overlook that there is a whitespace missing before and
after citations and references.

   
At present, I don't think so, but you could request it via trac. It 
can't be that hard. (So better yet, produce the patch)


rh



problem recognizing floats

2009-07-28 Thread Ralph Boland
I am using Linux (Ubuntu 9.02) and the version of Lyx that comes with it, namely
Lyx 1.6.2.
Except for resumes and letters I haven't used Lyx much since about 2003.
I am now trying to revive a couple of papers I wrote in Lyx  in 2002.
I have not modified the Lyx files from 2002.
But I am having problems with floats.  I assume the  problem is something
trivial that I have missed relating to a change to Lyx (or Linux or Latex)
since 2002.

Any suggestions would be much appreciated.

Ralph Boland


Appended  is the first few lines of the Tex file generated by Lyx.

The problem is with the lines:

\floatstyle{}
\newfloat{}{}{}
\floatname{}{}
\floatstyle{}
\newfloat{}{}{}
\floatname{}{}

Each of these lines generates an error when I do a  ctrl-T in Lyx
to view the document in pdf or run  latex on the .tex file
the command line.  (I generated the .tex file by  doing a export
to pdflatex.)

For example  the first line generates the error in Lyx:

 \floatstyle
   {}
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.

Similarly the second line generates the error in Lyx:

 \newfloat
 {}{}{}
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.


I tried adding the line:
 \usepackage{floatflt}
in the Lyx preamble but it didn't help.

I tried directly inserting it into the .tex file above the offending lines
but that didn't help either.

The output from the  latex file.tex  command is as follows:

latex srch55.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
entering extended mode
(./srch55.tex
LaTeX2e 2005/12/01
Babel v3.8h and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/home/rocky/texmf/tex/generic/thesisChapter.cls
Document Class: thesisChapter 2000/05/15 Ralph Boland thesis class
(/usr/share/texmf-texlive/tex/latex/amscls/amsbook.cls
Document Class: amsbook 2004/08/06 v2.20
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/latin1.def))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg))
(/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-texlive/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 2000/12/01
)
! Undefined control sequence.
l.19 \floatstyle
   {}
?






Here is the start of the file.tex file generated by Lyx:
=

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,twoside,english]{thesisChapter}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1.5in,rmargin=1in}
\pagestyle{headings}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{setspace}
\doublespacing


%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}

\floatstyle{}
\newfloat{}{}{}
\floatname{}{}
\floatstyle{}
\newfloat{}{}{}
\floatname{}{}

%% Textclass specific LaTeX commands.
 \numberwithin{section}{chapter}
 \theoremstyle{plain}
 \newtheorem{thm}{Theorem}[section]
 

Re: Off Topic: Database for citations?

2009-07-28 Thread Wolfgang Engelmann
Am Tuesday 28 July 2009 03:34:47 schrieb Ralf Schaa:

I am using in JabRef >Web search > fetch medline (there are others)
Wolfgang
> Hi all,
>
> just wondering - instead of searching zillions of library pages to find the
> correct citation (downloadable in BibTex, Endnote, whatever...), there sure
> must be a webpage just dedicated to this sort of stuff ... something like
> 'http://adsabs.harvard.edu/' only larger ... couldn't find it however. Any
> hints?
>
> Cheers
> -Ralf


Re: LyX and LaTeX?????, LyX y LaTeX?????

2009-07-28 Thread Siegfried Meunier-Guttin-Cluzel
Have you tried File -> Import-> LaTeX (plain) or something like that (my 
LyX is in french !).


Siegfried.


Re: noweb should be a module not a class

2009-07-28 Thread Sam Liddicott
* Sam Liddicott wrote, On 27/07/09 11:21:
> I think noweb should not exist as a class, but as a module; what if I
> want to do a KOMA-script book with noweb fragments in?

I am now absolutely certain that noweb should be a module and not a class.

I see however that noweb (literate) file format is important to exist so
that noweave knows when to be called.

This is not enough reason to have noweb as a format though, modules must
also have the capability to be inserted into the output pipeline and
make transformations.

noweave should be called if the noweb module is used.

- almost noweave should always be called if it exists!

However I see that there is no conversion filter from Lyx -> Latex like
there is from noweb -> latex

However when add add a conversion filter from Lyx -> Latex I see that it
is never called; is there a way to make this work?

I would add a convertor which piped through awk to detect if noweb
module was used. If so; it would re-invoke through noweave, or after so
many lines of not finding the noweb module it would become pass-through.

Sam


Re: Off Topic: Database for citations?

2009-07-28 Thread Pavel Sanda
Ralf Schaa wrote:
> just wondering - instead of searching zillions of library pages to find the
> correct citation (downloadable in BibTex, Endnote, whatever...), there sure 
> must
> be a webpage just dedicated to this sort of stuff ... something like
> 'http://adsabs.harvard.edu/' only larger ... couldn't find it however.
> Any hints? 

you can also change google scholar settings that for each paper you get
bibtex entry to download.

pavel


Re: noweb should be a module not a class

2009-07-28 Thread Sam Liddicott
Wahey: maybe we can get noweb as a module very simply...

I added this file noweb.module to my .lyx/layouts directory (and
reconfigured Lyx).

--8<-8<-8<-8<-8<-8<-8<-8<-8<---
#\DeclareLyXModule[noweb.sty]{Noweb}
#DescriptionBegin
#Adds \usepackage{noweb} to your document, along with the Scrap style.
#Also fixes the CharStyle:Code to work with noweb, redefining nowebs
#\code command to \nwcode (if you need it).
#DescriptionEnd

Format 11

AddToPreamble
\usepackage{noweb}
% noweb breaks code command
\newcommand{\nwcode}{\code}
\renewcommand{\code}[1]{\texttt{#1}}
EndPreamble

Input literate-scrap.inc
--8<-8<-8<-8<-8<-8<-8<-8<-8<---

And now I can add "Noweb" module to "article (KOMA-Script)" and have the
Scrap style made available.

Because literate-scrap.inc says:
OutputType  literate

I get my .nw conversions for free!

I get the warnings:

Package(s) required: noweb.sty.
WARNING: Some required packages are unavailable!

and

Warning: Package not available

The module literate requires a package that is
not available in your LaTeX installation. LaTeX output
may not be possible.


Which I don't understand as I have /usr/share/texmf/tex/plain/misc/noweb.sty

However LaTeX output is just fine!

If I get this fixed, perhaps we can add noweb as a module?

Sam


Re: paste gvim --> lyx

2009-07-28 Thread Hellmut Weber

Hi Ignacio,

Ignacio García schrieb:

El 27 de julio de 2009 23:16, Hellmut Weber escribió:


Your recipe does not work for me when
* marking text in gvim using shift-V / C-v
* marking text with the mouse from the output in a terminal (konsole)

So thanks a lot, kedit provides a workaround.

Do you have any idea what to do with vim and from text output to a terminal?


In gvim Edit > Copy and in LyX Paste Special works fine here
And with gnome-terminal works the same too:
Marking text with the mouse,
Edit > Copy or Ctrl-Shift-C
then in LyX, Edit>PasteSpecial>SimpleText or Ctrl-Shift-C
and the text is pasted with line breaks

(Sometimes I use the middle mouse button to paste, but no line breaks)

I think you use kde (I do not) and there the things can be a bit different.
Perhaps you get better help  from kde users in LyX users list.

Thanks that did it ;-)))

Sorry that I didn't mention KDE, your assumption is correct.

A bit of further testing shows that this process can be optimezed in 
both cases:


Konsole:
1. Mark text using the mouse
2. shift+ctrl+c
3. switch to lyx
4. shift+ctrl+v

gvim:
1. Mark text using shift+V + arrow keys
2. shift to lyx
3. shift+ctrl+v

Whenever I can I avoid using the mouse.

Thanks again and happy LyXing


Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



[Fwd: Re: paste gvim --> lyx]

2009-07-28 Thread Hellmut Weber

Sorry,
it must be

gvim:
1. Mark text using shift+V + arrow keys
2. alt+e, c (Menu "edit", "copy")
3. shift to lyx
4. shift+ctrl+v

Cheers

Hellmut


 Original-Nachricht 
Betreff: Re: paste gvim --> lyx
Datum: Tue, 28 Jul 2009 12:04:28 +0200
Von: Hellmut Weber 
Antwort an: m...@hellmutweber.de
An: Ignacio García ,  LyX Users List 

Referenzen: 
<5994c290907261132o5fc80fefy84fb74c99e734...@mail.gmail.com> 
<4a6e192b.8030...@hellmutweber.de> 
<5994c290907280110x6ef8c702hf9340c1ebbdf4...@mail.gmail.com>


Hi Ignacio,

Ignacio García schrieb:

El 27 de julio de 2009 23:16, Hellmut Weber escribió:


Your recipe does not work for me when
* marking text in gvim using shift-V / C-v
* marking text with the mouse from the output in a terminal (konsole)

So thanks a lot, kedit provides a workaround.

Do you have any idea what to do with vim and from text output to a terminal?


In gvim Edit > Copy and in LyX Paste Special works fine here
And with gnome-terminal works the same too:
Marking text with the mouse,
Edit > Copy or Ctrl-Shift-C
then in LyX, Edit>PasteSpecial>SimpleText or Ctrl-Shift-C
and the text is pasted with line breaks

(Sometimes I use the middle mouse button to paste, but no line breaks)

I think you use kde (I do not) and there the things can be a bit different.
Perhaps you get better help  from kde users in LyX users list.

Thanks that did it ;-)))

Sorry that I didn't mention KDE, your assumption is correct.

A bit of further testing shows that this process can be optimezed in
both cases:

Konsole:
1. Mark text using the mouse
2. shift+ctrl+c
3. switch to lyx
4. shift+ctrl+v

gvim:
1. Mark text using shift+V + arrow keys
2. shift to lyx
3. shift+ctrl+v

Whenever I can I avoid using the mouse.

Thanks again and happy LyXing


Hellmut

--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



--
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq



Re: [Fwd: Re: paste gvim --> lyx]

2009-07-28 Thread Sam Liddicott
* Hellmut Weber wrote, On 28/07/09 11:08:
> Sorry,
> it must be
> 
> gvim:
> 1. Mark text using shift+V + arrow keys
> 2. alt+e, c (Menu "edit", "copy")
> 3. shift to lyx
> 4. shift+ctrl+v

Lyx could do with a paste mode that used CTRL+Enter type line joinings,
which would make pasting into code-scraps much easier.

Sam


Question: View/Export PDF to Directory

2009-07-28 Thread Ken
Hi all,

I have a simple question which I could not find an answer to online to
which I was hoping an experienced LyX user may know the solution.

When I click on "File > Export > PDF (pdflatex)" the .pdf file gets
generated in the same folder as the .lyx file. Would it be possible to
have the .pdf file generated in a sub-directory of this folder--say, a
folder named "./pdf" or "./export"? (I like saving my figures in a
sub-directory and would similarly like the pdfs to automatically be
saved in a subfolder so that only .lyx files are in the main directory
for the project.

Related to the above, when I click on "View > PDF (pdflatex)" the .pdf
file gets generated in a temporary folder. Would if be possible to
have these generated in a sub-directory of the folder where the .lyx
file resides--say, a folder named "./draft"?  Would it be possible to
add a date prefix to the filename too? This would be so that I could
save pdf drafts of the file.

How would I change the settings for these? (NB. I am a LyX 1.6.3 user
on Windows XP).

Thanks!

Ken


Re: Question: View/Export PDF to Directory

2009-07-28 Thread Sam Liddicott
* Ken wrote, On 28/07/09 12:28:
> Hi all,
> 
> I have a simple question which I could not find an answer to online to
> which I was hoping an experienced LyX user may know the solution.
> 
> When I click on "File > Export > PDF (pdflatex)" the .pdf file gets
> generated in the same folder as the .lyx file. Would it be possible to
> have the .pdf file generated in a sub-directory of this folder--say, a
> folder named "./pdf" or "./export"? (I like saving my figures in a
> sub-directory and would similarly like the pdfs to automatically be
> saved in a subfolder so that only .lyx files are in the main directory
> for the project.
> 
> Related to the above, when I click on "View > PDF (pdflatex)" the .pdf
> file gets generated in a temporary folder. Would if be possible to
> have these generated in a sub-directory of the folder where the .lyx
> file resides--say, a folder named "./draft"?  Would it be possible to
> add a date prefix to the filename too? This would be so that I could
> save pdf drafts of the file.
> 
> How would I change the settings for these? (NB. I am a LyX 1.6.3 user
> on Windows XP).


I guess you look at your Lyx preferences File Handling, Converters.

For "Latex (plain) -> DVI" I guess you could change the converter from
"latex" to "c:\bin\latex-dvi.bat $$i $$o"

and your batch file could be:

@echo off
mkdir draft
latex %1 %2
move %2 draft


Or something along those lines; and do likewise your your other converters

Sam


Re: Question: View/Export PDF to Directory

2009-07-28 Thread Richard Heck

On 07/28/2009 07:56 AM, Sam Liddicott wrote:

* Ken wrote, On 28/07/09 12:28:
   

Hi all,

I have a simple question which I could not find an answer to online to
which I was hoping an experienced LyX user may know the solution.

When I click on "File>  Export>  PDF (pdflatex)" the .pdf file gets
generated in the same folder as the .lyx file. Would it be possible to
have the .pdf file generated in a sub-directory of this folder--say, a
folder named "./pdf" or "./export"? (I like saving my figures in a
sub-directory and would similarly like the pdfs to automatically be
saved in a subfolder so that only .lyx files are in the main directory
for the project.

Related to the above, when I click on "View>  PDF (pdflatex)" the .pdf
file gets generated in a temporary folder. Would if be possible to
have these generated in a sub-directory of the folder where the .lyx
file resides--say, a folder named "./draft"?  Would it be possible to
add a date prefix to the filename too? This would be so that I could
save pdf drafts of the file.

How would I change the settings for these? (NB. I am a LyX 1.6.3 user
on Windows XP).
 



I guess you look at your Lyx preferences File Handling, Converters.

For "Latex (plain) ->  DVI" I guess you could change the converter from
"latex" to "c:\bin\latex-dvi.bat $$i $$o"

and your batch file could be:

@echo off
mkdir draft
latex %1 %2
move %2 draft


Or something along those lines; and do likewise your your other converters

   
The other possibility would be to define a copier for the relevant 
format. But this only works for export. The View> stuff will do its 
thing in the temporary directory. That's hardcoded.


Richard



Re: Trouble with lyx ftp site

2009-07-28 Thread Anton Driesse
Well, somewhere, something has changed because it works now!
Thank you again for your suggestions.

Anton


alternate code scrap definition

2009-07-28 Thread Sam Liddicott
This is a long post, but quite exciting to anyone who uses or wants to
improve literate programming with Lyx.

Along with using a literate module instead of a literate class
(attached), I've got a suggestion for an alternate code scrap definition.

Instead of using LatexType Paragraph with LabelType Static, (which
requires literal <>= and @) I suggest these changes:

LatexType Environment
LatextName CodeScrap
LabelType Manual

It means that the first line which normally contains:
<>=

will be the environment's label, shown in a different colour and we can
do without the << >>= because it will still have semantic meaning with
Lyx as the label.

So far, the Latex would come out like this:

\begin{CodeScrap}
[{scrap-name}]
int x=2;
int y=3;
\end{CodeScrap}

Which is not right, but some sed can turn:
  \begin{CodeScrap}\n[{scrap-name}]
into
  \n<>=
and turn
  \end{CodeScrap}
into
  @

before we pass to notangle or noweave.

Such sed is:

sed -e '/\\begin{xdummy}/{s/^.*//;n;
s/^\[{/<>=/;};/\\end{xdummy}/s/^.*/@\n/'

Further-more, we can use optional non-label text on the same line as the
label to contain a cross-reference definition such as would be used by:
  \nextchunklabel{LABEL-NAME}

This means that to add a cross-reference label to a code chunk you would:
1. select "Scrap" from the drop-down
2. type in the scrap name
3. press space
3a. press space again and type the xref label
4. press ctrl enter and start typeing code.

just miss out step 3a if you don't want a cross-reference label.

This sed will do all of that (makes use of the hold space to detect the
CodeScrap environment):

sed -e '/\\begin{CodeScrap}/{h;s/^.*//};/\\end{CodeScrap}/s/^.*/@\n/;
/^\[{/{
  x;/\\begin{CodeScrap}/{x
  s/^\[{/<>=/
  x}
  x
}'

It converted this Lyx (CodeScrap environment):
--8<-8<-8<-8<-8<---
something() start-of-something
  int something() {
int x=2;
int y=3;
  }

something_else
  #warning I'm bored
--8<-8<-8<-8<-8<---

into this latex

--8<-8<-8<-8<-8<---

\nextchunklabel{start-of-something}
<>=
int something() {
  int x=2;
  int y=3;
}

<>=
#warning I'm bored
@
--8<-8<-8<-8<-8<---

Which is spot on!

I wish that a module file could define the conversion filter. The
attached module file says:

OutputType literate

it would be good if there was also:

OutputFilter: sed -e 

which defines a filter which is used to produce the specified output type.

Sam
#\DeclareLyXModule[noweb.sty]{Noweb}
#DescriptionBegin
#Adds \usepackage{noweb} to your document, along with the Scrap style.
#Also fixes the CharStyle:Code to work with noweb, redefining nowebs
#\code command to \nwcode (if you need it).
#DescriptionEnd

#use this filter on the output before passing to notangle or noweave:
# sed -e 
'/\\begin{CodeScrap}/{h;s/^.*//};/\\end{CodeScrap}/s/^.*/@\n/;/^\[{/{x;/\\begin{CodeScrap}/{x;s/^\[{/<>=/;x};x}'

Format 11
OutputType  literate

AddToPreamble
\usepackage{noweb}
% noweb breaks code command
\newcommand{\nwcode}{\code}
\renewcommand{\code}[1]{\texttt{#1}}
EndPreamble


Style Scrap
MarginFirst_Dynamic
LatexType Environment
LatexName CodeScrap
NewLine   0
LeftMarginMMM
ParSep0.4
TopSep0.4
BottomSep 0.4
ItemSep   0.4
Align Left
AlignPossible Block,Left
FreeSpacing   1
PassThru  1
LabelType Manual
LabelFont
  Color   magenta
EndFont
TextFont
  Color   latex
  Family  Typewriter
EndFont
End



Re: Trouble with lyx ftp site

2009-07-28 Thread Paul A. Rubin

Anton Driesse wrote:

Well, somewhere, something has changed because it works now!
Thank you again for your suggestions.



Even gremlins occasionally need to rest.  :-)



default math mode for multiline equations

2009-07-28 Thread Oscar Lopez

Dear lyxers

I would like to know if there is some way to customize the math 
environment that lyx provides when Ctrl+Enter is used (multiline 
formulae). As it is described at the math documentation section 18.1 
when AMS math package is used the align environment is used as the default.


Now I would like to use lyx memoir book together with AMS math package 
but using gather environment as the default environment for multiline 
math expressions. However, I cannot find at the preferences or layout 
files where this can be set. Sorry if I have missed something evident 
but I've checked documentation and gmane mailing lists and I couldn't 
find any answer. Can I customize lyx behaviour to get gather multiline 
environment when I hit CTRL+Enter using the AMS math package?


Thanks in advance for your help
Best regards
Oscar



LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
I'm editing a 146K Lyx document (with no pictures) and the typing speed
is dreadful.

Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.

The same instance of Lyx tabbed to a small document is very fast.

Has anyone tips on speeding this up?

- hmm a few hours later and a few lyx restarts and it's speeded up again...

I'll keep an eye on it and report back if I find anything else.

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Rich Shepard

On Tue, 28 Jul 2009, Sam Liddicott wrote:


Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.


Sam,

  Probably not LyX but other processes running. If you watch top while lyx
is idle you can get a better sense of what else is happening.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
* Rich Shepard wrote, On 28/07/09 16:36:
> On Tue, 28 Jul 2009, Sam Liddicott wrote:
> 
>> Characters come out at about 1 character per second with top showing 94%
>> CPU used by Lyx.
> 
> Sam,
> 
>   Probably not LyX but other processes running. If you watch top while lyx
> is idle you can get a better sense of what else is happening.

?
Lyx was occupying the top process line of top at 94%. xorg was using 15%
(dual core).

I think if it was other processes Lyx would not have shown 94%.

But I'll check if it happens again, thanks for the advice.

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Steve Litt
On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
> I'm editing a 146K Lyx document (with no pictures) and the typing speed
> is dreadful.

That's a tiny document.

>
> Characters come out at about 1 character per second with top showing 94%
> CPU used by Lyx.

Interestingly, there was a similar symptom way back maybe 6 years ago, where 
someone used an n squared algorithm instead of n log n, or something like 
that, for wordwrapping. The developer found it easily and did one of those 
forehead slaps.

You're not using LyX 1.2 or something like that, are you? What LyX version, 
what operating system, how much RAM on the system?
>
> The same instance of Lyx tabbed to a small document is very fast.
>
> Has anyone tips on speeding this up?
>
> - hmm a few hours later and a few lyx restarts and it's speeded up again...

You have an intermittent. I hate those. Keep an eye on it, and keep your 
observation at peak performance.

SteveT



Subheading numbering

2009-07-28 Thread Ehud Kaplan
Is there a way to change the way Lyx/Latex numbers subheading, so that 
instead of

1 Introduction
it sill produce: 1. Introduction?
In other words, how do I produce a period following the last digit of a 
subheading number?

Thanks,



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott

Steve Litt wrote:

On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
  

I'm editing a 146K Lyx document (with no pictures) and the typing speed
is dreadful.



That's a tiny document.
  

Good :-)
  

Characters come out at about 1 character per second with top showing 94%
CPU used by Lyx.



Interestingly, there was a similar symptom way back maybe 6 years ago, where 
someone used an n squared algorithm instead of n log n, or something like 
that, for wordwrapping. The developer found it easily and did one of those 
forehead slaps.


You're not using LyX 1.2 or something like that, are you? What LyX version, 
what operating system, how much RAM on the system?
  


1.6.3 with 3Gig RAM, Ubuntu Jaunty 64 with radeonhd drivers.


The same instance of Lyx tabbed to a small document is very fast.

Has anyone tips on speeding this up?

- hmm a few hours later and a few lyx restarts and it's speeded up again...



You have an intermittent. I hate those. Keep an eye on it, and keep your 
  


Shall do, thanks for the advice.

Sam


Re: Subheading numbering

2009-07-28 Thread Paul A. Rubin

Ehud Kaplan wrote:
Is there a way to change the way Lyx/Latex numbers subheading, so that 
instead of

1 Introduction
it sill produce: 1. Introduction?
In other words, how do I produce a period following the last digit of a 
subheading number?

Thanks,




Change in the output: Try the titlesec package (see section 2.3 of the 
manual.


Change in the LyX GUI:  You would have to hack the layout file (or maybe 
create a module that overruled the default layout).


/Paul



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Steve Litt
On Tuesday 28 July 2009 14:41:54 you wrote:
> Steve Litt wrote:
> > On Tuesday 28 July 2009 11:25:34 Sam Liddicott wrote:
> >> I'm editing a 146K Lyx document (with no pictures) and the typing speed
> >> is dreadful.
> >
> > That's a tiny document.
>
> Good :-)

sl...@mydesk:/d/at/books/stories$ ls -l stories.lyx
-rw-r--r-- 1 slitt slitt 612194 2008-12-12 12:19 stories.lyx
sl...@mydesk:/d/at/books/stories$

That's my 200 page "Twenty Eight Tales of Troubleshooting", which has never 
had a problem keeping up with the typist.
>
> >> Characters come out at about 1 character per second with top showing 94%
> >> CPU used by Lyx.

What do you mean by "coming out at 1 character per second?" Do you mean it 
allows the typist only 1 char per second input, or do  you mean something 
else?


> >
> > Interestingly, there was a similar symptom way back maybe 6 years ago,
> > where someone used an n squared algorithm instead of n log n, or
> > something like that, for wordwrapping. The developer found it easily and
> > did one of those forehead slaps.
> >
> > You're not using LyX 1.2 or something like that, are you? What LyX
> > version, what operating system, how much RAM on the system?
>
> 1.6.3 with 3Gig RAM, Ubuntu Jaunty 64 with radeonhd drivers.

I've got 1.6.3 with 8GB, and I have absolutely no problem like that. My last 
box had 2GB but lyx 1.5.x, and had absolutely no problems with speed.

>
> >> The same instance of Lyx tabbed to a small document is very fast.
> >>
> >> Has anyone tips on speeding this up?
> >>
> >> - hmm a few hours later and a few lyx restarts and it's speeded up
> >> again...
> >
> > You have an intermittent. I hate those. Keep an eye on it, and keep your
>
> Shall do, thanks for the advice.
>
> Sam



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott
Richard Heck wrote:  

Did you have View>Source open?

Yes - I'll bet that was it! Nicely spotted, thanks!

Sam


Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Sam Liddicott

Steve Litt wrote:


What do you mean by "coming out at 1 character per second?" Do you mean it 
allows the typist only 1 char per second input, or do  you mean something 
else?
  

I mean it can't keep up with my typing, but I think Richard guessed right.
I'll prove it tomorrow on the same document.

In other news I'm finding the literate module much more convenient than 
literate class, and the new layout with manual labels much more 
congenial for entering; and I don't get caught out by missing out the 
trailing @.


Sam


problem with bibliography

2009-07-28 Thread Beny Spira
Hi

I was using package abnt and got the following error:

*TeX capacity exceeded, sorry [parameter stack size=6000].
*

*
*

* \begin{thebibliography}{19}*

* *

*If you really absolutely need more capacity,*

*you can ask a wizard to enlarge me.*



I read elsewhere that this kind of error is sometimes due to an open
parenthesis in the preamble. However, my preamble is very short and could
not find any problem there.

When bibliography is removed the output is just fine.

Any suggestion of what might be wrong?

Beny


Re: Subheading numbering

2009-07-28 Thread Yago
You need the titlesec package in your preamble, and after that this command:

\titlelabel{\thetitle.\quad}
- Original Message - 
From: "Ehud Kaplan" 
To: "LyX User" 
Sent: Tuesday, July 28, 2009 8:11 PM
Subject: Subheading numbering


> Is there a way to change the way Lyx/Latex numbers subheading, so that 
> instead of
> 1 Introduction
> it sill produce: 1. Introduction?
> In other words, how do I produce a period following the last digit of a 
> subheading number?
> Thanks,
>

Re: Off Topic: Database for citations?

2009-07-28 Thread Ralf
Ralf Schaa  writes:

Cool - Thanks both of you!

Cheers






whitespaces visible

2009-07-28 Thread Ralf
Hi all,

is there an option to make whitespaces visible in the Lyx GUI? You know, similar
as to 'show hidden text' in Word?

Reason for this: often I overlook that there is a whitespace missing before and
after citations and references.

Cheers
-Ralf



Re: LyX slow at 1 char per second, 94% cpu

2009-07-28 Thread Richard Heck

On 07/28/2009 03:31 PM, Sam Liddicott wrote:

Richard Heck wrote:

Did you have View>Source open?


Yes - I'll bet that was it! Nicely spotted, thanks!


It'll be ok if you don't have "Complete source" (or whatever) checked.

rh



Re: problem with bibliography

2009-07-28 Thread Richard Heck

On 07/28/2009 03:42 PM, Beny Spira wrote:

Hi

I was using package abnt and got the following error:

*TeX capacity exceeded, sorry [parameter stack size=6000].
*

*
*

* \begin{thebibliography}{19}*

* *

*If you really absolutely need more capacity,*

*you can ask a wizard to enlarge me.*



I read elsewhere that this kind of error is sometimes due to an open
parenthesis in the preamble. However, my preamble is very short and could
not find any problem there.

When bibliography is removed the output is just fine.

Any suggestion of what might be wrong?

   

Probably an error in the BibTeX file?

rh



Re: whitespaces visible

2009-07-28 Thread Richard Heck

On 07/28/2009 10:14 PM, Ralf wrote:

Hi all,

is there an option to make whitespaces visible in the Lyx GUI? You know, similar
as to 'show hidden text' in Word?

Reason for this: often I overlook that there is a whitespace missing before and
after citations and references.

   
At present, I don't think so, but you could request it via trac. It 
can't be that hard. (So better yet, produce the patch)


rh



problem recognizing floats

2009-07-28 Thread Ralph Boland
I am using Linux (Ubuntu 9.02) and the version of Lyx that comes with it, namely
Lyx 1.6.2.
Except for resumes and letters I haven't used Lyx much since about 2003.
I am now trying to revive a couple of papers I wrote in Lyx  in 2002.
I have not modified the Lyx files from 2002.
But I am having problems with floats.  I assume the  problem is something
trivial that I have missed relating to a change to Lyx (or Linux or Latex)
since 2002.

Any suggestions would be much appreciated.

Ralph Boland


Appended  is the first few lines of the Tex file generated by Lyx.

The problem is with the lines:

\floatstyle{}
\newfloat{}{}{}
\floatname{}{}
\floatstyle{}
\newfloat{}{}{}
\floatname{}{}

Each of these lines generates an error when I do a  ctrl-T in Lyx
to view the document in pdf or run  latex on the .tex file
the command line.  (I generated the .tex file by  doing a export
to pdflatex.)

For example  the first line generates the error in Lyx:

 \floatstyle
   {}
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.

Similarly the second line generates the error in Lyx:

 \newfloat
 {}{}{}
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.


I tried adding the line:
 \usepackage{floatflt}
in the Lyx preamble but it didn't help.

I tried directly inserting it into the .tex file above the offending lines
but that didn't help either.

The output from the " latex file.tex"  command is as follows:

latex srch55.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./srch55.tex
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/home/rocky/texmf/tex/generic/thesisChapter.cls
Document Class: thesisChapter 2000/05/15 Ralph Boland thesis class
(/usr/share/texmf-texlive/tex/latex/amscls/amsbook.cls
Document Class: amsbook 2004/08/06 v2.20
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/latin1.def))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg))
(/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-texlive/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
)
! Undefined control sequence.
l.19 \floatstyle
   {}
?






Here is the start of the file.tex file generated by Lyx:
=

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,twoside,english]{thesisChapter}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1.5in,rmargin=1in}
\pagestyle{headings}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{setspace}
\doublespacing


%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}

\floatstyle{}
\newfloat{}{}{}
\floatname{}{}
\floatstyle{}
\newfloat{}{}{}
\floatname{}{}

%% Textclass specific LaTeX commands.
 \numberwithin{section}{chapter}
 \theoremstyle{plain}
 \newtheorem{thm}{Theorem}[section]