Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Jean-Marc Lasgouttes
 John == John McCabe-Dansted [EMAIL PROTECTED] writes:

John On 9/22/06, Juergen Spitzmueller [EMAIL PROTECTED] wrote:
 John McCabe-Dansted wrote:  Wierd. I get nothing but a config
 directory and a development  directory. I can't find a configure
 script anywhere.

John Yes it was a bug in KDE Konqueror (or its plugins). Normal unix
John works fine.

This is because our tar file is in ustar format (contains very large
path names). GNU tar handles this correctly, but some tar utils fail.

We should provide a proper installation target for the OSX bundle to
handle that, but I never had time to do it.

JMarc


Re: optional arguments for theorems?

2006-09-22 Thread Jean-Marc Lasgouttes
 John == John Perry [EMAIL PROTECTED] writes:

John Hello, It is not uncommon in LaTeX to include optional arguments
John to theorem-like environments, for example

John\begin{theorem}[Buchberger, 1965] ... \end{theorem}

This is something we should support natively indeed. The last time I
looked at it, it was a bit too complicated for my taste and I gave up :)

JMarc


Re: Problem with Algorithm label language

2006-09-22 Thread Ares

Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote


Could you try to play with the ordering of the various bits in the
preamble of the TeX file? One reason why we do not support hyperref
directly yet is that loading order seems to be difficult to get right.



there's not much to play with. if I load hyperref in the preamble, I get
everything correct until it comes to the \ref{alg:label} command, where I
get the undefined control sequence error message, as if hyperref
overwrites the alg mechanism but not the other label/references.

Juergen Spitzmueller [EMAIL PROTECTED] wrote


I still don't understand. Please send me a stripped down version of the


document privately.



I attach a sample file in the following. as you can see the label/references
mechanism works fine until the alg stuff.

I hope this helps, and you can help me. Regards,
Diego

- - - - - - - LyX Sample File - - - - - - - -

#LyX 1.4.2 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass book
\begin_preamble
\usepackage[bookmarks]{hyperref}
\end_preamble
\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 Title
Alg label test
\end_layout

\begin_layout Chapter
Test
\end_layout

\begin_layout Standard
This is a test for compatibility of the hyperref package with the alg
package.
\end_layout

\begin_layout Standard
This is a figure
\begin_inset LatexCommand \ref{fig:Sample-figure}

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open

\begin_layout Standard
\begin_inset Graphics
   filename Immagine.bmp

\end_inset


\end_layout

\begin_layout Caption
\begin_inset LatexCommand \label{fig:Sample-figure}

\end_inset

Sample figure
\end_layout

\end_inset


\end_layout

\begin_layout Standard
This is an algorithm
\begin_inset LatexCommand \ref{alg:Test}

\end_inset

.
\end_layout

\begin_layout Standard
\begin_inset Float algorithm
wide false
sideways false
status open

\begin_layout Caption
\begin_inset LatexCommand \label{alg:Test}

\end_inset

Test
\end_layout

\begin_layout Standard
Try this
\end_layout

\begin_layout Standard
Try that
\end_layout

\end_inset


\end_layout

\end_body
\end_document


Beamer / Lyx/ Handouts

2006-09-22 Thread Paul Fenner
Can somebody please point me in the right direction to create handouts from my
beamer presentation. I have tried to follow the Beamer Class Tutorial but I am
getting hopelessly lost. I am using Windows XP / LyX 1.4.
Thank you.
Paul



Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Jean-Marc Lasgouttes
 Paul == Paul Schwartz [EMAIL PROTECTED] writes:

Paul Jean-Marc Lasgouttes [EMAIL PROTECTED] a écrit dans le
Paul message de news: [EMAIL PROTECTED]
  Public release of LyX version 1.4.3
 ===
 

Paul Sorry, but as a neophyte i am not sure to understand what do you
Paul exactly mean with the patch. Shall I understand that I can
Paul upgrade from a - complete installation having used the windows
Paul installer from 1.4.1 to 1.4.2 using the corresponding patch and
Paul then from 1.4.2 to 1.4.3 using the patch below and being
Paul totally up to date for all soft's included in the complete
Paul version installer ?

The patch is only for people who compile from source. Windows users
should (when the windows installer is available) install 1.4.3 over
1.4.2.

JMarc


Re: optional arguments for theorems?

2006-09-22 Thread Helge Hafting

Jean-Marc Lasgouttes wrote:

John == John Perry [EMAIL PROTECTED] writes:



John Hello, It is not uncommon in LaTeX to include optional arguments
John to theorem-like environments, for example

John\begin{theorem}[Buchberger, 1965] ... \end{theorem}

This is something we should support natively indeed. The last time I
looked at it, it was a bit too complicated for my taste and I gave up :)
  

Hm. For each paragraph type, the .layout could specify whether an
optional argument is allowed.  And perhaps even how many.
If so, one should be able to use
the optional argument inset currently only used for short titles.

Do this sound reasonable?

Helge Hafting


Re: optional arguments for theorems?

2006-09-22 Thread Martin Vermeer
On Fri, 2006-09-22 at 11:00 +0200, Helge Hafting wrote:
 Jean-Marc Lasgouttes wrote:
  John == John Perry [EMAIL PROTECTED] writes:
  
 
  John Hello, It is not uncommon in LaTeX to include optional arguments
  John to theorem-like environments, for example
 
  John\begin{theorem}[Buchberger, 1965] ... \end{theorem}
 
  This is something we should support natively indeed. The last time I
  looked at it, it was a bit too complicated for my taste and I gave up :)

 Hm. For each paragraph type, the .layout could specify whether an
 optional argument is allowed.  And perhaps even how many.
 If so, one should be able to use
 the optional argument inset currently only used for short titles.
 
 Do this sound reasonable?
 
 Helge Hafting

Yes, except... currently OptArg is only implemented for LaTeX commands,
not environments. See output_latex.C.

- Martin



signature.asc
Description: This is a digitally signed message part


Re: optional arguments for theorems?

2006-09-22 Thread Georg Baum
Helge Hafting wrote:

 Hm. For each paragraph type, the .layout could specify whether an
 optional argument is allowed.  And perhaps even how many.
 If so, one should be able to use
 the optional argument inset currently only used for short titles.
 
 Do this sound reasonable?

Yes. A request for this is already in bugzilla.


Georg



Re: optional arguments for theorems?

2006-09-22 Thread Jean-Marc Lasgouttes
 Helge == Helge Hafting [EMAIL PROTECTED] writes:

Helge Hm. For each paragraph type, the .layout could specify whether
Helge an optional argument is allowed. And perhaps even how many.
Helge If so, one should be able to use the optional argument inset
Helge currently only used for short titles.

THis is what we do already... but not for environments!

JMarc


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Ingar Pareliussen
fr. 22. september 2006 11:32 skreiv Paul Fenner:
 Can somebody please point me in the right direction to create handouts from
 my beamer presentation. I have tried to follow the Beamer Class Tutorial
 but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.
 Thank you.
 Paul

Install the beamer article layout in your lyx/layout directory.
Reconfigure and change your document class to beamer article.
You can find the beamer_article.layout here:
http://wiki.lyx.org/Layouts/LaTeX-beamer

Ingar


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Paul Fenner wrote:
 Can somebody please point me in the right direction to create handouts from
 my beamer presentation. I have tried to follow the Beamer Class Tutorial
 but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.

To generate simple Handouts (i.e. the slides printed on a sheet), 

1. enter handout to Document-Settings-Class Options

2. enter to the preamble:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

Then View-PDFlatex

(there's a typo at least in my German version of the beamer user guide).

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Robert Orr
Juergen -

Would you happen to have a simple example file to
share?


 
 To generate simple Handouts (i.e. the slides printed
 on a sheet), 
 
 1. enter handout to Document-Settings-Class
 Options
 
 2. enter to the preamble:
 
 \usepackage{pgfpages}
 \pgfpagesuselayout{2 on 1}[a4paper,border
 shrink=5mm]
 
 Then View-PDFlatex
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Problem with Algorithm label language

2006-09-22 Thread Juergen Spitzmueller
Ares wrote:
 there's not much to play with.

The hyperref README says:

6 PACKAGE COMPATIBILITY
===

Currently only package loading orders are available:

[...]

algorithm
-
  \usepackage{float}
  \usepackage{hyperref}
  \usepackage[chapter]{algorithm}

So float (which is modified by hyperref) and hyperref have to be loaded before 
algorithm. The problem is that LyX loads algorithm before the user preamble. 
So your only chance is probably to load the algorithm package yourself (and 
use ERT in the document.

 I attach a sample file in the following. as you can see the
 label/references mechanism works fine until the alg stuff.

Please attach it as a real attachment next time. I won't cut and paste from 
E-Mail to a text editor to get a LyX file.

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Robert Orr wrote:
 Would you happen to have a simple example file to
 share?

Not at hand. What is the problem? Can you send an example file that fails?

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Robert Orr wrote:
 Did you really mean pgfpages  ??

Yes

 It doesn't seem to work for me.  

Then you don't have the package pgf installed.

 But pdfpages does 
 so maybe it is a typo?

No. pgfpages is a subpackage of pgf by the author of beamer.

Jürgen


[ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Bhaskaran, Sreekumar
I am trying to use the windows exe file and it seems like that there is
something amiss. Once I install Lyx, when I click on run Lyx, nothing
happens. I even restarted the machine and then went to program files and
clicked on lyx.bat and the result was same.

When I clicked on lyx.exe, it says that the application configuration
file is wrong. Don't know what I am doing wrong here


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Paul A. Rubin

Juergen Spitzmueller wrote:

Paul Fenner wrote:

Can somebody please point me in the right direction to create handouts from
my beamer presentation. I have tried to follow the Beamer Class Tutorial
but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.


To generate simple Handouts (i.e. the slides printed on a sheet), 


1. enter handout to Document-Settings-Class Options

2. enter to the preamble:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

Then View-PDFlatex

(there's a typo at least in my German version of the beamer user guide).

Jürgen



I use just step 1 to generate handouts (which are one slide to a page). 
 To get multiple slides on a page, I generate the handout file with one 
slide per page, open the file in Acrobat Reader, and print it using a 
drive that outputs a PDF file (PDFCreator in my case).  The printer 
options allow you to do 2, 4 or 6 slides per page, pick paper size, and 
pick portrait or landscape orientation.  If you take this route, be sure 
to select the option to stretch pages to the page margins.


/Paul




MSWord(html) or OpenOffice.Org

2006-09-22 Thread Bob Lounsbury

Hi,

What do you have to do to export in these formats. Neither work for  
me on 1.4.3 with XP.


Thanks,
Bob Lounsbury


Read only mode?

2006-09-22 Thread Rudi Gaelzer
Is there a read only mode for lyx?

From a message sent by Jean-Marc in may, I gathered that there is such a 
thing:
--- snip --
You can use buffer-readonly-toggle (which can even be added as a menu
item or icon).

JMarc
--- snip --

I would like to have the possibility to open a lyx document in read-only mode.  
In fact, I would even like to be able to choose it as the default action.

Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle on 
the minibuffer, I got an Unknown action...

Thanks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Registered linux user # 153741


Re: MSWord(html) or OpenOffice.Org

2006-09-22 Thread TechTonics

Bob Lounsbury wrote:

Hi,

What do you have to do to export in these formats. Neither work for me 
on 1.4.3 with XP.


Thanks,
Bob Lounsbury



I don't think they work. Export the file as .tex from LyX.
Then from the command line htlatex foo.tex = foo.html
which can be directly imported into Word, = foo.doc
htlatex is part of the TeX4ht package:

http://facweb.arch.ohio-state.edu/pviton/support/tex4ht.html
The Miktex update manager can download and install this
if you don't have it. www.miktex.org

I use Word2Tex for converting from .doc to .tex and
LyX can import .tex files. Rtf conversion may work.

Conversions need to be proofread,

Stephen


Re: Read only mode?

2006-09-22 Thread José Matos
On Friday 22 September 2006 19:58, Rudi Gaelzer wrote:
 Is there a read only mode for lyx?

 From a message sent by Jean-Marc in may, I gathered that there is such a
 thing:
 --- snip --
 You can use buffer-readonly-toggle (which can even be added as a menu
 item or icon).

 JMarc
 --- snip --

 I would like to have the possibility to open a lyx document in read-only
 mode. In fact, I would even like to be able to choose it as the default
 action.

  When I want a document in read only permanently I remove the write flags 
from its properties.

$ chmod a-w file

in linux and other unices...

  LyX recognises this and acts accordingly. :-)

 Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
 on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

 Thanks.

-- 
José Abílio


Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 16:16, José Matos wrote:
   When I want a document in read only permanently I remove the write flags
 from its properties.

 $ chmod a-w file

 in linux and other unices...

Well, thanks anyway, I know that and it's not what I want...

   LyX recognises this and acts accordingly. :-)

  Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
  on the minibuffer, I got an Unknown action...

 In minibuffer tab is your friend. :-)
 buffer-toggle-read-only
That works.  The syntax is slightly different from what I used.

  Thanks.

And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?

Thanks again.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul Schwartz

Jean-Marc Lasgouttes [EMAIL PROTECTED] a écrit 
dans le message de news: [EMAIL PROTECTED]
 Paul == Paul Schwartz [EMAIL PROTECTED] 
 writes:

Paul Jean-Marc Lasgouttes [EMAIL PROTECTED] a 
écrit dans le
Paul message de news: 
[EMAIL PROTECTED]
  Public release of LyX version 1.4.3
 ===


Paul Sorry, but as a neophyte i am not sure to understand what do you
Paul exactly mean with the patch. Shall I understand that I can
Paul upgrade from a - complete installation having used the windows
Paul installer from 1.4.1 to 1.4.2 using the corresponding patch and
Paul then from 1.4.2 to 1.4.3 using the patch below and being
Paul totally up to date for all soft's included in the complete
Paul version installer ?

The patch is only for people who compile from source. Windows users
should (when the windows installer is available) install 1.4.3 over
1.4.2.

JMarc

Sorry to disturb again and coming back so far but when I installed 1.3.7, I 
used the uninstaller program supplied with the former version to uninstall 
it.
Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
1.3.7.
However in 1.4.1, I just have an icon and nothing else and I am sure that it 
is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.
My question is how to unistall it properly (the one supplied with the 
complete version installer for windows without compiling). May I use the 
unistaller supplied with 1.3.7 or have you an better suggestion.

Thanks

Paul





Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul A. Rubin

Paul Schwartz wrote:



Sorry to disturb again and coming back so far but when I installed 1.3.7, I 
used the uninstaller program supplied with the former version to uninstall 
it.
Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
1.3.7.
However in 1.4.1, I just have an icon and nothing else and I am sure that it 
is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.


Personally, I have 1.4.1, 1.4.2 and 1.4.3 installed in parallel, with no 
major problems.  (They all share configuration info, so preference 
changes in one apply to all, but to date I have not found any conflicts 
there.)


Interestingly, I have uninstallers for 1.4.1 and 1.4.3, but not for 1.4.2.

My question is how to unistall it properly (the one supplied with the 
complete version installer for windows without compiling). May I use the 
unistaller supplied with 1.3.7 or have you an better suggestion.


The 1.3.7 uninstaller is unlikely to know what to do to uninstall 1.4.1.

Have you checked Control Panel-Add/Remove Programs to make sure that 
1.4.1 is not listed there?  If it is, you should be able to uninstall it 
from there.


I just crawled my registry and didn't find anything particularly funky 
associated with the directory in which I have 1.4.1 installed.  So if I 
wanted to delete 1.4.1 and lacked the installer, here's what I would do: 
 install 1.4.3 first (in a different directory) and make sure it works 
(!); note down the path to 1.4.1 and then delete its root directory and 
all subdirectories; then either (a) quit while I'm ahead and live with a 
little harmless clutter in the registry or (b) run a registry cleaner 
program that hopefully would delete any keys referring to the now 
nonexistent 1.4.1 directory or (c) run regedit, search for all 
references to the deleted directory and manually delete them.


HTH,
Paul



Re: Read only mode?

2006-09-22 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

That works.  The syntax is slightly different from what I used.

Thanks.


And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?




(Note:  I have not tested the following.) I think you can edit 
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu, 
something like


Item Toggle read-only|Q buffer-toggle-read-only

(perhaps changing Q to a more salubrious hot key, or omitting it).  I 
would save the hacked file in the ui subfolder under your home 
directory, so that it would survive reinstallations and upgrades.


On the other hand, the path of least resistance might be simply to use
File-New from template... to open documents you don't want to modify. 
The resulting file is writable, but it gets a default name (e.g. 
newfile1.lyx), so inadvertently saving it will at worst clutter your 
drive a bit.


/Paul



LyX 1.4.3/Aspell problem (WinXP)

2006-09-22 Thread Paul A. Rubin

Hi,

I just installed 1.4.3 in parallel with 1.4.2 and 1.4.1.  (As usual, 
thanks to the developers for cranking out another new and improved 
version, and to all involved with the Windows port.)  During the 
installation process, I think the installer parked some Aspell-related 
files under C:\Documents and Settings\what_a_handsome_guy\Application 
Data\Aspell.  That is to say, the files are there now, I don't remember 
if they were there before, and during the installation progress report I 
think I saw something on the what I'm up to line about something going 
in up there.


I already had Aspell 0.50, the necessary bits of 0.60, and assorted 
dictionaries installed under C:\Aspell.  The problem is, when I try to 
check spelling in 1.4.3, I'm informed that 'No word lists can be found 
for the language en_US'.  On the other hand, 1.4.2 (which is using the 
same preferences file etc.) seems to have no trouble finding them.  I'm 
hoping I don't have to reinstall Aspell each time there's an upgrade to 
LyX.  Any ideas what I can do to cure this?


Thanks,
Paul (whose spelling, while good, is not entirely perfect)



Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 18:24, Paul A. Rubin wrote:

 (Note:  I have not tested the following.) I think you can edit
 .../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
 something like

 Item Toggle read-only|Q buffer-toggle-read-only

That works!  I made a copy of /usr/share/lyx/ui/stdmenus.ui to ~/.lyx/ui/ and 
included the Item as you suggested (using T  instead of Q as shortcut) 
and it works.  Now I can happily toggle to and fro the read-only mode...

Thanks a lot, Paul.

 (perhaps changing Q to a more salubrious hot key, or omitting it).  I
 would save the hacked file in the ui subfolder under your home
 directory, so that it would survive reinstallations and upgrades.

 On the other hand, the path of least resistance might be simply to use
 File-New from template... to open documents you don't want to modify.
 The resulting file is writable, but it gets a default name (e.g.
 newfile1.lyx), so inadvertently saving it will at worst clutter your
 drive a bit.

 /Paul

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul Schwartz

Paul A. Rubin [EMAIL PROTECTED] a écrit dans le message 
de news: [EMAIL PROTECTED]
 Paul Schwartz wrote:


 Sorry to disturb again and coming back so far but when I installed 1.3.7, 
 I used the uninstaller program supplied with the former version to 
 uninstall it.
 Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
 1.3.7.
 However in 1.4.1, I just have an icon and nothing else and I am sure that 
 it is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.

 Personally, I have 1.4.1, 1.4.2 and 1.4.3 installed in parallel, with no 
 major problems.  (They all share configuration info, so preference changes 
 in one apply to all, but to date I have not found any conflicts there.)

 Interestingly, I have uninstallers for 1.4.1 and 1.4.3, but not for 1.4.2.

 My question is how to unistall it properly (the one supplied with the 
 complete version installer for windows without compiling). May I use the 
 unistaller supplied with 1.3.7 or have you an better suggestion.

 The 1.3.7 uninstaller is unlikely to know what to do to uninstall 1.4.1.

 Have you checked Control Panel-Add/Remove Programs to make sure that 
 1.4.1 is not listed there?  If it is, you should be able to uninstall it 
 from there.

 I just crawled my registry and didn't find anything particularly funky 
 associated with the directory in which I have 1.4.1 installed.  So if I 
 wanted to delete 1.4.1 and lacked the installer, here's what I would do: 
 install 1.4.3 first (in a different directory) and make sure it works (!); 
 note down the path to 1.4.1 and then delete its root directory and all 
 subdirectories; then either (a) quit while I'm ahead and live with a 
 little harmless clutter in the registry or (b) run a registry cleaner 
 program that hopefully would delete any keys referring to the now 
 nonexistent 1.4.1 directory or (c) run regedit, search for all references 
 to the deleted directory and manually delete them.

 HTH,
 Paul


Thanks for the detailed comments.
Regarding  Add/Remove Programs, you are right, it can be done from there, 
however when there is an uninstaller in a program, I do prefer to use it.
To go a bit further (pse don't sigh):
In fact there is so many aside programs with LyX that I am always afraid 
to miss one and for that reason, till today, each time I have fully update 
(reinstalling everything).
But, if I follow you properly, when you have got one installation, let us 
say 1.4.1, you just need to install 1.4.3 and keep former Miktex, 
ImageMagick, Ghostscript, Aspell ( I am not sure ) and GSView or to update 
them directly.
As such I should have just to download LyX 1.4.3. Am I correct ?

Thanks
Paul 





Re: optional arguments for theorems?

2006-09-22 Thread Martin Vermeer
On Fri, Sep 22, 2006 at 11:40:48AM +0200, Jean-Marc Lasgouttes wrote:
  Helge == Helge Hafting [EMAIL PROTECTED] writes:
 
 Helge Hm. For each paragraph type, the .layout could specify whether
 Helge an optional argument is allowed. And perhaps even how many.
 Helge If so, one should be able to use the optional argument inset
 Helge currently only used for short titles.
 
 THis is what we do already... but not for environments!
 
 JMarc

The attached patch would put the infrastructure in place for doing it
for environments too. Seems to work. 

BTW LaTeX output is broken (outputs numbers) in trunk.

Should I check this in?

- Martin

Index: output_latex.C
===
--- output_latex.C  (revision 14992)
+++ output_latex.C  (working copy)
@@ -81,6 +81,10 @@
 }
 
 
+int latexOptArgInsets(Buffer const  buf, Paragraph const  par,
+ ostream  os, OutputParams const  runparams, int number);
+
+
 ParagraphList::const_iterator
 TeXEnvironment(Buffer const  buf,
   ParagraphList const  paragraphs,
@@ -129,6 +133,14 @@
 
if (style-isEnvironment()) {
os  \\begin{  style-latexname()  '}';
+   if (style-optionalargs  0) {
+   int ret = latexOptArgInsets(buf, *pit, os, runparams,
+   style-optionalargs);
+   while (ret  0) {
+   texrow.newline();
+   --ret;
+   }
+   }
if (style-latextype == LATEX_LIST_ENVIRONMENT) {
os  {  pit-params().labelWidthString()  }\n;
} else if (style-labeltype == LABEL_BIBLIO) {


pgpKggx0TZvWI.pgp
Description: PGP signature


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Jean-Marc Lasgouttes
 John == John McCabe-Dansted [EMAIL PROTECTED] writes:

John On 9/22/06, Juergen Spitzmueller [EMAIL PROTECTED] wrote:
 John McCabe-Dansted wrote:  Wierd. I get nothing but a config
 directory and a development  directory. I can't find a configure
 script anywhere.

John Yes it was a bug in KDE Konqueror (or its plugins). Normal unix
John works fine.

This is because our tar file is in ustar format (contains very large
path names). GNU tar handles this correctly, but some tar utils fail.

We should provide a proper installation target for the OSX bundle to
handle that, but I never had time to do it.

JMarc


Re: optional arguments for theorems?

2006-09-22 Thread Jean-Marc Lasgouttes
 John == John Perry [EMAIL PROTECTED] writes:

John Hello, It is not uncommon in LaTeX to include optional arguments
John to theorem-like environments, for example

John\begin{theorem}[Buchberger, 1965] ... \end{theorem}

This is something we should support natively indeed. The last time I
looked at it, it was a bit too complicated for my taste and I gave up :)

JMarc


Re: Problem with Algorithm label language

2006-09-22 Thread Ares

Jean-Marc Lasgouttes [EMAIL PROTECTED] wrote


Could you try to play with the ordering of the various bits in the
preamble of the TeX file? One reason why we do not support hyperref
directly yet is that loading order seems to be difficult to get right.



there's not much to play with. if I load hyperref in the preamble, I get
everything correct until it comes to the \ref{alg:label} command, where I
get the undefined control sequence error message, as if hyperref
overwrites the alg mechanism but not the other label/references.

Juergen Spitzmueller [EMAIL PROTECTED] wrote


I still don't understand. Please send me a stripped down version of the


document privately.



I attach a sample file in the following. as you can see the label/references
mechanism works fine until the alg stuff.

I hope this helps, and you can help me. Regards,
Diego

- - - - - - - LyX Sample File - - - - - - - -

#LyX 1.4.2 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass book
\begin_preamble
\usepackage[bookmarks]{hyperref}
\end_preamble
\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 Title
Alg label test
\end_layout

\begin_layout Chapter
Test
\end_layout

\begin_layout Standard
This is a test for compatibility of the hyperref package with the alg
package.
\end_layout

\begin_layout Standard
This is a figure
\begin_inset LatexCommand \ref{fig:Sample-figure}

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open

\begin_layout Standard
\begin_inset Graphics
   filename Immagine.bmp

\end_inset


\end_layout

\begin_layout Caption
\begin_inset LatexCommand \label{fig:Sample-figure}

\end_inset

Sample figure
\end_layout

\end_inset


\end_layout

\begin_layout Standard
This is an algorithm
\begin_inset LatexCommand \ref{alg:Test}

\end_inset

.
\end_layout

\begin_layout Standard
\begin_inset Float algorithm
wide false
sideways false
status open

\begin_layout Caption
\begin_inset LatexCommand \label{alg:Test}

\end_inset

Test
\end_layout

\begin_layout Standard
Try this
\end_layout

\begin_layout Standard
Try that
\end_layout

\end_inset


\end_layout

\end_body
\end_document


Beamer / Lyx/ Handouts

2006-09-22 Thread Paul Fenner
Can somebody please point me in the right direction to create handouts from my
beamer presentation. I have tried to follow the Beamer Class Tutorial but I am
getting hopelessly lost. I am using Windows XP / LyX 1.4.
Thank you.
Paul



Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Jean-Marc Lasgouttes
 Paul == Paul Schwartz [EMAIL PROTECTED] writes:

Paul Jean-Marc Lasgouttes [EMAIL PROTECTED] a écrit dans le
Paul message de news: [EMAIL PROTECTED]
  Public release of LyX version 1.4.3
 ===
 

Paul Sorry, but as a neophyte i am not sure to understand what do you
Paul exactly mean with the patch. Shall I understand that I can
Paul upgrade from a - complete installation having used the windows
Paul installer from 1.4.1 to 1.4.2 using the corresponding patch and
Paul then from 1.4.2 to 1.4.3 using the patch below and being
Paul totally up to date for all soft's included in the complete
Paul version installer ?

The patch is only for people who compile from source. Windows users
should (when the windows installer is available) install 1.4.3 over
1.4.2.

JMarc


Re: optional arguments for theorems?

2006-09-22 Thread Helge Hafting

Jean-Marc Lasgouttes wrote:

John == John Perry [EMAIL PROTECTED] writes:



John Hello, It is not uncommon in LaTeX to include optional arguments
John to theorem-like environments, for example

John\begin{theorem}[Buchberger, 1965] ... \end{theorem}

This is something we should support natively indeed. The last time I
looked at it, it was a bit too complicated for my taste and I gave up :)
  

Hm. For each paragraph type, the .layout could specify whether an
optional argument is allowed.  And perhaps even how many.
If so, one should be able to use
the optional argument inset currently only used for short titles.

Do this sound reasonable?

Helge Hafting


Re: optional arguments for theorems?

2006-09-22 Thread Martin Vermeer
On Fri, 2006-09-22 at 11:00 +0200, Helge Hafting wrote:
 Jean-Marc Lasgouttes wrote:
  John == John Perry [EMAIL PROTECTED] writes:
  
 
  John Hello, It is not uncommon in LaTeX to include optional arguments
  John to theorem-like environments, for example
 
  John\begin{theorem}[Buchberger, 1965] ... \end{theorem}
 
  This is something we should support natively indeed. The last time I
  looked at it, it was a bit too complicated for my taste and I gave up :)

 Hm. For each paragraph type, the .layout could specify whether an
 optional argument is allowed.  And perhaps even how many.
 If so, one should be able to use
 the optional argument inset currently only used for short titles.
 
 Do this sound reasonable?
 
 Helge Hafting

Yes, except... currently OptArg is only implemented for LaTeX commands,
not environments. See output_latex.C.

- Martin



signature.asc
Description: This is a digitally signed message part


Re: optional arguments for theorems?

2006-09-22 Thread Georg Baum
Helge Hafting wrote:

 Hm. For each paragraph type, the .layout could specify whether an
 optional argument is allowed.  And perhaps even how many.
 If so, one should be able to use
 the optional argument inset currently only used for short titles.
 
 Do this sound reasonable?

Yes. A request for this is already in bugzilla.


Georg



Re: optional arguments for theorems?

2006-09-22 Thread Jean-Marc Lasgouttes
 Helge == Helge Hafting [EMAIL PROTECTED] writes:

Helge Hm. For each paragraph type, the .layout could specify whether
Helge an optional argument is allowed. And perhaps even how many.
Helge If so, one should be able to use the optional argument inset
Helge currently only used for short titles.

THis is what we do already... but not for environments!

JMarc


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Ingar Pareliussen
fr. 22. september 2006 11:32 skreiv Paul Fenner:
 Can somebody please point me in the right direction to create handouts from
 my beamer presentation. I have tried to follow the Beamer Class Tutorial
 but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.
 Thank you.
 Paul

Install the beamer article layout in your lyx/layout directory.
Reconfigure and change your document class to beamer article.
You can find the beamer_article.layout here:
http://wiki.lyx.org/Layouts/LaTeX-beamer

Ingar


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Paul Fenner wrote:
 Can somebody please point me in the right direction to create handouts from
 my beamer presentation. I have tried to follow the Beamer Class Tutorial
 but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.

To generate simple Handouts (i.e. the slides printed on a sheet), 

1. enter handout to Document-Settings-Class Options

2. enter to the preamble:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

Then View-PDFlatex

(there's a typo at least in my German version of the beamer user guide).

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Robert Orr
Juergen -

Would you happen to have a simple example file to
share?


 
 To generate simple Handouts (i.e. the slides printed
 on a sheet), 
 
 1. enter handout to Document-Settings-Class
 Options
 
 2. enter to the preamble:
 
 \usepackage{pgfpages}
 \pgfpagesuselayout{2 on 1}[a4paper,border
 shrink=5mm]
 
 Then View-PDFlatex
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Problem with Algorithm label language

2006-09-22 Thread Juergen Spitzmueller
Ares wrote:
 there's not much to play with.

The hyperref README says:

6 PACKAGE COMPATIBILITY
===

Currently only package loading orders are available:

[...]

algorithm
-
  \usepackage{float}
  \usepackage{hyperref}
  \usepackage[chapter]{algorithm}

So float (which is modified by hyperref) and hyperref have to be loaded before 
algorithm. The problem is that LyX loads algorithm before the user preamble. 
So your only chance is probably to load the algorithm package yourself (and 
use ERT in the document.

 I attach a sample file in the following. as you can see the
 label/references mechanism works fine until the alg stuff.

Please attach it as a real attachment next time. I won't cut and paste from 
E-Mail to a text editor to get a LyX file.

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Robert Orr wrote:
 Would you happen to have a simple example file to
 share?

Not at hand. What is the problem? Can you send an example file that fails?

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Robert Orr wrote:
 Did you really mean pgfpages  ??

Yes

 It doesn't seem to work for me.  

Then you don't have the package pgf installed.

 But pdfpages does 
 so maybe it is a typo?

No. pgfpages is a subpackage of pgf by the author of beamer.

Jürgen


[ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Bhaskaran, Sreekumar
I am trying to use the windows exe file and it seems like that there is
something amiss. Once I install Lyx, when I click on run Lyx, nothing
happens. I even restarted the machine and then went to program files and
clicked on lyx.bat and the result was same.

When I clicked on lyx.exe, it says that the application configuration
file is wrong. Don't know what I am doing wrong here


LyX/Mac 1.4.3 (PPC) released

2006-09-22 Thread Bennett Helm
LyX/Mac 1.4.3 has been released for PPC. You can find the link  
through the wiki, or just download it directly from here:


ftp://ftp.lyx.org/pub/lyx/bin/1.4.3/LyX-1.4.3-Mac-PPC.dmg

Bennett


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Paul A. Rubin

Juergen Spitzmueller wrote:

Paul Fenner wrote:

Can somebody please point me in the right direction to create handouts from
my beamer presentation. I have tried to follow the Beamer Class Tutorial
but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.


To generate simple Handouts (i.e. the slides printed on a sheet), 


1. enter handout to Document-Settings-Class Options

2. enter to the preamble:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

Then View-PDFlatex

(there's a typo at least in my German version of the beamer user guide).

Jürgen



I use just step 1 to generate handouts (which are one slide to a page). 
 To get multiple slides on a page, I generate the handout file with one 
slide per page, open the file in Acrobat Reader, and print it using a 
drive that outputs a PDF file (PDFCreator in my case).  The printer 
options allow you to do 2, 4 or 6 slides per page, pick paper size, and 
pick portrait or landscape orientation.  If you take this route, be sure 
to select the option to stretch pages to the page margins.


/Paul




MSWord(html) or OpenOffice.Org

2006-09-22 Thread Bob Lounsbury

Hi,

What do you have to do to export in these formats. Neither work for  
me on 1.4.3 with XP.


Thanks,
Bob Lounsbury


Read only mode?

2006-09-22 Thread Rudi Gaelzer
Is there a read only mode for lyx?

From a message sent by Jean-Marc in may, I gathered that there is such a 
thing:
--- snip --
You can use buffer-readonly-toggle (which can even be added as a menu
item or icon).

JMarc
--- snip --

I would like to have the possibility to open a lyx document in read-only mode.  
In fact, I would even like to be able to choose it as the default action.

Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle on 
the minibuffer, I got an Unknown action...

Thanks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Registered linux user # 153741


Re: MSWord(html) or OpenOffice.Org

2006-09-22 Thread TechTonics

Bob Lounsbury wrote:

Hi,

What do you have to do to export in these formats. Neither work for me 
on 1.4.3 with XP.


Thanks,
Bob Lounsbury



I don't think they work. Export the file as .tex from LyX.
Then from the command line htlatex foo.tex = foo.html
which can be directly imported into Word, = foo.doc
htlatex is part of the TeX4ht package:

http://facweb.arch.ohio-state.edu/pviton/support/tex4ht.html
The Miktex update manager can download and install this
if you don't have it. www.miktex.org

I use Word2Tex for converting from .doc to .tex and
LyX can import .tex files. Rtf conversion may work.

Conversions need to be proofread,

Stephen


Re: Read only mode?

2006-09-22 Thread José Matos
On Friday 22 September 2006 19:58, Rudi Gaelzer wrote:
 Is there a read only mode for lyx?

 From a message sent by Jean-Marc in may, I gathered that there is such a
 thing:
 --- snip --
 You can use buffer-readonly-toggle (which can even be added as a menu
 item or icon).

 JMarc
 --- snip --

 I would like to have the possibility to open a lyx document in read-only
 mode. In fact, I would even like to be able to choose it as the default
 action.

  When I want a document in read only permanently I remove the write flags 
from its properties.

$ chmod a-w file

in linux and other unices...

  LyX recognises this and acts accordingly. :-)

 Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
 on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

 Thanks.

-- 
José Abílio


Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 16:16, José Matos wrote:
   When I want a document in read only permanently I remove the write flags
 from its properties.

 $ chmod a-w file

 in linux and other unices...

Well, thanks anyway, I know that and it's not what I want...

   LyX recognises this and acts accordingly. :-)

  Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
  on the minibuffer, I got an Unknown action...

 In minibuffer tab is your friend. :-)
 buffer-toggle-read-only
That works.  The syntax is slightly different from what I used.

  Thanks.

And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?

Thanks again.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul Schwartz

Jean-Marc Lasgouttes [EMAIL PROTECTED] a écrit 
dans le message de news: [EMAIL PROTECTED]
 Paul == Paul Schwartz [EMAIL PROTECTED] 
 writes:

Paul Jean-Marc Lasgouttes [EMAIL PROTECTED] a 
écrit dans le
Paul message de news: 
[EMAIL PROTECTED]
  Public release of LyX version 1.4.3
 ===


Paul Sorry, but as a neophyte i am not sure to understand what do you
Paul exactly mean with the patch. Shall I understand that I can
Paul upgrade from a - complete installation having used the windows
Paul installer from 1.4.1 to 1.4.2 using the corresponding patch and
Paul then from 1.4.2 to 1.4.3 using the patch below and being
Paul totally up to date for all soft's included in the complete
Paul version installer ?

The patch is only for people who compile from source. Windows users
should (when the windows installer is available) install 1.4.3 over
1.4.2.

JMarc

Sorry to disturb again and coming back so far but when I installed 1.3.7, I 
used the uninstaller program supplied with the former version to uninstall 
it.
Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
1.3.7.
However in 1.4.1, I just have an icon and nothing else and I am sure that it 
is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.
My question is how to unistall it properly (the one supplied with the 
complete version installer for windows without compiling). May I use the 
unistaller supplied with 1.3.7 or have you an better suggestion.

Thanks

Paul





Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul A. Rubin

Paul Schwartz wrote:



Sorry to disturb again and coming back so far but when I installed 1.3.7, I 
used the uninstaller program supplied with the former version to uninstall 
it.
Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
1.3.7.
However in 1.4.1, I just have an icon and nothing else and I am sure that it 
is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.


Personally, I have 1.4.1, 1.4.2 and 1.4.3 installed in parallel, with no 
major problems.  (They all share configuration info, so preference 
changes in one apply to all, but to date I have not found any conflicts 
there.)


Interestingly, I have uninstallers for 1.4.1 and 1.4.3, but not for 1.4.2.

My question is how to unistall it properly (the one supplied with the 
complete version installer for windows without compiling). May I use the 
unistaller supplied with 1.3.7 or have you an better suggestion.


The 1.3.7 uninstaller is unlikely to know what to do to uninstall 1.4.1.

Have you checked Control Panel-Add/Remove Programs to make sure that 
1.4.1 is not listed there?  If it is, you should be able to uninstall it 
from there.


I just crawled my registry and didn't find anything particularly funky 
associated with the directory in which I have 1.4.1 installed.  So if I 
wanted to delete 1.4.1 and lacked the installer, here's what I would do: 
 install 1.4.3 first (in a different directory) and make sure it works 
(!); note down the path to 1.4.1 and then delete its root directory and 
all subdirectories; then either (a) quit while I'm ahead and live with a 
little harmless clutter in the registry or (b) run a registry cleaner 
program that hopefully would delete any keys referring to the now 
nonexistent 1.4.1 directory or (c) run regedit, search for all 
references to the deleted directory and manually delete them.


HTH,
Paul



Re: Read only mode?

2006-09-22 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

That works.  The syntax is slightly different from what I used.

Thanks.


And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?




(Note:  I have not tested the following.) I think you can edit 
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu, 
something like


Item Toggle read-only|Q buffer-toggle-read-only

(perhaps changing Q to a more salubrious hot key, or omitting it).  I 
would save the hacked file in the ui subfolder under your home 
directory, so that it would survive reinstallations and upgrades.


On the other hand, the path of least resistance might be simply to use
File-New from template... to open documents you don't want to modify. 
The resulting file is writable, but it gets a default name (e.g. 
newfile1.lyx), so inadvertently saving it will at worst clutter your 
drive a bit.


/Paul



LyX 1.4.3/Aspell problem (WinXP)

2006-09-22 Thread Paul A. Rubin

Hi,

I just installed 1.4.3 in parallel with 1.4.2 and 1.4.1.  (As usual, 
thanks to the developers for cranking out another new and improved 
version, and to all involved with the Windows port.)  During the 
installation process, I think the installer parked some Aspell-related 
files under C:\Documents and Settings\what_a_handsome_guy\Application 
Data\Aspell.  That is to say, the files are there now, I don't remember 
if they were there before, and during the installation progress report I 
think I saw something on the what I'm up to line about something going 
in up there.


I already had Aspell 0.50, the necessary bits of 0.60, and assorted 
dictionaries installed under C:\Aspell.  The problem is, when I try to 
check spelling in 1.4.3, I'm informed that 'No word lists can be found 
for the language en_US'.  On the other hand, 1.4.2 (which is using the 
same preferences file etc.) seems to have no trouble finding them.  I'm 
hoping I don't have to reinstall Aspell each time there's an upgrade to 
LyX.  Any ideas what I can do to cure this?


Thanks,
Paul (whose spelling, while good, is not entirely perfect)



Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 18:24, Paul A. Rubin wrote:

 (Note:  I have not tested the following.) I think you can edit
 .../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
 something like

 Item Toggle read-only|Q buffer-toggle-read-only

That works!  I made a copy of /usr/share/lyx/ui/stdmenus.ui to ~/.lyx/ui/ and 
included the Item as you suggested (using T  instead of Q as shortcut) 
and it works.  Now I can happily toggle to and fro the read-only mode...

Thanks a lot, Paul.

 (perhaps changing Q to a more salubrious hot key, or omitting it).  I
 would save the hacked file in the ui subfolder under your home
 directory, so that it would survive reinstallations and upgrades.

 On the other hand, the path of least resistance might be simply to use
 File-New from template... to open documents you don't want to modify.
 The resulting file is writable, but it gets a default name (e.g.
 newfile1.lyx), so inadvertently saving it will at worst clutter your
 drive a bit.

 /Paul

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul Schwartz

Paul A. Rubin [EMAIL PROTECTED] a écrit dans le message 
de news: [EMAIL PROTECTED]
 Paul Schwartz wrote:


 Sorry to disturb again and coming back so far but when I installed 1.3.7, 
 I used the uninstaller program supplied with the former version to 
 uninstall it.
 Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
 1.3.7.
 However in 1.4.1, I just have an icon and nothing else and I am sure that 
 it is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.

 Personally, I have 1.4.1, 1.4.2 and 1.4.3 installed in parallel, with no 
 major problems.  (They all share configuration info, so preference changes 
 in one apply to all, but to date I have not found any conflicts there.)

 Interestingly, I have uninstallers for 1.4.1 and 1.4.3, but not for 1.4.2.

 My question is how to unistall it properly (the one supplied with the 
 complete version installer for windows without compiling). May I use the 
 unistaller supplied with 1.3.7 or have you an better suggestion.

 The 1.3.7 uninstaller is unlikely to know what to do to uninstall 1.4.1.

 Have you checked Control Panel-Add/Remove Programs to make sure that 
 1.4.1 is not listed there?  If it is, you should be able to uninstall it 
 from there.

 I just crawled my registry and didn't find anything particularly funky 
 associated with the directory in which I have 1.4.1 installed.  So if I 
 wanted to delete 1.4.1 and lacked the installer, here's what I would do: 
 install 1.4.3 first (in a different directory) and make sure it works (!); 
 note down the path to 1.4.1 and then delete its root directory and all 
 subdirectories; then either (a) quit while I'm ahead and live with a 
 little harmless clutter in the registry or (b) run a registry cleaner 
 program that hopefully would delete any keys referring to the now 
 nonexistent 1.4.1 directory or (c) run regedit, search for all references 
 to the deleted directory and manually delete them.

 HTH,
 Paul


Thanks for the detailed comments.
Regarding  Add/Remove Programs, you are right, it can be done from there, 
however when there is an uninstaller in a program, I do prefer to use it.
To go a bit further (pse don't sigh):
In fact there is so many aside programs with LyX that I am always afraid 
to miss one and for that reason, till today, each time I have fully update 
(reinstalling everything).
But, if I follow you properly, when you have got one installation, let us 
say 1.4.1, you just need to install 1.4.3 and keep former Miktex, 
ImageMagick, Ghostscript, Aspell ( I am not sure ) and GSView or to update 
them directly.
As such I should have just to download LyX 1.4.3. Am I correct ?

Thanks
Paul 





Re: optional arguments for theorems?

2006-09-22 Thread Martin Vermeer
On Fri, Sep 22, 2006 at 11:40:48AM +0200, Jean-Marc Lasgouttes wrote:
  Helge == Helge Hafting [EMAIL PROTECTED] writes:
 
 Helge Hm. For each paragraph type, the .layout could specify whether
 Helge an optional argument is allowed. And perhaps even how many.
 Helge If so, one should be able to use the optional argument inset
 Helge currently only used for short titles.
 
 THis is what we do already... but not for environments!
 
 JMarc

The attached patch would put the infrastructure in place for doing it
for environments too. Seems to work. 

BTW LaTeX output is broken (outputs numbers) in trunk.

Should I check this in?

- Martin

Index: output_latex.C
===
--- output_latex.C  (revision 14992)
+++ output_latex.C  (working copy)
@@ -81,6 +81,10 @@
 }
 
 
+int latexOptArgInsets(Buffer const  buf, Paragraph const  par,
+ ostream  os, OutputParams const  runparams, int number);
+
+
 ParagraphList::const_iterator
 TeXEnvironment(Buffer const  buf,
   ParagraphList const  paragraphs,
@@ -129,6 +133,14 @@
 
if (style-isEnvironment()) {
os  \\begin{  style-latexname()  '}';
+   if (style-optionalargs  0) {
+   int ret = latexOptArgInsets(buf, *pit, os, runparams,
+   style-optionalargs);
+   while (ret  0) {
+   texrow.newline();
+   --ret;
+   }
+   }
if (style-latextype == LATEX_LIST_ENVIRONMENT) {
os  {  pit-params().labelWidthString()  }\n;
} else if (style-labeltype == LABEL_BIBLIO) {


pgpKggx0TZvWI.pgp
Description: PGP signature


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Jean-Marc Lasgouttes
> "John" == John McCabe-Dansted <[EMAIL PROTECTED]> writes:

John> On 9/22/06, Juergen Spitzmueller <[EMAIL PROTECTED]> wrote:
>> John McCabe-Dansted wrote: > Wierd. I get nothing but a config
>> directory and a development > directory. I can't find a configure
>> script anywhere.

John> Yes it was a bug in KDE Konqueror (or its plugins). Normal unix
John> works fine.

This is because our tar file is in ustar format (contains very large
path names). GNU tar handles this correctly, but some tar utils fail.

We should provide a proper installation target for the OSX bundle to
handle that, but I never had time to do it.

JMarc


Re: optional arguments for theorems?

2006-09-22 Thread Jean-Marc Lasgouttes
> "John" == John Perry <[EMAIL PROTECTED]> writes:

John> Hello, It is not uncommon in LaTeX to include optional arguments
John> to theorem-like environments, for example

John>\begin{theorem}[Buchberger, 1965] ... \end{theorem}

This is something we should support natively indeed. The last time I
looked at it, it was a bit too complicated for my taste and I gave up :)

JMarc


Re: Problem with Algorithm label language

2006-09-22 Thread Ares

Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote


Could you try to play with the ordering of the various bits in the
preamble of the TeX file? One reason why we do not support hyperref
directly yet is that loading order seems to be difficult to get right.



there's not much to play with. if I load hyperref in the preamble, I get
everything correct until it comes to the \ref{alg:} command, where I
get the "undefined control sequence" error message, as if hyperref
overwrites the alg mechanism but not the other label/references.

Juergen Spitzmueller <[EMAIL PROTECTED]> wrote


I still don't understand. Please send me a stripped down version of the


document privately.



I attach a sample file in the following. as you can see the label/references
mechanism works fine until the alg stuff.

I hope this helps, and you can help me. Regards,
Diego

- - - - - - - LyX Sample File - - - - - - - -

#LyX 1.4.2 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass book
\begin_preamble
\usepackage[bookmarks]{hyperref}
\end_preamble
\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 Title
Alg label test
\end_layout

\begin_layout Chapter
Test
\end_layout

\begin_layout Standard
This is a test for compatibility of the hyperref package with the alg
package.
\end_layout

\begin_layout Standard
This is a figure
\begin_inset LatexCommand \ref{fig:Sample-figure}

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open

\begin_layout Standard
\begin_inset Graphics
   filename Immagine.bmp

\end_inset


\end_layout

\begin_layout Caption
\begin_inset LatexCommand \label{fig:Sample-figure}

\end_inset

Sample figure
\end_layout

\end_inset


\end_layout

\begin_layout Standard
This is an algorithm
\begin_inset LatexCommand \ref{alg:Test}

\end_inset

.
\end_layout

\begin_layout Standard
\begin_inset Float algorithm
wide false
sideways false
status open

\begin_layout Caption
\begin_inset LatexCommand \label{alg:Test}

\end_inset

Test
\end_layout

\begin_layout Standard
Try this
\end_layout

\begin_layout Standard
Try that
\end_layout

\end_inset


\end_layout

\end_body
\end_document


Beamer / Lyx/ Handouts

2006-09-22 Thread Paul Fenner
Can somebody please point me in the right direction to create handouts from my
beamer presentation. I have tried to follow the Beamer Class Tutorial but I am
getting hopelessly lost. I am using Windows XP / LyX 1.4.
Thank you.
Paul



Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Jean-Marc Lasgouttes
> "Paul" == Paul Schwartz <[EMAIL PROTECTED]> writes:

Paul> "Jean-Marc Lasgouttes" <[EMAIL PROTECTED]> a écrit dans le
Paul> message de news: [EMAIL PROTECTED]
>>  Public release of LyX version 1.4.3
>> ===
>> 

Paul> Sorry, but as a neophyte i am not sure to understand what do you
Paul> exactly mean with the "patch". Shall I understand that I can
Paul> upgrade from a - complete installation having used the windows
Paul> installer from 1.4.1 to 1.4.2 using the corresponding patch and
Paul> then from 1.4.2 to 1.4.3 using the patch "below" and being
Paul> totally up to date for all soft's included in the "complete
Paul> version installer" ?

The patch is only for people who compile from source. Windows users
should (when the windows installer is available) install 1.4.3 over
1.4.2.

JMarc


Re: optional arguments for theorems?

2006-09-22 Thread Helge Hafting

Jean-Marc Lasgouttes wrote:

"John" == John Perry <[EMAIL PROTECTED]> writes:



John> Hello, It is not uncommon in LaTeX to include optional arguments
John> to theorem-like environments, for example

John>\begin{theorem}[Buchberger, 1965] ... \end{theorem}

This is something we should support natively indeed. The last time I
looked at it, it was a bit too complicated for my taste and I gave up :)
  

Hm. For each paragraph type, the .layout could specify whether an
"optional argument" is allowed.  And perhaps even "how many".
If so, one should be able to use
the optional argument inset currently only used for short titles.

Do this sound reasonable?

Helge Hafting


Re: optional arguments for theorems?

2006-09-22 Thread Martin Vermeer
On Fri, 2006-09-22 at 11:00 +0200, Helge Hafting wrote:
> Jean-Marc Lasgouttes wrote:
> >> "John" == John Perry <[EMAIL PROTECTED]> writes:
> >> 
> >
> > John> Hello, It is not uncommon in LaTeX to include optional arguments
> > John> to theorem-like environments, for example
> >
> > John>\begin{theorem}[Buchberger, 1965] ... \end{theorem}
> >
> > This is something we should support natively indeed. The last time I
> > looked at it, it was a bit too complicated for my taste and I gave up :)
> >   
> Hm. For each paragraph type, the .layout could specify whether an
> "optional argument" is allowed.  And perhaps even "how many".
> If so, one should be able to use
> the optional argument inset currently only used for short titles.
> 
> Do this sound reasonable?
> 
> Helge Hafting

Yes, except... currently OptArg is only implemented for LaTeX commands,
not environments. See output_latex.C.

- Martin



signature.asc
Description: This is a digitally signed message part


Re: optional arguments for theorems?

2006-09-22 Thread Georg Baum
Helge Hafting wrote:

> Hm. For each paragraph type, the .layout could specify whether an
> "optional argument" is allowed.  And perhaps even "how many".
> If so, one should be able to use
> the optional argument inset currently only used for short titles.
> 
> Do this sound reasonable?

Yes. A request for this is already in bugzilla.


Georg



Re: optional arguments for theorems?

2006-09-22 Thread Jean-Marc Lasgouttes
> "Helge" == Helge Hafting <[EMAIL PROTECTED]> writes:

Helge> Hm. For each paragraph type, the .layout could specify whether
Helge> an "optional argument" is allowed. And perhaps even "how many".
Helge> If so, one should be able to use the optional argument inset
Helge> currently only used for short titles.

THis is what we do already... but not for environments!

JMarc


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Ingar Pareliussen
fr. 22. september 2006 11:32 skreiv Paul Fenner:
> Can somebody please point me in the right direction to create handouts from
> my beamer presentation. I have tried to follow the Beamer Class Tutorial
> but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.
> Thank you.
> Paul

Install the beamer article layout in your lyx/layout directory.
Reconfigure and change your document class to beamer article.
You can find the beamer_article.layout here:
http://wiki.lyx.org/Layouts/LaTeX-beamer

Ingar


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Paul Fenner wrote:
> Can somebody please point me in the right direction to create handouts from
> my beamer presentation. I have tried to follow the Beamer Class Tutorial
> but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.

To generate simple Handouts (i.e. the slides printed on a sheet), 

1. enter "handout" to Document->Settings->Class Options

2. enter to the preamble:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

Then View->PDFlatex

(there's a typo at least in my German version of the beamer user guide).

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Robert Orr
Juergen -

Would you happen to have a simple example file to
share?


> 
> To generate simple Handouts (i.e. the slides printed
> on a sheet), 
> 
> 1. enter "handout" to Document->Settings->Class
> Options
> 
> 2. enter to the preamble:
> 
> \usepackage{pgfpages}
> \pgfpagesuselayout{2 on 1}[a4paper,border
> shrink=5mm]
> 
> Then View->PDFlatex
> 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Problem with Algorithm label language

2006-09-22 Thread Juergen Spitzmueller
Ares wrote:
> there's not much to play with.

The hyperref README says:

6 PACKAGE COMPATIBILITY
===

Currently only package loading orders are available:

[...]

algorithm
-
  \usepackage{float}
  \usepackage{hyperref}
  \usepackage[chapter]{algorithm}

So float (which is modified by hyperref) and hyperref have to be loaded before 
algorithm. The problem is that LyX loads algorithm before the user preamble. 
So your only chance is probably to load the algorithm package yourself (and 
use ERT in the document.

> I attach a sample file in the following. as you can see the
> label/references mechanism works fine until the alg stuff.

Please attach it as a real attachment next time. I won't cut and paste from 
E-Mail to a text editor to get a LyX file.

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Robert Orr wrote:
> Would you happen to have a simple example file to
> share?

Not at hand. What is the problem? Can you send an example file that fails?

Jürgen


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Juergen Spitzmueller
Robert Orr wrote:
> Did you really mean "pgfpages"  ??

Yes

> It doesn't seem to work for me.  

Then you don't have the package pgf installed.

> But "pdfpages" does 
> so maybe it is a typo?

No. pgfpages is a subpackage of pgf by the author of beamer.

Jürgen


[ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Bhaskaran, Sreekumar
I am trying to use the windows exe file and it seems like that there is
something amiss. Once I install Lyx, when I click on run Lyx, nothing
happens. I even restarted the machine and then went to program files and
clicked on lyx.bat and the result was same.

When I clicked on lyx.exe, it says that the application configuration
file is wrong. Don't know what I am doing wrong here


LyX/Mac 1.4.3 (PPC) released

2006-09-22 Thread Bennett Helm
LyX/Mac 1.4.3 has been released for PPC. You can find the link  
through the wiki, or just download it directly from here:




Bennett


Re: Beamer / Lyx/ Handouts

2006-09-22 Thread Paul A. Rubin

Juergen Spitzmueller wrote:

Paul Fenner wrote:

Can somebody please point me in the right direction to create handouts from
my beamer presentation. I have tried to follow the Beamer Class Tutorial
but I am getting hopelessly lost. I am using Windows XP / LyX 1.4.


To generate simple Handouts (i.e. the slides printed on a sheet), 


1. enter "handout" to Document->Settings->Class Options

2. enter to the preamble:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

Then View->PDFlatex

(there's a typo at least in my German version of the beamer user guide).

Jürgen



I use just step 1 to generate handouts (which are one slide to a page). 
 To get multiple slides on a page, I generate the handout file with one 
slide per page, open the file in Acrobat Reader, and print it using a 
drive that outputs a PDF file (PDFCreator in my case).  The printer 
options allow you to do 2, 4 or 6 slides per page, pick paper size, and 
pick portrait or landscape orientation.  If you take this route, be sure 
to select the option to stretch pages to the page margins.


/Paul




MSWord(html) or OpenOffice.Org

2006-09-22 Thread Bob Lounsbury

Hi,

What do you have to do to export in these formats. Neither work for  
me on 1.4.3 with XP.


Thanks,
Bob Lounsbury


Read only mode?

2006-09-22 Thread Rudi Gaelzer
Is there a read only mode for lyx?

From a message sent by Jean-Marc in may, I gathered that there is such a 
thing:
--- snip --
You can use buffer-readonly-toggle (which can even be added as a menu
item or icon).

JMarc
--- snip --

I would like to have the possibility to open a lyx document in read-only mode.  
In fact, I would even like to be able to choose it as the default action.

Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle" on 
the minibuffer, I got an "Unknown action"...

Thanks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Registered linux user # 153741


Re: MSWord(html) or OpenOffice.Org

2006-09-22 Thread TechTonics

Bob Lounsbury wrote:

Hi,

What do you have to do to export in these formats. Neither work for me 
on 1.4.3 with XP.


Thanks,
Bob Lounsbury



I don't think they work. Export the file as .tex from LyX.
Then from the command line "htlatex foo.tex" = foo.html
which can be directly imported into Word, = foo.doc
htlatex is part of the TeX4ht package:

http://facweb.arch.ohio-state.edu/pviton/support/tex4ht.html
The Miktex update manager can download and install this
if you don't have it. www.miktex.org

I use Word2Tex for converting from .doc to .tex and
LyX can import .tex files. Rtf conversion may work.

Conversions need to be proofread,

Stephen


Re: Read only mode?

2006-09-22 Thread José Matos
On Friday 22 September 2006 19:58, Rudi Gaelzer wrote:
> Is there a read only mode for lyx?
>
> From a message sent by Jean-Marc in may, I gathered that there is such a
> thing:
> --- snip --
> You can use buffer-readonly-toggle (which can even be added as a menu
> item or icon).
>
> JMarc
> --- snip --
>
> I would like to have the possibility to open a lyx document in read-only
> mode. In fact, I would even like to be able to choose it as the default
> action.

  When I want a document in read only permanently I remove the write flags 
from its properties.

$ chmod a-w file

in linux and other unices...

  LyX recognises this and acts accordingly. :-)

> Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle"
> on the minibuffer, I got an "Unknown action"...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

> Thanks.

-- 
José Abílio


Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 16:16, José Matos wrote:
>   When I want a document in read only permanently I remove the write flags
> from its properties.
>
> $ chmod a-w file
>
> in linux and other unices...

Well, thanks anyway, I know that and it's not what I want...
>
>   LyX recognises this and acts accordingly. :-)
>
> > Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle"
> > on the minibuffer, I got an "Unknown action"...
>
> In minibuffer tab is your friend. :-)
> buffer-toggle-read-only
That works.  The syntax is slightly different from what I used.
>
> > Thanks.

And how can I include a "Toggle Read Only" option in the Edit menu (or as an 
icon on the toolbar)?

Thanks again.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul Schwartz

"Jean-Marc Lasgouttes" <[EMAIL PROTECTED]> a écrit 
dans le message de news: [EMAIL PROTECTED]
> "Paul" == Paul Schwartz <[EMAIL PROTECTED]> 
> writes:

Paul> "Jean-Marc Lasgouttes" <[EMAIL PROTECTED]> a 
écrit dans le
Paul> message de news: 
[EMAIL PROTECTED]
>>  Public release of LyX version 1.4.3
>> ===
>>

Paul> Sorry, but as a neophyte i am not sure to understand what do you
Paul> exactly mean with the "patch". Shall I understand that I can
Paul> upgrade from a - complete installation having used the windows
Paul> installer from 1.4.1 to 1.4.2 using the corresponding patch and
Paul> then from 1.4.2 to 1.4.3 using the patch "below" and being
Paul> totally up to date for all soft's included in the "complete
Paul> version installer" ?

The patch is only for people who compile from source. Windows users
should (when the windows installer is available) install 1.4.3 over
1.4.2.

JMarc

Sorry to disturb again and coming back so far but when I installed 1.3.7, I 
used the "uninstaller" program supplied with the former version to uninstall 
it.
Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
1.3.7.
However in 1.4.1, I just have an icon and nothing else and I am sure that it 
is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.
My question is how to unistall it properly (the one supplied with the 
complete version installer for windows without compiling). May I use the 
unistaller supplied with 1.3.7 or have you an better suggestion.

Thanks

Paul





Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul A. Rubin

Paul Schwartz wrote:



Sorry to disturb again and coming back so far but when I installed 1.3.7, I 
used the "uninstaller" program supplied with the former version to uninstall 
it.
Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
1.3.7.
However in 1.4.1, I just have an icon and nothing else and I am sure that it 
is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.


Personally, I have 1.4.1, 1.4.2 and 1.4.3 installed in parallel, with no 
major problems.  (They all share configuration info, so preference 
changes in one apply to all, but to date I have not found any conflicts 
there.)


Interestingly, I have uninstallers for 1.4.1 and 1.4.3, but not for 1.4.2.

My question is how to unistall it properly (the one supplied with the 
complete version installer for windows without compiling). May I use the 
unistaller supplied with 1.3.7 or have you an better suggestion.


The 1.3.7 uninstaller is unlikely to know what to do to uninstall 1.4.1.

Have you checked Control Panel->Add/Remove Programs to make sure that 
1.4.1 is not listed there?  If it is, you should be able to uninstall it 
from there.


I just crawled my registry and didn't find anything particularly funky 
associated with the directory in which I have 1.4.1 installed.  So if I 
wanted to delete 1.4.1 and lacked the installer, here's what I would do: 
 install 1.4.3 first (in a different directory) and make sure it works 
(!); note down the path to 1.4.1 and then delete its root directory and 
all subdirectories; then either (a) quit while I'm ahead and live with a 
little harmless clutter in the registry or (b) run a registry cleaner 
program that hopefully would delete any keys referring to the now 
nonexistent 1.4.1 directory or (c) run regedit, search for all 
references to the deleted directory and manually delete them.


HTH,
Paul



Re: Read only mode?

2006-09-22 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle"
on the minibuffer, I got an "Unknown action"...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

That works.  The syntax is slightly different from what I used.

Thanks.


And how can I include a "Toggle Read Only" option in the Edit menu (or as an 
icon on the toolbar)?




(Note:  I have not tested the following.) I think you can edit 
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu, 
something like


Item "Toggle read-only|Q" "buffer-toggle-read-only"

(perhaps changing Q to a more salubrious hot key, or omitting it).  I 
would save the hacked file in the ui subfolder under your home 
directory, so that it would survive reinstallations and upgrades.


On the other hand, the path of least resistance might be simply to use
File->New from template... to open documents you don't want to modify. 
The resulting file is writable, but it gets a default name (e.g. 
newfile1.lyx), so inadvertently saving it will at worst clutter your 
drive a bit.


/Paul



LyX 1.4.3/Aspell problem (WinXP)

2006-09-22 Thread Paul A. Rubin

Hi,

I just installed 1.4.3 in parallel with 1.4.2 and 1.4.1.  (As usual, 
thanks to the developers for cranking out another new and improved 
version, and to all involved with the Windows port.)  During the 
installation process, I think the installer parked some Aspell-related 
files under C:\Documents and Settings\what_a_handsome_guy\Application 
Data\Aspell.  That is to say, the files are there now, I don't remember 
if they were there before, and during the installation progress report I 
think I saw something on the "what I'm up to line" about something going 
in up there.


I already had Aspell 0.50, the necessary bits of 0.60, and assorted 
dictionaries installed under C:\Aspell.  The problem is, when I try to 
check spelling in 1.4.3, I'm informed that 'No word lists can be found 
for the language "en_US"'.  On the other hand, 1.4.2 (which is using the 
same preferences file etc.) seems to have no trouble finding them.  I'm 
hoping I don't have to reinstall Aspell each time there's an upgrade to 
LyX.  Any ideas what I can do to cure this?


Thanks,
Paul (whose spelling, while good, is not entirely perfect)



Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 18:24, Paul A. Rubin wrote:
>
> (Note:  I have not tested the following.) I think you can edit
> .../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
> something like
>
> Item "Toggle read-only|Q" "buffer-toggle-read-only"

That works!  I made a copy of /usr/share/lyx/ui/stdmenus.ui to ~/.lyx/ui/ and 
included the Item as you suggested (using "T"  instead of "Q" as shortcut) 
and it works.  Now I can happily toggle to and fro the read-only mode...

Thanks a lot, Paul.
>
> (perhaps changing Q to a more salubrious hot key, or omitting it).  I
> would save the hacked file in the ui subfolder under your home
> directory, so that it would survive reinstallations and upgrades.
>
> On the other hand, the path of least resistance might be simply to use
> File->New from template... to open documents you don't want to modify.
> The resulting file is writable, but it gets a default name (e.g.
> newfile1.lyx), so inadvertently saving it will at worst clutter your
> drive a bit.
>
> /Paul

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Re: [ANNOUNCE] LyX 1.4.3 is relelased

2006-09-22 Thread Paul Schwartz

"Paul A. Rubin" <[EMAIL PROTECTED]> a écrit dans le message 
de news: [EMAIL PROTECTED]
> Paul Schwartz wrote:
>
>>
>> Sorry to disturb again and coming back so far but when I installed 1.3.7, 
>> I used the "uninstaller" program supplied with the former version to 
>> uninstall it.
>> Now if I want to uninstall 1.3.7, I still have a uninstall program inside 
>> 1.3.7.
>> However in 1.4.1, I just have an icon and nothing else and I am sure that 
>> it is far better to uninstall 1.4.1 ahead of installing 1.4.2 or 1.4.3.
>
> Personally, I have 1.4.1, 1.4.2 and 1.4.3 installed in parallel, with no 
> major problems.  (They all share configuration info, so preference changes 
> in one apply to all, but to date I have not found any conflicts there.)
>
> Interestingly, I have uninstallers for 1.4.1 and 1.4.3, but not for 1.4.2.
>
>> My question is how to unistall it properly (the one supplied with the 
>> complete version installer for windows without compiling). May I use the 
>> unistaller supplied with 1.3.7 or have you an better suggestion.
>
> The 1.3.7 uninstaller is unlikely to know what to do to uninstall 1.4.1.
>
> Have you checked Control Panel->Add/Remove Programs to make sure that 
> 1.4.1 is not listed there?  If it is, you should be able to uninstall it 
> from there.
>
> I just crawled my registry and didn't find anything particularly funky 
> associated with the directory in which I have 1.4.1 installed.  So if I 
> wanted to delete 1.4.1 and lacked the installer, here's what I would do: 
> install 1.4.3 first (in a different directory) and make sure it works (!); 
> note down the path to 1.4.1 and then delete its root directory and all 
> subdirectories; then either (a) quit while I'm ahead and live with a 
> little harmless clutter in the registry or (b) run a registry cleaner 
> program that hopefully would delete any keys referring to the now 
> nonexistent 1.4.1 directory or (c) run regedit, search for all references 
> to the deleted directory and manually delete them.
>
> HTH,
> Paul
>
>
Thanks for the detailed comments.
Regarding  Add/Remove Programs, you are right, it can be done from there, 
however when there is an uninstaller in a program, I do prefer to use it.
To go a bit further (pse don't sigh):
In fact there is so many "aside" programs with LyX that I am always afraid 
to miss one and for that reason, till today, each time I have fully update 
(reinstalling everything).
But, if I follow you properly, when you have got one installation, let us 
say 1.4.1, you just need to install 1.4.3 and keep former Miktex, 
ImageMagick, Ghostscript, Aspell ( I am not sure ) and GSView or to update 
them directly.
As such I should have just to download LyX 1.4.3. Am I correct ?

Thanks
Paul 





Re: optional arguments for theorems?

2006-09-22 Thread Martin Vermeer
On Fri, Sep 22, 2006 at 11:40:48AM +0200, Jean-Marc Lasgouttes wrote:
> > "Helge" == Helge Hafting <[EMAIL PROTECTED]> writes:
> 
> Helge> Hm. For each paragraph type, the .layout could specify whether
> Helge> an "optional argument" is allowed. And perhaps even "how many".
> Helge> If so, one should be able to use the optional argument inset
> Helge> currently only used for short titles.
> 
> THis is what we do already... but not for environments!
> 
> JMarc

The attached patch would put the infrastructure in place for doing it
for environments too. Seems to work. 

BTW LaTeX output is broken (outputs numbers) in trunk.

Should I check this in?

- Martin

Index: output_latex.C
===
--- output_latex.C  (revision 14992)
+++ output_latex.C  (working copy)
@@ -81,6 +81,10 @@
 }
 
 
+int latexOptArgInsets(Buffer const & buf, Paragraph const & par,
+ ostream & os, OutputParams const & runparams, int number);
+
+
 ParagraphList::const_iterator
 TeXEnvironment(Buffer const & buf,
   ParagraphList const & paragraphs,
@@ -129,6 +133,14 @@
 
if (style->isEnvironment()) {
os << "\\begin{" << style->latexname() << '}';
+   if (style->optionalargs > 0) {
+   int ret = latexOptArgInsets(buf, *pit, os, runparams,
+   style->optionalargs);
+   while (ret > 0) {
+   texrow.newline();
+   --ret;
+   }
+   }
if (style->latextype == LATEX_LIST_ENVIRONMENT) {
os << "{" << pit->params().labelWidthString() << "}\n";
} else if (style->labeltype == LABEL_BIBLIO) {


pgpKggx0TZvWI.pgp
Description: PGP signature