Re: Layout file for Elsevier style file?

2000-07-26 Thread Marco Bravi

On Tue, 25 Jul 2000, Herbert Voss wrote:

 copy: elsart.layout - home-dir/.lyx/layouts
 save: home-dir/.lyx/layouts/lyxmacros.inc as lyxmacros.inc.old
 copy: lyxmacros.inc - home-dir/.lyx/layouts
 copy: the latex-class elsart.cls - /usr/share/texmf/tex/latex/base
 (the latex dir might be different! have a look at it)
 
 run (maybe as root!) texhash
 and ./configure from home-dir/.lyx or from lyx itself by 
 option-reconfigure
 
 when you start lyx again, the new document layout 
 article (elsart)
 will be in the list layout-document-class.
 
 if not, look for the right lyx-dir for the layouts!

First of all, thanks a lot for your help.

Unfortunately, the newly installed elsart.layout doesn't show up in the
list.

As you said, I checked my lyx-dir. I have gone through my
~/.lyx/lyxrc. I run a "grep layout" and "grep lyx-dir" on it, but
couldn't find anything. Am I looking in the wrong place (or for the
wrong thing???).

I am using LyX 1.0.3. Has it anything to do with this?

Thanks,

Marco Bravi







Re: Bug in pretty ref

2000-07-26 Thread Herbert Voss

Oscar Lopez wrote:
 
 BTW if I change the language of the document from default to spanish
 while the caption Table is translated to Tabla, the text that prettyref
 add "Table x on page y" is not translated when I hoped that it would be
 
 Do I have a problem with the babel spanish stuff ? doesn't prettyref
 support babel?
 Does anybody observe this behavior with other languages?

no, all in english. a change to spanish is no problem,
have a look at

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#pretty

there is an example for a change to german.

remember that the change of Equation makes no sense, because lyx
doesn't support prettyref in it's eqn-labels. writing all the
math stuff in pure latex is very strange ...

Herbert 

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: faq response to question can i use tex wysiwyg?

2000-07-26 Thread Robin Fairbairns

 If no
 one from the core development team has responded to your request, let me
 know and I'll provide whatever information you need.

thanks -- noted.

i'm a bit snowed under at the moment with editing preprints for
tug2000, but once that's out of the way, i'll review the situation

r



Re: Where are more templates?

2000-07-26 Thread Kayvan A. Sylvan

On Tue, Jul 25, 2000 at 04:51:03PM +, C Y wrote:
 Do you know where there's some good documentation on how to make templates?  
 What the standards are and whatnot?  Also, what kind are needed?  I might be 
 able to do one or two if I can figure it out, but they would be for things 
 like homework and school reports.  (What I do, in other words :-)  Would 
 that be of use?
 
 C Y

I believe all the documentation about this is in the Customization
manual.

Thanks for your willingness to help!

---Kayvan

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: translating commands

2000-07-26 Thread Preben Randhol

Raffael Herzog [EMAIL PROTECTED] wrote on 25/07/2000 (17:12) :
 
 For now, it should be possible to edit the layout files... DANGER!
 
 You see those Style-Sections, e.g.
 
   Style Part
 ...
 LatexName  part
 ...
   End
 
 If you rename the style, for example to "Teil" this should change the
 label and still leave the LatexName "part". I never tried this and am
 not shure that this works! Backup your old style files, if you try it!

I did this, but it doesn't work with documents that are written in other
versions of LyX. That is all the tutorials and help files got mangled as
LyX didn't find the proper Styles.

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- http://www.pvv.org/~randhol/
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Re: Layout file for Elsevier style file?

2000-07-26 Thread Alain Castera


Here's mine.
Just an attempt, with only a few features implemented (and no warranty,
btw). But I already submited a paper on physics letters using it, so it is
supposed to work.

Hope tyhis will help.

Alain

On Tue, 25 Jul 2000, Marco Bravi wrote:

 Dear LyXers,
 
   I am about to submit a paper to an Elsevier journal and I
 discoveried that they have a style file for LaTeX users. Its name is
 "elsart" and it features moderately customized environments such as a
 "frontmatter" for the beginning of the paper and so on.
 
 Is there anybody that has already written something to make it easier to
 use it from within LyX. I believe that it should be a layout file (am I
 wrong?). 

 ***
 *Alain Castera*
 * LPNHE - Tour 33 RdC   | e-mail : [EMAIL PROTECTED]*
 * 4 Place Jussieu   | Telephone : (+33) 144274187 *
 * 75252 Paris Cedex 05  | Fax :   (+33) 144274638 *
 * France| *
 ***


#% Do not delete he line below; configure depends on this
#  \DeclareLaTeXClass{elsart}
# Elsevier Article textclass definition file. Taken from article LyX source code
# Author : Matthias Ettrich [EMAIL PROTECTED]
# Transposed by Pascal André [EMAIL PROTECTED]
# Heavily modifed and enhanced by serveral developers.
# article - elseart by Alain Castera [EMAIL PROTECTED]

# Input general definitions
Input stdclass.inc

# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3

# Change a bit Part and Part*
Style Part
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

Style Part*
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

# begin modifications for elsart from article (A.C.)
# small caption fonts
Style Caption
  Font
SizeSmall
  EndFont
End  

#added ackowledgement but not stisfactory (watch the keepempty option)
Style Acknowledgement
  CopyStyle Section*
  LatexType Command
  LatexName ack
  MarginDynamic
  Align Block
  AlignPossible Block
  NextNoIndent  1
  LabelType Static
  LabelString   Acknowledgement
  KeepEmpty 1

End


#added frontmatter. needs also a protected space and change environment depth 
# for title etc. by hand

Style Frontmatter
  LatexType Environment
  LatexName frontmatter
  KeepEmpty 1
  LabelType No_label
End

#redefined title stuff
Style Title
  LatexType Command
  Font
   Series   Bold
   Size Large
  EndFont
End
Style Author
  LatexType Command
  Font
   Size Large
  EndFont
End
Style Abstract
  LabelType Top_Environment
  NextNoIndent  1
End
Style Address
  MarginStatic
  LatexType Command
  LatexName address
  AlignPossible Center
  Align Center
  Font
   ShapeItalic
   Size Small
  EndFont
   Preamble
   EndPreamble
End
















Re: Layout file for Elsevier style file?

2000-07-26 Thread Herbert Voss

Marco Bravi wrote:
 
 On Tue, 25 Jul 2000, Herbert Voss wrote:
 
  copy: elsart.layout - home-dir/.lyx/layouts
  save: home-dir/.lyx/layouts/lyxmacros.inc as lyxmacros.inc.old
  copy: lyxmacros.inc - home-dir/.lyx/layouts
  copy: the latex-class elsart.cls - /usr/share/texmf/tex/latex/base
  (the latex dir might be different! have a look at it)

 Unfortunately, the newly installed elsart.layout doesn't show up in the
 list.
 
 As you said, I checked my lyx-dir. I have gone through my
 ~/.lyx/lyxrc. I run a "grep layout" and "grep lyx-dir" on it, but
 couldn't find anything. Am I looking in the wrong place (or for the
 wrong thing???).

I am using LyX 1.0.3. Has it anything to do with this?

in lyx look for help-version. the path for the library is listed.
if you are unsure. copy the layout-file to $home/.lyx/layouts
and /usr/share/lyx/layouts and reconfigure(!). maybe that the last dir
differs in 1.0.3. it's a good idea to upgrade to 1.1.5! a lot
of good features there! :-)

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: best way to make PDF files?

2000-07-26 Thread Jean-Marc Lasgouttes

 "tuukkat" == tuukkat  [EMAIL PROTECTED] writes:

tuukkat On Mon, 10 Jul 2000, Jon Fox wrote:
 are there... and nothing else. xpdf seems to show other pdf files
 ok, just not mine. Maybe I don't have

tuukkat Try other pdf viewers than just xpdf. I was able to produce a
tuukkat pdf file that displayed very well with gv/ghostscript but not
tuukkat with xpdf (using ps2pdf and landscape mode in LyX). I still
tuukkat don't know whether the bug is in ps2pdf or in xpdf (after
tuukkat all, my xpdf version is only 0.9, not even 1.0...)

xpdf needs quite a setup to be able to use ps fonts instead of the
fonts provided by the X server. It seems possible to make it work with
the help of T1lib, but I have to admit that I gave up...

JMarc



Re: translating commands

2000-07-26 Thread Preben Randhol

Lars Gullik Bjønnes [EMAIL PROTECTED] wrote on 25/07/2000 (16:51) :
 this should not be very hard but it is a bit of work... I will do this
 before 1.1.6 is released.

Thanks. I think it would make it easier for a lot of people to use LyX.

Btw: It might be me overlooking it, but I cannot find in the special
character menu the possibility to instrt a newpage only newline. Is it
possible to add this in a later version?

 btw. I'd be happy for suggestions on norwegian translations of those
 strings.

Will do. I translated all the layoutfiles, but that didn't work. Though
translations for section, subsection and subsubsection is tricky.

Section - Avsnitt, but is Subsection - Underavsnitt and Subsubsection
- Underunderavsnitt? Sounds strange, but I cannot come up with
something better at the moment.

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- http://www.pvv.org/~randhol/
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Re: translating commands

2000-07-26 Thread Lars Gullik Bjønnes

Preben Randhol [EMAIL PROTECTED] writes:

| Btw: It might be me overlooking it, but I cannot find in the special
| character menu the possibility to instrt a newpage only newline. Is it
| possible to add this in a later version?

You usually inserts pagebreaks with Layout-Paragraph
But this is of course not perfect in all cases...

| Section - Avsnitt, but is Subsection - Underavsnitt and Subsubsection
| - Underunderavsnitt? Sounds strange, but I cannot come up with
| something better at the moment.

And how would you translate "Paragraph" and "SubParagrap" in this
setting...

Section - Seksjon
Paragraph - Avsnitt

Would that be "ok"?

Lgb




Re: translating commands

2000-07-26 Thread Jean-Marc Lasgouttes

 "Preben" == Preben Randhol [EMAIL PROTECTED] writes:

Preben Btw: It might be me overlooking it, but I cannot find in the
Preben special character menu the possibility to instrt a newpage
Preben only newline. Is it possible to add this in a later version?

Have a look in Layout-Paragraph.

JMarc



Re: LyX Development News for July

2000-07-26 Thread Preben Randhol

Allan Rae [EMAIL PROTECTED] wrote on 25/07/2000 (19:49) :
 
 The latest LDN is now available:
 
   http://www.lyx.org/news/2726.php3

It says there is a Gnome port on the way. Is there a homepage for this
somewhere?

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- http://www.pvv.org/~randhol/
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Key binding

2000-07-26 Thread Phil Scordis


I apologise in advance for such dumb questions :)

I am using the xemacs key binding (which I have recently discovered after
using the emacs one). What I would like to do is bind a key combo to
exactly the action that the "Red" TeX button on the menu does. However, I
have tried the key binding:

\bind "C-z t"  "layout LaTeX"

And of course this makes the whole paragraph TeX-Red, not just the
highlighted region. So, I have tried almost all combinations of upper and
lowercase "latex" in the following, but to no avail.

\bind "C-z t" "font LaTeX"
 
(including "font-latex")

Please would someone put me out of my misery!

And while I'm at it. I'm using the acronym package, and it seems to be
lacking the functionality that pluralises acronyms, how do I find out
which package version is installed on my machine. 
(I'm using ver 1.1.5 prior to any fixing (rpm))

Thanks

Phil

-
  Phil Scordis
   Room 2.19, School of Biological Sciences, Stopford Building
University of Manchester, Oxford Road, Manchester, M13 9PT
-




Newbie Questions

2000-07-26 Thread Dave Rolfe

I have just started using Lyx to create patent documents. I am using
version 1.1.5fix1 and installed it as an rpm binary. It is working quite
well, but I have a couple questions. Right now I am printing out using
the Times font, but I may need to create output using a sans serif font.
I went to the document menu and clicked on helvit. I understand that
this does not change the screen font. But when I preview the document as
dvi or postscript it shows up as Times! Nothing I do can get Lyx to
output anything but Times. So maybe my install is messed up somehow. In
addition the list of fonts that appear in Lyx is a small subset of the
type 1 fonts I have installed and are known to the X font server. Why is
this? And if I change the screen font to helvit I get the right thing.
A second question involves line numbers. I did not see anything in the
Lyx menus that would get me line numbers so I went off and downloaded
the lineno.sty package, figured out how to put Tex in a Lyx document and
the line number stuff is working. But in order for Lyx (LaTex?) to find
the lineno.sty macro, it has to be in the current directory with the
document. This means that I will have to have a copy of lineno.sty for
each document I create and this seems rather ugly. Is there a way that I
can tell Lyx where to look for sty files?

Thanks, Dave




latex,math set_color

2000-07-26 Thread Ralph Boland

I am running lyx-1.1.5 on solaris.

I get the following error messages:

  LyX: Unknown X11 color DarkRed for latex
   Using black instead, sorry!.
  LyX: Unknown X11 color DarkBlue for math
   Using black instead, sorry!.

I tried'set_color "latex" "red"'
and'set_color "math"  "blue"'

and got the following error messages:

 LyX: Unknown tah `\set_color' [around line 39 of file
~/.lyx/lyxrc]
 LyX: Unknown tag `\set_color' [around line 40 of file
~/.lyx/lyxrc]

I also tried setting footnote red and got the same error.

Any suggestioons as to how I can fix this.

Thanks

Ralph Boland



Re: Key binding

2000-07-26 Thread Phil Scordis


Sorry, it looks like with a bit more digging I have solved it myself:
FYI

\bind "C-z x" "tex-mode"

This solves my key-binding problem.

Phil




Re: latex,math set_color

2000-07-26 Thread Lars Gullik Bjønnes

Ralph Boland [EMAIL PROTECTED] writes:

| I am running lyx-1.1.5 on solaris.

The \set_color tag is only present in 1.1.5fix1.

Lgb



Re: Key binding

2000-07-26 Thread Jean-Marc Lasgouttes

 "Phil" == Phil Scordis [EMAIL PROTECTED] writes:

Phil Sorry, it looks like with a bit more digging I have solved it
Phil myself: FYI

Phil \bind "C-z x" "tex-mode"

Phil This solves my key-binding problem.

... and "M-c t" does the same, I think.

JMarc



Why are not LyX code displayed in a mono-spaced font?

2000-07-26 Thread 3aa

Hi

I wrote a crash course in C programming using Lyx, where I used LyX-Code to
include small examples of C code. And everythings works perfectly...

...untill I use tth or latex2html to convert the document to html. In the
html document the C code isn't displayed in a mono-spaced font (e.g. the
pre tag), and that really mess up the readability :(

I'm lost... help! ;)


Thanks!
Sincerely,
Torkel Bjørnson [EMAIL PROTECTED]



Re: Newbie Questions

2000-07-26 Thread Kayvan A. Sylvan

On Wed, Jul 26, 2000 at 09:28:08AM -0400, Dave Rolfe wrote:
 I have just started using Lyx to create patent documents. I am using
 version 1.1.5fix1 and installed it as an rpm binary. It is working quite
 well, but I have a couple questions. Right now I am printing out using
 the Times font, but I may need to create output using a sans serif font.
 I went to the document menu and clicked on helvit. I understand that
 this does not change the screen font. But when I preview the document as
 dvi or postscript it shows up as Times! Nothing I do can get Lyx to
 output anything but Times. So maybe my install is messed up somehow. In
 addition the list of fonts that appear in Lyx is a small subset of the
 type 1 fonts I have installed and are known to the X font server. Why is
 this? And if I change the screen font to helvit I get the right thing.

I don't know an answer to this question offhand, but I do know
the answer to your second question:

 A second question involves line numbers. I did not see anything in the
 Lyx menus that would get me line numbers so I went off and downloaded
 the lineno.sty package, figured out how to put Tex in a Lyx document and
 the line number stuff is working. But in order for Lyx (LaTex?) to find
 the lineno.sty macro, it has to be in the current directory with the
 document. This means that I will have to have a copy of lineno.sty for
 each document I create and this seems rather ugly. Is there a way that I
 can tell Lyx where to look for sty files?
 
 Thanks, Dave

Use the TEXINPUTS environment variable.

Set it to something like:

.:/home/kayvan/src/tex/sty:!!/usr/share/texmf/{tex,pdftex}/{generic,}//

The directory /home/kayvan/src/tex/sty is where I put all my homegrown
and non-standard TeX style files.

---Kayvan
-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: Why are not LyX code displayed in a mono-spaced font?

2000-07-26 Thread Herbert Voss

"Torkel Bjørnson-Langen (3aa)" wrote:
 
 Hi
 
 I wrote a crash course in C programming using Lyx, where I used LyX-Code to
 include small examples of C code. And everythings works perfectly...
 
 ...untill I use tth or latex2html to convert the document to html. In the
 html document the C code isn't displayed in a mono-spaced font (e.g. the
 pre tag), and that really mess up the readability :(
 
 I'm lost... help! ;)

1. in latex preamble \usepackage{fancyvrb}
2. before every programcode in your text
\begin{Verbatim}[baselinestretch=0.5]
3. behind every programcode in your text \end{Verbatim}
4. change the style of the programcode from lyx-code to latex

now latex2html shows the programscode in monospace. the only problem
is the option [baselinestretch=0.5]. latex2html don't delete this one,
so you have to delete this with any simple texteditor by youself.

hope, this helps

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-26 Thread Dekel Tsur

On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Why not?
When inserting the label in LyX, give it the name tab:mytable,
and then you can insert the prettyref. No need for ERT!

 it's a question to Lars or/and Jean-Marc:
   insert label AND insert cross-reference must have BOTH
   the prettyref-option?! if someone chooses once this option
   all the rest of labels and references must converted
   to prettyref-style. 

It seems that you expect to use labels without a prefix, (like MyTable),
and let lyx automatically generate the prefix (tab:) when generating the
latex file.
This is not done by LyX.

An interesting question is whether it is possible to write a smarter LaTeX
package, which doesn't need the prefixing the labels (i.e., the \label command
is redefined to output also the counter name to the auxiliary file) ?




Re: Bug in pretty ref

2000-07-26 Thread Vincent VAQUIN

Herbert Voss a écrit :
 Vincent VAQUIN wrote:
  I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
  in cross reference, pretty ref.
  
   can you send an example-file?
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Thanks a lot.

 your attached lyx-file shows how all works with pure latex-code,
 but this isn't lyx-like ... :-(

I don't understand... My text was written with LyX...

-- 
Vincent



Customizing the index

2000-07-26 Thread German Poo Caaman~o


Reading some documents provides by "teTeX: A documentation guide" in
my web2c TeX distribution I noted that some dvi files had the index
as books.  I mean,
Symbols
...
A
...
...
B
...
...

I did search aboutr index but I didn't find anything.  I supossed that
is an option (such as a declare a package or similar).

What is the package that provides those index's format?

(Neither I didn't find it on Herbert's tips page ;-)

Thanks in advance,

-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"




lyx buggy when resouces scarce

2000-07-26 Thread Ralph Boland

I searched the lyx home page but couldn't find
any information on how to report errors so I
 am reporting my bugs here.
advice on where/how to report errors appreciated.


I am running lyx on solaris and unfortunately
I have limited resources available.
Thus crashes are fairly common because I 
run out of memory.
This often happens when I run lyx and xfig concurrently.

This now happens more often since I upgraded
from 1.0.4 to 1.1.5.  


This occurs especially often when I work with foilTex
documents.  Actually I switched to working on
foilTex documents at the same time I switched to lyx-1.1.5
so possibly the problem is mainly with foilTex documents.

If this were not bad enough.  Lyx now crashes
in ugly ways.  

Often it will crash and leave the lyx window open.
I then cannot remove the window.
Often when this happens I cannot restart lyx without
crashing immediately.  I then have to logout and
then login again.

I may have to go back to using lyx version 1.0.4.

Note that lyx 1.0.4 often dropped cores and occasionally
kicked me off the system.  But lyx 1.1.5 is becoming 
difficult to use at all.

Note that I run  lyx on one sun machine remotely from another.
This is because the machine I am on has limited resources.
The remote machine has plenty of resources so it suprizes 
me that I have so much difficulty.

Thanks

Ralph Boland

p.s.  I can send you core dumps (lots) if you want.



Re: LyX Development News for July

2000-07-26 Thread Allan Rae

On Wed, 26 Jul 2000, Preben Randhol wrote:

 Allan Rae [EMAIL PROTECTED] wrote on 25/07/2000 (19:49) :
  
  The latest LDN is now available:
  
  http://www.lyx.org/news/2726.php3
 
 It says there is a Gnome port on the way. Is there a homepage for this
 somewhere?

Good question.  Perhaps Marko (the porter) can answer that?

Allan. (ARRae)




Re: Key binding

2000-07-26 Thread Allan Rae

On Wed, 26 Jul 2000, Phil Scordis wrote:
 And while I'm at it. I'm using the acronym package, and it seems to be
 lacking the functionality that pluralises acronyms, how do I find out
 which package version is installed on my machine. 
 (I'm using ver 1.1.5 prior to any fixing (rpm))

Two options:
1. look at the output in the latex log file (Edit-View LaTeX Log file)
the package should write its name and version number
2. find the file on your system and read it.
less `locate acronym.sty`

Allan. (ARRae)





Re: Layout file for Elsevier style file?

2000-07-26 Thread Marco Bravi

On Tue, 25 Jul 2000, Herbert Voss wrote:

 copy: elsart.layout - home-dir/.lyx/layouts
 save: home-dir/.lyx/layouts/lyxmacros.inc as lyxmacros.inc.old
 copy: lyxmacros.inc - home-dir/.lyx/layouts
 copy: the latex-class elsart.cls - /usr/share/texmf/tex/latex/base
 (the latex dir might be different! have a look at it)
 
 run (maybe as root!) texhash
 and ./configure from home-dir/.lyx or from lyx itself by 
 option-reconfigure
 
 when you start lyx again, the new document layout 
 article (elsart)
 will be in the list layout-document-class.
 
 if not, look for the right lyx-dir for the layouts!

First of all, thanks a lot for your help.

Unfortunately, the newly installed elsart.layout doesn't show up in the
list.

As you said, I checked my lyx-dir. I have gone through my
~/.lyx/lyxrc. I run a "grep layout" and "grep lyx-dir" on it, but
couldn't find anything. Am I looking in the wrong place (or for the
wrong thing???).

I am using LyX 1.0.3. Has it anything to do with this?

Thanks,

Marco Bravi







Re: Bug in pretty ref

2000-07-26 Thread Herbert Voss

Oscar Lopez wrote:
 
 BTW if I change the language of the document from default to spanish
 while the caption Table is translated to Tabla, the text that prettyref
 add "Table x on page y" is not translated when I hoped that it would be
 
 Do I have a problem with the babel spanish stuff ? doesn't prettyref
 support babel?
 Does anybody observe this behavior with other languages?

no, all in english. a change to spanish is no problem,
have a look at

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#pretty

there is an example for a change to german.

remember that the change of Equation makes no sense, because lyx
doesn't support prettyref in it's eqn-labels. writing all the
math stuff in pure latex is very strange ...

Herbert 

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: faq response to question can i use tex wysiwyg?

2000-07-26 Thread Robin Fairbairns

 If no
 one from the core development team has responded to your request, let me
 know and I'll provide whatever information you need.

thanks -- noted.

i'm a bit snowed under at the moment with editing preprints for
tug2000, but once that's out of the way, i'll review the situation

r



Re: Where are more templates?

2000-07-26 Thread Kayvan A. Sylvan

On Tue, Jul 25, 2000 at 04:51:03PM +, C Y wrote:
 Do you know where there's some good documentation on how to make templates?  
 What the standards are and whatnot?  Also, what kind are needed?  I might be 
 able to do one or two if I can figure it out, but they would be for things 
 like homework and school reports.  (What I do, in other words :-)  Would 
 that be of use?
 
 C Y

I believe all the documentation about this is in the Customization
manual.

Thanks for your willingness to help!

---Kayvan

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: translating commands

2000-07-26 Thread Preben Randhol

Raffael Herzog [EMAIL PROTECTED] wrote on 25/07/2000 (17:12) :
 
 For now, it should be possible to edit the layout files... DANGER!
 
 You see those Style-Sections, e.g.
 
   Style Part
 ...
 LatexName  part
 ...
   End
 
 If you rename the style, for example to "Teil" this should change the
 label and still leave the LatexName "part". I never tried this and am
 not shure that this works! Backup your old style files, if you try it!

I did this, but it doesn't work with documents that are written in other
versions of LyX. That is all the tutorials and help files got mangled as
LyX didn't find the proper Styles.

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- http://www.pvv.org/~randhol/
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Re: Layout file for Elsevier style file?

2000-07-26 Thread Alain Castera


Here's mine.
Just an attempt, with only a few features implemented (and no warranty,
btw). But I already submited a paper on physics letters using it, so it is
supposed to work.

Hope tyhis will help.

Alain

On Tue, 25 Jul 2000, Marco Bravi wrote:

 Dear LyXers,
 
   I am about to submit a paper to an Elsevier journal and I
 discoveried that they have a style file for LaTeX users. Its name is
 "elsart" and it features moderately customized environments such as a
 "frontmatter" for the beginning of the paper and so on.
 
 Is there anybody that has already written something to make it easier to
 use it from within LyX. I believe that it should be a layout file (am I
 wrong?). 

 ***
 *Alain Castera*
 * LPNHE - Tour 33 RdC   | e-mail : [EMAIL PROTECTED]*
 * 4 Place Jussieu   | Telephone : (+33) 144274187 *
 * 75252 Paris Cedex 05  | Fax :   (+33) 144274638 *
 * France| *
 ***


#% Do not delete he line below; configure depends on this
#  \DeclareLaTeXClass{elsart}
# Elsevier Article textclass definition file. Taken from article LyX source code
# Author : Matthias Ettrich [EMAIL PROTECTED]
# Transposed by Pascal André [EMAIL PROTECTED]
# Heavily modifed and enhanced by serveral developers.
# article - elseart by Alain Castera [EMAIL PROTECTED]

# Input general definitions
Input stdclass.inc

# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3

# Change a bit Part and Part*
Style Part
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

Style Part*
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

# begin modifications for elsart from article (A.C.)
# small caption fonts
Style Caption
  Font
SizeSmall
  EndFont
End  

#added ackowledgement but not stisfactory (watch the keepempty option)
Style Acknowledgement
  CopyStyle Section*
  LatexType Command
  LatexName ack
  MarginDynamic
  Align Block
  AlignPossible Block
  NextNoIndent  1
  LabelType Static
  LabelString   Acknowledgement
  KeepEmpty 1

End


#added frontmatter. needs also a protected space and change environment depth 
# for title etc. by hand

Style Frontmatter
  LatexType Environment
  LatexName frontmatter
  KeepEmpty 1
  LabelType No_label
End

#redefined title stuff
Style Title
  LatexType Command
  Font
   Series   Bold
   Size Large
  EndFont
End
Style Author
  LatexType Command
  Font
   Size Large
  EndFont
End
Style Abstract
  LabelType Top_Environment
  NextNoIndent  1
End
Style Address
  MarginStatic
  LatexType Command
  LatexName address
  AlignPossible Center
  Align Center
  Font
   ShapeItalic
   Size Small
  EndFont
   Preamble
   EndPreamble
End
















Re: Layout file for Elsevier style file?

2000-07-26 Thread Herbert Voss

Marco Bravi wrote:
 
 On Tue, 25 Jul 2000, Herbert Voss wrote:
 
  copy: elsart.layout - home-dir/.lyx/layouts
  save: home-dir/.lyx/layouts/lyxmacros.inc as lyxmacros.inc.old
  copy: lyxmacros.inc - home-dir/.lyx/layouts
  copy: the latex-class elsart.cls - /usr/share/texmf/tex/latex/base
  (the latex dir might be different! have a look at it)

 Unfortunately, the newly installed elsart.layout doesn't show up in the
 list.
 
 As you said, I checked my lyx-dir. I have gone through my
 ~/.lyx/lyxrc. I run a "grep layout" and "grep lyx-dir" on it, but
 couldn't find anything. Am I looking in the wrong place (or for the
 wrong thing???).

I am using LyX 1.0.3. Has it anything to do with this?

in lyx look for help-version. the path for the library is listed.
if you are unsure. copy the layout-file to $home/.lyx/layouts
and /usr/share/lyx/layouts and reconfigure(!). maybe that the last dir
differs in 1.0.3. it's a good idea to upgrade to 1.1.5! a lot
of good features there! :-)

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: best way to make PDF files?

2000-07-26 Thread Jean-Marc Lasgouttes

 "tuukkat" == tuukkat  [EMAIL PROTECTED] writes:

tuukkat On Mon, 10 Jul 2000, Jon Fox wrote:
 are there... and nothing else. xpdf seems to show other pdf files
 ok, just not mine. Maybe I don't have

tuukkat Try other pdf viewers than just xpdf. I was able to produce a
tuukkat pdf file that displayed very well with gv/ghostscript but not
tuukkat with xpdf (using ps2pdf and landscape mode in LyX). I still
tuukkat don't know whether the bug is in ps2pdf or in xpdf (after
tuukkat all, my xpdf version is only 0.9, not even 1.0...)

xpdf needs quite a setup to be able to use ps fonts instead of the
fonts provided by the X server. It seems possible to make it work with
the help of T1lib, but I have to admit that I gave up...

JMarc



Re: translating commands

2000-07-26 Thread Preben Randhol

Lars Gullik Bjønnes [EMAIL PROTECTED] wrote on 25/07/2000 (16:51) :
 this should not be very hard but it is a bit of work... I will do this
 before 1.1.6 is released.

Thanks. I think it would make it easier for a lot of people to use LyX.

Btw: It might be me overlooking it, but I cannot find in the special
character menu the possibility to instrt a newpage only newline. Is it
possible to add this in a later version?

 btw. I'd be happy for suggestions on norwegian translations of those
 strings.

Will do. I translated all the layoutfiles, but that didn't work. Though
translations for section, subsection and subsubsection is tricky.

Section - Avsnitt, but is Subsection - Underavsnitt and Subsubsection
- Underunderavsnitt? Sounds strange, but I cannot come up with
something better at the moment.

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- http://www.pvv.org/~randhol/
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Re: translating commands

2000-07-26 Thread Lars Gullik Bjønnes

Preben Randhol [EMAIL PROTECTED] writes:

| Btw: It might be me overlooking it, but I cannot find in the special
| character menu the possibility to instrt a newpage only newline. Is it
| possible to add this in a later version?

You usually inserts pagebreaks with Layout-Paragraph
But this is of course not perfect in all cases...

| Section - Avsnitt, but is Subsection - Underavsnitt and Subsubsection
| - Underunderavsnitt? Sounds strange, but I cannot come up with
| something better at the moment.

And how would you translate "Paragraph" and "SubParagrap" in this
setting...

Section - Seksjon
Paragraph - Avsnitt

Would that be "ok"?

Lgb




Re: translating commands

2000-07-26 Thread Jean-Marc Lasgouttes

 "Preben" == Preben Randhol [EMAIL PROTECTED] writes:

Preben Btw: It might be me overlooking it, but I cannot find in the
Preben special character menu the possibility to instrt a newpage
Preben only newline. Is it possible to add this in a later version?

Have a look in Layout-Paragraph.

JMarc



Re: LyX Development News for July

2000-07-26 Thread Preben Randhol

Allan Rae [EMAIL PROTECTED] wrote on 25/07/2000 (19:49) :
 
 The latest LDN is now available:
 
   http://www.lyx.org/news/2726.php3

It says there is a Gnome port on the way. Is there a homepage for this
somewhere?

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- http://www.pvv.org/~randhol/
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Key binding

2000-07-26 Thread Phil Scordis


I apologise in advance for such dumb questions :)

I am using the xemacs key binding (which I have recently discovered after
using the emacs one). What I would like to do is bind a key combo to
exactly the action that the "Red" TeX button on the menu does. However, I
have tried the key binding:

\bind "C-z t"  "layout LaTeX"

And of course this makes the whole paragraph TeX-Red, not just the
highlighted region. So, I have tried almost all combinations of upper and
lowercase "latex" in the following, but to no avail.

\bind "C-z t" "font LaTeX"
 
(including "font-latex")

Please would someone put me out of my misery!

And while I'm at it. I'm using the acronym package, and it seems to be
lacking the functionality that pluralises acronyms, how do I find out
which package version is installed on my machine. 
(I'm using ver 1.1.5 prior to any fixing (rpm))

Thanks

Phil

-
  Phil Scordis
   Room 2.19, School of Biological Sciences, Stopford Building
University of Manchester, Oxford Road, Manchester, M13 9PT
-




Newbie Questions

2000-07-26 Thread Dave Rolfe

I have just started using Lyx to create patent documents. I am using
version 1.1.5fix1 and installed it as an rpm binary. It is working quite
well, but I have a couple questions. Right now I am printing out using
the Times font, but I may need to create output using a sans serif font.
I went to the document menu and clicked on helvit. I understand that
this does not change the screen font. But when I preview the document as
dvi or postscript it shows up as Times! Nothing I do can get Lyx to
output anything but Times. So maybe my install is messed up somehow. In
addition the list of fonts that appear in Lyx is a small subset of the
type 1 fonts I have installed and are known to the X font server. Why is
this? And if I change the screen font to helvit I get the right thing.
A second question involves line numbers. I did not see anything in the
Lyx menus that would get me line numbers so I went off and downloaded
the lineno.sty package, figured out how to put Tex in a Lyx document and
the line number stuff is working. But in order for Lyx (LaTex?) to find
the lineno.sty macro, it has to be in the current directory with the
document. This means that I will have to have a copy of lineno.sty for
each document I create and this seems rather ugly. Is there a way that I
can tell Lyx where to look for sty files?

Thanks, Dave




latex,math set_color

2000-07-26 Thread Ralph Boland

I am running lyx-1.1.5 on solaris.

I get the following error messages:

  LyX: Unknown X11 color DarkRed for latex
   Using black instead, sorry!.
  LyX: Unknown X11 color DarkBlue for math
   Using black instead, sorry!.

I tried'set_color "latex" "red"'
and'set_color "math"  "blue"'

and got the following error messages:

 LyX: Unknown tah `\set_color' [around line 39 of file
~/.lyx/lyxrc]
 LyX: Unknown tag `\set_color' [around line 40 of file
~/.lyx/lyxrc]

I also tried setting footnote red and got the same error.

Any suggestioons as to how I can fix this.

Thanks

Ralph Boland



Re: Key binding

2000-07-26 Thread Phil Scordis


Sorry, it looks like with a bit more digging I have solved it myself:
FYI

\bind "C-z x" "tex-mode"

This solves my key-binding problem.

Phil




Re: latex,math set_color

2000-07-26 Thread Lars Gullik Bjønnes

Ralph Boland [EMAIL PROTECTED] writes:

| I am running lyx-1.1.5 on solaris.

The \set_color tag is only present in 1.1.5fix1.

Lgb



Re: Key binding

2000-07-26 Thread Jean-Marc Lasgouttes

 "Phil" == Phil Scordis [EMAIL PROTECTED] writes:

Phil Sorry, it looks like with a bit more digging I have solved it
Phil myself: FYI

Phil \bind "C-z x" "tex-mode"

Phil This solves my key-binding problem.

... and "M-c t" does the same, I think.

JMarc



Why are not LyX code displayed in a mono-spaced font?

2000-07-26 Thread 3aa

Hi

I wrote a crash course in C programming using Lyx, where I used LyX-Code to
include small examples of C code. And everythings works perfectly...

...untill I use tth or latex2html to convert the document to html. In the
html document the C code isn't displayed in a mono-spaced font (e.g. the
pre tag), and that really mess up the readability :(

I'm lost... help! ;)


Thanks!
Sincerely,
Torkel Bjørnson [EMAIL PROTECTED]



Re: Newbie Questions

2000-07-26 Thread Kayvan A. Sylvan

On Wed, Jul 26, 2000 at 09:28:08AM -0400, Dave Rolfe wrote:
 I have just started using Lyx to create patent documents. I am using
 version 1.1.5fix1 and installed it as an rpm binary. It is working quite
 well, but I have a couple questions. Right now I am printing out using
 the Times font, but I may need to create output using a sans serif font.
 I went to the document menu and clicked on helvit. I understand that
 this does not change the screen font. But when I preview the document as
 dvi or postscript it shows up as Times! Nothing I do can get Lyx to
 output anything but Times. So maybe my install is messed up somehow. In
 addition the list of fonts that appear in Lyx is a small subset of the
 type 1 fonts I have installed and are known to the X font server. Why is
 this? And if I change the screen font to helvit I get the right thing.

I don't know an answer to this question offhand, but I do know
the answer to your second question:

 A second question involves line numbers. I did not see anything in the
 Lyx menus that would get me line numbers so I went off and downloaded
 the lineno.sty package, figured out how to put Tex in a Lyx document and
 the line number stuff is working. But in order for Lyx (LaTex?) to find
 the lineno.sty macro, it has to be in the current directory with the
 document. This means that I will have to have a copy of lineno.sty for
 each document I create and this seems rather ugly. Is there a way that I
 can tell Lyx where to look for sty files?
 
 Thanks, Dave

Use the TEXINPUTS environment variable.

Set it to something like:

.:/home/kayvan/src/tex/sty:!!/usr/share/texmf/{tex,pdftex}/{generic,}//

The directory /home/kayvan/src/tex/sty is where I put all my homegrown
and non-standard TeX style files.

---Kayvan
-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: Why are not LyX code displayed in a mono-spaced font?

2000-07-26 Thread Herbert Voss

"Torkel Bjørnson-Langen (3aa)" wrote:
 
 Hi
 
 I wrote a crash course in C programming using Lyx, where I used LyX-Code to
 include small examples of C code. And everythings works perfectly...
 
 ...untill I use tth or latex2html to convert the document to html. In the
 html document the C code isn't displayed in a mono-spaced font (e.g. the
 pre tag), and that really mess up the readability :(
 
 I'm lost... help! ;)

1. in latex preamble \usepackage{fancyvrb}
2. before every programcode in your text
\begin{Verbatim}[baselinestretch=0.5]
3. behind every programcode in your text \end{Verbatim}
4. change the style of the programcode from lyx-code to latex

now latex2html shows the programscode in monospace. the only problem
is the option [baselinestretch=0.5]. latex2html don't delete this one,
so you have to delete this with any simple texteditor by youself.

hope, this helps

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-26 Thread Dekel Tsur

On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Why not?
When inserting the label in LyX, give it the name tab:mytable,
and then you can insert the prettyref. No need for ERT!

 it's a question to Lars or/and Jean-Marc:
   insert label AND insert cross-reference must have BOTH
   the prettyref-option?! if someone chooses once this option
   all the rest of labels and references must converted
   to prettyref-style. 

It seems that you expect to use labels without a prefix, (like MyTable),
and let lyx automatically generate the prefix (tab:) when generating the
latex file.
This is not done by LyX.

An interesting question is whether it is possible to write a smarter LaTeX
package, which doesn't need the prefixing the labels (i.e., the \label command
is redefined to output also the counter name to the auxiliary file) ?




Re: Bug in pretty ref

2000-07-26 Thread Vincent VAQUIN

Herbert Voss a écrit :
 Vincent VAQUIN wrote:
  I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
  in cross reference, pretty ref.
  
   can you send an example-file?
 prettyref needs a label definiaion like \label{tab:MyTable}
 than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
 from my point of view, lyx doesn't create the labels in
 prettyref-style, so it's not possible to use cross-reference
 with the prettyref-button.

Thanks a lot.

 your attached lyx-file shows how all works with pure latex-code,
 but this isn't lyx-like ... :-(

I don't understand... My text was written with LyX...

-- 
Vincent



Customizing the index

2000-07-26 Thread German Poo Caaman~o


Reading some documents provides by "teTeX: A documentation guide" in
my web2c TeX distribution I noted that some dvi files had the index
as books.  I mean,
Symbols
...
A
...
...
B
...
...

I did search aboutr index but I didn't find anything.  I supossed that
is an option (such as a declare a package or similar).

What is the package that provides those index's format?

(Neither I didn't find it on Herbert's tips page ;-)

Thanks in advance,

-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"




lyx buggy when resouces scarce

2000-07-26 Thread Ralph Boland

I searched the lyx home page but couldn't find
any information on how to report errors so I
 am reporting my bugs here.
advice on where/how to report errors appreciated.


I am running lyx on solaris and unfortunately
I have limited resources available.
Thus crashes are fairly common because I 
run out of memory.
This often happens when I run lyx and xfig concurrently.

This now happens more often since I upgraded
from 1.0.4 to 1.1.5.  


This occurs especially often when I work with foilTex
documents.  Actually I switched to working on
foilTex documents at the same time I switched to lyx-1.1.5
so possibly the problem is mainly with foilTex documents.

If this were not bad enough.  Lyx now crashes
in ugly ways.  

Often it will crash and leave the lyx window open.
I then cannot remove the window.
Often when this happens I cannot restart lyx without
crashing immediately.  I then have to logout and
then login again.

I may have to go back to using lyx version 1.0.4.

Note that lyx 1.0.4 often dropped cores and occasionally
kicked me off the system.  But lyx 1.1.5 is becoming 
difficult to use at all.

Note that I run  lyx on one sun machine remotely from another.
This is because the machine I am on has limited resources.
The remote machine has plenty of resources so it suprizes 
me that I have so much difficulty.

Thanks

Ralph Boland

p.s.  I can send you core dumps (lots) if you want.



Re: LyX Development News for July

2000-07-26 Thread Allan Rae

On Wed, 26 Jul 2000, Preben Randhol wrote:

 Allan Rae [EMAIL PROTECTED] wrote on 25/07/2000 (19:49) :
  
  The latest LDN is now available:
  
  http://www.lyx.org/news/2726.php3
 
 It says there is a Gnome port on the way. Is there a homepage for this
 somewhere?

Good question.  Perhaps Marko (the porter) can answer that?

Allan. (ARRae)




Re: Key binding

2000-07-26 Thread Allan Rae

On Wed, 26 Jul 2000, Phil Scordis wrote:
 And while I'm at it. I'm using the acronym package, and it seems to be
 lacking the functionality that pluralises acronyms, how do I find out
 which package version is installed on my machine. 
 (I'm using ver 1.1.5 prior to any fixing (rpm))

Two options:
1. look at the output in the latex log file (Edit-View LaTeX Log file)
the package should write its name and version number
2. find the file on your system and read it.
less `locate acronym.sty`

Allan. (ARRae)





Re: Layout file for Elsevier style file?

2000-07-26 Thread Marco Bravi

On Tue, 25 Jul 2000, Herbert Voss wrote:

> copy: elsart.layout -> home-dir/.lyx/layouts
> save: home-dir/.lyx/layouts/lyxmacros.inc as lyxmacros.inc.old
> copy: lyxmacros.inc -> home-dir/.lyx/layouts
> copy: the latex-class elsart.cls -> /usr/share/texmf/tex/latex/base
> (the latex dir might be different! have a look at it)
> 
> run (maybe as root!) texhash
> and ./configure from home-dir/.lyx or from lyx itself by 
> option->reconfigure
> 
> when you start lyx again, the new document layout 
> article (elsart)
> will be in the list layout->document->class.
> 
> if not, look for the right lyx-dir for the layouts!

First of all, thanks a lot for your help.

Unfortunately, the newly installed elsart.layout doesn't show up in the
list.

As you said, I checked my lyx-dir. I have gone through my
~/.lyx/lyxrc. I run a "grep layout" and "grep lyx-dir" on it, but
couldn't find anything. Am I looking in the wrong place (or for the
wrong thing???).

I am using LyX 1.0.3. Has it anything to do with this?

Thanks,

Marco Bravi







Re: Bug in pretty ref

2000-07-26 Thread Herbert Voss

Oscar Lopez wrote:
> 
> BTW if I change the language of the document from default to spanish
> while the caption Table is translated to Tabla, the text that prettyref
> add "Table x on page y" is not translated when I hoped that it would be
> 
> Do I have a problem with the babel spanish stuff ? doesn't prettyref
> support babel?
> Does anybody observe this behavior with other languages?

no, all in english. a change to spanish is no problem,
have a look at

http://www.educat.hu-berlin.de/~voss/Informatik/LyXTips.html#pretty

there is an example for a change to german.

remember that the change of Equation makes no sense, because lyx
doesn't support prettyref in it's eqn-labels. writing all the
math stuff in pure latex is very strange ...

Herbert 

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: faq response to question "can i use tex wysiwyg?"

2000-07-26 Thread Robin Fairbairns

> If no
> one from the core development team has responded to your request, let me
> know and I'll provide whatever information you need.

thanks -- noted.

i'm a bit snowed under at the moment with editing preprints for
tug2000, but once that's out of the way, i'll review the situation

r



Re: Where are more templates?

2000-07-26 Thread Kayvan A. Sylvan

On Tue, Jul 25, 2000 at 04:51:03PM +, C Y wrote:
> Do you know where there's some good documentation on how to make templates?  
> What the standards are and whatnot?  Also, what kind are needed?  I might be 
> able to do one or two if I can figure it out, but they would be for things 
> like homework and school reports.  (What I do, in other words :-)  Would 
> that be of use?
> 
> C Y

I believe all the documentation about this is in the Customization
manual.

Thanks for your willingness to help!

---Kayvan

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: translating commands

2000-07-26 Thread Preben Randhol

Raffael Herzog <[EMAIL PROTECTED]> wrote on 25/07/2000 (17:12) :
> 
> For now, it should be possible to edit the layout files... DANGER!
> 
> You see those Style-Sections, e.g.
> 
>   Style Part
> ...
> LatexName  part
> ...
>   End
> 
> If you rename the style, for example to "Teil" this should change the
> label and still leave the LatexName "part". I never tried this and am
> not shure that this works! Backup your old style files, if you try it!

I did this, but it doesn't work with documents that are written in other
versions of LyX. That is all the tutorials and help files got mangled as
LyX didn't find the proper Styles.

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- 
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Re: Layout file for Elsevier style file?

2000-07-26 Thread Alain Castera


Here's mine.
Just an attempt, with only a few features implemented (and no warranty,
btw). But I already submited a paper on physics letters using it, so it is
supposed to work.

Hope tyhis will help.

Alain

On Tue, 25 Jul 2000, Marco Bravi wrote:

> Dear LyXers,
> 
>   I am about to submit a paper to an Elsevier journal and I
> discoveried that they have a style file for LaTeX users. Its name is
> "elsart" and it features moderately customized environments such as a
> "frontmatter" for the beginning of the paper and so on.
> 
> Is there anybody that has already written something to make it easier to
> use it from within LyX. I believe that it should be a layout file (am I
> wrong?). 

 ***
 *Alain Castera*
 * LPNHE - Tour 33 RdC   | e-mail : [EMAIL PROTECTED]*
 * 4 Place Jussieu   | Telephone : (+33) 144274187 *
 * 75252 Paris Cedex 05  | Fax :   (+33) 144274638 *
 * France| *
 ***


#% Do not delete he line below; configure depends on this
#  \DeclareLaTeXClass{elsart}
# Elsevier Article textclass definition file. Taken from article LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by serveral developers.
# article -> elseart by Alain Castera <[EMAIL PROTECTED]>

# Input general definitions
Input stdclass.inc

# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter  Counter_Section
SecNumDepth 3
TocDepth3

# Change a bit Part and Part*
Style Part
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

Style Part*
  Align Left
  AlignPossible Left
  TopSep2
  BottomSep 1.5

  Font
SizeLarger
  EndFont
End

# begin modifications for elsart from article (A.C.)
# small caption fonts
Style Caption
  Font
SizeSmall
  EndFont
End  

#added ackowledgement but not stisfactory (watch the keepempty option)
Style Acknowledgement
  CopyStyle Section*
  LatexType Command
  LatexName ack
  MarginDynamic
  Align Block
  AlignPossible Block
  NextNoIndent  1
  LabelType Static
  LabelString   Acknowledgement
  KeepEmpty 1

End


#added frontmatter. needs also a protected space and change environment depth 
# for title etc. by hand

Style Frontmatter
  LatexType Environment
  LatexName frontmatter
  KeepEmpty 1
  LabelType No_label
End

#redefined title stuff
Style Title
  LatexType Command
  Font
   Series   Bold
   Size Large
  EndFont
End
Style Author
  LatexType Command
  Font
   Size Large
  EndFont
End
Style Abstract
  LabelType Top_Environment
  NextNoIndent  1
End
Style Address
  MarginStatic
  LatexType Command
  LatexName address
  AlignPossible Center
  Align Center
  Font
   ShapeItalic
   Size Small
  EndFont
   Preamble
   EndPreamble
End
















Re: Layout file for Elsevier style file?

2000-07-26 Thread Herbert Voss

Marco Bravi wrote:
> 
> On Tue, 25 Jul 2000, Herbert Voss wrote:
> 
> > copy: elsart.layout -> home-dir/.lyx/layouts
> > save: home-dir/.lyx/layouts/lyxmacros.inc as lyxmacros.inc.old
> > copy: lyxmacros.inc -> home-dir/.lyx/layouts
> > copy: the latex-class elsart.cls -> /usr/share/texmf/tex/latex/base
> > (the latex dir might be different! have a look at it)

> Unfortunately, the newly installed elsart.layout doesn't show up in the
> list.
> 
> As you said, I checked my lyx-dir. I have gone through my
> ~/.lyx/lyxrc. I run a "grep layout" and "grep lyx-dir" on it, but
> couldn't find anything. Am I looking in the wrong place (or for the
> wrong thing???).

>I am using LyX 1.0.3. Has it anything to do with this?

in lyx look for help->version. the path for the library is listed.
if you are unsure. copy the layout-file to $home/.lyx/layouts
and /usr/share/lyx/layouts and reconfigure(!). maybe that the last dir
differs in 1.0.3. it's a good idea to upgrade to 1.1.5! a lot
of good features there! :-)

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss




Re: best way to make PDF files?

2000-07-26 Thread Jean-Marc Lasgouttes

> "tuukkat" == tuukkat  <[EMAIL PROTECTED]> writes:

tuukkat> On Mon, 10 Jul 2000, Jon Fox wrote:
>> are there... and nothing else. xpdf seems to show other pdf files
>> ok, just not mine. Maybe I don't have

tuukkat> Try other pdf viewers than just xpdf. I was able to produce a
tuukkat> pdf file that displayed very well with gv/ghostscript but not
tuukkat> with xpdf (using ps2pdf and landscape mode in LyX). I still
tuukkat> don't know whether the bug is in ps2pdf or in xpdf (after
tuukkat> all, my xpdf version is only 0.9, not even 1.0...)

xpdf needs quite a setup to be able to use ps fonts instead of the
fonts provided by the X server. It seems possible to make it work with
the help of T1lib, but I have to admit that I gave up...

JMarc



Re: translating commands

2000-07-26 Thread Preben Randhol

Lars Gullik Bjønnes <[EMAIL PROTECTED]> wrote on 25/07/2000 (16:51) :
> this should not be very hard but it is a bit of work... I will do this
> before 1.1.6 is released.

Thanks. I think it would make it easier for a lot of people to use LyX.

Btw: It might be me overlooking it, but I cannot find in the special
character menu the possibility to instrt a newpage only newline. Is it
possible to add this in a later version?

> btw. I'd be happy for suggestions on norwegian translations of those
> strings.

Will do. I translated all the layoutfiles, but that didn't work. Though
translations for section, subsection and subsubsection is tricky.

Section -> Avsnitt, but is Subsection -> Underavsnitt and Subsubsection
-> Underunderavsnitt? Sounds strange, but I cannot come up with
something better at the moment.

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- 
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Re: translating commands

2000-07-26 Thread Lars Gullik Bjønnes

Preben Randhol <[EMAIL PROTECTED]> writes:

| Btw: It might be me overlooking it, but I cannot find in the special
| character menu the possibility to instrt a newpage only newline. Is it
| possible to add this in a later version?

You usually inserts pagebreaks with Layout->Paragraph
But this is of course not perfect in all cases...

| Section -> Avsnitt, but is Subsection -> Underavsnitt and Subsubsection
| -> Underunderavsnitt? Sounds strange, but I cannot come up with
| something better at the moment.

And how would you translate "Paragraph" and "SubParagrap" in this
setting...

Section -> Seksjon
Paragraph -> Avsnitt

Would that be "ok"?

Lgb




Re: translating commands

2000-07-26 Thread Jean-Marc Lasgouttes

> "Preben" == Preben Randhol <[EMAIL PROTECTED]> writes:

Preben> Btw: It might be me overlooking it, but I cannot find in the
Preben> special character menu the possibility to instrt a newpage
Preben> only newline. Is it possible to add this in a later version?

Have a look in Layout->Paragraph.

JMarc



Re: LyX Development News for July

2000-07-26 Thread Preben Randhol

Allan Rae <[EMAIL PROTECTED]> wrote on 25/07/2000 (19:49) :
> 
> The latest LDN is now available:
> 
>   http://www.lyx.org/news/2726.php3

It says there is a Gnome port on the way. Is there a homepage for this
somewhere?

-- 
Preben Randhol -- [[EMAIL PROTECTED]] -- <http://www.pvv.org/~randhol/>
+---+ "There was, I think, never any reason to  believe in any innate
| ! |  superiority of the male, except his superior muscle."
+---+  -- Bertrand Russell, Ideas That Have Harmed Mankind (1950)



Key binding

2000-07-26 Thread Phil Scordis


I apologise in advance for such dumb questions :)

I am using the xemacs key binding (which I have recently discovered after
using the emacs one). What I would like to do is bind a key combo to
exactly the action that the "Red" TeX button on the menu does. However, I
have tried the key binding:

\bind "C-z t"  "layout LaTeX"

And of course this makes the whole paragraph TeX-Red, not just the
highlighted region. So, I have tried almost all combinations of upper and
lowercase "latex" in the following, but to no avail.

\bind "C-z t" "font LaTeX"
 
(including "font-latex")

Please would someone put me out of my misery!

And while I'm at it. I'm using the acronym package, and it seems to be
lacking the functionality that pluralises acronyms, how do I find out
which package version is installed on my machine. 
(I'm using ver 1.1.5 prior to any fixing (rpm))

Thanks

Phil

-
  Phil Scordis
   Room 2.19, School of Biological Sciences, Stopford Building
University of Manchester, Oxford Road, Manchester, M13 9PT
-




Newbie Questions

2000-07-26 Thread Dave Rolfe

I have just started using Lyx to create patent documents. I am using
version 1.1.5fix1 and installed it as an rpm binary. It is working quite
well, but I have a couple questions. Right now I am printing out using
the Times font, but I may need to create output using a sans serif font.
I went to the document menu and clicked on helvit. I understand that
this does not change the screen font. But when I preview the document as
dvi or postscript it shows up as Times! Nothing I do can get Lyx to
output anything but Times. So maybe my install is messed up somehow. In
addition the list of fonts that appear in Lyx is a small subset of the
type 1 fonts I have installed and are known to the X font server. Why is
this? And if I change the screen font to helvit I get the right thing.
A second question involves line numbers. I did not see anything in the
Lyx menus that would get me line numbers so I went off and downloaded
the lineno.sty package, figured out how to put Tex in a Lyx document and
the line number stuff is working. But in order for Lyx (LaTex?) to find
the lineno.sty macro, it has to be in the current directory with the
document. This means that I will have to have a copy of lineno.sty for
each document I create and this seems rather ugly. Is there a way that I
can tell Lyx where to look for sty files?

Thanks, Dave




latex,math set_color

2000-07-26 Thread Ralph Boland

I am running lyx-1.1.5 on solaris.

I get the following error messages:

  LyX: Unknown X11 color DarkRed for latex
   Using black instead, sorry!.
  LyX: Unknown X11 color DarkBlue for math
   Using black instead, sorry!.

I tried'set_color "latex" "red"'
and'set_color "math"  "blue"'

and got the following error messages:

 LyX: Unknown tah `\set_color' [around line 39 of file
~/.lyx/lyxrc]
 LyX: Unknown tag `\set_color' [around line 40 of file
~/.lyx/lyxrc]

I also tried setting footnote red and got the same error.

Any suggestioons as to how I can fix this.

Thanks

Ralph Boland



Re: Key binding

2000-07-26 Thread Phil Scordis


Sorry, it looks like with a bit more digging I have solved it myself:
FYI

\bind "C-z x" "tex-mode"

This solves my key-binding problem.

Phil




Re: latex,math set_color

2000-07-26 Thread Lars Gullik Bjønnes

Ralph Boland <[EMAIL PROTECTED]> writes:

| I am running lyx-1.1.5 on solaris.

The \set_color tag is only present in 1.1.5fix1.

Lgb



Re: Key binding

2000-07-26 Thread Jean-Marc Lasgouttes

> "Phil" == Phil Scordis <[EMAIL PROTECTED]> writes:

Phil> Sorry, it looks like with a bit more digging I have solved it
Phil> myself: FYI

Phil> \bind "C-z x" "tex-mode"

Phil> This solves my key-binding problem.

... and "M-c t" does the same, I think.

JMarc



Why are not LyX code displayed in a mono-spaced font?

2000-07-26 Thread 3aa

Hi

I wrote a crash course in C programming using Lyx, where I used LyX-Code to
include small examples of C code. And everythings works perfectly...

...untill I use tth or latex2html to convert the document to html. In the
html document the C code isn't displayed in a mono-spaced font (e.g. the
 tag), and that really mess up the readability :(

I'm lost... help! ;)


Thanks!
Sincerely,
Torkel Bjørnson <[EMAIL PROTECTED]>



Re: Newbie Questions

2000-07-26 Thread Kayvan A. Sylvan

On Wed, Jul 26, 2000 at 09:28:08AM -0400, Dave Rolfe wrote:
> I have just started using Lyx to create patent documents. I am using
> version 1.1.5fix1 and installed it as an rpm binary. It is working quite
> well, but I have a couple questions. Right now I am printing out using
> the Times font, but I may need to create output using a sans serif font.
> I went to the document menu and clicked on helvit. I understand that
> this does not change the screen font. But when I preview the document as
> dvi or postscript it shows up as Times! Nothing I do can get Lyx to
> output anything but Times. So maybe my install is messed up somehow. In
> addition the list of fonts that appear in Lyx is a small subset of the
> type 1 fonts I have installed and are known to the X font server. Why is
> this? And if I change the screen font to helvit I get the right thing.

I don't know an answer to this question offhand, but I do know
the answer to your second question:

> A second question involves line numbers. I did not see anything in the
> Lyx menus that would get me line numbers so I went off and downloaded
> the lineno.sty package, figured out how to put Tex in a Lyx document and
> the line number stuff is working. But in order for Lyx (LaTex?) to find
> the lineno.sty macro, it has to be in the current directory with the
> document. This means that I will have to have a copy of lineno.sty for
> each document I create and this seems rather ugly. Is there a way that I
> can tell Lyx where to look for sty files?
> 
> Thanks, Dave

Use the TEXINPUTS environment variable.

Set it to something like:

.:/home/kayvan/src/tex/sty:!!/usr/share/texmf/{tex,pdftex}/{generic,}//

The directory /home/kayvan/src/tex/sty is where I put all my homegrown
and non-standard TeX style files.

---Kayvan
-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: Why are not LyX code displayed in a mono-spaced font?

2000-07-26 Thread Herbert Voss

"Torkel Bjørnson-Langen (3aa)" wrote:
> 
> Hi
> 
> I wrote a crash course in C programming using Lyx, where I used LyX-Code to
> include small examples of C code. And everythings works perfectly...
> 
> ...untill I use tth or latex2html to convert the document to html. In the
> html document the C code isn't displayed in a mono-spaced font (e.g. the
>  tag), and that really mess up the readability :(
> 
> I'm lost... help! ;)

1. in latex preamble \usepackage{fancyvrb}
2. before every programcode in your text
\begin{Verbatim}[baselinestretch=0.5]
3. behind every programcode in your text \end{Verbatim}
4. change the style of the programcode from lyx-code to latex

now latex2html shows the programscode in monospace. the only problem
is the option [baselinestretch=0.5]. latex2html don't delete this one,
so you have to delete this with any simple texteditor by youself.

hope, this helps

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Bug in pretty ref

2000-07-26 Thread Dekel Tsur

On Tue, Jul 25, 2000 at 11:25:20PM +, Herbert Voss wrote:
> prettyref needs a label definiaion like \label{tab:MyTable}
> than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
> from my point of view, lyx doesn't create the labels in
> prettyref-style, so it's not possible to use cross-reference
> with the prettyref-button.

Why not?
When inserting the label in LyX, give it the name tab:mytable,
and then you can insert the prettyref. No need for ERT!

> it's a question to Lars or/and Jean-Marc:
>   insert label AND insert cross-reference must have BOTH
>   the prettyref-option?! if someone chooses once this option
>   all the rest of labels and references must converted
>   to prettyref-style. 

It seems that you expect to use labels without a prefix, (like MyTable),
and let lyx automatically generate the prefix (tab:) when generating the
latex file.
This is not done by LyX.

An interesting question is whether it is possible to write a smarter LaTeX
package, which doesn't need the prefixing the labels (i.e., the \label command
is redefined to output also the counter name to the auxiliary file) ?




Re: Bug in pretty ref

2000-07-26 Thread Vincent VAQUIN

Herbert Voss a écrit :
> > > > > Vincent VAQUIN wrote:
> > > > > > I'am using lyx.1.1.5 with Linux, and I have a bug when I want to insert,
> > > > > > in cross reference, pretty ref.
> > >
> > > can you send an example-file?
> prettyref needs a label definiaion like \label{tab:MyTable}
> than \prettyref{tab:Mytable} gives in dvi-output Table aNumber.
> from my point of view, lyx doesn't create the labels in
> prettyref-style, so it's not possible to use cross-reference
> with the prettyref-button.

Thanks a lot.

> your attached lyx-file shows how all works with pure latex-code,
> but this isn't lyx-like ... :-(

I don't understand... My text was written with LyX...

-- 
Vincent



Customizing the index

2000-07-26 Thread German Poo Caaman~o


Reading some documents provides by "teTeX: A documentation guide" in
my web2c TeX distribution I noted that some dvi files had the index
as books.  I mean,
Symbols
...
A
...
...
B
...
...

I did search aboutr index but I didn't find anything.  I supossed that
is an option (such as a declare a package or similar).

What is the package that provides those index's format?

(Neither I didn't find it on Herbert's tips page ;-)

Thanks in advance,

-- 
German Poo Caaman~o
mailto:[EMAIL PROTECTED]
http://www.ubiobio.cl/~gpoo/chilelindo.html
"La historia no se lee, se escribe"




lyx buggy when resouces scarce

2000-07-26 Thread Ralph Boland

I searched the lyx home page but couldn't find
any information on how to report errors so I
 am reporting my bugs here.
advice on where/how to report errors appreciated.


I am running lyx on solaris and unfortunately
I have limited resources available.
Thus crashes are fairly common because I 
run out of memory.
This often happens when I run lyx and xfig concurrently.

This now happens more often since I upgraded
from 1.0.4 to 1.1.5.  


This occurs especially often when I work with foilTex
documents.  Actually I switched to working on
foilTex documents at the same time I switched to lyx-1.1.5
so possibly the problem is mainly with foilTex documents.

If this were not bad enough.  Lyx now crashes
in ugly ways.  

Often it will crash and leave the lyx window open.
I then cannot remove the window.
Often when this happens I cannot restart lyx without
crashing immediately.  I then have to logout and
then login again.

I may have to go back to using lyx version 1.0.4.

Note that lyx 1.0.4 often dropped cores and occasionally
kicked me off the system.  But lyx 1.1.5 is becoming 
difficult to use at all.

Note that I run  lyx on one sun machine remotely from another.
This is because the machine I am on has limited resources.
The remote machine has plenty of resources so it suprizes 
me that I have so much difficulty.

Thanks

Ralph Boland

p.s.  I can send you core dumps (lots) if you want.



Re: LyX Development News for July

2000-07-26 Thread Allan Rae

On Wed, 26 Jul 2000, Preben Randhol wrote:

> Allan Rae <[EMAIL PROTECTED]> wrote on 25/07/2000 (19:49) :
> > 
> > The latest LDN is now available:
> > 
> > http://www.lyx.org/news/2726.php3
> 
> It says there is a Gnome port on the way. Is there a homepage for this
> somewhere?

Good question.  Perhaps Marko (the porter) can answer that?

Allan. (ARRae)




Re: Key binding

2000-07-26 Thread Allan Rae

On Wed, 26 Jul 2000, Phil Scordis wrote:
> And while I'm at it. I'm using the acronym package, and it seems to be
> lacking the functionality that pluralises acronyms, how do I find out
> which package version is installed on my machine. 
> (I'm using ver 1.1.5 prior to any fixing (rpm))

Two options:
1. look at the output in the latex log file (Edit->View LaTeX Log file)
the package should write its name and version number
2. find the file on your system and read it.
less `locate acronym.sty`

Allan. (ARRae)