Re: centering figures

2004-07-06 Thread G. Milde
On  5.07.04, Varun Reddy wrote:
 Hi,
 Some of the figures that i insert in LyX are not centered in the
 resulting .pdf file. Which options do i chose in the Graphics window
 to center the figures? 

By default, none of the pictures are centered. You have to go to the
paragraph containing the picture (place the cursor immediately before or
behind the picture) and open the FormatParagraph Dialog. There you can
choose center from the alignment list.

 Also is there a way i can set this as a rule for all figures.

AFAIK, unfortunately, not.

As a hack, you can redefine the latex command that insets the graphics to
include a center.

Günter


-- 
G.Milde at web.de


titlespace: back to default settings

2004-07-06 Thread Robert Neumann
Hello,
I'm writing a dokument with article style. Now I changed the beforesep and 
the aftersep settings with titlesec for chapters 2-6 using the command:
\titlespacing{\subsection}{0pt}{*2}{*0.7}

How can I go back to the default settings for the rest of the document?
Thanks
Robert


Re: header

2004-07-06 Thread Eric Delevaux
On Mon, 5 Jul 2004 16:11:01 -0700 (PDT)
Rich Shepard [EMAIL PROTECTED] wrote:

 On Tue, 6 Jul 2004, Eric Delevaux wrote:
 
  But it does exactly the same thing : the text I write in my page is over
  the header.
 
 Eric,
 
   I suspect, then, that you have another pagestyle declaration that's
 overriding your fancyhdr.
 
   Why don't you post a sample of the .lyx file for everyone to see?
 
Good idea : this is it :

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\begin_preamble
\usepackage {pst-all}
\usepackage{fancyhdr}
\date{}
\pagestyle{fancy}
\fancyhead[LO,RE]{\large\bf Devoir surveillé de mathématiques}
\end_preamble
\language frenchb
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 10
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 1.5cm
\topmargin 1.5cm
\rightmargin 1.5cm
\bottommargin 1.5cm
\headheight 0.1cm
\headsep 0.1cm
\footskip 0.1cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language swedish
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard

Voici le texte de mon devoir
\layout Standard

Il n'est pas au bon endroit
\the_end


 Rich
 
 -- 
 Dr. Richard B. Shepard, President
 Applied Ecosystem Services, Inc. (TM)
 http://www.appl-ecosys.com


(cit.) to [cit.]

2004-07-06 Thread Jakob Witten
HI,
like many others before, I would likt to change the () parethesis into 
[] in my citation-refereces in the document. On my Suse 9.0-system runs 
LYX 1.3.2 using the natbib-package. I tryed to modify natbib.conf, but 
there was no effect at all. I tryed add some \renewcommand to the 
preamble --nothing. When I  tryed  the  \usepackage{cite} there appered 
so many error-messages, that I finally gave up.
Sorry, but I am not a LINUX-pro yet. Also sorry for my english, my 
french is much better (and my german too, of course) .

bye, Jakob.
--
Jakob Witten
Brandenburgische Str. 23
10707 Berlin
Deutschland
Tel.: 0049/(0)30/88682569
mobil: 0049/(0)173/6326639



Re: centering figures

2004-07-06 Thread Stephen Buonopane

Also is there a way i can set this as a rule for all figures.
AFAIK, unfortunately, not.
As a hack, you can redefine the latex command that insets the graphics 
to
include a center.
From Herbert Voss' Tips  Tricks, (http://www.texnik.de)
add the following to your preamble
\makeatletter
\renewenvironment{figure}[1][]{%
  [EMAIL PROTECTED]
\centering
  }{%
[EMAIL PROTECTED]
  }
\makeatother
Cheers,
Steve


Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Robin Turner
[EMAIL PROTECTED] wrote:
Hello!
May I ask you a question?
I have a 40 pages document with 2 lyx errors in it. The lyx latex error notes appear 
at the very begining of the document they are: missing $ inserted and bad math 
environment delimiter. The first math formula appears many pages later and the error 
appeared during the time I was working on chapters in the middle of the document. So I 
do not understand where the errors could be. I tried to go to the tmpdir and to run 
pdflatex directly, but it was compiling fine, but the index of the resulting file had 
a strange line. So I checked it and found \( and \) in an index field I removed them 
and it is now compiling fine with lyx !!
What bug fighting strategy do you recomend in this kind of case?
With problematic compilation errors, the best thing is often to export 
the document as LaTeX, then run latex on it.

Robin
--
Don't be lucid and ironic; people will turn this against you to show 
that you aren't a nice person.
- Albert Camus

Robin Turner
IDMYO
Bilkent Universitesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin


Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Jean-Pierre Chretien

Date: Tue, 06 Jul 2004 15:24:38 +0300
From: Robin Turner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: How to debug a lyx file: where the error is?

[EMAIL PROTECTED] wrote:
 Hello!
 
 May I ask you a question?
 
 I have a 40 pages document with 2 lyx errors in it. The lyx latex error 
notes appear at the very begining of the document they are: missing $ inserted 
and bad math environment delimiter. The first math formula appears many pages 
later and the error appeared during the time I was working on chapters in the 
middle of the document. So I do not understand where the errors could be. I 
tried to go to the tmpdir and to run pdflatex directly, but it was compiling 
fine, but the index of the resulting file had a strange line. So I checked it 
and found \( and \) in an index field I removed them and it is now compiling 
fine with lyx !!
 
 What bug fighting strategy do you recomend in this kind of case?

Split your doc in chapters, test your transparencies each in turn.
If a subpart works alone, it will work as a whole.

In contrast to LaTeX and the \includeonly facility, LyX offers a simple
mechanism for chapter compilation:
 - define a documnet model
 - build each part alone with it
 - define a master document with the same model and include (as LyX)
 the chapters: LyX will ignore the preambles of the chapters.
The only remaining problem is with the cross-references: you may
insert them in ERT to remind you to set them in the last integration step.
(AFAR, tehre are hints abou this in the doc).

As a side remark, it's logical from the point of view of developers
to fail to produce output until the document is bug-free: if there is no ERT
at all (or preamble declarations, or local .tex inputs), the compilation
should run without errors.
From the point of view of an user in a hurry to output a document
due yesterday, Lyx could allow (as a preference setting) to produce 
output even in case of errors, to avoid exporting to latex to do so.
Howver, it is possible to circumvent the error showstopper by compiling
once with success (with a minimum errror-free document), and then only update:
the dvi, ps or pdf produced must be updated in spite of errors.

-- 
Jean-Pierre





Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Robert Orr
  
  What bug fighting strategy do you recomend in this
 kind of case?
 
Here is what I do.

First!  I make a backup copy of the .lyx file!  

Then I take the original .lyx and start deleting
pages.   I work backwards, deleting most recently
added content.   Each time I delete something I try to
view-dvi to see if it works.I keep doing the
delete and view until I find where the bug is.   

Once I know where the bug is I make another copy of
the original file and only delete that last section or
page that is now known to be the problem area.
Then I again see if I get a good view.If I do,
then I'm sure to know where the bug is.   

Now I go back to the original file again and keep
trying to narrow it down further and further.   
I have found that the most likely spots of trouble are
graphics and tables for me.   So sometimes the problem
narrows down to a particular cell,minipage, margin
note, etc.

The best thing I have found to do is to frequently
view-DVI as you add content.   Then you won't be
surprised with errors at the end of the day.

Phil





__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 


Re: header

2004-07-06 Thread Rich Shepard
On Tue, 6 Jul 2004, Eric Delevaux wrote:

 #LyX 1.3 created this file. For more info see http://www.lyx.org/
 \lyxformat 221
 \textclass book
 \begin_preamble
 \usepackage {pst-all}
 \usepackage{fancyhdr}
 \date{}
 \pagestyle{fancy}
 \fancyhead[LO,RE]{\large\bf Devoir surveillé de mathématiques}
 \end_preamble

Eric,

  Others more knowledgeable than I need to give you the answer. I don't know
if modifying the font size and weight -- particularly without putting the
text within braces -- has any effect. I've used fancyhdr without the problem
you report.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com


Re: header

2004-07-06 Thread Jean-Pierre Chretien

Good idea : this is it :

[]...
\rightmargin 1.5cm
\bottommargin 1.5cm
\headheight 0.1cm

1mm is a very little space to insert the header. You should enlarge this.

\headsep 0.1cm
\footskip 0.1cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip

-- 
Jean-Pierre



png to eps conversion problem

2004-07-06 Thread Beny Spira
Hi all
I am having a strange problem with the conversion of PNG figures to EPS. Latex 
message says there is no converter. I have installed Imagemagick and 
reconfigured lyx, but it still did not work. I am using the same lyx version 
(1.3.4) and OS (Mandrake 10.0) in other computer without problems. What might 
be wrong here?
Thank you in advance
Beny
-- 
Beny Spira
Departamento de Microbiologia
Instituto de Ciências Biomédicas
Universidade de São Paulo
Av. Prof. Lineu Prestes 1374
São Paulo-SPCEP:05508-900
Tel: 5511-3091-7347
FAX: 5511-3091-7354
E-mail: [EMAIL PROTECTED]


verbatim in ERT

2004-07-06 Thread skoehler
Hi,

I have embeded the following in an ERT-block.
\begin{verbatim}
zeile1
zeile2
\end{verbatim}

After exporting it ad LaTeX I get the text with an additional newlines.
\begin{verbatim}

zeile1

zeile2

\end{verbatim}

My question is why? And what can I do ?

thanks
Steffen



Re: verbatim in ERT

2004-07-06 Thread Rich Shepard
On Tue, 6 Jul 2004 [EMAIL PROTECTED] wrote:

 After exporting it ad LaTeX I get the text with an additional newlines.
 \begin{verbatim}

 zeile1

 zeile2

 \end{verbatim}

 My question is why? And what can I do ?

  I see this all the time in the .lyx file. I ignore it.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com


Re: Lyx question

2004-07-06 Thread Jose' Matos
On Tuesday 06 July 2004 13:40, you wrote:
 Hi, I understand you are one of the developers of Lyx.

  Hi,

 I have been searching for a Lyx template of an ASME (American Society of
 Mechanical Engineers) article.
 I would be extremely grateful if you could provide with this info.

  As far as I know there is not such a template and/or layout.

  However you can find more information how to make a layout file in 
http://wiki.lyx.org/pmwiki.php/Layouts/Layouts

  Also if you have doubts you are welcome to pose them on 
[EMAIL PROTECTED] to where I send also this message.

 Regards,

  Best regards,

 Andres Aramayo
 University of Cambridge, UK

-- 
José Abílio


Re: verbatim in ERT

2004-07-06 Thread Georg Baum
[EMAIL PROTECTED] wrote:

 Hi,
 
 I have embeded the following in an ERT-block.
 \begin{verbatim}
 zeile1
 zeile2
 \end{verbatim}
 
 After exporting it ad LaTeX I get the text with an additional newlines.
 \begin{verbatim}
 
 zeile1
 
 zeile2
 
 \end{verbatim}
 
 My question is why? And what can I do ?

Because lyx translates a newline in ERT to two newlines in latex (you know
this already ;-) )

See the attached lyx file for a solution. You have to use C-Enter instead
of Enter for simple newlines.


Georg

newfile3.lyx
Description: application/lyx


Basic Question

2004-07-06 Thread Carlos Fernando Knauer
Hi.

I download a file with extension STY. Where do I install it ? I use
tetex on Conectiva Linux with LyX 1.3.4 . I'm a begginer with TeX.
Thanks,
-- 
Carlos Fernando Knauer - [EMAIL PROTECTED]
ICQ: 2365669
http://counter.li.org
Linux User # 282221




Re: Basic Question

2004-07-06 Thread Chris Menzel
On Tue, Jul 06, 2004 at 12:56:46PM -0300, Carlos Fernando Knauer wrote:
 Hi.
 
 I download a file with extension STY. Where do I install it ? I use
 tetex on Conectiva Linux with LyX 1.3.4 . 

Probably in a subdirectory of /usr/share/texmf/tex/latex or
/usr/local/share/texmf/tex/latex, but before doing anything rash, wander
over to http://www.tug.org/tds and learn about the TeX directory
structure.  Then have a look at the UK TeX FAQ,
http://www.tex.ac.uk/cgi-bin/texfaq2html, especially the section on
installing new packages (and the importance of running texhash).  See
also the comp.text.tex FAQ: http://www.faqs.org/faqs/tex-faq.  Note that
many TeX packages have installation routines that do all or most of the
work for you.  Details are usually found in accompanying readme files.

Chris Menzel



Fwd: centering figures

2004-07-06 Thread Varun Reddy
i will try the hack with a new file, but i think i will stick to the
FormatParagraph Dialog option with my thesis for now :-)

varun


Templates

2004-07-06 Thread Andy Hilgartner
Hi --
I write scientific papers, occasionally including some mathematics 
(mainly set theory). I've used word-processors from the era of WordStar, 
under the CP/M operating system in the early 1980's, to Microsoft Word XP 
and OpenOffice/StarOffice. I function as an elderly (age 72) 
computer-user-former-typewriter-user, not a hotshot youngster who has 
computers eating out of his hand.
With a bit of coaching from a young friend -- who solved those 
install/configure problems that would have floored me -- I recently started 
using LyX 1.3.3 (mostly in the Windows port, on Windows XP operating 
system). I've never used TeX, have only glanced at LaTeX, and although I 
desire to abandon MS Windows althogether, so far I've only dabbled in Linux 
and Lindows/Linspire. I have spent some time reading the LyX Tutorials.
I have a text paper on my easel, and a related, longer, more 
technical one one which will include some set theory (and will go to an 
Elsevier journal) next in line. So far, I have found no way that works to 
modify or abandon the article Layout  Document formatting available in 
native LyX. Piecemeal changes, inflicted via the Layout facility, don't 
persist in successive versions of the paper, and when they revert, they 
make the layout (viewed in DVI) look grisly.
Once I even found the Elsevier template (elsart.lyx) inside LyX, 
under Templates. But I have not succeeded in making it WORK while I 
continue creating my document.
Please guide me -- how can I obtain effective help with this problem?
Yours,
Andy Hilgartner

C. A. HilgartnerPhone:  660-627-2519
2413 North East Street  FAX:660-627-2930 (voice contact first, 
please)
Kirksville  MO  63501   Website:   www.hilgart.org 

Re: centering figures

2004-07-06 Thread G. Milde
On  5.07.04, Varun Reddy wrote:
 Hi,
 Some of the figures that i insert in LyX are not centered in the
 resulting .pdf file. Which options do i chose in the Graphics window
 to center the figures? 

By default, none of the pictures are centered. You have to go to the
paragraph containing the picture (place the cursor immediately before or
behind the picture) and open the FormatParagraph Dialog. There you can
choose center from the alignment list.

 Also is there a way i can set this as a rule for all figures.

AFAIK, unfortunately, not.

As a hack, you can redefine the latex command that insets the graphics to
include a center.

Günter


-- 
G.Milde at web.de


titlespace: back to default settings

2004-07-06 Thread Robert Neumann
Hello,
I'm writing a dokument with article style. Now I changed the beforesep and 
the aftersep settings with titlesec for chapters 2-6 using the command:
\titlespacing{\subsection}{0pt}{*2}{*0.7}

How can I go back to the default settings for the rest of the document?
Thanks
Robert


Re: header

2004-07-06 Thread Eric Delevaux
On Mon, 5 Jul 2004 16:11:01 -0700 (PDT)
Rich Shepard [EMAIL PROTECTED] wrote:

 On Tue, 6 Jul 2004, Eric Delevaux wrote:
 
  But it does exactly the same thing : the text I write in my page is over
  the header.
 
 Eric,
 
   I suspect, then, that you have another pagestyle declaration that's
 overriding your fancyhdr.
 
   Why don't you post a sample of the .lyx file for everyone to see?
 
Good idea : this is it :

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\begin_preamble
\usepackage {pst-all}
\usepackage{fancyhdr}
\date{}
\pagestyle{fancy}
\fancyhead[LO,RE]{\large\bf Devoir surveillé de mathématiques}
\end_preamble
\language frenchb
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 10
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 1.5cm
\topmargin 1.5cm
\rightmargin 1.5cm
\bottommargin 1.5cm
\headheight 0.1cm
\headsep 0.1cm
\footskip 0.1cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language swedish
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard

Voici le texte de mon devoir
\layout Standard

Il n'est pas au bon endroit
\the_end


 Rich
 
 -- 
 Dr. Richard B. Shepard, President
 Applied Ecosystem Services, Inc. (TM)
 http://www.appl-ecosys.com


(cit.) to [cit.]

2004-07-06 Thread Jakob Witten
HI,
like many others before, I would likt to change the () parethesis into 
[] in my citation-refereces in the document. On my Suse 9.0-system runs 
LYX 1.3.2 using the natbib-package. I tryed to modify natbib.conf, but 
there was no effect at all. I tryed add some \renewcommand to the 
preamble --nothing. When I  tryed  the  \usepackage{cite} there appered 
so many error-messages, that I finally gave up.
Sorry, but I am not a LINUX-pro yet. Also sorry for my english, my 
french is much better (and my german too, of course) .

bye, Jakob.
--
Jakob Witten
Brandenburgische Str. 23
10707 Berlin
Deutschland
Tel.: 0049/(0)30/88682569
mobil: 0049/(0)173/6326639



Re: centering figures

2004-07-06 Thread Stephen Buonopane

Also is there a way i can set this as a rule for all figures.
AFAIK, unfortunately, not.
As a hack, you can redefine the latex command that insets the graphics 
to
include a center.
From Herbert Voss' Tips  Tricks, (http://www.texnik.de)
add the following to your preamble
\makeatletter
\renewenvironment{figure}[1][]{%
  [EMAIL PROTECTED]
\centering
  }{%
[EMAIL PROTECTED]
  }
\makeatother
Cheers,
Steve


Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Robin Turner
[EMAIL PROTECTED] wrote:
Hello!
May I ask you a question?
I have a 40 pages document with 2 lyx errors in it. The lyx latex error notes appear 
at the very begining of the document they are: missing $ inserted and bad math 
environment delimiter. The first math formula appears many pages later and the error 
appeared during the time I was working on chapters in the middle of the document. So I 
do not understand where the errors could be. I tried to go to the tmpdir and to run 
pdflatex directly, but it was compiling fine, but the index of the resulting file had 
a strange line. So I checked it and found \( and \) in an index field I removed them 
and it is now compiling fine with lyx !!
What bug fighting strategy do you recomend in this kind of case?
With problematic compilation errors, the best thing is often to export 
the document as LaTeX, then run latex on it.

Robin
--
Don't be lucid and ironic; people will turn this against you to show 
that you aren't a nice person.
- Albert Camus

Robin Turner
IDMYO
Bilkent Universitesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin


Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Jean-Pierre Chretien

Date: Tue, 06 Jul 2004 15:24:38 +0300
From: Robin Turner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: How to debug a lyx file: where the error is?

[EMAIL PROTECTED] wrote:
 Hello!
 
 May I ask you a question?
 
 I have a 40 pages document with 2 lyx errors in it. The lyx latex error 
notes appear at the very begining of the document they are: missing $ inserted 
and bad math environment delimiter. The first math formula appears many pages 
later and the error appeared during the time I was working on chapters in the 
middle of the document. So I do not understand where the errors could be. I 
tried to go to the tmpdir and to run pdflatex directly, but it was compiling 
fine, but the index of the resulting file had a strange line. So I checked it 
and found \( and \) in an index field I removed them and it is now compiling 
fine with lyx !!
 
 What bug fighting strategy do you recomend in this kind of case?

Split your doc in chapters, test your transparencies each in turn.
If a subpart works alone, it will work as a whole.

In contrast to LaTeX and the \includeonly facility, LyX offers a simple
mechanism for chapter compilation:
 - define a documnet model
 - build each part alone with it
 - define a master document with the same model and include (as LyX)
 the chapters: LyX will ignore the preambles of the chapters.
The only remaining problem is with the cross-references: you may
insert them in ERT to remind you to set them in the last integration step.
(AFAR, tehre are hints abou this in the doc).

As a side remark, it's logical from the point of view of developers
to fail to produce output until the document is bug-free: if there is no ERT
at all (or preamble declarations, or local .tex inputs), the compilation
should run without errors.
From the point of view of an user in a hurry to output a document
due yesterday, Lyx could allow (as a preference setting) to produce 
output even in case of errors, to avoid exporting to latex to do so.
Howver, it is possible to circumvent the error showstopper by compiling
once with success (with a minimum errror-free document), and then only update:
the dvi, ps or pdf produced must be updated in spite of errors.

-- 
Jean-Pierre





Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Robert Orr
  
  What bug fighting strategy do you recomend in this
 kind of case?
 
Here is what I do.

First!  I make a backup copy of the .lyx file!  

Then I take the original .lyx and start deleting
pages.   I work backwards, deleting most recently
added content.   Each time I delete something I try to
view-dvi to see if it works.I keep doing the
delete and view until I find where the bug is.   

Once I know where the bug is I make another copy of
the original file and only delete that last section or
page that is now known to be the problem area.
Then I again see if I get a good view.If I do,
then I'm sure to know where the bug is.   

Now I go back to the original file again and keep
trying to narrow it down further and further.   
I have found that the most likely spots of trouble are
graphics and tables for me.   So sometimes the problem
narrows down to a particular cell,minipage, margin
note, etc.

The best thing I have found to do is to frequently
view-DVI as you add content.   Then you won't be
surprised with errors at the end of the day.

Phil





__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 


Re: header

2004-07-06 Thread Rich Shepard
On Tue, 6 Jul 2004, Eric Delevaux wrote:

 #LyX 1.3 created this file. For more info see http://www.lyx.org/
 \lyxformat 221
 \textclass book
 \begin_preamble
 \usepackage {pst-all}
 \usepackage{fancyhdr}
 \date{}
 \pagestyle{fancy}
 \fancyhead[LO,RE]{\large\bf Devoir surveillé de mathématiques}
 \end_preamble

Eric,

  Others more knowledgeable than I need to give you the answer. I don't know
if modifying the font size and weight -- particularly without putting the
text within braces -- has any effect. I've used fancyhdr without the problem
you report.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com


Re: header

2004-07-06 Thread Jean-Pierre Chretien

Good idea : this is it :

[]...
\rightmargin 1.5cm
\bottommargin 1.5cm
\headheight 0.1cm

1mm is a very little space to insert the header. You should enlarge this.

\headsep 0.1cm
\footskip 0.1cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip

-- 
Jean-Pierre



png to eps conversion problem

2004-07-06 Thread Beny Spira
Hi all
I am having a strange problem with the conversion of PNG figures to EPS. Latex 
message says there is no converter. I have installed Imagemagick and 
reconfigured lyx, but it still did not work. I am using the same lyx version 
(1.3.4) and OS (Mandrake 10.0) in other computer without problems. What might 
be wrong here?
Thank you in advance
Beny
-- 
Beny Spira
Departamento de Microbiologia
Instituto de Ciências Biomédicas
Universidade de São Paulo
Av. Prof. Lineu Prestes 1374
São Paulo-SPCEP:05508-900
Tel: 5511-3091-7347
FAX: 5511-3091-7354
E-mail: [EMAIL PROTECTED]


verbatim in ERT

2004-07-06 Thread skoehler
Hi,

I have embeded the following in an ERT-block.
\begin{verbatim}
zeile1
zeile2
\end{verbatim}

After exporting it ad LaTeX I get the text with an additional newlines.
\begin{verbatim}

zeile1

zeile2

\end{verbatim}

My question is why? And what can I do ?

thanks
Steffen



Re: verbatim in ERT

2004-07-06 Thread Rich Shepard
On Tue, 6 Jul 2004 [EMAIL PROTECTED] wrote:

 After exporting it ad LaTeX I get the text with an additional newlines.
 \begin{verbatim}

 zeile1

 zeile2

 \end{verbatim}

 My question is why? And what can I do ?

  I see this all the time in the .lyx file. I ignore it.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
http://www.appl-ecosys.com


Re: Lyx question

2004-07-06 Thread Jose' Matos
On Tuesday 06 July 2004 13:40, you wrote:
 Hi, I understand you are one of the developers of Lyx.

  Hi,

 I have been searching for a Lyx template of an ASME (American Society of
 Mechanical Engineers) article.
 I would be extremely grateful if you could provide with this info.

  As far as I know there is not such a template and/or layout.

  However you can find more information how to make a layout file in 
http://wiki.lyx.org/pmwiki.php/Layouts/Layouts

  Also if you have doubts you are welcome to pose them on 
[EMAIL PROTECTED] to where I send also this message.

 Regards,

  Best regards,

 Andres Aramayo
 University of Cambridge, UK

-- 
José Abílio


Re: verbatim in ERT

2004-07-06 Thread Georg Baum
[EMAIL PROTECTED] wrote:

 Hi,
 
 I have embeded the following in an ERT-block.
 \begin{verbatim}
 zeile1
 zeile2
 \end{verbatim}
 
 After exporting it ad LaTeX I get the text with an additional newlines.
 \begin{verbatim}
 
 zeile1
 
 zeile2
 
 \end{verbatim}
 
 My question is why? And what can I do ?

Because lyx translates a newline in ERT to two newlines in latex (you know
this already ;-) )

See the attached lyx file for a solution. You have to use C-Enter instead
of Enter for simple newlines.


Georg

newfile3.lyx
Description: application/lyx


Basic Question

2004-07-06 Thread Carlos Fernando Knauer
Hi.

I download a file with extension STY. Where do I install it ? I use
tetex on Conectiva Linux with LyX 1.3.4 . I'm a begginer with TeX.
Thanks,
-- 
Carlos Fernando Knauer - [EMAIL PROTECTED]
ICQ: 2365669
http://counter.li.org
Linux User # 282221




Re: Basic Question

2004-07-06 Thread Chris Menzel
On Tue, Jul 06, 2004 at 12:56:46PM -0300, Carlos Fernando Knauer wrote:
 Hi.
 
 I download a file with extension STY. Where do I install it ? I use
 tetex on Conectiva Linux with LyX 1.3.4 . 

Probably in a subdirectory of /usr/share/texmf/tex/latex or
/usr/local/share/texmf/tex/latex, but before doing anything rash, wander
over to http://www.tug.org/tds and learn about the TeX directory
structure.  Then have a look at the UK TeX FAQ,
http://www.tex.ac.uk/cgi-bin/texfaq2html, especially the section on
installing new packages (and the importance of running texhash).  See
also the comp.text.tex FAQ: http://www.faqs.org/faqs/tex-faq.  Note that
many TeX packages have installation routines that do all or most of the
work for you.  Details are usually found in accompanying readme files.

Chris Menzel



Fwd: centering figures

2004-07-06 Thread Varun Reddy
i will try the hack with a new file, but i think i will stick to the
FormatParagraph Dialog option with my thesis for now :-)

varun


Templates

2004-07-06 Thread Andy Hilgartner
Hi --
I write scientific papers, occasionally including some mathematics 
(mainly set theory). I've used word-processors from the era of WordStar, 
under the CP/M operating system in the early 1980's, to Microsoft Word XP 
and OpenOffice/StarOffice. I function as an elderly (age 72) 
computer-user-former-typewriter-user, not a hotshot youngster who has 
computers eating out of his hand.
With a bit of coaching from a young friend -- who solved those 
install/configure problems that would have floored me -- I recently started 
using LyX 1.3.3 (mostly in the Windows port, on Windows XP operating 
system). I've never used TeX, have only glanced at LaTeX, and although I 
desire to abandon MS Windows althogether, so far I've only dabbled in Linux 
and Lindows/Linspire. I have spent some time reading the LyX Tutorials.
I have a text paper on my easel, and a related, longer, more 
technical one one which will include some set theory (and will go to an 
Elsevier journal) next in line. So far, I have found no way that works to 
modify or abandon the article Layout  Document formatting available in 
native LyX. Piecemeal changes, inflicted via the Layout facility, don't 
persist in successive versions of the paper, and when they revert, they 
make the layout (viewed in DVI) look grisly.
Once I even found the Elsevier template (elsart.lyx) inside LyX, 
under Templates. But I have not succeeded in making it WORK while I 
continue creating my document.
Please guide me -- how can I obtain effective help with this problem?
Yours,
Andy Hilgartner

C. A. HilgartnerPhone:  660-627-2519
2413 North East Street  FAX:660-627-2930 (voice contact first, 
please)
Kirksville  MO  63501   Website:   www.hilgart.org 

Re: centering figures

2004-07-06 Thread G. Milde
On  5.07.04, Varun Reddy wrote:
> Hi,
> Some of the figures that i insert in LyX are not centered in the
> resulting .pdf file. Which options do i chose in the Graphics window
> to center the figures? 

By default, none of the pictures are centered. You have to go to the
paragraph containing the picture (place the cursor immediately before or
behind the picture) and open the Format>Paragraph Dialog. There you can
choose center from the alignment list.

> Also is there a way i can set this as a rule for all figures.

AFAIK, unfortunately, not.

As a hack, you can redefine the latex command that insets the graphics to
include a center.

Günter


-- 
G.Milde at web.de


titlespace: back to default settings

2004-07-06 Thread Robert Neumann
Hello,
I'm writing a dokument with "article" style. Now I changed the  and 
the  settings with titlesec for chapters 2-6 using the command:
\titlespacing{\subsection}{0pt}{*2}{*0.7}

How can I go back to the default settings for the rest of the document?
Thanks
Robert


Re: header

2004-07-06 Thread Eric Delevaux
On Mon, 5 Jul 2004 16:11:01 -0700 (PDT)
Rich Shepard <[EMAIL PROTECTED]> wrote:

> On Tue, 6 Jul 2004, Eric Delevaux wrote:
> 
> > But it does exactly the same thing : the text I write in my page is over
> > the header.
> 
> Eric,
> 
>   I suspect, then, that you have another pagestyle declaration that's
> overriding your fancyhdr.
> 
>   Why don't you post a sample of the .lyx file for everyone to see?
> 
Good idea : this is it :

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\begin_preamble
\usepackage {pst-all}
\usepackage{fancyhdr}
\date{}
\pagestyle{fancy}
\fancyhead[LO,RE]{\large\bf Devoir surveillé de mathématiques}
\end_preamble
\language frenchb
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 10
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 1.5cm
\topmargin 1.5cm
\rightmargin 1.5cm
\bottommargin 1.5cm
\headheight 0.1cm
\headsep 0.1cm
\footskip 0.1cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language swedish
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard

Voici le texte de mon devoir
\layout Standard

Il n'est pas au bon endroit
\the_end


> Rich
> 
> -- 
> Dr. Richard B. Shepard, President
> Applied Ecosystem Services, Inc. (TM)
> 


(cit.) to [cit.]

2004-07-06 Thread Jakob Witten
HI,
like many others before, I would likt to change the () parethesis into 
[] in my citation-refereces in the document. On my Suse 9.0-system runs 
LYX 1.3.2 using the natbib-package. I tryed to modify natbib.conf, but 
there was no effect at all. I tryed add some \renewcommand to the 
preamble --nothing. When I  tryed  the  \usepackage{cite} there appered 
so many error-messages, that I finally gave up.
Sorry, but I am not a LINUX-pro yet. Also sorry for my english, my 
french is much better (and my german too, of course) .

bye, Jakob.
--
Jakob Witten
Brandenburgische Str. 23
10707 Berlin
Deutschland
Tel.: 0049/(0)30/88682569
mobil: 0049/(0)173/6326639



Re: centering figures

2004-07-06 Thread Stephen Buonopane

Also is there a way i can set this as a rule for all figures.
AFAIK, unfortunately, not.
As a hack, you can redefine the latex command that insets the graphics 
to
include a center.
From Herbert Voss' Tips & Tricks, (http://www.texnik.de)
add the following to your preamble
\makeatletter
\renewenvironment{figure}[1][]{%
  [EMAIL PROTECTED]
\centering
  }{%
[EMAIL PROTECTED]
  }
\makeatother
Cheers,
Steve


Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Robin Turner
[EMAIL PROTECTED] wrote:
Hello!
May I ask you a question?
I have a 40 pages document with 2 lyx errors in it. The lyx latex error notes appear 
at the very begining of the document they are: missing $ inserted and bad math 
environment delimiter. The first math formula appears many pages later and the error 
appeared during the time I was working on chapters in the middle of the document. So I 
do not understand where the errors could be. I tried to go to the tmpdir and to run 
pdflatex directly, but it was compiling fine, but the index of the resulting file had 
a strange line. So I checked it and found \( and \) in an index field I removed them 
and it is now compiling fine with lyx !!
What bug fighting strategy do you recomend in this kind of case?
With problematic compilation errors, the best thing is often to export 
the document as LaTeX, then run "latex" on it.

Robin
--
"Don't be lucid and ironic; people will turn this against you to show 
that you aren't a nice person."
- Albert Camus

Robin Turner
IDMYO
Bilkent Universitesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin


Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Jean-Pierre Chretien

>>Date: Tue, 06 Jul 2004 15:24:38 +0300
>>From: Robin Turner <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Cc: [EMAIL PROTECTED]
>>Subject: Re: How to debug a lyx file: where the error is?
>>
>>[EMAIL PROTECTED] wrote:
>>> Hello!
>>> 
>>> May I ask you a question?
>>> 
>>> I have a 40 pages document with 2 lyx errors in it. The lyx latex error 
notes appear at the very begining of the document they are: missing $ inserted 
and bad math environment delimiter. The first math formula appears many pages 
later and the error appeared during the time I was working on chapters in the 
middle of the document. So I do not understand where the errors could be. I 
tried to go to the tmpdir and to run pdflatex directly, but it was compiling 
fine, but the index of the resulting file had a strange line. So I checked it 
and found \( and \) in an index field I removed them and it is now compiling 
fine with lyx !!
>>> 
>>> What bug fighting strategy do you recomend in this kind of case?

Split your doc in chapters, test your transparencies each in turn.
If a subpart works alone, it will work as a whole.

In contrast to LaTeX and the \includeonly facility, LyX offers a simple
mechanism for chapter compilation:
 - define a documnet model
 - build each part alone with it
 - define a master document with the same model and include (as LyX)
 the chapters: LyX will ignore the preambles of the chapters.
The only remaining problem is with the cross-references: you may
insert them in ERT to remind you to set them in the last integration step.
(AFAR, tehre are hints abou this in the doc).

As a side remark, it's logical from the point of view of developers
to fail to produce output until the document is bug-free: if there is no ERT
at all (or preamble declarations, or local .tex inputs), the compilation
should run without errors.
>From the point of view of an user in a hurry to output a document
due yesterday, Lyx could allow (as a preference setting) to produce 
output even in case of errors, to avoid exporting to latex to do so.
Howver, it is possible to circumvent the error showstopper by compiling
once with success (with a minimum errror-free document), and then only update:
the dvi, ps or pdf produced must be updated in spite of errors.

-- 
Jean-Pierre





Re: How to debug a lyx file: where the error is?

2004-07-06 Thread Robert Orr
  
> > What bug fighting strategy do you recomend in this
> kind of case?
 
Here is what I do.

First!  I make a backup copy of the .lyx file!  

Then I take the original .lyx and start deleting
pages.   I work backwards, deleting most recently
added content.   Each time I delete something I try to
view->dvi to see if it works.I keep doing the
delete and view until I find where the bug is.   

Once I know where the bug is I make another copy of
the original file and only delete that last section or
page that is now known to be the problem area.
Then I again see if I get a good view.If I do,
then I'm sure to know where the bug is.   

Now I go back to the original file again and keep
trying to narrow it down further and further.   
I have found that the most likely spots of trouble are
graphics and tables for me.   So sometimes the problem
narrows down to a particular cell,minipage, margin
note, etc.

The best thing I have found to do is to frequently
view->DVI as you add content.   Then you won't be
surprised with errors at the end of the day.

Phil





__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 


Re: header

2004-07-06 Thread Rich Shepard
On Tue, 6 Jul 2004, Eric Delevaux wrote:

> #LyX 1.3 created this file. For more info see http://www.lyx.org/
> \lyxformat 221
> \textclass book
> \begin_preamble
> \usepackage {pst-all}
> \usepackage{fancyhdr}
> \date{}
> \pagestyle{fancy}
> \fancyhead[LO,RE]{\large\bf Devoir surveillé de mathématiques}
> \end_preamble

Eric,

  Others more knowledgeable than I need to give you the answer. I don't know
if modifying the font size and weight -- particularly without putting the
text within braces -- has any effect. I've used fancyhdr without the problem
you report.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)



Re: header

2004-07-06 Thread Jean-Pierre Chretien

>>Good idea : this is it :
>>
[]...
>>\rightmargin 1.5cm
>>\bottommargin 1.5cm
>>\headheight 0.1cm

1mm is a very little space to insert the header. You should enlarge this.

>>\headsep 0.1cm
>>\footskip 0.1cm
>>\secnumdepth 3
>>\tocdepth 3
>>\paragraph_separation skip
>>\defskip smallskip

-- 
Jean-Pierre



png to eps conversion problem

2004-07-06 Thread Beny Spira
Hi all
I am having a strange problem with the conversion of PNG figures to EPS. Latex 
message says there is no converter. I have installed Imagemagick and 
reconfigured lyx, but it still did not work. I am using the same lyx version 
(1.3.4) and OS (Mandrake 10.0) in other computer without problems. What might 
be wrong here?
Thank you in advance
Beny
-- 
Beny Spira
Departamento de Microbiologia
Instituto de Ciências Biomédicas
Universidade de São Paulo
Av. Prof. Lineu Prestes 1374
São Paulo-SPCEP:05508-900
Tel: 5511-3091-7347
FAX: 5511-3091-7354
E-mail: [EMAIL PROTECTED]


verbatim in ERT

2004-07-06 Thread skoehler
Hi,

I have embeded the following in an ERT-block.
\begin{verbatim}
zeile1
zeile2
\end{verbatim}

After exporting it ad LaTeX I get the text with an additional newlines.
\begin{verbatim}

zeile1

zeile2

\end{verbatim}

My question is why? And what can I do ?

thanks
Steffen



Re: verbatim in ERT

2004-07-06 Thread Rich Shepard
On Tue, 6 Jul 2004 [EMAIL PROTECTED] wrote:

> After exporting it ad LaTeX I get the text with an additional newlines.
> \begin{verbatim}
>
> zeile1
>
> zeile2
>
> \end{verbatim}
>
> My question is why? And what can I do ?

  I see this all the time in the .lyx file. I ignore it.

Rich

-- 
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)



Re: Lyx question

2004-07-06 Thread Jose' Matos
On Tuesday 06 July 2004 13:40, you wrote:
> Hi, I understand you are one of the developers of Lyx.

  Hi,

> I have been searching for a Lyx template of an ASME (American Society of
> Mechanical Engineers) article.
> I would be extremely grateful if you could provide with this info.

  As far as I know there is not such a template and/or layout.

  However you can find more information how to make a layout file in 
http://wiki.lyx.org/pmwiki.php/Layouts/Layouts

  Also if you have doubts you are welcome to pose them on 
[EMAIL PROTECTED] to where I send also this message.

> Regards,

  Best regards,

> Andres Aramayo
> University of Cambridge, UK

-- 
José Abílio


Re: verbatim in ERT

2004-07-06 Thread Georg Baum
[EMAIL PROTECTED] wrote:

> Hi,
> 
> I have embeded the following in an ERT-block.
> \begin{verbatim}
> zeile1
> zeile2
> \end{verbatim}
> 
> After exporting it ad LaTeX I get the text with an additional newlines.
> \begin{verbatim}
> 
> zeile1
> 
> zeile2
> 
> \end{verbatim}
> 
> My question is why? And what can I do ?

Because lyx translates a newline in ERT to two newlines in latex (you know
this already ;-) )

See the attached lyx file for a solution. You have to use "C-Enter" instead
of "Enter" for simple newlines.


Georg

newfile3.lyx
Description: application/lyx


Basic Question

2004-07-06 Thread Carlos Fernando Knauer
Hi.

I download a file with extension STY. Where do I install it ? I use
tetex on Conectiva Linux with LyX 1.3.4 . I'm a begginer with TeX.
Thanks,
-- 
Carlos Fernando Knauer - [EMAIL PROTECTED]
ICQ: 2365669
http://counter.li.org
Linux User # 282221




Re: Basic Question

2004-07-06 Thread Chris Menzel
On Tue, Jul 06, 2004 at 12:56:46PM -0300, Carlos Fernando Knauer wrote:
> Hi.
> 
> I download a file with extension STY. Where do I install it ? I use
> tetex on Conectiva Linux with LyX 1.3.4 . 

Probably in a subdirectory of /usr/share/texmf/tex/latex or
/usr/local/share/texmf/tex/latex, but before doing anything rash, wander
over to http://www.tug.org/tds and learn about the TeX directory
structure.  Then have a look at the UK TeX FAQ,
http://www.tex.ac.uk/cgi-bin/texfaq2html, especially the section on
installing new packages (and the importance of running "texhash").  See
also the comp.text.tex FAQ: http://www.faqs.org/faqs/tex-faq.  Note that
many TeX packages have installation routines that do all or most of the
work for you.  Details are usually found in accompanying "readme" files.

Chris Menzel



Fwd: centering figures

2004-07-06 Thread Varun Reddy
i will try the hack with a new file, but i think i will stick to the
"Format>Paragraph Dialog" option with my thesis for now :-)

varun


Templates

2004-07-06 Thread Andy Hilgartner
Hi --
I write scientific papers, occasionally including some mathematics 
(mainly set theory). I've used "word-processors" from the era of WordStar, 
under the CP/M operating system in the early 1980's, to Microsoft Word XP 
and OpenOffice/StarOffice. I function as an elderly (age 72) 
computer-user-former-typewriter-user, not a hotshot youngster who has 
computers eating out of his hand.
With a bit of coaching from a young friend -- who solved those 
install/configure problems that would have floored me -- I recently started 
using LyX 1.3.3 (mostly in the Windows port, on Windows XP operating 
system). I've never used TeX, have only glanced at LaTeX, and although I 
desire to abandon MS Windows althogether, so far I've only dabbled in Linux 
and Lindows/Linspire. I have spent some time reading the LyX Tutorials.
I have a text paper on my easel, and a related, longer, more 
technical one one which will include some set theory (and will go to an 
Elsevier journal) next in line. So far, I have found no way that works to 
modify or abandon the "article" Layout > Document formatting available in 
"native" LyX. Piecemeal changes, inflicted via the Layout facility, don't 
persist in successive versions of the paper, and when they "revert", they 
make the layout (viewed in DVI) look grisly.
Once I even found the Elsevier template (elsart.lyx) inside LyX, 
under Templates. But I have not succeeded in making it WORK while I 
continue creating my document.
Please guide me -- how can I obtain effective help with this problem?
Yours,
Andy Hilgartner

C. A. HilgartnerPhone:  660-627-2519
2413 North East Street  FAX:660-627-2930 (voice contact first, 
please)
Kirksville  MO  63501   Website:   www.hilgart.org