Re: How to keeping Enumerate items together?

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Hi all, In my book created with the Book document class, I have
Steve a four item bullet list in environment Itemize. It pagebreaks
Steve after the second item, and even more lame than that, the next
Steve page is consumed with a graphic float, so the reader has to
Steve skip 2 pages to see the other two items.

There is probably a way to make the stick together, but then you will
probably have whitespace of bad formatting on the page. What I do in
such cases is keep the problem for when the text is completely
finished and then think about how I could move a few sentences around
until it works :)

Steve Within my layout file, is there a simple way I can modify the
Steve Itemize environment so it tries hard not to break in the
Steve middle?

You can probably add \nopagebreak as ERT in the relevant items. I
never tried it myself.

The TeX FAQ has an interesting discussion on the subject:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopagebrk

JMarc


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Hi all, As you all remember, when I switched to LyX 1.4.2 I
Steve griped that one of my books no longer had navigation.

Steve Now the other shoe dropped. I've been writing a new book, using
Steve the book document class in LyX 1.4.2, and everything went well,
Steve with navigation and everything. Then I created my own layout
Steve file, deriving a tsjsbook layout derived from the book class.
Steve My new layout was minimal -- it did nothing except create a new
Steve environment called Story, which worked perfectly well when
Steve converting to dvi.

Could you show us this layout file? 

Steve Trouble is, now when I try to do navigation in LyX itself,
Steve there's no navigation. The Nativate menu item lists only
Steve Bookmarks, Next Note, and List of Figures.

This shows that your sectioning layouts do not have a TocLevel entry. 

Are you sure that you do not have copies of the standard layout/inc
files in your .lyx directory?

Steve Also, one of my first books no longer works at all -- with the
Steve text going right up to the top of the page on every page.

This is very strange. Do you have a small example file that exhibits
that behavior?

JMarc


Re: tables: multirow ok, but multiline?

2007-02-06 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
The I can recommend to recompile LyX and test out a more recent LyX 1.5 
version, we made big efforts the last weeks.


There's also a manual version for LyX 1.5:

http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/doc/EmbeddedObjects.lyx

[...]

It might be easier to get the PDF from:

http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects

Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: changing Xfig figures in LyX

2007-02-06 Thread Philipp Fleig

Hello Georg,

I am sorry for the very late reply, but I was away for the last few  
days!
The file Test.lyx which I had sent to you was correct and also read  
the file TestFig.fig, but for some reason LyX seems to change the  
name of the file from TestFig.fig to LyX when I include it via  
External Material. This can be fixed though, by saving Test.lyx  
before including TestFig.fig.
Still when I do this and then run pdflatex, I get the error, empty  
output file was created again. Also a message pops up saying  
somthing like


Latex Eror: File  
'o_Users_philippfleig_Documents_LyX_Documents_Lab_Figures_TestFig.pdftex 
_t

and (cannot \read from terminal in nonstop modes)

Sorry for bothering you over such a long period of time with this  
problem, but whatever I do it just does not work.

Thank you for your great help!

Philipp


Am 02.02.2007 um 09:57 schrieb Georg Baum:


Philipp Fleig wrote:


Hello,

ok. Attached you find a sample .lyx + xfig file.
When I go to preferences in LyX there are a number of converters,
including some like FIG - EPS, FIG - PDFTEX and FIG - PSTEX, which
I guess would be the relevant ones.


Yes, they are.


I read on http://www.xfig.org/
userman/latex_and_xfig.html something about the psfig package. Could
it be this, which I am missing?


No. Your test file does not include the figure. It includes a file
named ../../../LyX. If I change that to read TestFig.fig, and if I  
save

TestFig.fig in the same directory as Test.lyx, then it works just fine
here.


Georg




Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread José Matos
On Tuesday 06 February 2007 12:13:47 am Steve Litt wrote:
 Then I created my own layout file, deriving a tsjsbook layout
 derived from the book class. My new layout was minimal -- it did nothing
 except create a new environment called Story, which worked perfectly well
 when converting to dvi.

  Just one question Steve, by deriving the new layout you mean copy and 
pasting or including it and then performing the different tweaks?

-- 
José Abílio


Slide number in beamer presentation

2007-02-06 Thread Paul Smith

Dear All

How can one add a slide number for each slide in the very basic
attached beamer presentation?

Thanks in advance,

Paul


beamer_example.lyx
Description: application/lyx


Command line options

2007-02-06 Thread Hellmut Weber
Hi list,
who can tell me where i can find a list of command line options lyx accepts?

I do know about '--export latex' (and do use it a lot), but i would like
e.g. to ask lyx from the command line to reconfigure.

I googled for 'lyx command line' but didn't get any reasonable result.
Neither could I find a list of that sort in the official documentation.

TIA

Hellmut


Dr. Hellmut Weber
Degenfeldstraße 2, D - 80803 München-Schwabing
tel (+49 89) 3081172, mobil (+49 172) 8450321
[EMAIL PROTECTED]
--

Please, if possible, don't send me MS Word or Powerpoint attachments.
Send plain text, rich text format, html, or pdf instead.
Why? See: http://www.gnu.org/philosophy/no-word-attachments.html
-- 
As an alternative to MS Word or Powerpoint.
LyX, OpenOffice, also useable with Windows ;-)



Re: Command line options

2007-02-06 Thread christian . ridderstrom

On Tue, 6 Feb 2007, Hellmut Weber wrote:


Hi list,
who can tell me where i can find a list of command line options lyx accepts?

I do know about '--export latex' (and do use it a lot), but i would like
e.g. to ask lyx from the command line to reconfigure.

I googled for 'lyx command line' but didn't get any reasonable result.
Neither could I find a list of that sort in the official documentation.


Have you tried

lyx --help

and
man lyx

/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Crash when using TitlelatexCommand in layout def

2007-02-06 Thread Kevin Paunovic

Hi,
I'm having problems when using TitleLatexCommand in my .layout file.

I use the command \coverpage instead of \maketitle to generate the  
title page. This command is defined in my .sty file (included in the  
Preamble section of the layout file).


Everything goes well until I specify TitleLatexCommandcoverpage  
in my layout file. When doing this, LyX can't create/convert a  
document to my own class named ezbook (a customized book class that  
uses ezstyle.sty). it raises the following error message:

The document could not be converted into the document class ezbook.

When loading a .lyx file that uses ezbook class (but done prior  
adding TitleLatexCommand to the layout file), LyX crashes after saying:
Using the default document class, because the  class ezbook could  
not be loaded.


I thought I had done something the wrong way, but it's strange that  
removing TitleLatexCommand line solve this (it solves the problem of  
crashing the app, but of course, it doesn't solve using a custom  
title command :)


Any one could help?

A.D.


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 04:49, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve Hi all, As you all remember, when I switched to LyX 1.4.2 I
 Steve griped that one of my books no longer had navigation.

 Steve Now the other shoe dropped. I've been writing a new book, using
 Steve the book document class in LyX 1.4.2, and everything went well,
 Steve with navigation and everything. Then I created my own layout
 Steve file, deriving a tsjsbook layout derived from the book class.
 Steve My new layout was minimal -- it did nothing except create a new
 Steve environment called Story, which worked perfectly well when
 Steve converting to dvi.

 Could you show us this layout file?

It's at the bottom of the email. Note that in order to rule out my story 
LaTeX environment, I had this LyX environment refer to the built-in 
LaTeX quotation environment.

SteveT


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

Input stdclass.inc
### BEGIN LYX STUFF ### {{{1

Style Story
  LatexType Environment# This is an environment
#  LatexName story  # The latex env LyX Story wraps
  LatexName quotation
  AlignPossible Left   # ONLY left aligned in LyX input
  #Align Block   # Left aligned in LyX input
  LeftMarginMM# Left margin width of 5 'M's in LyX
  RightMargin   M# Right margin width of 5 'M's in LyX
  ParSkip   0.7# Paragraph skip .7in in LyX
  ParSep0.7# Paragraph separation .7in in LyX
  TopSep0.7# Page top separation .7in in LyX
  BottomSep 0.7# Page top separation .7in in LyX

  Font
   Series   Medium # Non-bold on LyX input screen
   ShapeItalic # Italic   on LyX input screen
   Size Normal # Normal size on LyX input screen
  EndFont
End
### END LYX STUFF ### }}}1



Re: Crash when using TitlelatexCommand in layout def

2007-02-06 Thread Jean-Marc Lasgouttes
 Kevin == Kevin Paunovic [EMAIL PROTECTED] writes:

Kevin Hi, I'm having problems when using TitleLatexCommand in my
Kevin .layout file.

Kevin I use the command \coverpage instead of \maketitle to generate
Kevin the title page. This command is defined in my .sty file
Kevin (included in the Preamble section of the layout file).

Kevin Everything goes well until I specify TitleLatexCommand
Kevin coverpage in my layout file. When doing this, LyX can't
Kevin create/convert a document to my own class named ezbook (a
Kevin customized book class that uses ezstyle.sty). it raises the
Kevin following error message: The document could not be converted
Kevin into the document class ezbook.

Kevin When loading a .lyx file that uses ezbook class (but done prior
Kevin adding TitleLatexCommand to the layout file), LyX crashes after
Kevin saying: Using the default document class, because the class
Kevin ezbook could not be loaded.

Kevin I thought I had done something the wrong way, but it's strange
Kevin that removing TitleLatexCommand line solve this (it solves the
Kevin problem of crashing the app, but of course, it doesn't solve
Kevin using a custom title command :)

I guess there is an error in your layout file. You should be able to
see it by using Console.app (you are on a mac, right?). Once we know
what the error is, I'm sure we will come up with a solution.

JMarc


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 05:51, José Matos wrote:
 On Tuesday 06 February 2007 12:13:47 am Steve Litt wrote:
  Then I created my own layout file, deriving a tsjsbook layout
  derived from the book class. My new layout was minimal -- it did nothing
  except create a new environment called Story, which worked perfectly well
  when converting to dvi.

   Just one question Steve, by deriving the new layout you mean copy and
 pasting or including it and then performing the different tweaks?

Hi José,

I'm not sure what you mean by the two alternatives above, so let me just tell 
you what I did.

I created a small tsjfbooks.layout file in the books's directory. I then did 
this:

ln -s /mybook/tsjfbooks.layout /home/slitt/.lyx/layouts/tsjfbooks.layout

I then Tools-Reconfigure, then opened the LyX file, then 
Document-settings-DocumentClass and chose tsjfbooks.layout, and was able to 
use my Story environment. But the bad news is my navigation went away.

I'll give one other clue. When I open the LyX file with LyX, calling LyX from 
a (Linux) command prompt, I get abunch of warnings:

[EMAIL PROTECTED] tsjustfacts]$ lyx tsjustfacts.lyx
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
LyX: Unknown alignment `LeftMargin' [around line 13 of 
file /tmp/lyx_tmpdir6058ekMlTP/605827MUiz]
[EMAIL PROTECTED] tsjustfacts]$






-- 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

(Legal Disclaimer) Follow these suggestions at your own risk.


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve It's at the bottom of the email. Note that in order to rule out
Steve my story LaTeX environment, I had this LyX environment refer
Steve to the built-in LaTeX quotation environment.

I suggest that you start with
  Format 2
  Input stdclass.inc
  Input numreport.inc
or even maybe
  Input book.layout

JMarc


[announce] LyX150alpha from 05-02-2007 for Windows

2007-02-06 Thread Uwe Stöhr

Hello LyXTesters,

I published a new version with LyX1.5.0alpha from 05-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12178

This is mainly a bugfix release to the bug I accidentally introduced in
the last release from 04-02-2007.

If you still have python problems, or problems with PDF viewers, or problems on installing it on 
Windows Vista, report this with CC to my private email adress.

I'm off by now for a few days from this list.

---

Here are the other changes:

- LyX 1.5alpha from 05-02-2007

- updated to ImageMagick 6.3.2-3

- installer bugfix introduced in the last releases (01-02-2007 and 04-02-2007):
  deliver correct python25.dll and python.exe
- hopefully correct fix to the bug that other PDF viewers than Acrobat/Adobe 
Reader
  and GSView weren't recognized

---

happy testing and best regards
Uwe

--- disclaimer ---
LyX' test builds are for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX150alpha is still in alpha state, that means it is under very
active development. Therefore things can change every day, so
don't use LyX1.5svn for production!



Re: [announce] LyX150alpha from 05-02-2007 for Windows

2007-02-06 Thread Olivier Ripoll

Uwe Stöhr wrote:

Hello LyXTesters,

I published a new version with LyX1.5.0alpha from 05-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12178 



This is mainly a bugfix release to the bug I accidentally introduced in
the last release from 04-02-2007.

If you still have python problems, or problems with PDF viewers, or 
problems on installing it on Windows Vista, report this with CC to my 
private email adress.

I'm off by now for a few days from this list.


The help files do open fine now indeed.

Other comments:
- LyX 1.5 scrolls fast. Although it is on a different machine than my 
home linux pc, it seems much snappier than 1.4


- PDFViewWin7.exe still crashes on my machine. I switched to 
PDFViewWin8.exe, which works fine, except than update does not work and 
that to generate an up-to-date pdf after modifications, I must close the 
previously generated one.


- CRTL-M does not produce the four lines of error in the console. Should 
I close the bug #3207 ?


- I can still crash LyX by typing x^2 in a math inset and with 
US-international keyboard layout.


Best regards,

Olivier

PS: I cannot CC you for technical reasons, but will copy this email in 
private email.




Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Unknown alignment `LeftMargin'
Steve [around line 13 of file /tmp/lyx_tmpdir6058ekMlTP/605827MUiz]
Steve [EMAIL PROTECTED] tsjustfacts]$

Try to move the hash mark in the line below
  #Align Block   # Left aligned in LyX input
to the first column.

JMarc


Re: float placement refinements

2007-02-06 Thread Ramon Flores
Em Sexta, 2 de Fevereiro de 2007 20:53, Enrico Forestieri escreveu:

LaTeX is a quite sophisticated typesetting system and lets you fine tune a
large set of style parameters. Below you can find a list of parameters that
I think are of interest to you. Those not starting with a backslash are 
counters and are to be set as \setcounter{topnumber}{1}, for example, 
the  others must changed using \renewcommand, such as 
\renewcommand{\topfraction}{0.4},
or \renewcommand{\floatsep}{15mm} for rubber lengths.

Changes made in the preamble apply from the first page on. Changes made
afterwards take effect on the next page, not the current one.

topnumber - A counter whose value is the maximum number of floats allowed
at the top of a page.

This is exactly what I was looking for.

Thank you very much.

Ramon


Entering foreign language characters

2007-02-06 Thread Neal Becker
I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to enter a
few special accented characters?  My language and document is english, but
let's say I'd like to enter a few spanish symbols.  I know I can do this
with special latex, but is there a more generic (and newbie friendly) way?




RE: Re: Error on startup

2007-02-06 Thread Steven Harms \(stharms\)
Paul,

Your solution essentially pointed me in the right direction:  it was a
pathing issue that was causing the problem.  I, too had installed CYGWIN
LyX ( which was working ) and that had caused a confusion when I
installed Win32 LyX.

Order of operations:

I re-installed MikTex 
Changed path to only have the miktext/bin directory in it
launched the LyX installer from the command line
...installed
...ran the excellent bit of python magic you listed below, was able to
see things working
...ran texhash manually...saw that things were looking good
...ran LyX

I'm in business!

I also used this same technique to debug my Mac install.  I had tetex-mf
blocking my i-installed /usr/texbin directory.  Once I removed the
borked tetex install and changed my path to use Weierdma's install path
my LyX install went through great.

So, to anyone having troubles: get a minimial path as possible and try
to launch things from that minimal path command line environment.

stevn


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Paul A. Rubin
Sent: Monday, February 05, 2007 11:37 AM
To: lyx-users@lists.lyx.org
Subject: Re: Error on startup

Steven Harms (stharms) wrote:
 My instance of this issue is on XP.

The following are listed in no particular order:

1.  When the LyX configuration script runs, it tests for the presence of
some common LaTeX classes by attempting to compile a test document using
each class.  If you are using MikTeX (as I suspect), and some of the
classes are not yet installed, MikTeX will either (a) fail to compile
the test documents, (b) attempt to download and install the missing
classes, or (c) prompt you for permission to install them, depending on
how it is set up.  Case (a) should result in the configuration script
correctly recognizing that the classes are missing (letting it move on
to other things).  Case (b), or case (c) if you answer 'yes', can run
into problems if either you do not have an active Internet connection or
the server from which MikTeX tries to download the packages becomes
unresponsive.  The workaround for this is either to set MikTeX not to
download missing packages (through MikTeX's Options program) or to
answer 'no' if it prompts you.  Packages can always be downloaded and
installed later (after which LyX should be reconfigured).

2.  If your XP account is set up to use a remote server (particularly if
accessed by a UNC) as your home, misadventures will occur during
configuration.  I think LyX should pop up a message specific to this,
but I won't swear to it.  If you're not sure where your home is, open a
DOS prompt and run 'set h'.  Look for HOMEDRIVE (hopefully C:, hopefully
not \\someserver) and HOMEPATH.

3.  If you have both MikTeX and some other LaTeX program installed, with
the other one first in the system command path, strange things can
happen.  I used to have Cygwin installed, with Cygwin's bin directory
(containing a version of latex.exe) ahead of MikTeX's bin directory on
my path.  Cygwin's latex.exe didn't work with LyX, and since it was the
one LyX found, configuration failed.

If none of this provides an answer, try the following.  Using Win
Explorer to delete C:\Documents and Settings\your id\Application
Data\LyX1.4.x (if it exists) and anything in it.  Open a DOS prompt in
C:\Documents and Settings\your id\Application Data.  Run 'path to 
LyX\python\python.exe path to LyX\Resources\configure.py'.  If it
produces (in .\LyX1.4.x) a textclass.lst file with length  0, you
should be able to run LyX.  If not, post the output and maybe someone
can spot a clue.

HTH,

/Paul


LyX adds packages declaration I already use

2007-02-06 Thread Kevin Paunovic
I use LyX as a structured content editor. I mean, I need people write  
the documentation of software manuals in a structured language and,  
as they fear xml, I proposed LyX. So I wrote a .sty that contains  
everything we need to generate manuals and documentation. This  
includes commands Latex like:


...
\RequirePackage[latin1]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage[frenchb,english]{babel}
\ifpdf
\RequirePackage[pdftex]{graphicx}
\RequirePackage[cmyk,fixpdftex,pdftex]{xcolor}
\else
\RequirePackage[dvips]{graphicx}
\RequirePackage[cmyk,dvips]{xcolor}
\fi
...

The problem now is that LyX automatically adds things like:
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{babel}

so, as you might expect, this leads to crashes at compilation.

How to get rid of all those things LyX adds?

PS: Please note that I find this feature (automatically adding common  
packages) very great. I know I use LyX a strange way and I shouldn't  
include everything in a .sty file, but you know, people I work with  
are far more strange than this ;)


.tex to .lyx to .tex problem

2007-02-06 Thread Kevin Paunovic

I start from a .tex latex file that contains:
\lipsum[11] blahblah

I import this in LyX.

Then I export the .lyx file to plain latex (.tex) and I find this line:
\lipsum{[}11]

This seems to be due to the fact \lipsum command don't take arguments  
but a unique optional argument (between square brackets). So LyX may  
consider, as no '{' was found after \lipsum, that lipsum command  
takes the next char as argument (the opening square bracket) and puts  
it between accolades. Maybe there is a way to fix this a simple way?


Re: LyX adds packages declaration I already use

2007-02-06 Thread Richard Heck

The way to handle this, I'd think, is to use some kind of conditional.
LyX adds its material BEFORE your custom preamble stuff gets included.
So you basically just need to check for the existence of something you
know LyX will have done. LyX pretty much always to use inputenc.sty, so
perhaps checking for \inputencoding via
\ifx\inputencoding\undefined
would work.

It might be worth filing an enhancement request, asking that LyX should
define \iflyx or something.

Richard

Kevin Paunovic wrote:
 I use LyX as a structured content editor. I mean, I need people write
 the documentation of software manuals in a structured language and, as
 they fear xml, I proposed LyX. So I wrote a .sty that contains
 everything we need to generate manuals and documentation. This
 includes commands Latex like:

 ...
 \RequirePackage[latin1]{inputenc}
 \RequirePackage[T1]{fontenc}
 \RequirePackage{lmodern}
 \RequirePackage[frenchb,english]{babel}
 \ifpdf
 \RequirePackage[pdftex]{graphicx}
 \RequirePackage[cmyk,fixpdftex,pdftex]{xcolor}
 \else
 \RequirePackage[dvips]{graphicx}
 \RequirePackage[cmyk,dvips]{xcolor}
 \fi
 ...

 The problem now is that LyX automatically adds things like:
 \usepackage[T1]{fontenc}
 \usepackage[latin1]{inputenc}
 \usepackage{graphicx}
 \usepackage{babel}

 so, as you might expect, this leads to crashes at compilation.

 How to get rid of all those things LyX adds?

 PS: Please note that I find this feature (automatically adding common
 packages) very great. I know I use LyX a strange way and I shouldn't
 include everything in a .sty file, but you know, people I work with
 are far more strange than this ;)


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: LyX adds packages declaration I already use

2007-02-06 Thread Kevin Paunovic
Aye aye, but this becomes tweaky when LyX declares a nude package  
(without any option) and you declare, after that, the same package  
but this time with options.

Ex: \usepackage{graphicx}
\usepackage[dvips]{graphicx}

This causes Latex compiler hauling that graphicx was already loaded  
(this is ok), but without the same options (this bugs). Most packages  
give commands to declare options after the package is loaded  
(something like \graphicx{dvips}, etc. geometry package is good at  
that :) but sometimes you may find no answer.



On Feb 6, 2007, at 5:07 PM, Richard Heck wrote:



The way to handle this, I'd think, is to use some kind of conditional.
LyX adds its material BEFORE your custom preamble stuff gets included.
So you basically just need to check for the existence of something you
know LyX will have done. LyX pretty much always to use  
inputenc.sty, so

perhaps checking for \inputencoding via
\ifx\inputencoding\undefined
would work.

It might be worth filing an enhancement request, asking that LyX  
should

define \iflyx or something.

Richard

Kevin Paunovic wrote:

I use LyX as a structured content editor. I mean, I need people write
the documentation of software manuals in a structured language  
and, as

they fear xml, I proposed LyX. So I wrote a .sty that contains
everything we need to generate manuals and documentation. This
includes commands Latex like:

...
\RequirePackage[latin1]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage[frenchb,english]{babel}
\ifpdf
\RequirePackage[pdftex]{graphicx}
\RequirePackage[cmyk,fixpdftex,pdftex]{xcolor}
\else
\RequirePackage[dvips]{graphicx}
\RequirePackage[cmyk,dvips]{xcolor}
\fi
...

The problem now is that LyX automatically adds things like:
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{babel}

so, as you might expect, this leads to crashes at compilation.

How to get rid of all those things LyX adds?

PS: Please note that I find this feature (automatically adding common
packages) very great. I know I use LyX a strange way and I shouldn't
include everything in a .sty file, but you know, people I work with
are far more strange than this ;)



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto





How to get Contents and similar labels in other languages?

2007-02-06 Thread Stefano Franchi
I am sorry if this question has been addressed already, but my search 
of the usual sites came up empty.


Problem: What should I do to convince LlyX/LaTex to use the Italian 
version of the internally generated labels like Contents (for TOC), 
References (for bib)., etc.?
I thought switching the language to Italian would be sufficient, but 
clearly it is not. Hopefully I do not need a complete Italian install 
of LyX, as my main working language is English and I need Italian only 
occasionally.




Thanks,

Stefano
__
Stefano Franchi
Department of Philosophy  Ph:  (64)  9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-8768
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 



Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Richard Heck
Stefano Franchi wrote:
 Problem: What should I do to convince LlyX/LaTex to use the Italian
 version of the internally generated labels like Contents (for TOC),
 References (for bib)., etc.?
 I thought switching the language to Italian would be sufficient, but
 clearly it is not. Hopefully I do not need a complete Italian install
 of LyX, as my main working language is English and I need Italian only
 occasionally.
Is it LyX or LaTeX or both that is the problem? That is, are you seeing
the English labels in LyX itself or in the DVI output or both?

Richard

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Stefano Franchi


On 6 Feb, 2007, at 10:35 AM, Richard Heck wrote:


Stefano Franchi wrote:

Problem: What should I do to convince LlyX/LaTex to use the Italian
version of the internally generated labels like Contents (for TOC),
References (for bib)., etc.?
I thought switching the language to Italian would be sufficient, but
clearly it is not. Hopefully I do not need a complete Italian install
of LyX, as my main working language is English and I need Italian only
occasionally.

Is it LyX or LaTeX or both that is the problem? That is, are you seeing
the English labels in LyX itself or in the DVI output or both?



Both, I suppose, although I am not sure. I explain:

the LaTeX output (pdflatex, actually) has the English labels. LyX 
displays Table of Contents in its little grey box, but I am not sure 
whether it's supposed to show the Italian equivalent when you use a 
language other than English, as I  have never used a non-English 
version of LyX.


Cheers,

S.




Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



__
Stefano Franchi
Department of Philosophy  Ph:  (64)  9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-8768
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 



Re: Having my own layout removes navigation in LyX 1.4.2 SOLVED

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 08:29, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve It's at the bottom of the email. Note that in order to rule out
 Steve my story LaTeX environment, I had this LyX environment refer
 Steve to the built-in LaTeX quotation environment.

 I suggest that you start with
   Format 2
   Input stdclass.inc
   Input numreport.inc
 or even maybe
   Input book.layout

 JMarc

Thanks Jean-Marc,

It worked

Both of the preceding alternatives brought back my navigation. In the first 
one, Format 2 was unnecessary -- I could toggle correct navigation strictly 
with Input numerport.inc. Interestingly, once I got navigation working right, 
even when I removed numreport.inc instead of giving no navigation, it gave 
this sort of single level navigation where all chapters and sections were 
grouped at a single level. I guess there's an intermediate file that needs to 
be built before you can see *any* navigation.

The Input book.layout alternative, alone, seemed to work just like Format 
2;Input stdclass.inc;Input numreport.inc alternative.

What does Format 2 do?

What is numreport.inc?

Is there any way of having my table of contents go down only to the chapter 
level, but have navigation go all the way down to subparagraphs? I seem to 
remember that was possible in earlier LyX versions.


Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Stefano Franchi


On 6 Feb, 2007, at 10:35 AM, Richard Heck wrote:


Stefano Franchi wrote:

Problem: What should I do to convince LlyX/LaTex to use the Italian
version of the internally generated labels like Contents (for TOC),
References (for bib)., etc.?
I thought switching the language to Italian would be sufficient, but
clearly it is not. Hopefully I do not need a complete Italian install
of LyX, as my main working language is English and I need Italian only
occasionally.

Is it LyX or LaTeX or both that is the problem? That is, are you seeing
the English labels in LyX itself or in the DVI output or both?

Richard


Well, I think I have hit the LyX/Babel bug/feature again. I have a 
babel declaration in my standard preamble, which declares both English 
and Italian, with English coming last. That seems to be the problem. 
selecting Italian in the language pane of the LyX settings also passes 
the Italian option to the document class I am using (koma-book). I 
can get the proper Italian-language label only if I:


1. Export to Latex
2. delete the Italian language option from the documentclass declaration
3. rearrange the language options to Babel to have italian coming in 
last.



Everything else I tried seems to fail, including omitting the babel 
declaration altogether.


Surely there must be a better way?

Cheers,

S.







--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



__
Stefano Franchi
Department of Philosophy  Ph:  (64)  9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-8768
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 



Re: Having my own layout removes navigation in LyX 1.4.2 SOLVED LeftMargin

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 09:27, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve Unknown alignment `LeftMargin'
 Steve [around line 13 of file /tmp/lyx_tmpdir6058ekMlTP/605827MUiz]
 Steve [EMAIL PROTECTED] tsjustfacts]$

 Try to move the hash mark in the line below
   #Align Block   # Left aligned in LyX input
 to the first column.

 JMarc

Thanks Jean-Marc,

It turned out the problem was caused by my inclusion of an AlignPossible 
directive. When I removed that, not only did the warning disappear, but my 
LeftMargin and RightMargin directives started including the proper 
indentation within the LyX editor. I have no idea what AlignPossible does, 
but in my case it caused more harm than good.

Thanks again for all the help.

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Alt key stuck

2007-02-06 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:
Hi I have something weird going on - 


whenever I press one of the following keys - pskxcm - and as far as I
can tell only those keys, Lyx thinks I had Meta-keyed instead. (e.g. I
press s and get Alt+S options: T Shift+S ... etc.)

tried clean reinstall, no good.

using Windows XP, tried with LyxWin1435Small-2-9 and ver 1435 from
lyx.org.

otherwise everything seems to be working.

Any ideas?

Seth


I assume this happens only in LyX.  Does Tools - Preferences... - Look 
and feel - Keyboard indicate that you are using a key map?


/Paul



Re: Slide number in beamer presentation

2007-02-06 Thread Paul A. Rubin

Paul Smith wrote:

Dear All

How can one add a slide number for each slide in the very basic
attached beamer presentation?

Thanks in advance,

Paul


Is this what you want?  (The change is in the preamble.)  Note that this 
is not necessarily how I would do it using one of the prefab themes.


/Paul


beamer_example.lyx
Description: application/lyx


Re: Font problems of pdf-files generated on Mac

2007-02-06 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], 
Anders Ekberg [EMAIL PROTECTED] wrote.


I have a more and more annoying problem. The pdf-files I create works 
for about 90% of the colleagues I send them to. But on some computers 
(or rather installations) the fonts get messed up. This has always been 
on Windows machines (but that could be because almost all my colleagues 
use that).
The problem can be that all text is typeset in a mono-spaced font, or 
that the math-fonts disappear, or in printing (mainly I get described 
by mail, so I can not get the details of the problem, but it seems to 
differ).
An example is the file on http://homepage.mac.com/anek/Download/ 
Litteratur_utm_brottmek.pdf which, when I brought it up in Acrobat 
Viewer (via IE) on a Windows machine, looked fine on screen, but then 
printed with a mono-spaced font.
The problem has occurred with various versions of LyX 1.4 and with 
different templates and ways to generate pdf (pdflatex, via dvi, via 
postscript, etc).


Has anyone experienced anything similar. Or better still, does anyone 
know about a cure?!
(The one I have is opening the file in GraphicConverter, saving as Tif, 
re-opening and printing as pdf, but this is not really ideal...)

[...]

Hello Anders, your file printed fine here using Adobe Reader 7. 
Everything lined up neatly on the RH margin and printed nicely with a 
proportionally-spaced Roman font. Perhaps it's not a LyX/LaTeX problem? 
Tell you what, it might be worth changing the language settings in Adobe 
Reader to English, this is what I'm using. Just a thought.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: Slide number in beamer presentation

2007-02-06 Thread Paul Smith

On 2/6/07, Paul A. Rubin [EMAIL PROTECTED] wrote:

 How can one add a slide number for each slide in the very basic
 attached beamer presentation?

Is this what you want?  (The change is in the preamble.)  Note that this
is not necessarily how I would do it using one of the prefab themes.


That is great! Thanks, Paul.

Paul


Re: Entering foreign language characters

2007-02-06 Thread bruce . weller




 Neal Becker [EMAIL PROTECTED] wrote:
 
 I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to 
 enter a
 few special accented characters?  My language and document is english, 
 but
 let's say I'd like to enter a few spanish symbols.  I know I can do this
 with special latex, but is there a more generic (and newbie friendly) 
 way?


Neal, 

This atachment may assist. 


Accent insertion.lyx
Description: application/lyx


Re: Slide number in beamer presentation

2007-02-06 Thread Paul Smith

On 2/6/07, Paul Smith [EMAIL PROTECTED] wrote:

  How can one add a slide number for each slide in the very basic
  attached beamer presentation?

 Is this what you want?  (The change is in the preamble.)  Note that this
 is not necessarily how I would do it using one of the prefab themes.

That is great! Thanks, Paul.


If am not abusing, how to add to the foot line the name of the
presentation's author?

Paul


Re: Entering foreign language characters

2007-02-06 Thread David L. Johnson

[EMAIL PROTECTED] wrote:





Neal Becker [EMAIL PROTECTED] wrote:

I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to 
enter a
few special accented characters?  My language and document is english, 
but

let's say I'd like to enter a few spanish symbols.  I know I can do this
with special latex, but is there a more generic (and newbie friendly) 
way?



Neal, 

This atachment may assist. 


I don't get it, actually.  This would take a lot more effort than using 
ERT for accents.  To get an accented (grave) e in ERT, just enter \`{e}. 
 That seems easier to me.


--

David L. Johnson

Deserves death!  I daresay he does.  Many that live deserve death.
And some that die deserve life.  Can you give it to them?
Then do not be too eager to deal out death in judgement.
  -- J. R. R. Tolkein


Re: Entering foreign language characters

2007-02-06 Thread John Coppens
On Tue, 06 Feb 2007 19:28:29 -0500
David L. Johnson [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  
  
  
  Neal Becker [EMAIL PROTECTED] wrote:
 
  I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to 
  enter a
  few special accented characters?  My language and document is
  english, but
  let's say I'd like to enter a few spanish symbols.  I know I can do
  this with special latex, but is there a more generic (and newbie
  friendly) way?
  
  
  Neal, 
  
  This atachment may assist. 
 
 I don't get it, actually.  This would take a lot more effort than using 
 ERT for accents.  To get an accented (grave) e in ERT, just enter \`
 {e}. That seems easier to me.

I've noticed that in many keyboards Ctl-.  (Ctl + decimal point) is
defined as the Compose character. Try to enter the è as:

Ctl-. e `or reversed:  Ctl-. ` e

If necessary, it's possible to define another character as Compose (or,
more 'modern', as MultiKey). I think this is even easier that ERT, and
the character appears as such on the screen.

John


Re: Entering foreign language characters

2007-02-06 Thread David L. Johnson

John Coppens wrote:


I've noticed that in many keyboards Ctl-.  (Ctl + decimal point) is
defined as the Compose character. Try to enter the è as:

Ctl-. e `or reversed:  Ctl-. ` e

If necessary, it's possible to define another character as Compose (or,
more 'modern', as MultiKey). I think this is even easier that ERT, and
the character appears as such on the screen.

John


Doesn't work for me (debian linux/american keyboard).

--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.  -- Douglas Adams


Re: .tex to .lyx to .tex problem

2007-02-06 Thread Enrico Forestieri
Kevin Paunovic writes:
 
 I start from a .tex latex file that contains:
 \lipsum[11] blahblah
 
 I import this in LyX.
 
 Then I export the .lyx file to plain latex (.tex) and I find this line:
 \lipsum{[}11]
 
 This seems to be due to the fact \lipsum command don't take arguments  
 but a unique optional argument (between square brackets). So LyX may  
 consider, as no '{' was found after \lipsum, that lipsum command  
 takes the next char as argument (the opening square bracket) and puts  
 it between accolades. Maybe there is a way to fix this a simple way?

You must teach LyX the syntax of your command. The most simple way is
copying the syntax.default file from the system directory to your personal
.lyx directory and add at the very bottom the single line

\lipsum[]

However, if you do so, from now on the system syntax.default file is not
read anymore, which may be a problem when you upgrade. So, it is better
that you create a file containing only the line above and then modify
the LaTeX-LyX converter in Tools-Preferences-Converters. Most probably
this converter is defined as tex2lyx -f $$i $$o and you should change it
to read tex2lyx -s /path/to/your/syntax.file -f $$i $$o, where
/path/to/your/syntax.file is the file above containing that single line
(of course you can also add to it the syntax of other commands, one per line).
If you are on *nix, man tex2lyx is your friend.

HTH

-- 
Enrico



Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Enrico Forestieri
Stefano Franchi writes:

 Well, I think I have hit the LyX/Babel bug/feature again. I have a 
 babel declaration in my standard preamble, which declares both English 
 and Italian, with English coming last. That seems to be the problem. 
 selecting Italian in the language pane of the LyX settings also passes 
 the Italian option to the document class I am using (koma-book). I 
 can get the proper Italian-language label only if I:
 
 1. Export to Latex
 2. delete the Italian language option from the documentclass declaration
 3. rearrange the language options to Babel to have italian coming in 
 last.
 
 Everything else I tried seems to fail, including omitting the babel 
 declaration altogether.
 
 Surely there must be a better way?

I cannot reproduce your problem. Using the .lyx file pasted at the bottom,
I correctly get Indice instead of Contents in the output.

-- 
Enrico


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

\begin_body

\begin_layout Standard
\begin_inset LatexCommand \tableofcontents{}

\end_inset


\end_layout

\begin_layout Chapter
Titolo
\end_layout

\begin_layout Standard
blah 
\lang english
blah
\end_layout

\end_body
\end_document




Re: Entering foreign language characters

2007-02-06 Thread John Coppens
On Tue, 06 Feb 2007 21:13:47 -0500
David L. Johnson [EMAIL PROTECTED] wrote:

 Doesn't work for me (debian linux/american keyboard).

If you feel like it, try to check if you have a file in your home
directory called .Xmodmap (it's a hidden file). If so, add the following
line, else create it:

keycode 116 = Multi_key

This defines the right 'Windows' key as composition key, and should be
enough to be do   WinKey e `   to compose è.

You'll have to activate it with

xmodmap ~/.Xmodmap(this normally happens when X opens automatically)

I hope this works for you... It did for me for all versions of LyX,
except the last one. But it seems I am an exception.

John


Re: Entering foreign language characters

2007-02-06 Thread David L. Johnson

John Coppens wrote:

On Tue, 06 Feb 2007 21:13:47 -0500
David L. Johnson [EMAIL PROTECTED] wrote:


Doesn't work for me (debian linux/american keyboard).


If you feel like it, try to check if you have a file in your home
directory called .Xmodmap (it's a hidden file). If so, add the following
line, else create it:

keycode 116 = Multi_key

This defines the right 'Windows' key as composition key, and should be
enough to be do   WinKey e `   to compose è.


Cool.   It works, except that it is Winkey-` e rather than the other way 
around.


--

David L. Johnson

Let's be straight here.  If we find something we can't understand
we like to call it something you can't understand,
or indeed even pronounce.  -- Douglas Adams


Re: Entering foreign language characters

2007-02-06 Thread John Coppens
On Tue, 06 Feb 2007 23:14:45 -0500
David L. Johnson [EMAIL PROTECTED] wrote:

 Cool.   It works, except that it is Winkey-` e rather than the other
 way around.

That depends on if the combinations are defined - in my case both
work. There's a lot of fun to be had with combinations. Try things
like Winkey 1 2 to get a 'half' and Winkey + - to get ±...

The composition tables in my distro reside in
/usr/share/kbd/keymaps/include

eg. compose.latin1

Rgds
John


Re: How to keeping Enumerate items together?

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Hi all, In my book created with the Book document class, I have
Steve a four item bullet list in environment Itemize. It pagebreaks
Steve after the second item, and even more lame than that, the next
Steve page is consumed with a graphic float, so the reader has to
Steve skip 2 pages to see the other two items.

There is probably a way to make the stick together, but then you will
probably have whitespace of bad formatting on the page. What I do in
such cases is keep the problem for when the text is completely
finished and then think about how I could move a few sentences around
until it works :)

Steve Within my layout file, is there a simple way I can modify the
Steve Itemize environment so it tries hard not to break in the
Steve middle?

You can probably add \nopagebreak as ERT in the relevant items. I
never tried it myself.

The TeX FAQ has an interesting discussion on the subject:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopagebrk

JMarc


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Hi all, As you all remember, when I switched to LyX 1.4.2 I
Steve griped that one of my books no longer had navigation.

Steve Now the other shoe dropped. I've been writing a new book, using
Steve the book document class in LyX 1.4.2, and everything went well,
Steve with navigation and everything. Then I created my own layout
Steve file, deriving a tsjsbook layout derived from the book class.
Steve My new layout was minimal -- it did nothing except create a new
Steve environment called Story, which worked perfectly well when
Steve converting to dvi.

Could you show us this layout file? 

Steve Trouble is, now when I try to do navigation in LyX itself,
Steve there's no navigation. The Nativate menu item lists only
Steve Bookmarks, Next Note, and List of Figures.

This shows that your sectioning layouts do not have a TocLevel entry. 

Are you sure that you do not have copies of the standard layout/inc
files in your .lyx directory?

Steve Also, one of my first books no longer works at all -- with the
Steve text going right up to the top of the page on every page.

This is very strange. Do you have a small example file that exhibits
that behavior?

JMarc


Re: tables: multirow ok, but multiline?

2007-02-06 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], Uwe Stöhr 
[EMAIL PROTECTED] wrote.


[...]
The I can recommend to recompile LyX and test out a more recent LyX 1.5 
version, we made big efforts the last weeks.


There's also a manual version for LyX 1.5:

http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/doc/EmbeddedObjects.lyx

[...]

It might be easier to get the PDF from:

http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects

Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: changing Xfig figures in LyX

2007-02-06 Thread Philipp Fleig

Hello Georg,

I am sorry for the very late reply, but I was away for the last few  
days!
The file Test.lyx which I had sent to you was correct and also read  
the file TestFig.fig, but for some reason LyX seems to change the  
name of the file from TestFig.fig to LyX when I include it via  
External Material. This can be fixed though, by saving Test.lyx  
before including TestFig.fig.
Still when I do this and then run pdflatex, I get the error, empty  
output file was created again. Also a message pops up saying  
somthing like


Latex Eror: File  
'o_Users_philippfleig_Documents_LyX_Documents_Lab_Figures_TestFig.pdftex 
_t

and (cannot \read from terminal in nonstop modes)

Sorry for bothering you over such a long period of time with this  
problem, but whatever I do it just does not work.

Thank you for your great help!

Philipp


Am 02.02.2007 um 09:57 schrieb Georg Baum:


Philipp Fleig wrote:


Hello,

ok. Attached you find a sample .lyx + xfig file.
When I go to preferences in LyX there are a number of converters,
including some like FIG - EPS, FIG - PDFTEX and FIG - PSTEX, which
I guess would be the relevant ones.


Yes, they are.


I read on http://www.xfig.org/
userman/latex_and_xfig.html something about the psfig package. Could
it be this, which I am missing?


No. Your test file does not include the figure. It includes a file
named ../../../LyX. If I change that to read TestFig.fig, and if I  
save

TestFig.fig in the same directory as Test.lyx, then it works just fine
here.


Georg




Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread José Matos
On Tuesday 06 February 2007 12:13:47 am Steve Litt wrote:
 Then I created my own layout file, deriving a tsjsbook layout
 derived from the book class. My new layout was minimal -- it did nothing
 except create a new environment called Story, which worked perfectly well
 when converting to dvi.

  Just one question Steve, by deriving the new layout you mean copy and 
pasting or including it and then performing the different tweaks?

-- 
José Abílio


Slide number in beamer presentation

2007-02-06 Thread Paul Smith

Dear All

How can one add a slide number for each slide in the very basic
attached beamer presentation?

Thanks in advance,

Paul


beamer_example.lyx
Description: application/lyx


Command line options

2007-02-06 Thread Hellmut Weber
Hi list,
who can tell me where i can find a list of command line options lyx accepts?

I do know about '--export latex' (and do use it a lot), but i would like
e.g. to ask lyx from the command line to reconfigure.

I googled for 'lyx command line' but didn't get any reasonable result.
Neither could I find a list of that sort in the official documentation.

TIA

Hellmut


Dr. Hellmut Weber
Degenfeldstraße 2, D - 80803 München-Schwabing
tel (+49 89) 3081172, mobil (+49 172) 8450321
[EMAIL PROTECTED]
--

Please, if possible, don't send me MS Word or Powerpoint attachments.
Send plain text, rich text format, html, or pdf instead.
Why? See: http://www.gnu.org/philosophy/no-word-attachments.html
-- 
As an alternative to MS Word or Powerpoint.
LyX, OpenOffice, also useable with Windows ;-)



Re: Command line options

2007-02-06 Thread christian . ridderstrom

On Tue, 6 Feb 2007, Hellmut Weber wrote:


Hi list,
who can tell me where i can find a list of command line options lyx accepts?

I do know about '--export latex' (and do use it a lot), but i would like
e.g. to ask lyx from the command line to reconfigure.

I googled for 'lyx command line' but didn't get any reasonable result.
Neither could I find a list of that sort in the official documentation.


Have you tried

lyx --help

and
man lyx

/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Crash when using TitlelatexCommand in layout def

2007-02-06 Thread Kevin Paunovic

Hi,
I'm having problems when using TitleLatexCommand in my .layout file.

I use the command \coverpage instead of \maketitle to generate the  
title page. This command is defined in my .sty file (included in the  
Preamble section of the layout file).


Everything goes well until I specify TitleLatexCommandcoverpage  
in my layout file. When doing this, LyX can't create/convert a  
document to my own class named ezbook (a customized book class that  
uses ezstyle.sty). it raises the following error message:

The document could not be converted into the document class ezbook.

When loading a .lyx file that uses ezbook class (but done prior  
adding TitleLatexCommand to the layout file), LyX crashes after saying:
Using the default document class, because the  class ezbook could  
not be loaded.


I thought I had done something the wrong way, but it's strange that  
removing TitleLatexCommand line solve this (it solves the problem of  
crashing the app, but of course, it doesn't solve using a custom  
title command :)


Any one could help?

A.D.


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 04:49, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve Hi all, As you all remember, when I switched to LyX 1.4.2 I
 Steve griped that one of my books no longer had navigation.

 Steve Now the other shoe dropped. I've been writing a new book, using
 Steve the book document class in LyX 1.4.2, and everything went well,
 Steve with navigation and everything. Then I created my own layout
 Steve file, deriving a tsjsbook layout derived from the book class.
 Steve My new layout was minimal -- it did nothing except create a new
 Steve environment called Story, which worked perfectly well when
 Steve converting to dvi.

 Could you show us this layout file?

It's at the bottom of the email. Note that in order to rule out my story 
LaTeX environment, I had this LyX environment refer to the built-in 
LaTeX quotation environment.

SteveT


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

Input stdclass.inc
### BEGIN LYX STUFF ### {{{1

Style Story
  LatexType Environment# This is an environment
#  LatexName story  # The latex env LyX Story wraps
  LatexName quotation
  AlignPossible Left   # ONLY left aligned in LyX input
  #Align Block   # Left aligned in LyX input
  LeftMarginMM# Left margin width of 5 'M's in LyX
  RightMargin   M# Right margin width of 5 'M's in LyX
  ParSkip   0.7# Paragraph skip .7in in LyX
  ParSep0.7# Paragraph separation .7in in LyX
  TopSep0.7# Page top separation .7in in LyX
  BottomSep 0.7# Page top separation .7in in LyX

  Font
   Series   Medium # Non-bold on LyX input screen
   ShapeItalic # Italic   on LyX input screen
   Size Normal # Normal size on LyX input screen
  EndFont
End
### END LYX STUFF ### }}}1



Re: Crash when using TitlelatexCommand in layout def

2007-02-06 Thread Jean-Marc Lasgouttes
 Kevin == Kevin Paunovic [EMAIL PROTECTED] writes:

Kevin Hi, I'm having problems when using TitleLatexCommand in my
Kevin .layout file.

Kevin I use the command \coverpage instead of \maketitle to generate
Kevin the title page. This command is defined in my .sty file
Kevin (included in the Preamble section of the layout file).

Kevin Everything goes well until I specify TitleLatexCommand
Kevin coverpage in my layout file. When doing this, LyX can't
Kevin create/convert a document to my own class named ezbook (a
Kevin customized book class that uses ezstyle.sty). it raises the
Kevin following error message: The document could not be converted
Kevin into the document class ezbook.

Kevin When loading a .lyx file that uses ezbook class (but done prior
Kevin adding TitleLatexCommand to the layout file), LyX crashes after
Kevin saying: Using the default document class, because the class
Kevin ezbook could not be loaded.

Kevin I thought I had done something the wrong way, but it's strange
Kevin that removing TitleLatexCommand line solve this (it solves the
Kevin problem of crashing the app, but of course, it doesn't solve
Kevin using a custom title command :)

I guess there is an error in your layout file. You should be able to
see it by using Console.app (you are on a mac, right?). Once we know
what the error is, I'm sure we will come up with a solution.

JMarc


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 05:51, José Matos wrote:
 On Tuesday 06 February 2007 12:13:47 am Steve Litt wrote:
  Then I created my own layout file, deriving a tsjsbook layout
  derived from the book class. My new layout was minimal -- it did nothing
  except create a new environment called Story, which worked perfectly well
  when converting to dvi.

   Just one question Steve, by deriving the new layout you mean copy and
 pasting or including it and then performing the different tweaks?

Hi José,

I'm not sure what you mean by the two alternatives above, so let me just tell 
you what I did.

I created a small tsjfbooks.layout file in the books's directory. I then did 
this:

ln -s /mybook/tsjfbooks.layout /home/slitt/.lyx/layouts/tsjfbooks.layout

I then Tools-Reconfigure, then opened the LyX file, then 
Document-settings-DocumentClass and chose tsjfbooks.layout, and was able to 
use my Story environment. But the bad news is my navigation went away.

I'll give one other clue. When I open the LyX file with LyX, calling LyX from 
a (Linux) command prompt, I get abunch of warnings:

[EMAIL PROTECTED] tsjustfacts]$ lyx tsjustfacts.lyx
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
LyX: Unknown alignment `LeftMargin' [around line 13 of 
file /tmp/lyx_tmpdir6058ekMlTP/605827MUiz]
[EMAIL PROTECTED] tsjustfacts]$






-- 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

(Legal Disclaimer) Follow these suggestions at your own risk.


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve It's at the bottom of the email. Note that in order to rule out
Steve my story LaTeX environment, I had this LyX environment refer
Steve to the built-in LaTeX quotation environment.

I suggest that you start with
  Format 2
  Input stdclass.inc
  Input numreport.inc
or even maybe
  Input book.layout

JMarc


[announce] LyX150alpha from 05-02-2007 for Windows

2007-02-06 Thread Uwe Stöhr

Hello LyXTesters,

I published a new version with LyX1.5.0alpha from 05-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12178

This is mainly a bugfix release to the bug I accidentally introduced in
the last release from 04-02-2007.

If you still have python problems, or problems with PDF viewers, or problems on installing it on 
Windows Vista, report this with CC to my private email adress.

I'm off by now for a few days from this list.

---

Here are the other changes:

- LyX 1.5alpha from 05-02-2007

- updated to ImageMagick 6.3.2-3

- installer bugfix introduced in the last releases (01-02-2007 and 04-02-2007):
  deliver correct python25.dll and python.exe
- hopefully correct fix to the bug that other PDF viewers than Acrobat/Adobe 
Reader
  and GSView weren't recognized

---

happy testing and best regards
Uwe

--- disclaimer ---
LyX' test builds are for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX150alpha is still in alpha state, that means it is under very
active development. Therefore things can change every day, so
don't use LyX1.5svn for production!



Re: [announce] LyX150alpha from 05-02-2007 for Windows

2007-02-06 Thread Olivier Ripoll

Uwe Stöhr wrote:

Hello LyXTesters,

I published a new version with LyX1.5.0alpha from 05-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117release_id=12178 



This is mainly a bugfix release to the bug I accidentally introduced in
the last release from 04-02-2007.

If you still have python problems, or problems with PDF viewers, or 
problems on installing it on Windows Vista, report this with CC to my 
private email adress.

I'm off by now for a few days from this list.


The help files do open fine now indeed.

Other comments:
- LyX 1.5 scrolls fast. Although it is on a different machine than my 
home linux pc, it seems much snappier than 1.4


- PDFViewWin7.exe still crashes on my machine. I switched to 
PDFViewWin8.exe, which works fine, except than update does not work and 
that to generate an up-to-date pdf after modifications, I must close the 
previously generated one.


- CRTL-M does not produce the four lines of error in the console. Should 
I close the bug #3207 ?


- I can still crash LyX by typing x^2 in a math inset and with 
US-international keyboard layout.


Best regards,

Olivier

PS: I cannot CC you for technical reasons, but will copy this email in 
private email.




Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
 Steve == Steve Litt [EMAIL PROTECTED] writes:

Steve Unknown alignment `LeftMargin'
Steve [around line 13 of file /tmp/lyx_tmpdir6058ekMlTP/605827MUiz]
Steve [EMAIL PROTECTED] tsjustfacts]$

Try to move the hash mark in the line below
  #Align Block   # Left aligned in LyX input
to the first column.

JMarc


Re: float placement refinements

2007-02-06 Thread Ramon Flores
Em Sexta, 2 de Fevereiro de 2007 20:53, Enrico Forestieri escreveu:

LaTeX is a quite sophisticated typesetting system and lets you fine tune a
large set of style parameters. Below you can find a list of parameters that
I think are of interest to you. Those not starting with a backslash are 
counters and are to be set as \setcounter{topnumber}{1}, for example, 
the  others must changed using \renewcommand, such as 
\renewcommand{\topfraction}{0.4},
or \renewcommand{\floatsep}{15mm} for rubber lengths.

Changes made in the preamble apply from the first page on. Changes made
afterwards take effect on the next page, not the current one.

topnumber - A counter whose value is the maximum number of floats allowed
at the top of a page.

This is exactly what I was looking for.

Thank you very much.

Ramon


Entering foreign language characters

2007-02-06 Thread Neal Becker
I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to enter a
few special accented characters?  My language and document is english, but
let's say I'd like to enter a few spanish symbols.  I know I can do this
with special latex, but is there a more generic (and newbie friendly) way?




RE: Re: Error on startup

2007-02-06 Thread Steven Harms \(stharms\)
Paul,

Your solution essentially pointed me in the right direction:  it was a
pathing issue that was causing the problem.  I, too had installed CYGWIN
LyX ( which was working ) and that had caused a confusion when I
installed Win32 LyX.

Order of operations:

I re-installed MikTex 
Changed path to only have the miktext/bin directory in it
launched the LyX installer from the command line
...installed
...ran the excellent bit of python magic you listed below, was able to
see things working
...ran texhash manually...saw that things were looking good
...ran LyX

I'm in business!

I also used this same technique to debug my Mac install.  I had tetex-mf
blocking my i-installed /usr/texbin directory.  Once I removed the
borked tetex install and changed my path to use Weierdma's install path
my LyX install went through great.

So, to anyone having troubles: get a minimial path as possible and try
to launch things from that minimal path command line environment.

stevn


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Paul A. Rubin
Sent: Monday, February 05, 2007 11:37 AM
To: lyx-users@lists.lyx.org
Subject: Re: Error on startup

Steven Harms (stharms) wrote:
 My instance of this issue is on XP.

The following are listed in no particular order:

1.  When the LyX configuration script runs, it tests for the presence of
some common LaTeX classes by attempting to compile a test document using
each class.  If you are using MikTeX (as I suspect), and some of the
classes are not yet installed, MikTeX will either (a) fail to compile
the test documents, (b) attempt to download and install the missing
classes, or (c) prompt you for permission to install them, depending on
how it is set up.  Case (a) should result in the configuration script
correctly recognizing that the classes are missing (letting it move on
to other things).  Case (b), or case (c) if you answer 'yes', can run
into problems if either you do not have an active Internet connection or
the server from which MikTeX tries to download the packages becomes
unresponsive.  The workaround for this is either to set MikTeX not to
download missing packages (through MikTeX's Options program) or to
answer 'no' if it prompts you.  Packages can always be downloaded and
installed later (after which LyX should be reconfigured).

2.  If your XP account is set up to use a remote server (particularly if
accessed by a UNC) as your home, misadventures will occur during
configuration.  I think LyX should pop up a message specific to this,
but I won't swear to it.  If you're not sure where your home is, open a
DOS prompt and run 'set h'.  Look for HOMEDRIVE (hopefully C:, hopefully
not \\someserver) and HOMEPATH.

3.  If you have both MikTeX and some other LaTeX program installed, with
the other one first in the system command path, strange things can
happen.  I used to have Cygwin installed, with Cygwin's bin directory
(containing a version of latex.exe) ahead of MikTeX's bin directory on
my path.  Cygwin's latex.exe didn't work with LyX, and since it was the
one LyX found, configuration failed.

If none of this provides an answer, try the following.  Using Win
Explorer to delete C:\Documents and Settings\your id\Application
Data\LyX1.4.x (if it exists) and anything in it.  Open a DOS prompt in
C:\Documents and Settings\your id\Application Data.  Run 'path to 
LyX\python\python.exe path to LyX\Resources\configure.py'.  If it
produces (in .\LyX1.4.x) a textclass.lst file with length  0, you
should be able to run LyX.  If not, post the output and maybe someone
can spot a clue.

HTH,

/Paul


LyX adds packages declaration I already use

2007-02-06 Thread Kevin Paunovic
I use LyX as a structured content editor. I mean, I need people write  
the documentation of software manuals in a structured language and,  
as they fear xml, I proposed LyX. So I wrote a .sty that contains  
everything we need to generate manuals and documentation. This  
includes commands Latex like:


...
\RequirePackage[latin1]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage[frenchb,english]{babel}
\ifpdf
\RequirePackage[pdftex]{graphicx}
\RequirePackage[cmyk,fixpdftex,pdftex]{xcolor}
\else
\RequirePackage[dvips]{graphicx}
\RequirePackage[cmyk,dvips]{xcolor}
\fi
...

The problem now is that LyX automatically adds things like:
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{babel}

so, as you might expect, this leads to crashes at compilation.

How to get rid of all those things LyX adds?

PS: Please note that I find this feature (automatically adding common  
packages) very great. I know I use LyX a strange way and I shouldn't  
include everything in a .sty file, but you know, people I work with  
are far more strange than this ;)


.tex to .lyx to .tex problem

2007-02-06 Thread Kevin Paunovic

I start from a .tex latex file that contains:
\lipsum[11] blahblah

I import this in LyX.

Then I export the .lyx file to plain latex (.tex) and I find this line:
\lipsum{[}11]

This seems to be due to the fact \lipsum command don't take arguments  
but a unique optional argument (between square brackets). So LyX may  
consider, as no '{' was found after \lipsum, that lipsum command  
takes the next char as argument (the opening square bracket) and puts  
it between accolades. Maybe there is a way to fix this a simple way?


Re: LyX adds packages declaration I already use

2007-02-06 Thread Richard Heck

The way to handle this, I'd think, is to use some kind of conditional.
LyX adds its material BEFORE your custom preamble stuff gets included.
So you basically just need to check for the existence of something you
know LyX will have done. LyX pretty much always to use inputenc.sty, so
perhaps checking for \inputencoding via
\ifx\inputencoding\undefined
would work.

It might be worth filing an enhancement request, asking that LyX should
define \iflyx or something.

Richard

Kevin Paunovic wrote:
 I use LyX as a structured content editor. I mean, I need people write
 the documentation of software manuals in a structured language and, as
 they fear xml, I proposed LyX. So I wrote a .sty that contains
 everything we need to generate manuals and documentation. This
 includes commands Latex like:

 ...
 \RequirePackage[latin1]{inputenc}
 \RequirePackage[T1]{fontenc}
 \RequirePackage{lmodern}
 \RequirePackage[frenchb,english]{babel}
 \ifpdf
 \RequirePackage[pdftex]{graphicx}
 \RequirePackage[cmyk,fixpdftex,pdftex]{xcolor}
 \else
 \RequirePackage[dvips]{graphicx}
 \RequirePackage[cmyk,dvips]{xcolor}
 \fi
 ...

 The problem now is that LyX automatically adds things like:
 \usepackage[T1]{fontenc}
 \usepackage[latin1]{inputenc}
 \usepackage{graphicx}
 \usepackage{babel}

 so, as you might expect, this leads to crashes at compilation.

 How to get rid of all those things LyX adds?

 PS: Please note that I find this feature (automatically adding common
 packages) very great. I know I use LyX a strange way and I shouldn't
 include everything in a .sty file, but you know, people I work with
 are far more strange than this ;)


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: LyX adds packages declaration I already use

2007-02-06 Thread Kevin Paunovic
Aye aye, but this becomes tweaky when LyX declares a nude package  
(without any option) and you declare, after that, the same package  
but this time with options.

Ex: \usepackage{graphicx}
\usepackage[dvips]{graphicx}

This causes Latex compiler hauling that graphicx was already loaded  
(this is ok), but without the same options (this bugs). Most packages  
give commands to declare options after the package is loaded  
(something like \graphicx{dvips}, etc. geometry package is good at  
that :) but sometimes you may find no answer.



On Feb 6, 2007, at 5:07 PM, Richard Heck wrote:



The way to handle this, I'd think, is to use some kind of conditional.
LyX adds its material BEFORE your custom preamble stuff gets included.
So you basically just need to check for the existence of something you
know LyX will have done. LyX pretty much always to use  
inputenc.sty, so

perhaps checking for \inputencoding via
\ifx\inputencoding\undefined
would work.

It might be worth filing an enhancement request, asking that LyX  
should

define \iflyx or something.

Richard

Kevin Paunovic wrote:

I use LyX as a structured content editor. I mean, I need people write
the documentation of software manuals in a structured language  
and, as

they fear xml, I proposed LyX. So I wrote a .sty that contains
everything we need to generate manuals and documentation. This
includes commands Latex like:

...
\RequirePackage[latin1]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage[frenchb,english]{babel}
\ifpdf
\RequirePackage[pdftex]{graphicx}
\RequirePackage[cmyk,fixpdftex,pdftex]{xcolor}
\else
\RequirePackage[dvips]{graphicx}
\RequirePackage[cmyk,dvips]{xcolor}
\fi
...

The problem now is that LyX automatically adds things like:
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{babel}

so, as you might expect, this leads to crashes at compilation.

How to get rid of all those things LyX adds?

PS: Please note that I find this feature (automatically adding common
packages) very great. I know I use LyX a strange way and I shouldn't
include everything in a .sty file, but you know, people I work with
are far more strange than this ;)



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto





How to get Contents and similar labels in other languages?

2007-02-06 Thread Stefano Franchi
I am sorry if this question has been addressed already, but my search 
of the usual sites came up empty.


Problem: What should I do to convince LlyX/LaTex to use the Italian 
version of the internally generated labels like Contents (for TOC), 
References (for bib)., etc.?
I thought switching the language to Italian would be sufficient, but 
clearly it is not. Hopefully I do not need a complete Italian install 
of LyX, as my main working language is English and I need Italian only 
occasionally.




Thanks,

Stefano
__
Stefano Franchi
Department of Philosophy  Ph:  (64)  9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-8768
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 



Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Richard Heck
Stefano Franchi wrote:
 Problem: What should I do to convince LlyX/LaTex to use the Italian
 version of the internally generated labels like Contents (for TOC),
 References (for bib)., etc.?
 I thought switching the language to Italian would be sufficient, but
 clearly it is not. Hopefully I do not need a complete Italian install
 of LyX, as my main working language is English and I need Italian only
 occasionally.
Is it LyX or LaTeX or both that is the problem? That is, are you seeing
the English labels in LyX itself or in the DVI output or both?

Richard

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Stefano Franchi


On 6 Feb, 2007, at 10:35 AM, Richard Heck wrote:


Stefano Franchi wrote:

Problem: What should I do to convince LlyX/LaTex to use the Italian
version of the internally generated labels like Contents (for TOC),
References (for bib)., etc.?
I thought switching the language to Italian would be sufficient, but
clearly it is not. Hopefully I do not need a complete Italian install
of LyX, as my main working language is English and I need Italian only
occasionally.

Is it LyX or LaTeX or both that is the problem? That is, are you seeing
the English labels in LyX itself or in the DVI output or both?



Both, I suppose, although I am not sure. I explain:

the LaTeX output (pdflatex, actually) has the English labels. LyX 
displays Table of Contents in its little grey box, but I am not sure 
whether it's supposed to show the Italian equivalent when you use a 
language other than English, as I  have never used a non-English 
version of LyX.


Cheers,

S.




Richard

--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



__
Stefano Franchi
Department of Philosophy  Ph:  (64)  9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-8768
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 



Re: Having my own layout removes navigation in LyX 1.4.2 SOLVED

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 08:29, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve It's at the bottom of the email. Note that in order to rule out
 Steve my story LaTeX environment, I had this LyX environment refer
 Steve to the built-in LaTeX quotation environment.

 I suggest that you start with
   Format 2
   Input stdclass.inc
   Input numreport.inc
 or even maybe
   Input book.layout

 JMarc

Thanks Jean-Marc,

It worked

Both of the preceding alternatives brought back my navigation. In the first 
one, Format 2 was unnecessary -- I could toggle correct navigation strictly 
with Input numerport.inc. Interestingly, once I got navigation working right, 
even when I removed numreport.inc instead of giving no navigation, it gave 
this sort of single level navigation where all chapters and sections were 
grouped at a single level. I guess there's an intermediate file that needs to 
be built before you can see *any* navigation.

The Input book.layout alternative, alone, seemed to work just like Format 
2;Input stdclass.inc;Input numreport.inc alternative.

What does Format 2 do?

What is numreport.inc?

Is there any way of having my table of contents go down only to the chapter 
level, but have navigation go all the way down to subparagraphs? I seem to 
remember that was possible in earlier LyX versions.


Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Stefano Franchi


On 6 Feb, 2007, at 10:35 AM, Richard Heck wrote:


Stefano Franchi wrote:

Problem: What should I do to convince LlyX/LaTex to use the Italian
version of the internally generated labels like Contents (for TOC),
References (for bib)., etc.?
I thought switching the language to Italian would be sufficient, but
clearly it is not. Hopefully I do not need a complete Italian install
of LyX, as my main working language is English and I need Italian only
occasionally.

Is it LyX or LaTeX or both that is the problem? That is, are you seeing
the English labels in LyX itself or in the DVI output or both?

Richard


Well, I think I have hit the LyX/Babel bug/feature again. I have a 
babel declaration in my standard preamble, which declares both English 
and Italian, with English coming last. That seems to be the problem. 
selecting Italian in the language pane of the LyX settings also passes 
the Italian option to the document class I am using (koma-book). I 
can get the proper Italian-language label only if I:


1. Export to Latex
2. delete the Italian language option from the documentclass declaration
3. rearrange the language options to Babel to have italian coming in 
last.



Everything else I tried seems to fail, including omitting the babel 
declaration altogether.


Surely there must be a better way?

Cheers,

S.







--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



__
Stefano Franchi
Department of Philosophy  Ph:  (64)  9 373-7599 x83940
University Of Auckland  Fax: (64) 9 373-8768
Private Bag 92019   [EMAIL PROTECTED]
Auckland
New Zealand 



Re: Having my own layout removes navigation in LyX 1.4.2 SOLVED LeftMargin

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 09:27, Jean-Marc Lasgouttes wrote:
  Steve == Steve Litt [EMAIL PROTECTED] writes:

 Steve Unknown alignment `LeftMargin'
 Steve [around line 13 of file /tmp/lyx_tmpdir6058ekMlTP/605827MUiz]
 Steve [EMAIL PROTECTED] tsjustfacts]$

 Try to move the hash mark in the line below
   #Align Block   # Left aligned in LyX input
 to the first column.

 JMarc

Thanks Jean-Marc,

It turned out the problem was caused by my inclusion of an AlignPossible 
directive. When I removed that, not only did the warning disappear, but my 
LeftMargin and RightMargin directives started including the proper 
indentation within the LyX editor. I have no idea what AlignPossible does, 
but in my case it caused more harm than good.

Thanks again for all the help.

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Alt key stuck

2007-02-06 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:
Hi I have something weird going on - 


whenever I press one of the following keys - pskxcm - and as far as I
can tell only those keys, Lyx thinks I had Meta-keyed instead. (e.g. I
press s and get Alt+S options: T Shift+S ... etc.)

tried clean reinstall, no good.

using Windows XP, tried with LyxWin1435Small-2-9 and ver 1435 from
lyx.org.

otherwise everything seems to be working.

Any ideas?

Seth


I assume this happens only in LyX.  Does Tools - Preferences... - Look 
and feel - Keyboard indicate that you are using a key map?


/Paul



Re: Slide number in beamer presentation

2007-02-06 Thread Paul A. Rubin

Paul Smith wrote:

Dear All

How can one add a slide number for each slide in the very basic
attached beamer presentation?

Thanks in advance,

Paul


Is this what you want?  (The change is in the preamble.)  Note that this 
is not necessarily how I would do it using one of the prefab themes.


/Paul


beamer_example.lyx
Description: application/lyx


Re: Font problems of pdf-files generated on Mac

2007-02-06 Thread Nick Hopton
In a recent message [EMAIL PROTECTED], 
Anders Ekberg [EMAIL PROTECTED] wrote.


I have a more and more annoying problem. The pdf-files I create works 
for about 90% of the colleagues I send them to. But on some computers 
(or rather installations) the fonts get messed up. This has always been 
on Windows machines (but that could be because almost all my colleagues 
use that).
The problem can be that all text is typeset in a mono-spaced font, or 
that the math-fonts disappear, or in printing (mainly I get described 
by mail, so I can not get the details of the problem, but it seems to 
differ).
An example is the file on http://homepage.mac.com/anek/Download/ 
Litteratur_utm_brottmek.pdf which, when I brought it up in Acrobat 
Viewer (via IE) on a Windows machine, looked fine on screen, but then 
printed with a mono-spaced font.
The problem has occurred with various versions of LyX 1.4 and with 
different templates and ways to generate pdf (pdflatex, via dvi, via 
postscript, etc).


Has anyone experienced anything similar. Or better still, does anyone 
know about a cure?!
(The one I have is opening the file in GraphicConverter, saving as Tif, 
re-opening and printing as pdf, but this is not really ideal...)

[...]

Hello Anders, your file printed fine here using Adobe Reader 7. 
Everything lined up neatly on the RH margin and printed nicely with a 
proportionally-spaced Roman font. Perhaps it's not a LyX/LaTeX problem? 
Tell you what, it might be worth changing the language settings in Adobe 
Reader to English, this is what I'm using. Just a thought.


Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
[EMAIL PROTECTED]



Re: Slide number in beamer presentation

2007-02-06 Thread Paul Smith

On 2/6/07, Paul A. Rubin [EMAIL PROTECTED] wrote:

 How can one add a slide number for each slide in the very basic
 attached beamer presentation?

Is this what you want?  (The change is in the preamble.)  Note that this
is not necessarily how I would do it using one of the prefab themes.


That is great! Thanks, Paul.

Paul


Re: Entering foreign language characters

2007-02-06 Thread bruce . weller




 Neal Becker [EMAIL PROTECTED] wrote:
 
 I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to 
 enter a
 few special accented characters?  My language and document is english, 
 but
 let's say I'd like to enter a few spanish symbols.  I know I can do this
 with special latex, but is there a more generic (and newbie friendly) 
 way?


Neal, 

This atachment may assist. 


Accent insertion.lyx
Description: application/lyx


Re: Slide number in beamer presentation

2007-02-06 Thread Paul Smith

On 2/6/07, Paul Smith [EMAIL PROTECTED] wrote:

  How can one add a slide number for each slide in the very basic
  attached beamer presentation?

 Is this what you want?  (The change is in the preamble.)  Note that this
 is not necessarily how I would do it using one of the prefab themes.

That is great! Thanks, Paul.


If am not abusing, how to add to the foot line the name of the
presentation's author?

Paul


Re: Entering foreign language characters

2007-02-06 Thread David L. Johnson

[EMAIL PROTECTED] wrote:





Neal Becker [EMAIL PROTECTED] wrote:

I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to 
enter a
few special accented characters?  My language and document is english, 
but

let's say I'd like to enter a few spanish symbols.  I know I can do this
with special latex, but is there a more generic (and newbie friendly) 
way?



Neal, 

This atachment may assist. 


I don't get it, actually.  This would take a lot more effort than using 
ERT for accents.  To get an accented (grave) e in ERT, just enter \`{e}. 
 That seems easier to me.


--

David L. Johnson

Deserves death!  I daresay he does.  Many that live deserve death.
And some that die deserve life.  Can you give it to them?
Then do not be too eager to deal out death in judgement.
  -- J. R. R. Tolkein


Re: Entering foreign language characters

2007-02-06 Thread John Coppens
On Tue, 06 Feb 2007 19:28:29 -0500
David L. Johnson [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  
  
  
  Neal Becker [EMAIL PROTECTED] wrote:
 
  I'm using lyx-1.4.3 on Fedora with kde.  What is the easiest way to 
  enter a
  few special accented characters?  My language and document is
  english, but
  let's say I'd like to enter a few spanish symbols.  I know I can do
  this with special latex, but is there a more generic (and newbie
  friendly) way?
  
  
  Neal, 
  
  This atachment may assist. 
 
 I don't get it, actually.  This would take a lot more effort than using 
 ERT for accents.  To get an accented (grave) e in ERT, just enter \`
 {e}. That seems easier to me.

I've noticed that in many keyboards Ctl-.  (Ctl + decimal point) is
defined as the Compose character. Try to enter the è as:

Ctl-. e `or reversed:  Ctl-. ` e

If necessary, it's possible to define another character as Compose (or,
more 'modern', as MultiKey). I think this is even easier that ERT, and
the character appears as such on the screen.

John


Re: Entering foreign language characters

2007-02-06 Thread David L. Johnson

John Coppens wrote:


I've noticed that in many keyboards Ctl-.  (Ctl + decimal point) is
defined as the Compose character. Try to enter the è as:

Ctl-. e `or reversed:  Ctl-. ` e

If necessary, it's possible to define another character as Compose (or,
more 'modern', as MultiKey). I think this is even easier that ERT, and
the character appears as such on the screen.

John


Doesn't work for me (debian linux/american keyboard).

--

David L. Johnson

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.  -- Douglas Adams


Re: .tex to .lyx to .tex problem

2007-02-06 Thread Enrico Forestieri
Kevin Paunovic writes:
 
 I start from a .tex latex file that contains:
 \lipsum[11] blahblah
 
 I import this in LyX.
 
 Then I export the .lyx file to plain latex (.tex) and I find this line:
 \lipsum{[}11]
 
 This seems to be due to the fact \lipsum command don't take arguments  
 but a unique optional argument (between square brackets). So LyX may  
 consider, as no '{' was found after \lipsum, that lipsum command  
 takes the next char as argument (the opening square bracket) and puts  
 it between accolades. Maybe there is a way to fix this a simple way?

You must teach LyX the syntax of your command. The most simple way is
copying the syntax.default file from the system directory to your personal
.lyx directory and add at the very bottom the single line

\lipsum[]

However, if you do so, from now on the system syntax.default file is not
read anymore, which may be a problem when you upgrade. So, it is better
that you create a file containing only the line above and then modify
the LaTeX-LyX converter in Tools-Preferences-Converters. Most probably
this converter is defined as tex2lyx -f $$i $$o and you should change it
to read tex2lyx -s /path/to/your/syntax.file -f $$i $$o, where
/path/to/your/syntax.file is the file above containing that single line
(of course you can also add to it the syntax of other commands, one per line).
If you are on *nix, man tex2lyx is your friend.

HTH

-- 
Enrico



Re: How to get Contents and similar labels in other languages?

2007-02-06 Thread Enrico Forestieri
Stefano Franchi writes:

 Well, I think I have hit the LyX/Babel bug/feature again. I have a 
 babel declaration in my standard preamble, which declares both English 
 and Italian, with English coming last. That seems to be the problem. 
 selecting Italian in the language pane of the LyX settings also passes 
 the Italian option to the document class I am using (koma-book). I 
 can get the proper Italian-language label only if I:
 
 1. Export to Latex
 2. delete the Italian language option from the documentclass declaration
 3. rearrange the language options to Babel to have italian coming in 
 last.
 
 Everything else I tried seems to fail, including omitting the babel 
 declaration altogether.
 
 Surely there must be a better way?

I cannot reproduce your problem. Using the .lyx file pasted at the bottom,
I correctly get Indice instead of Contents in the output.

-- 
Enrico


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

\begin_body

\begin_layout Standard
\begin_inset LatexCommand \tableofcontents{}

\end_inset


\end_layout

\begin_layout Chapter
Titolo
\end_layout

\begin_layout Standard
blah 
\lang english
blah
\end_layout

\end_body
\end_document




Re: Entering foreign language characters

2007-02-06 Thread John Coppens
On Tue, 06 Feb 2007 21:13:47 -0500
David L. Johnson [EMAIL PROTECTED] wrote:

 Doesn't work for me (debian linux/american keyboard).

If you feel like it, try to check if you have a file in your home
directory called .Xmodmap (it's a hidden file). If so, add the following
line, else create it:

keycode 116 = Multi_key

This defines the right 'Windows' key as composition key, and should be
enough to be do   WinKey e `   to compose è.

You'll have to activate it with

xmodmap ~/.Xmodmap(this normally happens when X opens automatically)

I hope this works for you... It did for me for all versions of LyX,
except the last one. But it seems I am an exception.

John


Re: Entering foreign language characters

2007-02-06 Thread David L. Johnson

John Coppens wrote:

On Tue, 06 Feb 2007 21:13:47 -0500
David L. Johnson [EMAIL PROTECTED] wrote:


Doesn't work for me (debian linux/american keyboard).


If you feel like it, try to check if you have a file in your home
directory called .Xmodmap (it's a hidden file). If so, add the following
line, else create it:

keycode 116 = Multi_key

This defines the right 'Windows' key as composition key, and should be
enough to be do   WinKey e `   to compose è.


Cool.   It works, except that it is Winkey-` e rather than the other way 
around.


--

David L. Johnson

Let's be straight here.  If we find something we can't understand
we like to call it something you can't understand,
or indeed even pronounce.  -- Douglas Adams


Re: Entering foreign language characters

2007-02-06 Thread John Coppens
On Tue, 06 Feb 2007 23:14:45 -0500
David L. Johnson [EMAIL PROTECTED] wrote:

 Cool.   It works, except that it is Winkey-` e rather than the other
 way around.

That depends on if the combinations are defined - in my case both
work. There's a lot of fun to be had with combinations. Try things
like Winkey 1 2 to get a 'half' and Winkey + - to get ±...

The composition tables in my distro reside in
/usr/share/kbd/keymaps/include

eg. compose.latin1

Rgds
John


Re: How to keeping Enumerate items together?

2007-02-06 Thread Jean-Marc Lasgouttes
> "Steve" == Steve Litt <[EMAIL PROTECTED]> writes:

Steve> Hi all, In my book created with the Book document class, I have
Steve> a four item bullet list in environment Itemize. It pagebreaks
Steve> after the second item, and even more lame than that, the next
Steve> page is consumed with a graphic float, so the reader has to
Steve> skip 2 pages to see the other two items.

There is probably a way to make the stick together, but then you will
probably have whitespace of bad formatting on the page. What I do in
such cases is keep the problem for when the text is completely
finished and then think about how I could move a few sentences around
until it works :)

Steve> Within my layout file, is there a simple way I can modify the
Steve> Itemize environment so it tries hard not to break in the
Steve> middle?

You can probably add \nopagebreak as ERT in the relevant items. I
never tried it myself.

The TeX FAQ has an interesting discussion on the subject:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopagebrk

JMarc


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
> "Steve" == Steve Litt <[EMAIL PROTECTED]> writes:

Steve> Hi all, As you all remember, when I switched to LyX 1.4.2 I
Steve> griped that one of my books no longer had navigation.

Steve> Now the other shoe dropped. I've been writing a new book, using
Steve> the book document class in LyX 1.4.2, and everything went well,
Steve> with navigation and everything. Then I created my own layout
Steve> file, deriving a tsjsbook layout derived from the book class.
Steve> My new layout was minimal -- it did nothing except create a new
Steve> environment called Story, which worked perfectly well when
Steve> converting to dvi.

Could you show us this layout file? 

Steve> Trouble is, now when I try to do navigation in LyX itself,
Steve> there's no navigation. The Nativate menu item lists only
Steve> Bookmarks, Next Note, and List of Figures.

This shows that your sectioning layouts do not have a TocLevel entry. 

Are you sure that you do not have copies of the standard layout/inc
files in your .lyx directory?

Steve> Also, one of my first books no longer works at all -- with the
Steve> text going right up to the top of the page on every page.

This is very strange. Do you have a small example file that exhibits
that behavior?

JMarc


Re: tables: multirow ok, but multiline?

2007-02-06 Thread Nick Hopton
In a recent message <[EMAIL PROTECTED]>, Uwe Stöhr 
<[EMAIL PROTECTED]> wrote.


[...]
The I can recommend to recompile LyX and test out a more recent LyX 1.5 
version, we made big efforts the last weeks.


There's also a manual version for LyX 1.5:

http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/doc/EmbeddedObjects.lyx

[...]

It might be easier to get the PDF from:

http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects

Regards,
Nick.
--
Nick Hopton and Anne Hopton
Caversham, Reading, England
<[EMAIL PROTECTED]>



Re: changing Xfig figures in LyX

2007-02-06 Thread Philipp Fleig

Hello Georg,

I am sorry for the very late reply, but I was away for the last few  
days!
The file Test.lyx which I had sent to you was correct and also read  
the file TestFig.fig, but for some reason LyX seems to change the  
name of the file from TestFig.fig to LyX when I include it via  
External Material. This can be fixed though, by saving Test.lyx  
before including TestFig.fig.
Still when I do this and then run pdflatex, I get the error, "empty  
output file was created" again. Also a message pops up saying  
somthing like


"Latex Eror: File  
'o_Users_philippfleig_Documents_LyX_Documents_Lab_Figures_TestFig.pdftex 
_t"

and "(cannot \read from terminal in nonstop modes)"

Sorry for bothering you over such a long period of time with this  
problem, but whatever I do it just does not work.

Thank you for your great help!

Philipp


Am 02.02.2007 um 09:57 schrieb Georg Baum:


Philipp Fleig wrote:


Hello,

ok. Attached you find a sample .lyx + xfig file.
When I go to preferences in LyX there are a number of converters,
including some like FIG -> EPS, FIG -> PDFTEX and FIG -> PSTEX, which
I guess would be the relevant ones.


Yes, they are.


I read on http://www.xfig.org/
userman/latex_and_xfig.html something about the psfig package. Could
it be this, which I am missing?


No. Your test file does not include the figure. It includes a file
named ../../../LyX. If I change that to read TestFig.fig, and if I  
save

TestFig.fig in the same directory as Test.lyx, then it works just fine
here.


Georg




Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread José Matos
On Tuesday 06 February 2007 12:13:47 am Steve Litt wrote:
> Then I created my own layout file, deriving a tsjsbook layout
> derived from the book class. My new layout was minimal -- it did nothing
> except create a new environment called Story, which worked perfectly well
> when converting to dvi.

  Just one question Steve, by deriving the new layout you mean copy and 
pasting or "including" it and then performing the different tweaks?

-- 
José Abílio


Slide number in beamer presentation

2007-02-06 Thread Paul Smith

Dear All

How can one add a slide number for each slide in the very basic
attached beamer presentation?

Thanks in advance,

Paul


beamer_example.lyx
Description: application/lyx


Command line options

2007-02-06 Thread Hellmut Weber
Hi list,
who can tell me where i can find a list of command line options lyx accepts?

I do know about '--export latex' (and do use it a lot), but i would like
e.g. to ask lyx from the command line to reconfigure.

I googled for 'lyx command line' but didn't get any reasonable result.
Neither could I find a list of that sort in the official documentation.

TIA

Hellmut


Dr. Hellmut Weber
Degenfeldstraße 2, D - 80803 München-Schwabing
tel (+49 89) 3081172, mobil (+49 172) 8450321
[EMAIL PROTECTED]
--

Please, if possible, don't send me MS Word or Powerpoint attachments.
Send plain text, rich text format, html, or pdf instead.
Why? See: http://www.gnu.org/philosophy/no-word-attachments.html
-- 
As an alternative to MS Word or Powerpoint.
LyX, OpenOffice, also useable with Windows ;-)



Re: Command line options

2007-02-06 Thread christian . ridderstrom

On Tue, 6 Feb 2007, Hellmut Weber wrote:


Hi list,
who can tell me where i can find a list of command line options lyx accepts?

I do know about '--export latex' (and do use it a lot), but i would like
e.g. to ask lyx from the command line to reconfigure.

I googled for 'lyx command line' but didn't get any reasonable result.
Neither could I find a list of that sort in the official documentation.


Have you tried

lyx --help

and
man lyx

/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Crash when using TitlelatexCommand in layout def

2007-02-06 Thread Kevin Paunovic

Hi,
I'm having problems when using TitleLatexCommand in my .layout file.

I use the command \coverpage instead of \maketitle to generate the  
title page. This command is defined in my .sty file (included in the  
Preamble section of the layout file).


Everything goes well until I specify "TitleLatexCommandcoverpage"  
in my layout file. When doing this, LyX can't create/convert a  
document to my own class named ezbook (a customized book class that  
uses ezstyle.sty). it raises the following error message:

"The document could not be converted into the document class ezbook."

When loading a .lyx file that uses ezbook class (but done prior  
adding TitleLatexCommand to the layout file), LyX crashes after saying:
"Using the default document class, because the  class ezbook could  
not be loaded."


I thought I had done something the wrong way, but it's strange that  
removing TitleLatexCommand line solve this (it solves the problem of  
crashing the app, but of course, it doesn't solve using a custom  
title command :)


Any one could help?

A.D.


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 04:49, Jean-Marc Lasgouttes wrote:
> > "Steve" == Steve Litt <[EMAIL PROTECTED]> writes:
>
> Steve> Hi all, As you all remember, when I switched to LyX 1.4.2 I
> Steve> griped that one of my books no longer had navigation.
>
> Steve> Now the other shoe dropped. I've been writing a new book, using
> Steve> the book document class in LyX 1.4.2, and everything went well,
> Steve> with navigation and everything. Then I created my own layout
> Steve> file, deriving a tsjsbook layout derived from the book class.
> Steve> My new layout was minimal -- it did nothing except create a new
> Steve> environment called Story, which worked perfectly well when
> Steve> converting to dvi.
>
> Could you show us this layout file?

It's at the bottom of the email. Note that in order to rule out my "story" 
LaTeX environment, I had this LyX environment refer to the built-in 
LaTeX "quotation" environment.

SteveT


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

Input stdclass.inc
### BEGIN LYX STUFF ### {{{1

Style Story
  LatexType Environment# This is an environment
#  LatexName story  # The latex env LyX Story wraps
  LatexName quotation
  AlignPossible Left   # ONLY left aligned in LyX input
  #Align Block   # Left aligned in LyX input
  LeftMargin"MM"# Left margin width of 5 'M's in LyX
  RightMargin   "M"# Right margin width of 5 'M's in LyX
  ParSkip   0.7# Paragraph skip .7in in LyX
  ParSep0.7# Paragraph separation .7in in LyX
  TopSep0.7# Page top separation .7in in LyX
  BottomSep 0.7# Page top separation .7in in LyX

  Font
   Series   Medium # Non-bold on LyX input screen
   ShapeItalic # Italic   on LyX input screen
   Size Normal # Normal size on LyX input screen
  EndFont
End
### END LYX STUFF ### }}}1



Re: Crash when using TitlelatexCommand in layout def

2007-02-06 Thread Jean-Marc Lasgouttes
> "Kevin" == Kevin Paunovic <[EMAIL PROTECTED]> writes:

Kevin> Hi, I'm having problems when using TitleLatexCommand in my
Kevin> .layout file.

Kevin> I use the command \coverpage instead of \maketitle to generate
Kevin> the title page. This command is defined in my .sty file
Kevin> (included in the Preamble section of the layout file).

Kevin> Everything goes well until I specify "TitleLatexCommand
Kevin> coverpage" in my layout file. When doing this, LyX can't
Kevin> create/convert a document to my own class named ezbook (a
Kevin> customized book class that uses ezstyle.sty). it raises the
Kevin> following error message: "The document could not be converted
Kevin> into the document class ezbook."

Kevin> When loading a .lyx file that uses ezbook class (but done prior
Kevin> adding TitleLatexCommand to the layout file), LyX crashes after
Kevin> saying: "Using the default document class, because the class
Kevin> ezbook could not be loaded."

Kevin> I thought I had done something the wrong way, but it's strange
Kevin> that removing TitleLatexCommand line solve this (it solves the
Kevin> problem of crashing the app, but of course, it doesn't solve
Kevin> using a custom title command :)

I guess there is an error in your layout file. You should be able to
see it by using Console.app (you are on a mac, right?). Once we know
what the error is, I'm sure we will come up with a solution.

JMarc


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Steve Litt
On Tuesday 06 February 2007 05:51, José Matos wrote:
> On Tuesday 06 February 2007 12:13:47 am Steve Litt wrote:
> > Then I created my own layout file, deriving a tsjsbook layout
> > derived from the book class. My new layout was minimal -- it did nothing
> > except create a new environment called Story, which worked perfectly well
> > when converting to dvi.
>
>   Just one question Steve, by deriving the new layout you mean copy and
> pasting or "including" it and then performing the different tweaks?

Hi José,

I'm not sure what you mean by the two alternatives above, so let me just tell 
you what I did.

I created a small tsjfbooks.layout file in the books's directory. I then did 
this:

ln -s /mybook/tsjfbooks.layout /home/slitt/.lyx/layouts/tsjfbooks.layout

I then Tools->Reconfigure, then opened the LyX file, then 
Document->settings->DocumentClass and chose tsjfbooks.layout, and was able to 
use my Story environment. But the bad news is my navigation went away.

I'll give one other clue. When I open the LyX file with LyX, calling LyX from 
a (Linux) command prompt, I get abunch of warnings:

[EMAIL PROTECTED] tsjustfacts]$ lyx tsjustfacts.lyx
New counter already exists: part
New counter already exists: chapter
New counter already exists: section
New counter already exists: subsection
New counter already exists: subsubsection
New counter already exists: paragraph
New counter already exists: subparagraph
New counter already exists: enumi
New counter already exists: enumii
New counter already exists: enumiii
New counter already exists: enumiv
New counter already exists: bibitem
New counter already exists: figure
New counter already exists: table
New counter already exists: algorithm
New counter already exists: equation
LyX: Unknown alignment `LeftMargin' [around line 13 of 
file /tmp/lyx_tmpdir6058ekMlTP/605827MUiz]
[EMAIL PROTECTED] tsjustfacts]$






-- 
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

(Legal Disclaimer) Follow these suggestions at your own risk.


Re: Having my own layout removes navigation in LyX 1.4.2

2007-02-06 Thread Jean-Marc Lasgouttes
> "Steve" == Steve Litt <[EMAIL PROTECTED]> writes:

Steve> It's at the bottom of the email. Note that in order to rule out
Steve> my "story" LaTeX environment, I had this LyX environment refer
Steve> to the built-in LaTeX "quotation" environment.

I suggest that you start with
  Format 2
  Input stdclass.inc
  Input numreport.inc
or even maybe
  Input book.layout

JMarc


[announce] LyX150alpha from 05-02-2007 for Windows

2007-02-06 Thread Uwe Stöhr

Hello LyXTesters,

I published a new version with LyX1.5.0alpha from 05-02-2007:

http://developer.berlios.de/project/showfiles.php?group_id=5117_id=12178

This is mainly a bugfix release to the bug I accidentally introduced in
the last release from 04-02-2007.

If you still have python problems, or problems with PDF viewers, or problems on installing it on 
Windows Vista, report this with CC to my private email adress.

I'm off by now for a few days from this list.

---

Here are the other changes:

- LyX 1.5alpha from 05-02-2007

- updated to ImageMagick 6.3.2-3

- installer bugfix introduced in the last releases (01-02-2007 and 04-02-2007):
  deliver correct python25.dll and python.exe
- hopefully correct fix to the bug that other PDF viewers than Acrobat/Adobe 
Reader
  and GSView weren't recognized

---

happy testing and best regards
Uwe

--- disclaimer ---
LyX' test builds are for testers and interested LyXers to see the new
features.
If you find bugs, please have a look at
http://bugzilla.lyx.org
and report them there if they aren't already reported.

Note! LyX150alpha is still in alpha state, that means it is under very
active development. Therefore things can change every day, so
don't use LyX1.5svn for production!



  1   2   >