Re: A simple question

2009-04-22 Thread Guenter Milde
On 2009-04-22, Adrian Diaz wrote:
...
 Sometime i have to write long titles for chapters, sections etc.
 Ho do i manage justify to left, center, rigth or simply justify?

Menu EditParagraph and click the corresponding radiobutton.

Some document classes do not support all justifications.
As a workaround: insert stretchable space (hfill) (via InsertFormatting...)
or M-x space-insert hfill.

 Any advice?

Use a more telling subject line.

Yours,

Günter




Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-21, Ehud Kaplan wrote:

1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
   found only packages that could not be installed since it was the
   wrong architecture.  Is there a place where I can find Lyx 1.6.2
   for 64 bits Linux?

LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
architectures. I don't know whether it works with Ubuntu, though.

2. When trying to import a Latex file into Lyx it gagged on the
   umlauts in the Latex file ( W\assle )

 How do I get around it?

Did you try the way LyX writes Umlauts?

G\{u}nter




Re: Want to show URLs in printed version

2009-04-22 Thread Guenter Milde
On 2009-04-21, Drew Kime wrote:

  But I'd like to be able to create a version
 for print that would show the special name *and* the URL, since you
 obviously can't click on a book.

...

 So you're confirming that it's *not* possible to do pretty links for
 electronic documents, but add something in the preamble that will
 render th e link after the title?

No. Only the we on this list don't know of a way. Maybe the LaTeX
experts at comp.text.tex have a solution.

Günter



Re: Upgrading to 1.6.2

2009-04-22 Thread John McCabe-Dansted
On Wed, Apr 22, 2009 at 2:55 PM, Guenter Milde mi...@users.berlios.de wrote:
 On 2009-04-21, Ehud Kaplan wrote:

1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
   found only packages that could not be installed since it was the
   wrong architecture.  Is there a place where I can find Lyx 1.6.2
   for 64 bits Linux?

 LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
 architectures. I don't know whether it works with Ubuntu, though.

Also there appears to be a LyX ppa for ubuntu, but it appears to be
out-of-date, and rather broken:

https://launchpad.net/~lyx-developers/+archive/ppa

Are there any plans to have an up-to-date PPA for Ubuntu?
 (this would seem much cleaner than trying to manually build packages
for various versions of Ubuntu, and upload them to ftp.lyx.org).

-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia


Re: Document Tabs

2009-04-22 Thread Abdelrazak Younes

Rich Shepard wrote:

  When multiple documents are open in 1.6.2 there is a tab for each one.
However, they are the same color and the tab frame of the selected/active
document is so subtly different that it's easy to mistake which one it is.

  Is there a way to clearly and unambiguously determine which document 
is the

current one by looking at the tabs rather than the window frame?


The current is clearly distinguished from the others. My guess is that 
the Qt style you are using is misleading WRT tabs.


Abdel.



Re: Upgrading to 1.6.2

2009-04-22 Thread E. Kaplan

Yes, I tried both ways of writing umlauts, but both failed.



Ehud Kaplan



Guenter Milde wrote:

On 2009-04-21, Ehud Kaplan wrote:

  

   1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
  found only packages that could not be installed since it was the
  wrong architecture.  Is there a place where I can find Lyx 1.6.2
  for 64 bits Linux?



LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
architectures. I don't know whether it works with Ubuntu, though.

  

   2. When trying to import a Latex file into Lyx it gagged on the
  umlauts in the Latex file ( W\assle )



  

How do I get around it?



Did you try the way LyX writes Umlauts?

G\{u}nter


  


Re: Automating Index Entry Removal

2009-04-22 Thread Jean-Marc Lasgouttes
rgheck rgh...@bobjweil.com writes:
 Rich Shepard wrote:
 On Tue, 21 Apr 2009, rgheck wrote:

 Open the LyX file in a text editor and you'll see the format of
 these. You
 can then write a simple script that will remove them: sed, perl, python,
 whatever.

 That's what I thought the default would be. :-) I was wondering if there
 was a way within LyX to do the job. Regardless, emacs will do it
 just fine.

 No, not in 1.6. There's been work for the next version that will
 provide this kind of facility, so you could try doing this in 2.0.svn
 and then exporting to 1.6. It'd be interesting to know if it worked.

Do we have that (removing all indexes)? How?

JMarc


Re: Lyx question

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 04:12:50 +0200, Nathalia Monteiro 
nathaliamonte...@gmail.com wrote:

I imported the layout of a beamer presentation from Latex and after  
editing

it on Lyx, I couldn't see it as a PDF due to some errors:
The Lyx - Latex error box pops up saying:


Yeah, especially with the beamer template, the error messages can be less than 
helpful. It it possible for you to post the file somewhere (e.g. pastebin.com), 
so that we can take a look at it and maybe help?

Then, I tried to export the file I had altered on Lyx to Latex plain to  
try

to open it using TexnicCenter, however, I couldn't figure where the files
are exported to. I couldn't find the file I exported.


The exported files are in the same folder as the lyx file, with the same name but a different ending. LyX files 
end in .lyx, while the exported LaTeX ends in .tex. To see which folder the file is in, 
just click on File - Save as This should open a dialog window showing the current folder of 
the file.


Can someone help me out?


We try :)

Cheers,

Kosta




Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 04:48:20 +0200, sykes ed.sy...@sheridanc.on.ca wrote:


I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX:



Some problem occured while running the command:
'svn commit -m  ... 


I don't have access to a windows machine at the moment, but can you check if 
svn is in the windows PATH? Just open a command prompt and type 'svn'. If it 
says command not found (or something similar), its not there. Try adding the 
Tortoise SVN folder containing svn.exe to the Windows PATH. (It's probably 
Program Files\Tortoise SVN\bin). Follow this guide to add something to the PATH 
variable:

http://www.computerhope.com/issues/ch000549.htm

I'm assuming I need a command line client for svn to execute... is there  
a way to make Tortoise SVN handle this...or is there another application  
that will do it...or do I need to install cygwin and run LyX through it?


Tortoise SVN is a graphical front-end to svn. I think it includes svn.exe. Even 
if it doesnt, you would need to install svn for windows and _NOT_ some cygwin 
stuff. Lyx needs the command line program, not a graphical front-end. 
Alternatively, you can just use Tortoise SVN _instead_ of LyX to handle 
versioning, but I guess you already knew that :)

Cheers,

Kosta




Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-22, E. Kaplan wrote:

2. When trying to import a Latex file into Lyx it gagged on the
   umlauts in the Latex file ( W\assle )

 How do I get around it?

 Did you try the way LyX writes Umlauts?

 Yes, I tried both ways of writing umlauts, but both failed.

As you do not provide a minimal (but complete) example, I can only guess
that it is the encoding problem described below.


Here is a minimal example:

\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

Günter G\unter G\{u}nter

\end{document}

When importing, tex2lyx works fine but the lyx2lyx step fails:

Warning: #LyX file created by tex2lyx 1.6.2
Traceback (most recent call last):
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 83, in module
main()
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 76, in main
doc = LyX.File(**options.__dict__)
  File /usr/share/lyx/lyx2lyx/LyX.py, line 652, in __init__
self.read()
  File /usr/share/lyx/lyx2lyx/LyX.py, line 287, in read
line = self.input.readline().decode(self.encoding)
  File /usr/lib/python2.5/encodings/utf_8.py, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 9-14: 
unsupported Unicode code range
Error: Das Konvertierungsskript ist fehlgeschlagen

/home/milde/Texte/Test/LyX/LyX16-bugs/import-umlauts.lyx stammt von einer 
anderen LyX-Version, aber das lyx2lyx-Skript konnte das Dokument nicht 
konvertieren.


Looking at the LyX file in a text editor revealed, that \u and \{u} are
both converted to a latin-1 encoded ü.

Converting to UTF-8 did not help, but changing

-\usepackage[utf8]{inputenc}
+\usepackage[latin1]{inputenc}

did (of course after converting the UTF-8 encoded ü).

Günter



Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Uwe Stöhr

sykes schrieb:


I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX: 


You want to commit some changes to LyX's SVN repository? This is only possible for developers with a 
LyX SVN account.


regards Uwe


RE: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Vincent van Ravesteijn - TNW
I'm assuming I need a command line client for svn to execute... 

Yes.

is there a way to make Tortoise SVN handle this...

Yes.

Enter the following command in the command buffer
(View-Toolbars-Command Buffer):

vc-command DS . TortoiseProc /command:commit /path:$$p

Vincent


Re: Upgrading to 1.6.2

2009-04-22 Thread E. Kaplan
Thanks very much, G\unter.  Although your minimal example did not work 
either (I got an error complaining that it came from another Lyx 
version, etc.), I discovered that by modifying your example slightly 
(using latin1 instead of your utf8-- see below) everything worked.  I do 
not understand the problem, but I am happy to have a solution.


\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\begin{document}

Günter G\unter G\{u}nter

\end{document}




Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*The laboratory of Visual Neuroscience*
Depts. of Neuroscience, Ophthalmology, Physiology  Biophysics,
The Mount Sinai School of Medicine
One Gustave Levy Place
NY, NY, 10029



Guenter Milde wrote:

On 2009-04-22, E. Kaplan wrote:

  

   2. When trying to import a Latex file into Lyx it gagged on the
  umlauts in the Latex file ( W\assle )



  

How do I get around it?



  

Did you try the way LyX writes Umlauts?
  


  

Yes, I tried both ways of writing umlauts, but both failed.



As you do not provide a minimal (but complete) example, I can only guess
that it is the encoding problem described below.


Here is a minimal example:

\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

Günter G\unter G\{u}nter

\end{document}

When importing, tex2lyx works fine but the lyx2lyx step fails:

Warning: #LyX file created by tex2lyx 1.6.2
Traceback (most recent call last):
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 83, in module
main()
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 76, in main
doc = LyX.File(**options.__dict__)
  File /usr/share/lyx/lyx2lyx/LyX.py, line 652, in __init__
self.read()
  File /usr/share/lyx/lyx2lyx/LyX.py, line 287, in read
line = self.input.readline().decode(self.encoding)
  File /usr/lib/python2.5/encodings/utf_8.py, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 9-14: 
unsupported Unicode code range
Error: Das Konvertierungsskript ist fehlgeschlagen

/home/milde/Texte/Test/LyX/LyX16-bugs/import-umlauts.lyx stammt von einer 
anderen LyX-Version, aber das lyx2lyx-Skript konnte das Dokument nicht 
konvertieren.


Looking at the LyX file in a text editor revealed, that \u and \{u} are
both converted to a latin-1 encoded ü.

Converting to UTF-8 did not help, but changing

-\usepackage[utf8]{inputenc}
+\usepackage[latin1]{inputenc}

did (of course after converting the UTF-8 encoded ü).

Günter

  


Allignment of figure

2009-04-22 Thread tomas jansen

Hi,
When I put a picture inside a float in LyX and make a pdf out of it the 
allignment is not in the center. The text under the picture is in the middle 
compared to normal text underneath. Up till a centain size the picture has more 
space on the right than on the left side. When the picture gets too big the 
picture shifts right and part of it is even right of the text.The paragraph 
settings of both the figure and the float do not seem to mind. I would like to 
make the picture 70% of the text width. I am using version 1.4.1 and making a 
book with two sides turned on.
Regards,Tomas
_
Haal meer uit je leven met Windows Live
http://www.microsoft.com/netherlands/windowslive/Views/index.aspx

Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-22, E. Kaplan wrote:

 Thanks very much, G\unter.  Although your minimal example did not work 
 either (I got an error complaining that it came from another Lyx 
 version, etc.)

It was not a solution, but a minimal example of failing code!

 , I discovered that by modifying your example slightly 
 (using latin1 instead of your utf8-- see below) everything worked.  

Yes, that is what I described in the text after the example.

Günter

(BTW: please do not append a quote of previous postings (i.e. no TOFU please).



Re: Document Tabs

2009-04-22 Thread Rich Shepard

On Wed, 22 Apr 2009, Abdelrazak Younes wrote:


The current is clearly distinguished from the others. My guess is that the
Qt style you are using is misleading WRT tabs.


Abdel,

  This could well be the case. I use the default Qt4 style ... whatever that
happens to be. :-)

Rich

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


Re: Document Tabs

2009-04-22 Thread Rich Shepard

On Wed, 22 Apr 2009, Rich Shepard wrote:


The current is clearly distinguished from the others. My guess is that the
Qt style you are using is misleading WRT tabs.


  OK. I ran qtconfig and changed the default appearance from motif to
cleanlook; now the active tab has a different appearance from the inactive
one.

Thanks,

Rich

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


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Anders Host-Madsen
I use ifthenelse in my exams. That way I can have one version of
the exam without solutions, and one with solution, without having to
have two documents. If you want, I can send you one of my
exams.



Re: Automating Index Entry Removal

2009-04-22 Thread Richard Heck

Jean-Marc Lasgouttes wrote:

Do we have that (removing all indexes)? How?

  
I was under the impression that the new search/replace stuff was 
supposed to allow this sort of thing.


rh



Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Steve Litt
On Wednesday 22 April 2009 10:18:14 am Anders Host-Madsen wrote:
 I use ifthenelse in my exams. That way I can have one version of
 the exam without solutions, and one with solution, without having to
 have two documents. If you want, I can send you one of my
 exams.

I want. I want bad!

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Lyx question

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 16:44:41 +0200, Nathalia Monteiro 
nathaliamonte...@gmail.com wrote:

What exactly should I post at pastebin.com? The error message or the  
whole tex code?


Please post the whole lyx file.

Cheers,

Kosta



Re: Springer 1-Column Proceedings Template with Lyx

2009-04-22 Thread hartepizza
Guenter Milde mi...@... writes:

 
 On 2009-04-08, hartepizza wrote:
  Hello everybody,
 
  I just can't figure out how to use the 1-Column Proceedings template
  from Springer within Lyx.
 ...
  they offer a general template for LaTeX.
 
  Is there some FAQ / similiar post, where the necessary steps are described?
 
 HelpCustomization
 
 search at wiki.lyx.org
 
 Günter
 
 


Hi Günter,

thanks for your hint. I'll write just some hints so others may find solution via
mailing lists. 

I read myself through the documentation and assume I installed the .sty/.cls +
.bst files correctly in MikTex. I also did Refresh FNDB within MikTex and
Refonfigure in Lyx.

Lyx finds all classes files. I tested with Tools-Tex Information within Lyx.

Thanks!








Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Vito De Tullio
Steve Litt wrote:

 I use ifthenelse in my exams. That way I can have one version of
 the exam without solutions, and one with solution, without having to
 have two documents. If you want, I can send you one of my
 exams.
 
 I want. I want bad!

Are you one of his students? :^)

-- 
By ZeD



RE: Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Vincent van Ravesteijn - TNW
 
I use ifthenelse in my exams. That way I can have one
version of the exam without solutions, and one with
solution, without having to have two documents. If
you want, I can send you one of my exams.

This is the typical example for using branches.

(Document-Settings-Branches and Insert-Branch).

Vincent



Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Pavel Sanda
Vincent van Ravesteijn - TNW wrote:
 I'm assuming I need a command line client for svn to execute... 
 
 Yes.
 
 is there a way to make Tortoise SVN handle this...
 
 Yes.
 
 Enter the following command in the command buffer
 (View-Toolbars-Command Buffer):
 
 vc-command DS . TortoiseProc /command:commit /path:$$p

btw one can look into Additional features manual, where is
the documentation :)

pavel


RE: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Vincent van Ravesteijn - TNW

 Enter the following command in the command buffer 
 (View-Toolbars-Command Buffer):
 
 vc-command DS . TortoiseProc /command:commit /path:$$p

btw one can look into Additional features manual, where is the
documentation :)


And then you will find out that the 'S flag' does not exist... (yet)

pavel


Vincent


Re: Allignment of figure

2009-04-22 Thread Uwe Stöhr

tomas jansen schrieb:


When I put a picture inside a float in LyX and make a pdf out of it the 
allignment is not in the center.


Set the cursor behind or before the figure and use then the paragraph dialog to center the paragraph 
and thus also the image.



I am using version 1.4.1 and making a book with two sides turned on.


I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.

regards Uwe


Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Pavel Sanda
Vincent van Ravesteijn - TNW wrote:
 
  Enter the following command in the command buffer 
  (View-Toolbars-Command Buffer):
  
  vc-command DS . TortoiseProc /command:commit /path:$$p
 
 btw one can look into Additional features manual, where is the
 documentation :)
 
 
 And then you will find out that the 'S flag' does not exist... (yet)

my fault, S shouldn't be in manual. copy/paste error, which i will fix.
pavel


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread James C. Sutherland


This is the typical example for using branches.

(Document-Settings-Branches and Insert-Branch).



I use branches for this purpose as well (creating exams).  They work  
very well, and are scalable to any number of branches that you can  
turn on and off to create different compiled documents...


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Anders Host-Madsen
 I use branches for this purpose as well (creating exams).  They work  
 very well, and are scalable to any number of branches that you can  
 turn on and off to create different compiled documents...

Maybe that's an easier, and more elegant, solution 
than using ifthenelse. You learn something new about how powerful
LyX is every day. One advantage of using ifthenelse is that the conditional
becomes part of the LaTeX if you export to LaTeX, while branches is a
pure LyX solution (I still prefer to have a LaTeX copy of all my documents
for compatibility). 





Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Steve Litt
On Wednesday 22 April 2009 11:40:29 am Vito De Tullio wrote:
 Steve Litt wrote:
  I use ifthenelse in my exams. That way I can have one version of
  the exam without solutions, and one with solution, without having to
  have two documents. If you want, I can send you one of my
  exams.
 
  I want. I want bad!

 Are you one of his students? :^)

No, I'm a student of life :-)

I'm (very slowly) writing a math book with multiple choice questions at the 
end of each chapter. I plan on having the correct choice be a different 
environment, but only in certain cases do I want it to look differently.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Anders Host-Madsen
Steve Litt sl...@... writes:

 I'm (very slowly) writing a math book with multiple choice questions at the 
 end of each chapter. I plan on having the correct choice be a different 
 environment, but only in certain cases do I want it to look differently.

As I said below (or above, depending on how you read this list), using branches
seems more elegant. I didn't realize this when I implemented the ifthenelse
solution.



Thanks for the Alternative Installer!

2009-04-22 Thread Nick Bell
Just a quick note to say thanks for the Alternative Installer for LyX 
1.6.2. Having banged my head against a brick wall for a day trying to 
get EPS/PDF previews to work using the standard Windows installer, 
messing around with paths etc., the complete alternative installer Just 
Worked.


Just as I was about to despair having switched back to Windows** on my 
work laptop, all is now well. Thanks!


**I spent too much time in a virtual machine on Ubuntu...
--
Nick Bell
m...@nickbell.org


Re: Allignment of figure

2009-04-22 Thread Waluyo Adi Siswanto

 I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.
 
 regards Uwe

I have never heard 1.5.9 ? or I miss this version. Perhaps 1.5.6?
---
was



Re: Allignment of figure

2009-04-22 Thread Uwe Stöhr

Waluyo Adi Siswanto schrieb:


I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.

regards Uwe


I have never heard 1.5.9 ?


Sorry, I meant LyX 1.5.7.

regards Uwe


RE: Allignment of figure

2009-04-22 Thread tomas jansen



 Date: Wed, 22 Apr 2009 18:33:07 +0200
 From: uwesto...@web.de
 To: tomasjanse...@hotmail.com
 CC: lyx-users@lists.lyx.org
 Subject: Re: Allignment of figure
 
 tomas jansen schrieb:
 
 When I put a picture inside a float in LyX and make a pdf out of it the 
 allignment is not in the center.
 
 Set the cursor behind or before the figure and use then the paragraph dialog 
 to center the paragraph 
 and thus also the image.
 
 I am using version 1.4.1 and making a book with two sides turned on.
 
 I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.
 
 regards Uwe

Thanks for the answers, sorry for the confusion but I am using version 1.6.1, 
cannot download the new version at the moment.
I tried centering the picture, and on the preview screen it does center, just 
not in the PDF. I also know how to adjust the size and all.
I tried to change setting in both the float and the picture, and tried with 
indent on an off, but nothing seems to happen.
Regards,Tomas
_
De grappigste filmpjes vind je op MSN Video!
http://video.msn.com/video.aspx?mkt=nl-nl

Re: Allignment of figure

2009-04-22 Thread Uwe Stöhr

tomas jansen schrieb:


Thanks for the answers, sorry for the confusion but I am using version 1.6.1, 
cannot download the new version at the moment.


This links works for me:
ftp://ftp.lyx.org/pub/lyx/bin/1.6.2/LyX-162-4-18-AltInstaller-Small.exe


I tried centering the picture, and on the preview screen it does center, just 
not in the PDF.


Can you please send a small example LyX file?

regards Uwe


How to move bottom page number to top on chapter-heading pages?

2009-04-22 Thread Sophie (itsme213)
I'm using memoir/book, mostly default settings. Page numbering is at the 
top, except on chapter heading pages where it appears at the bottom.

Is there a simple way (LaTex-wise) to have all page numbers at the top?

Thanks! 





Theorems, lemmas, definitions... in Spanish

2009-04-22 Thread Michael Solis Chacon
Hello guys,

I'm making my thesis in Lyx, and i need to write theorems, definitions, etc; but
its necesary that appear like Teorema, Lema, Definición, etc.(in Spanish)

I selected the document's language in spanish, the encoding is latin1, and the
Theorems(AMS), Theorems(AMS-Extended) and Theorems(By Chapter).

The problems it's the definitions for the theorems still in English,


%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{Theorem}
\else
\newtheorem{thm}{Theorem}[chapter]
\fi
  \theoremstyle{definition}
  \newtheorem{defn}[thm]{Definition}


Could someone help me?

Thanks in advance.


PS: The preamble is this, (copy-paste from the source view)


% Preview source code

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,oneside,english,spanish]{book}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3.5cm,rmargin=3cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{color}
\usepackage{verbatim}
\usepackage{textcomp}
\usepackage{amsthm}
\usepackage{relsize}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{amssymb}
\onehalfspacing

\makeatletter

%% LyX specific LaTeX commands.
\declarerobustcommand{\lyxmathsym}[1]{\ifmmode\begingroup\de...@ld{bold}
  \def\rmorbf##1{\ifx\m...@version\b@ld\textbf{##1}\else\textrm{##1}\fi}
  \mathchoice{\hbox{\rmorbf{#1}}}{\hbox{\rmorbf{#1}}}
  {\hbox{\smaller[2]\rmorbf{#1}}}{\hbox{\smaller[3]\rmorbf{#1}}}
  \endgroup\else#1\fi}

%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}

%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{Theorem}
\else
\newtheorem{thm}{Theorem}[chapter]
\fi
  \theoremstyle{definition}
  \newtheorem{defn}[thm]{Definition}

%% User specified LaTeX commands.

%%%Paquetes
\usepackage[Glenn]{fncychap}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{babelbib}
\usepackage{fancyhdr}


%
%% Encabezados
%
\pagestyle{fancy}
\fancyhead{}
\fancyhead[CE]{\scriptsize \leftmark}
\fancyhead[CO]{\scriptsize \rightmark}
\fancyhead[LE,RO]{\thepage}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.9pt}
%
%% Estilos de teoremas
% \swapnumbers
%\theoremstyle{plain}
%\newtheorem{teorema}{Teorema}%[section]
% \theoremstyle{definition}
% \newtheorem{definicion}[teorema]{Definici\'{o}n}
% \newtheorem{ejemplo}[teorema]{Ejemplo}
% \newtheorem{ejercicio}[teorema]{Ejercicio}
% \newtheorem{nota}[teorema]{$ $Nota}
% %\newtheorem*{sol}{Soluci\'{o}n}
% \newcommand{\bsol}{\begin{proof}[Soluci\'{o}n]}
% \newcommand{\esol}{\end{proof}}
% \theoremstyle{remark}
%% Fin Estilos

\renewcommand{\chaptername}{Capítulo}

\makeatother

\usepackage[spanish]{babel}
\addto\shorthandsspanish{\spanishdeactivate{~}}



Making long selects

2009-04-22 Thread john
Hi

I am frustrated in my attempts to select very long passages (for
deletion) in a LyX document.

When I attempt to select by
a. Left clicking and holding then
b. Dragging the mouse

things work as expected until I hit the last visible line on the screen.
Then there is a mighty upheaval and I find I have selected way beyond my
intended target. So still holding down the left button and trying to go
back up a little - again LyX over reacts and I find myself back earlier
in the text than where I started.

Questions:

1. Am I doing something wrong?
2. Is there a better way to select largish chunks of text (say a whole
chapter).
3. Is there any way to mark places in a document then delete to the mark
(as in vi)

John O'Gorman


Re: Making long selects

2009-04-22 Thread Nicolas Ferré
Hi, I noticed the same kind of behavior. Now I use the ctrl+shift+arrow 
combination.


Hope this helps.

NF

john a écrit :

Hi

I am frustrated in my attempts to select very long passages (for
deletion) in a LyX document.

When I attempt to select by
a. Left clicking and holding then
b. Dragging the mouse

things work as expected until I hit the last visible line on the screen.
Then there is a mighty upheaval and I find I have selected way beyond my
intended target. So still holding down the left button and trying to go
back up a little - again LyX over reacts and I find myself back earlier
in the text than where I started.

Questions:

1. Am I doing something wrong?
2. Is there a better way to select largish chunks of text (say a whole
chapter).
3. Is there any way to mark places in a document then delete to the mark
(as in vi)

John O'Gorman




--
Nicolas Ferre'
Laboratoire Chimie Provence
Universite' de Provence - France
Tel: +33 491282733
http://sites.univ-provence.fr/lcp-ct


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Guenter Milde
On 2009-04-22, Anders Host-Madsen wrote:

...
 One advantage of using ifthenelse is that the conditional becomes part
 of the LaTeX if you export to LaTeX, while branches is a pure LyX
 solution (I still prefer to have a LaTeX copy of all my documents for
 compatibility).

You might file an enhancement request for an 

 export to LaTeX source 
 
branch setting.

The `comment`__ package is a LaTeX equivalent of the LyX branches. It
allows named commends with configurable visibility in the output.

Günter

__ http://dante.ctan.org/CTAN/help/Catalogue/entries/comment.html



Re: A simple question

2009-04-22 Thread Guenter Milde
On 2009-04-22, Adrian Diaz wrote:
...
 Sometime i have to write long titles for chapters, sections etc.
 Ho do i manage justify to left, center, rigth or simply justify?

Menu EditParagraph and click the corresponding radiobutton.

Some document classes do not support all justifications.
As a workaround: insert stretchable space (hfill) (via InsertFormatting...)
or M-x space-insert hfill.

 Any advice?

Use a more telling subject line.

Yours,

Günter




Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-21, Ehud Kaplan wrote:

1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
   found only packages that could not be installed since it was the
   wrong architecture.  Is there a place where I can find Lyx 1.6.2
   for 64 bits Linux?

LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
architectures. I don't know whether it works with Ubuntu, though.

2. When trying to import a Latex file into Lyx it gagged on the
   umlauts in the Latex file ( W\assle )

 How do I get around it?

Did you try the way LyX writes Umlauts?

G\{u}nter




Re: Want to show URLs in printed version

2009-04-22 Thread Guenter Milde
On 2009-04-21, Drew Kime wrote:

  But I'd like to be able to create a version
 for print that would show the special name *and* the URL, since you
 obviously can't click on a book.

...

 So you're confirming that it's *not* possible to do pretty links for
 electronic documents, but add something in the preamble that will
 render th e link after the title?

No. Only the we on this list don't know of a way. Maybe the LaTeX
experts at comp.text.tex have a solution.

Günter



Re: Upgrading to 1.6.2

2009-04-22 Thread John McCabe-Dansted
On Wed, Apr 22, 2009 at 2:55 PM, Guenter Milde mi...@users.berlios.de wrote:
 On 2009-04-21, Ehud Kaplan wrote:

1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
   found only packages that could not be installed since it was the
   wrong architecture.  Is there a place where I can find Lyx 1.6.2
   for 64 bits Linux?

 LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
 architectures. I don't know whether it works with Ubuntu, though.

Also there appears to be a LyX ppa for ubuntu, but it appears to be
out-of-date, and rather broken:

https://launchpad.net/~lyx-developers/+archive/ppa

Are there any plans to have an up-to-date PPA for Ubuntu?
 (this would seem much cleaner than trying to manually build packages
for various versions of Ubuntu, and upload them to ftp.lyx.org).

-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia


Re: Document Tabs

2009-04-22 Thread Abdelrazak Younes

Rich Shepard wrote:

  When multiple documents are open in 1.6.2 there is a tab for each one.
However, they are the same color and the tab frame of the selected/active
document is so subtly different that it's easy to mistake which one it is.

  Is there a way to clearly and unambiguously determine which document 
is the

current one by looking at the tabs rather than the window frame?


The current is clearly distinguished from the others. My guess is that 
the Qt style you are using is misleading WRT tabs.


Abdel.



Re: Upgrading to 1.6.2

2009-04-22 Thread E. Kaplan

Yes, I tried both ways of writing umlauts, but both failed.



Ehud Kaplan



Guenter Milde wrote:

On 2009-04-21, Ehud Kaplan wrote:

  

   1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
  found only packages that could not be installed since it was the
  wrong architecture.  Is there a place where I can find Lyx 1.6.2
  for 64 bits Linux?



LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
architectures. I don't know whether it works with Ubuntu, though.

  

   2. When trying to import a Latex file into Lyx it gagged on the
  umlauts in the Latex file ( W\assle )



  

How do I get around it?



Did you try the way LyX writes Umlauts?

G\{u}nter


  


Re: Automating Index Entry Removal

2009-04-22 Thread Jean-Marc Lasgouttes
rgheck rgh...@bobjweil.com writes:
 Rich Shepard wrote:
 On Tue, 21 Apr 2009, rgheck wrote:

 Open the LyX file in a text editor and you'll see the format of
 these. You
 can then write a simple script that will remove them: sed, perl, python,
 whatever.

 That's what I thought the default would be. :-) I was wondering if there
 was a way within LyX to do the job. Regardless, emacs will do it
 just fine.

 No, not in 1.6. There's been work for the next version that will
 provide this kind of facility, so you could try doing this in 2.0.svn
 and then exporting to 1.6. It'd be interesting to know if it worked.

Do we have that (removing all indexes)? How?

JMarc


Re: Lyx question

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 04:12:50 +0200, Nathalia Monteiro 
nathaliamonte...@gmail.com wrote:

I imported the layout of a beamer presentation from Latex and after  
editing

it on Lyx, I couldn't see it as a PDF due to some errors:
The Lyx - Latex error box pops up saying:


Yeah, especially with the beamer template, the error messages can be less than 
helpful. It it possible for you to post the file somewhere (e.g. pastebin.com), 
so that we can take a look at it and maybe help?

Then, I tried to export the file I had altered on Lyx to Latex plain to  
try

to open it using TexnicCenter, however, I couldn't figure where the files
are exported to. I couldn't find the file I exported.


The exported files are in the same folder as the lyx file, with the same name but a different ending. LyX files 
end in .lyx, while the exported LaTeX ends in .tex. To see which folder the file is in, 
just click on File - Save as This should open a dialog window showing the current folder of 
the file.


Can someone help me out?


We try :)

Cheers,

Kosta




Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 04:48:20 +0200, sykes ed.sy...@sheridanc.on.ca wrote:


I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX:



Some problem occured while running the command:
'svn commit -m  ... 


I don't have access to a windows machine at the moment, but can you check if 
svn is in the windows PATH? Just open a command prompt and type 'svn'. If it 
says command not found (or something similar), its not there. Try adding the 
Tortoise SVN folder containing svn.exe to the Windows PATH. (It's probably 
Program Files\Tortoise SVN\bin). Follow this guide to add something to the PATH 
variable:

http://www.computerhope.com/issues/ch000549.htm

I'm assuming I need a command line client for svn to execute... is there  
a way to make Tortoise SVN handle this...or is there another application  
that will do it...or do I need to install cygwin and run LyX through it?


Tortoise SVN is a graphical front-end to svn. I think it includes svn.exe. Even 
if it doesnt, you would need to install svn for windows and _NOT_ some cygwin 
stuff. Lyx needs the command line program, not a graphical front-end. 
Alternatively, you can just use Tortoise SVN _instead_ of LyX to handle 
versioning, but I guess you already knew that :)

Cheers,

Kosta




Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-22, E. Kaplan wrote:

2. When trying to import a Latex file into Lyx it gagged on the
   umlauts in the Latex file ( W\assle )

 How do I get around it?

 Did you try the way LyX writes Umlauts?

 Yes, I tried both ways of writing umlauts, but both failed.

As you do not provide a minimal (but complete) example, I can only guess
that it is the encoding problem described below.


Here is a minimal example:

\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

Günter G\unter G\{u}nter

\end{document}

When importing, tex2lyx works fine but the lyx2lyx step fails:

Warning: #LyX file created by tex2lyx 1.6.2
Traceback (most recent call last):
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 83, in module
main()
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 76, in main
doc = LyX.File(**options.__dict__)
  File /usr/share/lyx/lyx2lyx/LyX.py, line 652, in __init__
self.read()
  File /usr/share/lyx/lyx2lyx/LyX.py, line 287, in read
line = self.input.readline().decode(self.encoding)
  File /usr/lib/python2.5/encodings/utf_8.py, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 9-14: 
unsupported Unicode code range
Error: Das Konvertierungsskript ist fehlgeschlagen

/home/milde/Texte/Test/LyX/LyX16-bugs/import-umlauts.lyx stammt von einer 
anderen LyX-Version, aber das lyx2lyx-Skript konnte das Dokument nicht 
konvertieren.


Looking at the LyX file in a text editor revealed, that \u and \{u} are
both converted to a latin-1 encoded ü.

Converting to UTF-8 did not help, but changing

-\usepackage[utf8]{inputenc}
+\usepackage[latin1]{inputenc}

did (of course after converting the UTF-8 encoded ü).

Günter



Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Uwe Stöhr

sykes schrieb:


I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX: 


You want to commit some changes to LyX's SVN repository? This is only possible for developers with a 
LyX SVN account.


regards Uwe


RE: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Vincent van Ravesteijn - TNW
I'm assuming I need a command line client for svn to execute... 

Yes.

is there a way to make Tortoise SVN handle this...

Yes.

Enter the following command in the command buffer
(View-Toolbars-Command Buffer):

vc-command DS . TortoiseProc /command:commit /path:$$p

Vincent


Re: Upgrading to 1.6.2

2009-04-22 Thread E. Kaplan
Thanks very much, G\unter.  Although your minimal example did not work 
either (I got an error complaining that it came from another Lyx 
version, etc.), I discovered that by modifying your example slightly 
(using latin1 instead of your utf8-- see below) everything worked.  I do 
not understand the problem, but I am happy to have a solution.


\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\begin{document}

Günter G\unter G\{u}nter

\end{document}




Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*The laboratory of Visual Neuroscience*
Depts. of Neuroscience, Ophthalmology, Physiology  Biophysics,
The Mount Sinai School of Medicine
One Gustave Levy Place
NY, NY, 10029



Guenter Milde wrote:

On 2009-04-22, E. Kaplan wrote:

  

   2. When trying to import a Latex file into Lyx it gagged on the
  umlauts in the Latex file ( W\assle )



  

How do I get around it?



  

Did you try the way LyX writes Umlauts?
  


  

Yes, I tried both ways of writing umlauts, but both failed.



As you do not provide a minimal (but complete) example, I can only guess
that it is the encoding problem described below.


Here is a minimal example:

\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

Günter G\unter G\{u}nter

\end{document}

When importing, tex2lyx works fine but the lyx2lyx step fails:

Warning: #LyX file created by tex2lyx 1.6.2
Traceback (most recent call last):
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 83, in module
main()
  File /usr/share/lyx/lyx2lyx/lyx2lyx, line 76, in main
doc = LyX.File(**options.__dict__)
  File /usr/share/lyx/lyx2lyx/LyX.py, line 652, in __init__
self.read()
  File /usr/share/lyx/lyx2lyx/LyX.py, line 287, in read
line = self.input.readline().decode(self.encoding)
  File /usr/lib/python2.5/encodings/utf_8.py, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 9-14: 
unsupported Unicode code range
Error: Das Konvertierungsskript ist fehlgeschlagen

/home/milde/Texte/Test/LyX/LyX16-bugs/import-umlauts.lyx stammt von einer 
anderen LyX-Version, aber das lyx2lyx-Skript konnte das Dokument nicht 
konvertieren.


Looking at the LyX file in a text editor revealed, that \u and \{u} are
both converted to a latin-1 encoded ü.

Converting to UTF-8 did not help, but changing

-\usepackage[utf8]{inputenc}
+\usepackage[latin1]{inputenc}

did (of course after converting the UTF-8 encoded ü).

Günter

  


Allignment of figure

2009-04-22 Thread tomas jansen

Hi,
When I put a picture inside a float in LyX and make a pdf out of it the 
allignment is not in the center. The text under the picture is in the middle 
compared to normal text underneath. Up till a centain size the picture has more 
space on the right than on the left side. When the picture gets too big the 
picture shifts right and part of it is even right of the text.The paragraph 
settings of both the figure and the float do not seem to mind. I would like to 
make the picture 70% of the text width. I am using version 1.4.1 and making a 
book with two sides turned on.
Regards,Tomas
_
Haal meer uit je leven met Windows Live
http://www.microsoft.com/netherlands/windowslive/Views/index.aspx

Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-22, E. Kaplan wrote:

 Thanks very much, G\unter.  Although your minimal example did not work 
 either (I got an error complaining that it came from another Lyx 
 version, etc.)

It was not a solution, but a minimal example of failing code!

 , I discovered that by modifying your example slightly 
 (using latin1 instead of your utf8-- see below) everything worked.  

Yes, that is what I described in the text after the example.

Günter

(BTW: please do not append a quote of previous postings (i.e. no TOFU please).



Re: Document Tabs

2009-04-22 Thread Rich Shepard

On Wed, 22 Apr 2009, Abdelrazak Younes wrote:


The current is clearly distinguished from the others. My guess is that the
Qt style you are using is misleading WRT tabs.


Abdel,

  This could well be the case. I use the default Qt4 style ... whatever that
happens to be. :-)

Rich

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


Re: Document Tabs

2009-04-22 Thread Rich Shepard

On Wed, 22 Apr 2009, Rich Shepard wrote:


The current is clearly distinguished from the others. My guess is that the
Qt style you are using is misleading WRT tabs.


  OK. I ran qtconfig and changed the default appearance from motif to
cleanlook; now the active tab has a different appearance from the inactive
one.

Thanks,

Rich

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


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Anders Host-Madsen
I use ifthenelse in my exams. That way I can have one version of
the exam without solutions, and one with solution, without having to
have two documents. If you want, I can send you one of my
exams.



Re: Automating Index Entry Removal

2009-04-22 Thread Richard Heck

Jean-Marc Lasgouttes wrote:

Do we have that (removing all indexes)? How?

  
I was under the impression that the new search/replace stuff was 
supposed to allow this sort of thing.


rh



Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Steve Litt
On Wednesday 22 April 2009 10:18:14 am Anders Host-Madsen wrote:
 I use ifthenelse in my exams. That way I can have one version of
 the exam without solutions, and one with solution, without having to
 have two documents. If you want, I can send you one of my
 exams.

I want. I want bad!

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Lyx question

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 16:44:41 +0200, Nathalia Monteiro 
nathaliamonte...@gmail.com wrote:

What exactly should I post at pastebin.com? The error message or the  
whole tex code?


Please post the whole lyx file.

Cheers,

Kosta



Re: Springer 1-Column Proceedings Template with Lyx

2009-04-22 Thread hartepizza
Guenter Milde mi...@... writes:

 
 On 2009-04-08, hartepizza wrote:
  Hello everybody,
 
  I just can't figure out how to use the 1-Column Proceedings template
  from Springer within Lyx.
 ...
  they offer a general template for LaTeX.
 
  Is there some FAQ / similiar post, where the necessary steps are described?
 
 HelpCustomization
 
 search at wiki.lyx.org
 
 Günter
 
 


Hi Günter,

thanks for your hint. I'll write just some hints so others may find solution via
mailing lists. 

I read myself through the documentation and assume I installed the .sty/.cls +
.bst files correctly in MikTex. I also did Refresh FNDB within MikTex and
Refonfigure in Lyx.

Lyx finds all classes files. I tested with Tools-Tex Information within Lyx.

Thanks!








Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Vito De Tullio
Steve Litt wrote:

 I use ifthenelse in my exams. That way I can have one version of
 the exam without solutions, and one with solution, without having to
 have two documents. If you want, I can send you one of my
 exams.
 
 I want. I want bad!

Are you one of his students? :^)

-- 
By ZeD



RE: Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Vincent van Ravesteijn - TNW
 
I use ifthenelse in my exams. That way I can have one
version of the exam without solutions, and one with
solution, without having to have two documents. If
you want, I can send you one of my exams.

This is the typical example for using branches.

(Document-Settings-Branches and Insert-Branch).

Vincent



Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Pavel Sanda
Vincent van Ravesteijn - TNW wrote:
 I'm assuming I need a command line client for svn to execute... 
 
 Yes.
 
 is there a way to make Tortoise SVN handle this...
 
 Yes.
 
 Enter the following command in the command buffer
 (View-Toolbars-Command Buffer):
 
 vc-command DS . TortoiseProc /command:commit /path:$$p

btw one can look into Additional features manual, where is
the documentation :)

pavel


RE: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Vincent van Ravesteijn - TNW

 Enter the following command in the command buffer 
 (View-Toolbars-Command Buffer):
 
 vc-command DS . TortoiseProc /command:commit /path:$$p

btw one can look into Additional features manual, where is the
documentation :)


And then you will find out that the 'S flag' does not exist... (yet)

pavel


Vincent


Re: Allignment of figure

2009-04-22 Thread Uwe Stöhr

tomas jansen schrieb:


When I put a picture inside a float in LyX and make a pdf out of it the 
allignment is not in the center.


Set the cursor behind or before the figure and use then the paragraph dialog to center the paragraph 
and thus also the image.



I am using version 1.4.1 and making a book with two sides turned on.


I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.

regards Uwe


Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Pavel Sanda
Vincent van Ravesteijn - TNW wrote:
 
  Enter the following command in the command buffer 
  (View-Toolbars-Command Buffer):
  
  vc-command DS . TortoiseProc /command:commit /path:$$p
 
 btw one can look into Additional features manual, where is the
 documentation :)
 
 
 And then you will find out that the 'S flag' does not exist... (yet)

my fault, S shouldn't be in manual. copy/paste error, which i will fix.
pavel


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread James C. Sutherland


This is the typical example for using branches.

(Document-Settings-Branches and Insert-Branch).



I use branches for this purpose as well (creating exams).  They work  
very well, and are scalable to any number of branches that you can  
turn on and off to create different compiled documents...


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Anders Host-Madsen
 I use branches for this purpose as well (creating exams).  They work  
 very well, and are scalable to any number of branches that you can  
 turn on and off to create different compiled documents...

Maybe that's an easier, and more elegant, solution 
than using ifthenelse. You learn something new about how powerful
LyX is every day. One advantage of using ifthenelse is that the conditional
becomes part of the LaTeX if you export to LaTeX, while branches is a
pure LyX solution (I still prefer to have a LaTeX copy of all my documents
for compatibility). 





Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Steve Litt
On Wednesday 22 April 2009 11:40:29 am Vito De Tullio wrote:
 Steve Litt wrote:
  I use ifthenelse in my exams. That way I can have one version of
  the exam without solutions, and one with solution, without having to
  have two documents. If you want, I can send you one of my
  exams.
 
  I want. I want bad!

 Are you one of his students? :^)

No, I'm a student of life :-)

I'm (very slowly) writing a math book with multiple choice questions at the 
end of each chapter. I plan on having the correct choice be a different 
environment, but only in certain cases do I want it to look differently.

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt



Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Anders Host-Madsen
Steve Litt sl...@... writes:

 I'm (very slowly) writing a math book with multiple choice questions at the 
 end of each chapter. I plan on having the correct choice be a different 
 environment, but only in certain cases do I want it to look differently.

As I said below (or above, depending on how you read this list), using branches
seems more elegant. I didn't realize this when I implemented the ifthenelse
solution.



Thanks for the Alternative Installer!

2009-04-22 Thread Nick Bell
Just a quick note to say thanks for the Alternative Installer for LyX 
1.6.2. Having banged my head against a brick wall for a day trying to 
get EPS/PDF previews to work using the standard Windows installer, 
messing around with paths etc., the complete alternative installer Just 
Worked.


Just as I was about to despair having switched back to Windows** on my 
work laptop, all is now well. Thanks!


**I spent too much time in a virtual machine on Ubuntu...
--
Nick Bell
m...@nickbell.org


Re: Allignment of figure

2009-04-22 Thread Waluyo Adi Siswanto

 I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.
 
 regards Uwe

I have never heard 1.5.9 ? or I miss this version. Perhaps 1.5.6?
---
was



Re: Allignment of figure

2009-04-22 Thread Uwe Stöhr

Waluyo Adi Siswanto schrieb:


I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.

regards Uwe


I have never heard 1.5.9 ?


Sorry, I meant LyX 1.5.7.

regards Uwe


RE: Allignment of figure

2009-04-22 Thread tomas jansen



 Date: Wed, 22 Apr 2009 18:33:07 +0200
 From: uwesto...@web.de
 To: tomasjanse...@hotmail.com
 CC: lyx-users@lists.lyx.org
 Subject: Re: Allignment of figure
 
 tomas jansen schrieb:
 
 When I put a picture inside a float in LyX and make a pdf out of it the 
 allignment is not in the center.
 
 Set the cursor behind or before the figure and use then the paragraph dialog 
 to center the paragraph 
 and thus also the image.
 
 I am using version 1.4.1 and making a book with two sides turned on.
 
 I strongly recommend to update to LyX 1.6.2 or at least to LyX 1.5.9.
 
 regards Uwe

Thanks for the answers, sorry for the confusion but I am using version 1.6.1, 
cannot download the new version at the moment.
I tried centering the picture, and on the preview screen it does center, just 
not in the PDF. I also know how to adjust the size and all.
I tried to change setting in both the float and the picture, and tried with 
indent on an off, but nothing seems to happen.
Regards,Tomas
_
De grappigste filmpjes vind je op MSN Video!
http://video.msn.com/video.aspx?mkt=nl-nl

Re: Allignment of figure

2009-04-22 Thread Uwe Stöhr

tomas jansen schrieb:


Thanks for the answers, sorry for the confusion but I am using version 1.6.1, 
cannot download the new version at the moment.


This links works for me:
ftp://ftp.lyx.org/pub/lyx/bin/1.6.2/LyX-162-4-18-AltInstaller-Small.exe


I tried centering the picture, and on the preview screen it does center, just 
not in the PDF.


Can you please send a small example LyX file?

regards Uwe


How to move bottom page number to top on chapter-heading pages?

2009-04-22 Thread Sophie (itsme213)
I'm using memoir/book, mostly default settings. Page numbering is at the 
top, except on chapter heading pages where it appears at the bottom.

Is there a simple way (LaTex-wise) to have all page numbers at the top?

Thanks! 





Theorems, lemmas, definitions... in Spanish

2009-04-22 Thread Michael Solis Chacon
Hello guys,

I'm making my thesis in Lyx, and i need to write theorems, definitions, etc; but
its necesary that appear like Teorema, Lema, Definición, etc.(in Spanish)

I selected the document's language in spanish, the encoding is latin1, and the
Theorems(AMS), Theorems(AMS-Extended) and Theorems(By Chapter).

The problems it's the definitions for the theorems still in English,


%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{Theorem}
\else
\newtheorem{thm}{Theorem}[chapter]
\fi
  \theoremstyle{definition}
  \newtheorem{defn}[thm]{Definition}


Could someone help me?

Thanks in advance.


PS: The preamble is this, (copy-paste from the source view)


% Preview source code

%% LyX 1.6.2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,oneside,english,spanish]{book}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3.5cm,rmargin=3cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{color}
\usepackage{verbatim}
\usepackage{textcomp}
\usepackage{amsthm}
\usepackage{relsize}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{amssymb}
\onehalfspacing

\makeatletter

%% LyX specific LaTeX commands.
\declarerobustcommand{\lyxmathsym}[1]{\ifmmode\begingroup\de...@ld{bold}
  \def\rmorbf##1{\ifx\m...@version\b@ld\textbf{##1}\else\textrm{##1}\fi}
  \mathchoice{\hbox{\rmorbf{#1}}}{\hbox{\rmorbf{#1}}}
  {\hbox{\smaller[2]\rmorbf{#1}}}{\hbox{\smaller[3]\rmorbf{#1}}}
  \endgroup\else#1\fi}

%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}

%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{Theorem}
\else
\newtheorem{thm}{Theorem}[chapter]
\fi
  \theoremstyle{definition}
  \newtheorem{defn}[thm]{Definition}

%% User specified LaTeX commands.

%%%Paquetes
\usepackage[Glenn]{fncychap}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{babelbib}
\usepackage{fancyhdr}


%
%% Encabezados
%
\pagestyle{fancy}
\fancyhead{}
\fancyhead[CE]{\scriptsize \leftmark}
\fancyhead[CO]{\scriptsize \rightmark}
\fancyhead[LE,RO]{\thepage}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.9pt}
%
%% Estilos de teoremas
% \swapnumbers
%\theoremstyle{plain}
%\newtheorem{teorema}{Teorema}%[section]
% \theoremstyle{definition}
% \newtheorem{definicion}[teorema]{Definici\'{o}n}
% \newtheorem{ejemplo}[teorema]{Ejemplo}
% \newtheorem{ejercicio}[teorema]{Ejercicio}
% \newtheorem{nota}[teorema]{$ $Nota}
% %\newtheorem*{sol}{Soluci\'{o}n}
% \newcommand{\bsol}{\begin{proof}[Soluci\'{o}n]}
% \newcommand{\esol}{\end{proof}}
% \theoremstyle{remark}
%% Fin Estilos

\renewcommand{\chaptername}{Capítulo}

\makeatother

\usepackage[spanish]{babel}
\addto\shorthandsspanish{\spanishdeactivate{~}}



Making long selects

2009-04-22 Thread john
Hi

I am frustrated in my attempts to select very long passages (for
deletion) in a LyX document.

When I attempt to select by
a. Left clicking and holding then
b. Dragging the mouse

things work as expected until I hit the last visible line on the screen.
Then there is a mighty upheaval and I find I have selected way beyond my
intended target. So still holding down the left button and trying to go
back up a little - again LyX over reacts and I find myself back earlier
in the text than where I started.

Questions:

1. Am I doing something wrong?
2. Is there a better way to select largish chunks of text (say a whole
chapter).
3. Is there any way to mark places in a document then delete to the mark
(as in vi)

John O'Gorman


Re: Making long selects

2009-04-22 Thread Nicolas Ferré
Hi, I noticed the same kind of behavior. Now I use the ctrl+shift+arrow 
combination.


Hope this helps.

NF

john a écrit :

Hi

I am frustrated in my attempts to select very long passages (for
deletion) in a LyX document.

When I attempt to select by
a. Left clicking and holding then
b. Dragging the mouse

things work as expected until I hit the last visible line on the screen.
Then there is a mighty upheaval and I find I have selected way beyond my
intended target. So still holding down the left button and trying to go
back up a little - again LyX over reacts and I find myself back earlier
in the text than where I started.

Questions:

1. Am I doing something wrong?
2. Is there a better way to select largish chunks of text (say a whole
chapter).
3. Is there any way to mark places in a document then delete to the mark
(as in vi)

John O'Gorman




--
Nicolas Ferre'
Laboratoire Chimie Provence
Universite' de Provence - France
Tel: +33 491282733
http://sites.univ-provence.fr/lcp-ct


Re: Can I please have an example of conditional ERT in LyX

2009-04-22 Thread Guenter Milde
On 2009-04-22, Anders Host-Madsen wrote:

...
 One advantage of using ifthenelse is that the conditional becomes part
 of the LaTeX if you export to LaTeX, while branches is a pure LyX
 solution (I still prefer to have a LaTeX copy of all my documents for
 compatibility).

You might file an enhancement request for an 

 export to LaTeX source 
 
branch setting.

The `comment`__ package is a LaTeX equivalent of the LyX branches. It
allows named commends with configurable visibility in the output.

Günter

__ http://dante.ctan.org/CTAN/help/Catalogue/entries/comment.html



Re: A simple question

2009-04-22 Thread Guenter Milde
On 2009-04-22, Adrian Diaz wrote:
...
> Sometime i have to write long titles for chapters, sections etc.
> Ho do i manage justify to left, center, rigth or simply justify?

Menu Edit>Paragraph> and click the corresponding radiobutton.

Some document classes do not support all justifications.
As a workaround: insert stretchable space (hfill) (via Insert>Formatting...)
or M-x space-insert hfill.

> Any advice?

Use a more telling subject line.

Yours,

Günter




Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-21, Ehud Kaplan wrote:

>1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
>   found only packages that could not be installed since it was "the
>   wrong architecture".  Is there a place where I can find Lyx 1.6.2
>   for 64 bits Linux?

LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
architectures. I don't know whether it works with Ubuntu, though.

>2. When trying to import a Latex file into Lyx it gagged on the
>   umlauts in the Latex file ( W\"assle )

> How do I get around it?

Did you try the way LyX writes Umlauts?

G\"{u}nter




Re: Want to show URLs in printed version

2009-04-22 Thread Guenter Milde
On 2009-04-21, Drew Kime wrote:

>>  But I'd like to be able to create a version
>>> for print that would show the special name *and* the URL, since you
>>> obviously can't click on a book.

...

> So you're confirming that it's *not* possible to do "pretty" links for
> electronic documents, but add something in the preamble that will
> render th e link after the title?

No. Only the we on this list don't know of a way. Maybe the LaTeX
experts at comp.text.tex have a solution.

Günter



Re: Upgrading to 1.6.2

2009-04-22 Thread John McCabe-Dansted
On Wed, Apr 22, 2009 at 2:55 PM, Guenter Milde  wrote:
> On 2009-04-21, Ehud Kaplan wrote:
>
>>1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
>>   found only packages that could not be installed since it was "the
>>   wrong architecture".  Is there a place where I can find Lyx 1.6.2
>>   for 64 bits Linux?
>
> LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
> architectures. I don't know whether it works with Ubuntu, though.

Also there appears to be a LyX ppa for ubuntu, but it appears to be
out-of-date, and rather broken:

https://launchpad.net/~lyx-developers/+archive/ppa

Are there any plans to have an up-to-date PPA for Ubuntu?
 (this would seem much cleaner than trying to manually build packages
for various versions of Ubuntu, and upload them to ftp.lyx.org).

-- 
John C. McCabe-Dansted
PhD Student
University of Western Australia


Re: Document Tabs

2009-04-22 Thread Abdelrazak Younes

Rich Shepard wrote:

  When multiple documents are open in 1.6.2 there is a tab for each one.
However, they are the same color and the tab frame of the selected/active
document is so subtly different that it's easy to mistake which one it is.

  Is there a way to clearly and unambiguously determine which document 
is the

current one by looking at the tabs rather than the window frame?


The current is clearly distinguished from the others. My guess is that 
the Qt style you are using is misleading WRT tabs.


Abdel.



Re: Upgrading to 1.6.2

2009-04-22 Thread E. Kaplan

Yes, I tried both ways of writing umlauts, but both failed.



Ehud Kaplan



Guenter Milde wrote:

On 2009-04-21, Ehud Kaplan wrote:

  

   1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
  found only packages that could not be installed since it was "the
  wrong architecture".  Is there a place where I can find Lyx 1.6.2
  for 64 bits Linux?



LyX 1.6.2 is available as *.deb package in Debian/testing for several 64-bit
architectures. I don't know whether it works with Ubuntu, though.

  

   2. When trying to import a Latex file into Lyx it gagged on the
  umlauts in the Latex file ( W\"assle )



  

How do I get around it?



Did you try the way LyX writes Umlauts?

G\"{u}nter


  


Re: Automating Index Entry Removal

2009-04-22 Thread Jean-Marc Lasgouttes
rgheck  writes:
> Rich Shepard wrote:
>> On Tue, 21 Apr 2009, rgheck wrote:
>>
>>> Open the LyX file in a text editor and you'll see the format of
>>> these. You
>>> can then write a simple script that will remove them: sed, perl, python,
>>> whatever.
>>
>> That's what I thought the default would be. :-) I was wondering if there
>> was a way within LyX to do the job. Regardless, emacs will do it
>> just fine.
>>
> No, not in 1.6. There's been work for the next version that will
> provide this kind of facility, so you could try doing this in 2.0.svn
> and then exporting to 1.6. It'd be interesting to know if it worked.

Do we have that (removing all indexes)? How?

JMarc


Re: Lyx question

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 04:12:50 +0200, Nathalia Monteiro 
 wrote:

I imported the layout of a beamer presentation from Latex and after  
editing

it on Lyx, I couldn't see it as a PDF due to some errors:
The Lyx - Latex error box pops up saying:


Yeah, especially with the beamer template, the error messages can be less than 
helpful. It it possible for you to post the file somewhere (e.g. pastebin.com), 
so that we can take a look at it and maybe help?

Then, I tried to export the file I had altered on Lyx to Latex plain to  
try

to open it using TexnicCenter, however, I couldn't figure where the files
are exported to. I couldn't find the file I exported.


The exported files are in the same folder as the lyx file, with the same name but a different ending. LyX files 
end in ".lyx", while the exported LaTeX ends in ".tex". To see which folder the file is in, 
just click on "File -> Save as...". This should open a dialog window showing the current folder of 
the file.


Can someone help me out?


We try :)

Cheers,

Kosta




Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Kosta Welke

On Wed, 22 Apr 2009 04:48:20 +0200, sykes  wrote:


I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX:



"Some problem occured while running the command:
'svn commit -m " ... "


I don't have access to a windows machine at the moment, but can you check if 
svn is in the windows PATH? Just open a command prompt and type 'svn'. If it 
says command not found (or something similar), its not there. Try adding the 
Tortoise SVN folder containing svn.exe to the Windows PATH. (It's probably 
Program Files\Tortoise SVN\bin). Follow this guide to add something to the PATH 
variable:

http://www.computerhope.com/issues/ch000549.htm

I'm assuming I need a command line client for svn to execute... is there  
a way to make Tortoise SVN handle this...or is there another application  
that will do it...or do I need to install cygwin and run LyX through it?


Tortoise SVN is a graphical front-end to svn. I think it includes svn.exe. Even 
if it doesnt, you would need to install svn for windows and _NOT_ some cygwin 
stuff. Lyx needs the command line program, not a graphical front-end. 
Alternatively, you can just use Tortoise SVN _instead_ of LyX to handle 
versioning, but I guess you already knew that :)

Cheers,

Kosta




Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-22, E. Kaplan wrote:

>>>2. When trying to import a Latex file into Lyx it gagged on the
>>>   umlauts in the Latex file ( W\"assle )

>>> How do I get around it?

>> Did you try the way LyX writes Umlauts?

> Yes, I tried both ways of writing umlauts, but both failed.

As you do not provide a minimal (but complete) example, I can only guess
that it is the encoding problem described below.


Here is a minimal example:

\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

Günter G\"unter G\"{u}nter

\end{document}

When importing, tex2lyx works fine but the lyx2lyx step fails:

Warning: #LyX file created by tex2lyx 1.6.2
Traceback (most recent call last):
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 83, in 
main()
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 76, in main
doc = LyX.File(**options.__dict__)
  File "/usr/share/lyx/lyx2lyx/LyX.py", line 652, in __init__
self.read()
  File "/usr/share/lyx/lyx2lyx/LyX.py", line 287, in read
line = self.input.readline().decode(self.encoding)
  File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 9-14: 
unsupported Unicode code range
Error: Das Konvertierungsskript ist fehlgeschlagen

/home/milde/Texte/Test/LyX/LyX16-bugs/import-umlauts.lyx stammt von einer 
anderen LyX-Version, aber das lyx2lyx-Skript konnte das Dokument nicht 
konvertieren.


Looking at the LyX file in a text editor revealed, that \"u and \"{u} are
both converted to a latin-1 encoded ü.

Converting to UTF-8 did not help, but changing

-\usepackage[utf8]{inputenc}
+\usepackage[latin1]{inputenc}

did (of course after converting the UTF-8 encoded ü).

Günter



Re: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Uwe Stöhr

sykes schrieb:


I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX: 


You want to commit some changes to LyX's SVN repository? This is only possible for developers with a 
LyX SVN account.


regards Uwe


RE: LyX 1.6.2 -- svn on Windows

2009-04-22 Thread Vincent van Ravesteijn - TNW
>I'm assuming I need a command line client for svn to execute... 

Yes.

>is there a way to make Tortoise SVN handle this...

Yes.

Enter the following command in the command buffer
(View->Toolbars->Command Buffer):

vc-command DS "." "TortoiseProc /command:commit /path:$$p"

Vincent


Re: Upgrading to 1.6.2

2009-04-22 Thread E. Kaplan
Thanks very much, G\"unter.  Although your minimal example did not work 
either (I got an error complaining that it came from another Lyx 
version, etc.), I discovered that by modifying your example slightly 
(using latin1 instead of your utf8-- see below) everything worked.  I do 
not understand the problem, but I am happy to have a solution.


\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\begin{document}

Günter G\"unter G\"{u}nter

\end{document}




Ehud Kaplan, Ph.D.
Jules and Doris Stein /Research to Prevent Blindness/ Professor
*The laboratory of Visual Neuroscience*
Depts. of Neuroscience, Ophthalmology, Physiology & Biophysics,
The Mount Sinai School of Medicine
One Gustave Levy Place
NY, NY, 10029



Guenter Milde wrote:

On 2009-04-22, E. Kaplan wrote:

  

   2. When trying to import a Latex file into Lyx it gagged on the
  umlauts in the Latex file ( W\"assle )



  

How do I get around it?



  

Did you try the way LyX writes Umlauts?
  


  

Yes, I tried both ways of writing umlauts, but both failed.



As you do not provide a minimal (but complete) example, I can only guess
that it is the encoding problem described below.


Here is a minimal example:

\documentclass[]{article}

\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}

Günter G\"unter G\"{u}nter

\end{document}

When importing, tex2lyx works fine but the lyx2lyx step fails:

Warning: #LyX file created by tex2lyx 1.6.2
Traceback (most recent call last):
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 83, in 
main()
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 76, in main
doc = LyX.File(**options.__dict__)
  File "/usr/share/lyx/lyx2lyx/LyX.py", line 652, in __init__
self.read()
  File "/usr/share/lyx/lyx2lyx/LyX.py", line 287, in read
line = self.input.readline().decode(self.encoding)
  File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 9-14: 
unsupported Unicode code range
Error: Das Konvertierungsskript ist fehlgeschlagen

/home/milde/Texte/Test/LyX/LyX16-bugs/import-umlauts.lyx stammt von einer 
anderen LyX-Version, aber das lyx2lyx-Skript konnte das Dokument nicht 
konvertieren.


Looking at the LyX file in a text editor revealed, that \"u and \"{u} are
both converted to a latin-1 encoded ü.

Converting to UTF-8 did not help, but changing

-\usepackage[utf8]{inputenc}
+\usepackage[latin1]{inputenc}

did (of course after converting the UTF-8 encoded ü).

Günter

  


Allignment of figure

2009-04-22 Thread tomas jansen

Hi,
When I put a picture inside a float in LyX and make a pdf out of it the 
allignment is not in the center. The text under the picture is in the middle 
compared to normal text underneath. Up till a centain size the picture has more 
space on the right than on the left side. When the picture gets too big the 
picture shifts right and part of it is even right of the text.The paragraph 
settings of both the figure and the float do not seem to mind. I would like to 
make the picture 70% of the text width. I am using version 1.4.1 and making a 
book with two sides turned on.
Regards,Tomas
_
Haal meer uit je leven met Windows Live
http://www.microsoft.com/netherlands/windowslive/Views/index.aspx

Re: Upgrading to 1.6.2

2009-04-22 Thread Guenter Milde
On 2009-04-22, E. Kaplan wrote:

> Thanks very much, G\"unter.  Although your minimal example did not work 
> either (I got an error complaining that it came from another Lyx 
> version, etc.)

It was not a solution, but a minimal example of failing code!

> , I discovered that by modifying your example slightly 
> (using latin1 instead of your utf8-- see below) everything worked.  

Yes, that is what I described in the text after the example.

Günter

(BTW: please do not append a quote of previous postings (i.e. no TOFU please).



Re: Document Tabs

2009-04-22 Thread Rich Shepard

On Wed, 22 Apr 2009, Abdelrazak Younes wrote:


The current is clearly distinguished from the others. My guess is that the
Qt style you are using is misleading WRT tabs.


Abdel,

  This could well be the case. I use the default Qt4 style ... whatever that
happens to be. :-)

Rich

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


  1   2   >