back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Dear list

sorry for a lengthy letter, I have marked the important parts with ##:

after having spent in vain days to export my document to a pdf file using 
1.6.2 I would like to use 1.5.6 (1.5.5 gave no problems, but does not take 
## the 1.5.X lyx-export of 1.6.X). I remember there is a way to install it in 
addition to 1.6.X, but forgot how to do this.

I am using 1.6.3svn (and 1.6.1 /2 before) and Debian Lenny, koma script book 
and Jabref for creating the bib-files and inserting the references. 

I have several times described the problems 
(pdfendlink ended up in different nesting level than \pd) 
and got various proposals, but haven't managed to get it done. 

There was one proposal to use a more recent ghostscript (I had 8.62), but by 
upgrading Debian Lenny (which does not offer 8.64) to Squeeze I got troubles 
and reinstalled Lenny. 
##Question: is anybody using LyX1.6.X successfully under Debian using gs8.62?

I still do not know why I can't get the pdf output. As a result of all my 
trials I assumed that it has to do with some of the references, but it might 
perhaps be a more basic problem.
##Question: Where are the background files to be found and is it possible that 
the storage space is not sufficient? 

I had as a last trial used a master and 20 child inputs (for each chapter one) 
and I noticed that after removing some offending references they were all 
working separately, but not if run from the master. 

I then started to add one after the other to the master and ran only this one 
file. It worked until I added chapter 12 (that was about 300 pages, and 220 
figures, and about 600 references). Some references gave errors, and if I 
removed them, I got new errors of references which were alright before -even 
at places in earlier chapters. I then used chapter 12 as a starter and added 
the next chapters (altogether again about 300 pages and 160 figures) and got 
it to work. But when I fused the two large parts I got again reference 
errors, and now at the begin of the large document where there used to be no 
problems before. 

All this took a lot of time, because if I found the reference and removed it, 
the error would still be there (probably because the old aux file is used) 
and I had to finish LyX and restart it again. 
As a question to the LyX developers: Could one include a way to kill the aux 
file after a LyX run?

I was asked to give a minimal example, but I am afraid there is no way of 
doing it. It has probably to do with the large document, since I had never 
problems with smaller books (around 200 to 300 pages each, 200 to 300 
references, 100 to 200 figures). 

##Question: Is there a way to check the (in my case 1500) citations in the bib 
file for uncorrect (coding?) characters independent of LyX?

## I have not been able to figure out how the debug works.
 The description in the extended help file was not precise enough for me. 
Could somebody give me a detailed description? If I use, as proposed, 
lyx -dbg all (or font or any) nothing happens. ddd/gdb debugger: are those 
two debuggers or do they work together? It says, one should start at the 
place in question (an aktueller Position) in program command shift+⁺v and add 
editpreferenceshelpers echo... send it to the lyx pipe
and so on. I am confused and don't know what to do. 
Once I have understood it I am willing and glad to try to describe it in a way 
that underdeveloped (and over-aged) people like me will know what to do in 
order to debug a LyX session.

Thanks,

Wolfgang


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:

 ##Question: Is there a way to check the (in my case 1500) citations in the
 ##bib
 file for uncorrect (coding?) characters independent of LyX?

If you open your bib file with a decent text editor (such as Kate) and set 
the encoding to ISO-8599-1, the editor will yield a warning about wrongly 
encoded characters.

If you are sure you have encoded the file properly in utf-8, you can convert 
it to latin-1 via recode as described here:
http://wiki.lyx.org/BibTeX/Tips#toc1

HTH,
Jürgen




Re: LyX::Client.pm

2009-05-11 Thread Jean-Marc Lasgouttes
john j...@og.co.nz writes:
 The problem is that Client.pm expects to find the serverpipe assignments
 in the file: .lyx/lyxrc
 I don't think that Client.pm has been changed since 1999.
[...]
 But should the Client.pm program be altered to read the file: preferences?

 I am willing to make the necessary changes and submit them.

Client.pm is indeed unmaintained. Feel free to 'adopt' it and submit
updates. While we switched to python in general, there is no reason to
'kill' the perl bindings if they are still useful.

JMarc


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Am Monday 11 May 2009 10:52:01 schrieb Jürgen Spitzmüller:

so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

Wolfgang

 Wolfgang Engelmann wrote:
  ##Question: Is there a way to check the (in my case 1500) citations in
  the ##bib
  file for uncorrect (coding?) characters independent of LyX?

 If you open your bib file with a decent text editor (such as Kate) and set
 the encoding to ISO-8599-1, the editor will yield a warning about wrongly
 encoded characters.

 If you are sure you have encoded the file properly in utf-8, you can
 convert it to latin-1 via recode as described here:
 http://wiki.lyx.org/BibTeX/Tips#toc1

 HTH,
 Jürgen


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Dominik Waßenhoven
Wolfgang Engelmann wrote:

 so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

No, LyX could handle utf8, but BibTeX can't. See the explanation by
Philipp Lehman on comp.text.tex, Message-ID:
5c8mclf2uqc9...@mid.uni-berlin.de
(http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

Regards,
Dominik.-



Re: back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Am Monday 11 May 2009 13:16:44 schrieb Dominik Waßenhoven:

so I should export my bib file from Jabref in ISO-8599-1 for bibtex. 
bibtex produces the aux file, right? 
And Lyx accepts the ISO-8599-1 code?
What does Lyx do if it gets non- ISO-8599-1 coded characters in the aux-file?

 Wolfgang Engelmann wrote:
  so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

 No, LyX could handle utf8, but BibTeX can't. See the explanation by
 Philipp Lehman on comp.text.tex, Message-ID:
 5c8mclf2uqc9...@mid.uni-berlin.de
 (http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

He talks about UTF8, not utf8, as I see. 

Wolfgang


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Guenter Milde
On 2009-05-11, Wolfgang Engelmann wrote:
 Am Monday 11 May 2009 13:16:44 schrieb Dominik Waßenhoven:

 so I should export my bib file from Jabref in ISO-8599-1 for bibtex. 

this depends (see below).

The save bet would be to export clean ASCII which LyX/LaTeX/BibTeX always
understand and use LaTeX constructs for non-ASCII characters.

 And Lyx accepts the ISO-8599-1 code?

This depends on the setting of DocumentSettingsLanguageEncoding.

LyX just passes it to LaTeX. But the encoding should match the rest of
the document.

As your *.bib database might be used with different documents, possibly
in different encodings, the save bet is to use ASCII only.

 What does Lyx do if it gets non- ISO-8599-1 coded characters in the aux-file?

In the worst case, it does not produce an output file without any visible
error message.

 Wolfgang Engelmann wrote:
  so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

 No, LyX could handle utf8, but BibTeX can't. See the explanation by
 Philipp Lehman on comp.text.tex, Message-ID:
 5c8mclf2uqc9...@mid.uni-berlin.de
 (http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

 He talks about UTF8, not utf8, as I see. 

This should not make any difference.
Capitalization in emails is sometimes inconsistent.

Günter



Reference Formatting

2009-05-11 Thread Hesham Kamel
Hi,
Please, I am using the book more font size class with the unsrt style.
I need to have the references show up as: 1-5 instead 1,2,3,4,5.
Thank you

-- 
Hesham


Re: Reference Formatting

2009-05-11 Thread James C. Sutherland


On May 11, 2009, at 7:56 AM, Hesham Kamel wrote:


Hi,
Please, I am using the book more font size class with the unsrt style.
I need to have the references show up as: 1-5 instead 1,2,3,4,5.


Put:
\usepackage{cite}
in the preamble.


lyxauto file in tmpdir

2009-05-11 Thread Wolfgang Engelmann
I am still hunting for the BIG ERROR. 
as a reminder, I can't get the pdf file of a large document.

I have gone in a texteditor through all the references in the bib file, and 
corrected any non-iso-8859-1 character. 

I have started to remove the offending references from the bibfile and collect 
it in another one which is not in the bibfile list of the references. Lyx 
still chokes on it, unless I stop lyx and restart it again. Now I even get in 
one case the same error of a reference which is not in the bibfile and after 
having restarted Lyx. 

It looks like there is some kind of memory, and I found 

lyxauto.Gw6002 in my
/tmp/lyx_tmpdir.TJ3322 directory

 I renamed it into lyxauto.lyx and ran it. It shows a part of the first 
chapter of my document and trying to output the pdf it gives many

insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!.

I renamed this file and ran again my document. 

But I am still having difficulties (it chokes literally at all references in 
the last sections of the last chapter I am trying (13 of 20 chapters). 

#So my questions are:
#what is the function of 
#lyxauto.Gw6002 in my
#/tmp/lyx_tmpdir.TJ3322 directory?

#Could there be some size limit for large documents with many references?

Sorry for bothering you, but lyx used to be reliable even for large documents. 
Which reminds me to ask for the best way to run 1.5.6 or 7 parallel to 1.6.3. 
I liked the new features of the 1.6.X, especially the easy way to find 
references and notes in the text, but if it is not functioning properly its 
useless for my document.

Wolfgang


Re: lyxauto file in tmpdir

2009-05-11 Thread Guenter Milde
On 2009-05-11, Wolfgang Engelmann wrote:
 as a reminder, I can't get the pdf file of a large document.

 I have gone in a texteditor through all the references in the bib file, and 
 corrected any non-iso-8859-1 character. 

Fine.

 I have started to remove the offending references from the bibfile and
 collect it in another one which is not in the bibfile list of the
 references. Lyx still chokes on it, unless I stop lyx and restart it
 again. 

Seems like old auxiliary (aux, bbl, ...) files might be to blame. Does
closing the document and reopening help?

You can also have a look at the tmp dir.

 Now I even get in one case the same error of a reference which
 is not in the bibfile and after having restarted Lyx. 

This one is strange. 

If the reference is not in the *.bib file, so how should it be solved?

 It looks like there is some kind of memory, and I found 

 lyxauto.Gw6002 in my
...
 #So my questions are:
 #what is the function of 
 #lyxauto.Gw6002 in my
 #/tmp/lyx_tmpdir.TJ3322 directory?

Can't say.

 #Could there be some size limit for large documents with many references?

No.

 Which reminds me to ask for the best way to run 1.5.6 or 7
 parallel to 1.6.3.  

If you are home-compiling, specify a version-suffix in the ./configure
step, e.g.:

 * Configuration/Automake:
 
   Vorkonfiguration mit `autogen.sh`
   
   Ohne debug-symbole, mit suffix (lyx - lyx16)::
   
./configure --with-version-suffix=16 --enable-build-type=release 


Günter



Re: frozen lyx are more frequents

2009-05-11 Thread Jürgen Spitzmüller
Marcelo Acuña wrote:

 With frozen lyx I mean that lyx not respond anymore except for F2 key
 for save the document. With 1.6.1 I encountered this bug after 3 or 4
 hours of work. Now, I have this problem in 1 hour (but, with 1.6.2 I
 changed Linux from opensuse 11.1 to debian lenny 5.0. I don´t konw if
 maybe a difference)

What desktop are you using? I'm also facing some annoying problems with 
window focus on KDE 4 (KDE 4.2.3 here).

 In addition, with 1.6.2, I have stranges behaviour. 1)
 Sometimes, when I make a change in preferences, when I click in save,
 suddenly view source or outline are open by itself. 2) Sometimes, when I
 have several files open, when I close it by clicking in tag and choose
 close, outline is closed by itself. (icon of outline is far of tag)

Both of these are known bugs.

Jürgen




Re: hyperref bug with parent/child documents?

2009-05-11 Thread Pavel Sanda
Jürgen Spitzmüller wrote:
 James C. Sutherland wrote:
  I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6
 
  1. Create a parent document and turn off hyperref support (Document-
   Settings-PDF Properties, deselct hyperref)
  2. Create a child document with hyperref support enabled.
  3. Include the child in the parent.
 
  At this point, the LaTeX source code for the parent now has hyperref  
  included in it.  I thought that parent document settings override  
  child document settings.  Is this a bug?
 
 I'd say so, yes. Hyperref should only be loaded if either turned on in the 
 master or if a master or a child requests it (e.g., when you use a href 
 hyperlink).

unfortunately this uncover more general bug in our latex generation of
master/child documents. we are not able to distinguish child/master
in validate() so things are added to latexparameters and returned back
to master... i just checked few other parameters from document settings
and it has the same problem (eg use true small caps or background color).

i'm not sure about the solution. maybe to change validate prototype adding
bool in_child. CC-ing devel list.

 Please check whether this is already reported, and if not, file a bug report.

yes, please fill the bug report.
pavel


A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread BcBob

I have developed another solution to inserting matlab code into Lyx using the
'highlight.m' function from the matlab file exchange. This function creates
latex output for the syntax colored matlab code. I wrote a driver function
matlb2tex.m that takes care of the details. You can insert the latex into an
ERT in your Lyx document.

The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip 
-- 
View this message in context: 
http://n2.nabble.com/A-method-to-insert-syntax-colored-matlab-code-into-Lyx-tp2865240p2865240.html
Sent from the LyX - Users mailing list archive at Nabble.com.



TOC - Table of Contents - Location

2009-05-11 Thread Marcelo Reis
Guys, Is there anyone that could teach me how to use the RENEWCOMMAND to 
make the Text: Table of Contents  appears in the Center of the screen? 
(Just the Title)

By default it is shown aligned to the Left.

Thanks
Marcelo


Re: TOC - Table of Contents - Location

2009-05-11 Thread Vincent van Ravesteijn

Marcelo Reis schreef:
Guys, Is there anyone that could teach me how to use the RENEWCOMMAND 
to make the Text: Table of Contents  appears in the Center of the 
screen? (Just the Title)

By default it is shown aligned to the Left.

Thanks
Marcelo

I'm in no way an LaTeX expert, but this seems to work:

\renewcommand\contentsname{\center Table of Contents}

Vincent


Re: hyperref bug with parent/child documents?

2009-05-11 Thread James C. Sutherland

Bug #5941
http://www.lyx.org/trac/ticket/5941


On May 11, 2009, at 1:24 PM, Pavel Sanda wrote:


Jürgen Spitzmüller wrote:

James C. Sutherland wrote:

I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6

1. Create a parent document and turn off hyperref support (Document-

Settings-PDF Properties, deselct hyperref)

2. Create a child document with hyperref support enabled.
3. Include the child in the parent.

At this point, the LaTeX source code for the parent now has hyperref
included in it.  I thought that parent document settings override
child document settings.  Is this a bug?


I'd say so, yes. Hyperref should only be loaded if either turned on  
in the
master or if a master or a child requests it (e.g., when you use a  
href

hyperlink).


unfortunately this uncover more general bug in our latex generation of
master/child documents. we are not able to distinguish child/master
in validate() so things are added to latexparameters and returned back
to master... i just checked few other parameters from document  
settings
and it has the same problem (eg use true small caps or background  
color).


i'm not sure about the solution. maybe to change validate prototype  
adding

bool in_child. CC-ing devel list.

Please check whether this is already reported, and if not, file a  
bug report.


yes, please fill the bug report.
pavel




Re: A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread Erez Yerushalmi
Hi Bob

Thanks for sharing it. This is cool!
I might use this at some point.

Regards, erez



On Mon, May 11, 2009 at 9:24 PM, BcBob cobol...@gmail.com wrote:


 I have developed another solution to inserting matlab code into Lyx using
 the
 'highlight.m' function from the matlab file exchange. This function creates
 latex output for the syntax colored matlab code. I wrote a driver function
 matlb2tex.m that takes care of the details. You can insert the latex into
 an
 ERT in your Lyx document.

 The matlab code and a sample Lyx document are in the attached zip file.

 Bob

 http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip
 --
 View this message in context:
 http://n2.nabble.com/A-method-to-insert-syntax-colored-matlab-code-into-Lyx-tp2865240p2865240.html
 Sent from the LyX - Users mailing list archive at Nabble.com.




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


PREGUNTA

2009-05-11 Thread lina paola cipagauta cardozo

LO QUE SUCEDE ES QUE NO TENGO MUY CLARO COMO REALIZAR PRESENTACION EN BEAMER.

QUISIERA SABER COMO HAGO PARA CONFIGURAR LYX PARA EMPEZAR A REALIZAR MI 
PRESENTACION, QUE PARTE DEL MENU DE HERRAMIENTAS USO...

Y COMO REALIZARLA...

GRACIAS

_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline

Re: A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread Pavel Sanda
BcBob wrote:
 
 I have developed another solution to inserting matlab code into Lyx using the
 'highlight.m' function from the matlab file exchange. This function creates
 latex output for the syntax colored matlab code. I wrote a driver function
 matlb2tex.m that takes care of the details. You can insert the latex into an
 ERT in your Lyx document.

consider adding it into the wiki.
pavel


PREGUNTA

2009-05-11 Thread lina paola cipagauta cardozo

SI YA ESTA COMPLETAMENTE CARGADO...PERO MI PREGUNTA ES COMO HAGO PARA PONER EL 
FORMATO DE PRESENTACION..UE TIPO DE CONFIGURACION TENGO QUE REALIZAR
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline

Using a table as form for LaTeX macro

2009-05-11 Thread Ryan Warner
I'd like to make a macro that takes multiple parameters.  In LyX it
would be advantageous if I visualize this as a table.  I would grab
the cell contents from this table and pass them as parameters to a
macro call.  This is way beyond what a layout can do, but what about
an external command?

-Ryan


back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Dear list

sorry for a lengthy letter, I have marked the important parts with ##:

after having spent in vain days to export my document to a pdf file using 
1.6.2 I would like to use 1.5.6 (1.5.5 gave no problems, but does not take 
## the 1.5.X lyx-export of 1.6.X). I remember there is a way to install it in 
addition to 1.6.X, but forgot how to do this.

I am using 1.6.3svn (and 1.6.1 /2 before) and Debian Lenny, koma script book 
and Jabref for creating the bib-files and inserting the references. 

I have several times described the problems 
(pdfendlink ended up in different nesting level than \pd) 
and got various proposals, but haven't managed to get it done. 

There was one proposal to use a more recent ghostscript (I had 8.62), but by 
upgrading Debian Lenny (which does not offer 8.64) to Squeeze I got troubles 
and reinstalled Lenny. 
##Question: is anybody using LyX1.6.X successfully under Debian using gs8.62?

I still do not know why I can't get the pdf output. As a result of all my 
trials I assumed that it has to do with some of the references, but it might 
perhaps be a more basic problem.
##Question: Where are the background files to be found and is it possible that 
the storage space is not sufficient? 

I had as a last trial used a master and 20 child inputs (for each chapter one) 
and I noticed that after removing some offending references they were all 
working separately, but not if run from the master. 

I then started to add one after the other to the master and ran only this one 
file. It worked until I added chapter 12 (that was about 300 pages, and 220 
figures, and about 600 references). Some references gave errors, and if I 
removed them, I got new errors of references which were alright before -even 
at places in earlier chapters. I then used chapter 12 as a starter and added 
the next chapters (altogether again about 300 pages and 160 figures) and got 
it to work. But when I fused the two large parts I got again reference 
errors, and now at the begin of the large document where there used to be no 
problems before. 

All this took a lot of time, because if I found the reference and removed it, 
the error would still be there (probably because the old aux file is used) 
and I had to finish LyX and restart it again. 
As a question to the LyX developers: Could one include a way to kill the aux 
file after a LyX run?

I was asked to give a minimal example, but I am afraid there is no way of 
doing it. It has probably to do with the large document, since I had never 
problems with smaller books (around 200 to 300 pages each, 200 to 300 
references, 100 to 200 figures). 

##Question: Is there a way to check the (in my case 1500) citations in the bib 
file for uncorrect (coding?) characters independent of LyX?

## I have not been able to figure out how the debug works.
 The description in the extended help file was not precise enough for me. 
Could somebody give me a detailed description? If I use, as proposed, 
lyx -dbg all (or font or any) nothing happens. ddd/gdb debugger: are those 
two debuggers or do they work together? It says, one should start at the 
place in question (an aktueller Position) in program command shift+⁺v and add 
editpreferenceshelpers echo... send it to the lyx pipe
and so on. I am confused and don't know what to do. 
Once I have understood it I am willing and glad to try to describe it in a way 
that underdeveloped (and over-aged) people like me will know what to do in 
order to debug a LyX session.

Thanks,

Wolfgang


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:

 ##Question: Is there a way to check the (in my case 1500) citations in the
 ##bib
 file for uncorrect (coding?) characters independent of LyX?

If you open your bib file with a decent text editor (such as Kate) and set 
the encoding to ISO-8599-1, the editor will yield a warning about wrongly 
encoded characters.

If you are sure you have encoded the file properly in utf-8, you can convert 
it to latin-1 via recode as described here:
http://wiki.lyx.org/BibTeX/Tips#toc1

HTH,
Jürgen




Re: LyX::Client.pm

2009-05-11 Thread Jean-Marc Lasgouttes
john j...@og.co.nz writes:
 The problem is that Client.pm expects to find the serverpipe assignments
 in the file: .lyx/lyxrc
 I don't think that Client.pm has been changed since 1999.
[...]
 But should the Client.pm program be altered to read the file: preferences?

 I am willing to make the necessary changes and submit them.

Client.pm is indeed unmaintained. Feel free to 'adopt' it and submit
updates. While we switched to python in general, there is no reason to
'kill' the perl bindings if they are still useful.

JMarc


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Am Monday 11 May 2009 10:52:01 schrieb Jürgen Spitzmüller:

so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

Wolfgang

 Wolfgang Engelmann wrote:
  ##Question: Is there a way to check the (in my case 1500) citations in
  the ##bib
  file for uncorrect (coding?) characters independent of LyX?

 If you open your bib file with a decent text editor (such as Kate) and set
 the encoding to ISO-8599-1, the editor will yield a warning about wrongly
 encoded characters.

 If you are sure you have encoded the file properly in utf-8, you can
 convert it to latin-1 via recode as described here:
 http://wiki.lyx.org/BibTeX/Tips#toc1

 HTH,
 Jürgen


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Dominik Waßenhoven
Wolfgang Engelmann wrote:

 so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

No, LyX could handle utf8, but BibTeX can't. See the explanation by
Philipp Lehman on comp.text.tex, Message-ID:
5c8mclf2uqc9...@mid.uni-berlin.de
(http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

Regards,
Dominik.-



Re: back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Am Monday 11 May 2009 13:16:44 schrieb Dominik Waßenhoven:

so I should export my bib file from Jabref in ISO-8599-1 for bibtex. 
bibtex produces the aux file, right? 
And Lyx accepts the ISO-8599-1 code?
What does Lyx do if it gets non- ISO-8599-1 coded characters in the aux-file?

 Wolfgang Engelmann wrote:
  so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

 No, LyX could handle utf8, but BibTeX can't. See the explanation by
 Philipp Lehman on comp.text.tex, Message-ID:
 5c8mclf2uqc9...@mid.uni-berlin.de
 (http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

He talks about UTF8, not utf8, as I see. 

Wolfgang


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Guenter Milde
On 2009-05-11, Wolfgang Engelmann wrote:
 Am Monday 11 May 2009 13:16:44 schrieb Dominik Waßenhoven:

 so I should export my bib file from Jabref in ISO-8599-1 for bibtex. 

this depends (see below).

The save bet would be to export clean ASCII which LyX/LaTeX/BibTeX always
understand and use LaTeX constructs for non-ASCII characters.

 And Lyx accepts the ISO-8599-1 code?

This depends on the setting of DocumentSettingsLanguageEncoding.

LyX just passes it to LaTeX. But the encoding should match the rest of
the document.

As your *.bib database might be used with different documents, possibly
in different encodings, the save bet is to use ASCII only.

 What does Lyx do if it gets non- ISO-8599-1 coded characters in the aux-file?

In the worst case, it does not produce an output file without any visible
error message.

 Wolfgang Engelmann wrote:
  so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

 No, LyX could handle utf8, but BibTeX can't. See the explanation by
 Philipp Lehman on comp.text.tex, Message-ID:
 5c8mclf2uqc9...@mid.uni-berlin.de
 (http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

 He talks about UTF8, not utf8, as I see. 

This should not make any difference.
Capitalization in emails is sometimes inconsistent.

Günter



Reference Formatting

2009-05-11 Thread Hesham Kamel
Hi,
Please, I am using the book more font size class with the unsrt style.
I need to have the references show up as: 1-5 instead 1,2,3,4,5.
Thank you

-- 
Hesham


Re: Reference Formatting

2009-05-11 Thread James C. Sutherland


On May 11, 2009, at 7:56 AM, Hesham Kamel wrote:


Hi,
Please, I am using the book more font size class with the unsrt style.
I need to have the references show up as: 1-5 instead 1,2,3,4,5.


Put:
\usepackage{cite}
in the preamble.


lyxauto file in tmpdir

2009-05-11 Thread Wolfgang Engelmann
I am still hunting for the BIG ERROR. 
as a reminder, I can't get the pdf file of a large document.

I have gone in a texteditor through all the references in the bib file, and 
corrected any non-iso-8859-1 character. 

I have started to remove the offending references from the bibfile and collect 
it in another one which is not in the bibfile list of the references. Lyx 
still chokes on it, unless I stop lyx and restart it again. Now I even get in 
one case the same error of a reference which is not in the bibfile and after 
having restarted Lyx. 

It looks like there is some kind of memory, and I found 

lyxauto.Gw6002 in my
/tmp/lyx_tmpdir.TJ3322 directory

 I renamed it into lyxauto.lyx and ran it. It shows a part of the first 
chapter of my document and trying to output the pdf it gives many

insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!.

I renamed this file and ran again my document. 

But I am still having difficulties (it chokes literally at all references in 
the last sections of the last chapter I am trying (13 of 20 chapters). 

#So my questions are:
#what is the function of 
#lyxauto.Gw6002 in my
#/tmp/lyx_tmpdir.TJ3322 directory?

#Could there be some size limit for large documents with many references?

Sorry for bothering you, but lyx used to be reliable even for large documents. 
Which reminds me to ask for the best way to run 1.5.6 or 7 parallel to 1.6.3. 
I liked the new features of the 1.6.X, especially the easy way to find 
references and notes in the text, but if it is not functioning properly its 
useless for my document.

Wolfgang


Re: lyxauto file in tmpdir

2009-05-11 Thread Guenter Milde
On 2009-05-11, Wolfgang Engelmann wrote:
 as a reminder, I can't get the pdf file of a large document.

 I have gone in a texteditor through all the references in the bib file, and 
 corrected any non-iso-8859-1 character. 

Fine.

 I have started to remove the offending references from the bibfile and
 collect it in another one which is not in the bibfile list of the
 references. Lyx still chokes on it, unless I stop lyx and restart it
 again. 

Seems like old auxiliary (aux, bbl, ...) files might be to blame. Does
closing the document and reopening help?

You can also have a look at the tmp dir.

 Now I even get in one case the same error of a reference which
 is not in the bibfile and after having restarted Lyx. 

This one is strange. 

If the reference is not in the *.bib file, so how should it be solved?

 It looks like there is some kind of memory, and I found 

 lyxauto.Gw6002 in my
...
 #So my questions are:
 #what is the function of 
 #lyxauto.Gw6002 in my
 #/tmp/lyx_tmpdir.TJ3322 directory?

Can't say.

 #Could there be some size limit for large documents with many references?

No.

 Which reminds me to ask for the best way to run 1.5.6 or 7
 parallel to 1.6.3.  

If you are home-compiling, specify a version-suffix in the ./configure
step, e.g.:

 * Configuration/Automake:
 
   Vorkonfiguration mit `autogen.sh`
   
   Ohne debug-symbole, mit suffix (lyx - lyx16)::
   
./configure --with-version-suffix=16 --enable-build-type=release 


Günter



Re: frozen lyx are more frequents

2009-05-11 Thread Jürgen Spitzmüller
Marcelo Acuña wrote:

 With frozen lyx I mean that lyx not respond anymore except for F2 key
 for save the document. With 1.6.1 I encountered this bug after 3 or 4
 hours of work. Now, I have this problem in 1 hour (but, with 1.6.2 I
 changed Linux from opensuse 11.1 to debian lenny 5.0. I don´t konw if
 maybe a difference)

What desktop are you using? I'm also facing some annoying problems with 
window focus on KDE 4 (KDE 4.2.3 here).

 In addition, with 1.6.2, I have stranges behaviour. 1)
 Sometimes, when I make a change in preferences, when I click in save,
 suddenly view source or outline are open by itself. 2) Sometimes, when I
 have several files open, when I close it by clicking in tag and choose
 close, outline is closed by itself. (icon of outline is far of tag)

Both of these are known bugs.

Jürgen




Re: hyperref bug with parent/child documents?

2009-05-11 Thread Pavel Sanda
Jürgen Spitzmüller wrote:
 James C. Sutherland wrote:
  I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6
 
  1. Create a parent document and turn off hyperref support (Document-
   Settings-PDF Properties, deselct hyperref)
  2. Create a child document with hyperref support enabled.
  3. Include the child in the parent.
 
  At this point, the LaTeX source code for the parent now has hyperref  
  included in it.  I thought that parent document settings override  
  child document settings.  Is this a bug?
 
 I'd say so, yes. Hyperref should only be loaded if either turned on in the 
 master or if a master or a child requests it (e.g., when you use a href 
 hyperlink).

unfortunately this uncover more general bug in our latex generation of
master/child documents. we are not able to distinguish child/master
in validate() so things are added to latexparameters and returned back
to master... i just checked few other parameters from document settings
and it has the same problem (eg use true small caps or background color).

i'm not sure about the solution. maybe to change validate prototype adding
bool in_child. CC-ing devel list.

 Please check whether this is already reported, and if not, file a bug report.

yes, please fill the bug report.
pavel


A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread BcBob

I have developed another solution to inserting matlab code into Lyx using the
'highlight.m' function from the matlab file exchange. This function creates
latex output for the syntax colored matlab code. I wrote a driver function
matlb2tex.m that takes care of the details. You can insert the latex into an
ERT in your Lyx document.

The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip 
-- 
View this message in context: 
http://n2.nabble.com/A-method-to-insert-syntax-colored-matlab-code-into-Lyx-tp2865240p2865240.html
Sent from the LyX - Users mailing list archive at Nabble.com.



TOC - Table of Contents - Location

2009-05-11 Thread Marcelo Reis
Guys, Is there anyone that could teach me how to use the RENEWCOMMAND to 
make the Text: Table of Contents  appears in the Center of the screen? 
(Just the Title)

By default it is shown aligned to the Left.

Thanks
Marcelo


Re: TOC - Table of Contents - Location

2009-05-11 Thread Vincent van Ravesteijn

Marcelo Reis schreef:
Guys, Is there anyone that could teach me how to use the RENEWCOMMAND 
to make the Text: Table of Contents  appears in the Center of the 
screen? (Just the Title)

By default it is shown aligned to the Left.

Thanks
Marcelo

I'm in no way an LaTeX expert, but this seems to work:

\renewcommand\contentsname{\center Table of Contents}

Vincent


Re: hyperref bug with parent/child documents?

2009-05-11 Thread James C. Sutherland

Bug #5941
http://www.lyx.org/trac/ticket/5941


On May 11, 2009, at 1:24 PM, Pavel Sanda wrote:


Jürgen Spitzmüller wrote:

James C. Sutherland wrote:

I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6

1. Create a parent document and turn off hyperref support (Document-

Settings-PDF Properties, deselct hyperref)

2. Create a child document with hyperref support enabled.
3. Include the child in the parent.

At this point, the LaTeX source code for the parent now has hyperref
included in it.  I thought that parent document settings override
child document settings.  Is this a bug?


I'd say so, yes. Hyperref should only be loaded if either turned on  
in the
master or if a master or a child requests it (e.g., when you use a  
href

hyperlink).


unfortunately this uncover more general bug in our latex generation of
master/child documents. we are not able to distinguish child/master
in validate() so things are added to latexparameters and returned back
to master... i just checked few other parameters from document  
settings
and it has the same problem (eg use true small caps or background  
color).


i'm not sure about the solution. maybe to change validate prototype  
adding

bool in_child. CC-ing devel list.

Please check whether this is already reported, and if not, file a  
bug report.


yes, please fill the bug report.
pavel




Re: A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread Erez Yerushalmi
Hi Bob

Thanks for sharing it. This is cool!
I might use this at some point.

Regards, erez



On Mon, May 11, 2009 at 9:24 PM, BcBob cobol...@gmail.com wrote:


 I have developed another solution to inserting matlab code into Lyx using
 the
 'highlight.m' function from the matlab file exchange. This function creates
 latex output for the syntax colored matlab code. I wrote a driver function
 matlb2tex.m that takes care of the details. You can insert the latex into
 an
 ERT in your Lyx document.

 The matlab code and a sample Lyx document are in the attached zip file.

 Bob

 http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip
 --
 View this message in context:
 http://n2.nabble.com/A-method-to-insert-syntax-colored-matlab-code-into-Lyx-tp2865240p2865240.html
 Sent from the LyX - Users mailing list archive at Nabble.com.




-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


PREGUNTA

2009-05-11 Thread lina paola cipagauta cardozo

LO QUE SUCEDE ES QUE NO TENGO MUY CLARO COMO REALIZAR PRESENTACION EN BEAMER.

QUISIERA SABER COMO HAGO PARA CONFIGURAR LYX PARA EMPEZAR A REALIZAR MI 
PRESENTACION, QUE PARTE DEL MENU DE HERRAMIENTAS USO...

Y COMO REALIZARLA...

GRACIAS

_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline

Re: A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread Pavel Sanda
BcBob wrote:
 
 I have developed another solution to inserting matlab code into Lyx using the
 'highlight.m' function from the matlab file exchange. This function creates
 latex output for the syntax colored matlab code. I wrote a driver function
 matlb2tex.m that takes care of the details. You can insert the latex into an
 ERT in your Lyx document.

consider adding it into the wiki.
pavel


PREGUNTA

2009-05-11 Thread lina paola cipagauta cardozo

SI YA ESTA COMPLETAMENTE CARGADO...PERO MI PREGUNTA ES COMO HAGO PARA PONER EL 
FORMATO DE PRESENTACION..UE TIPO DE CONFIGURACION TENGO QUE REALIZAR
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline

Using a table as form for LaTeX macro

2009-05-11 Thread Ryan Warner
I'd like to make a macro that takes multiple parameters.  In LyX it
would be advantageous if I visualize this as a table.  I would grab
the cell contents from this table and pass them as parameters to a
macro call.  This is way beyond what a layout can do, but what about
an external command?

-Ryan


back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Dear list

sorry for a lengthy letter, I have marked the important parts with ##:

after having spent in vain days to export my document to a pdf file using 
1.6.2 I would like to use 1.5.6 (1.5.5 gave no problems, but does not take 
## the 1.5.X lyx-export of 1.6.X). I remember there is a way to install it in 
addition to 1.6.X, but forgot how to do this.

I am using 1.6.3svn (and 1.6.1 /2 before) and Debian Lenny, koma script book 
and Jabref for creating the bib-files and inserting the references. 

I have several times described the problems 
(pdfendlink ended up in different nesting level than \pd) 
and got various proposals, but haven't managed to get it done. 

There was one proposal to use a more recent ghostscript (I had 8.62), but by 
upgrading Debian Lenny (which does not offer 8.64) to Squeeze I got troubles 
and reinstalled Lenny. 
##Question: is anybody using LyX1.6.X successfully under Debian using gs8.62?

I still do not know why I can't get the pdf output. As a result of all my 
trials I assumed that it has to do with some of the references, but it might 
perhaps be a more basic problem.
##Question: Where are the background files to be found and is it possible that 
the storage space is not sufficient? >

I had as a last trial used a master and 20 child inputs (for each chapter one) 
and I noticed that after removing some offending references they were all 
working separately, but not if run from the master. 

I then started to add one after the other to the master and ran only this one 
file. It worked until I added chapter 12 (that was about 300 pages, and 220 
figures, and about 600 references). Some references gave errors, and if I 
removed them, I got new errors of references which were alright before -even 
at places in earlier chapters. I then used chapter 12 as a starter and added 
the next chapters (altogether again about 300 pages and 160 figures) and got 
it to work. But when I fused the two large parts I got again reference 
errors, and now at the begin of the large document where there used to be no 
problems before. 

All this took a lot of time, because if I found the reference and removed it, 
the error would still be there (probably because the old aux file is used) 
and I had to finish LyX and restart it again. 
As a question to the LyX developers: Could one include a way to kill the aux 
file after a LyX run?

I was asked to give a minimal example, but I am afraid there is no way of 
doing it. It has probably to do with the large document, since I had never 
problems with smaller books (around 200 to 300 pages each, 200 to 300 
references, 100 to 200 figures). 

##Question: Is there a way to check the (in my case 1500) citations in the bib 
file for uncorrect (coding?) characters independent of LyX?

## I have not been able to figure out how the debug works.
 The description in the extended help file was not precise enough for me. 
Could somebody give me a detailed description? If I use, as proposed, 
lyx -dbg all (or font or any) nothing happens. ddd/gdb debugger: are those 
two debuggers or do they work together? It says, one should start at the 
place in question (an aktueller Position) in program command shift+⁺v and add 
edit>preferences>helpers> echo... send it to the lyx pipe
and so on. I am confused and don't know what to do. 
Once I have understood it I am willing and glad to try to describe it in a way 
that underdeveloped (and over-aged) people like me will know what to do in 
order to debug a LyX session.

Thanks,

Wolfgang


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:

> ##Question: Is there a way to check the (in my case 1500) citations in the
> ##bib
> file for uncorrect (coding?) characters independent of LyX?

If you open your bib file with a decent text editor (such as Kate) and set 
the encoding to ISO-8599-1, the editor will yield a warning about wrongly 
encoded characters.

If you are sure you have encoded the file properly in utf-8, you can convert 
it to latin-1 via recode as described here:
http://wiki.lyx.org/BibTeX/Tips#toc1

HTH,
Jürgen




Re: LyX::Client.pm

2009-05-11 Thread Jean-Marc Lasgouttes
john  writes:
> The problem is that Client.pm expects to find the serverpipe assignments
> in the file: .lyx/lyxrc
> I don't think that Client.pm has been changed since 1999.
[...]
> But should the Client.pm program be altered to read the file: preferences?
>
> I am willing to make the necessary changes and submit them.

Client.pm is indeed unmaintained. Feel free to 'adopt' it and submit
updates. While we switched to python in general, there is no reason to
'kill' the perl bindings if they are still useful.

JMarc


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Am Monday 11 May 2009 10:52:01 schrieb Jürgen Spitzmüller:

so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

Wolfgang

> Wolfgang Engelmann wrote:
> > ##Question: Is there a way to check the (in my case 1500) citations in
> > the ##bib
> > file for uncorrect (coding?) characters independent of LyX?
>
> If you open your bib file with a decent text editor (such as Kate) and set
> the encoding to ISO-8599-1, the editor will yield a warning about wrongly
> encoded characters.
>
> If you are sure you have encoded the file properly in utf-8, you can
> convert it to latin-1 via recode as described here:
> http://wiki.lyx.org/BibTeX/Tips#toc1
>
> HTH,
> Jürgen


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Dominik Waßenhoven
Wolfgang Engelmann wrote:

> so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

No, LyX could handle utf8, but BibTeX can't. See the explanation by
Philipp Lehman on comp.text.tex, Message-ID:
<5c8mclf2uqc9...@mid.uni-berlin.de>
(http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

Regards,
Dominik.-



Re: back to LyX1.5.6, and debug

2009-05-11 Thread Wolfgang Engelmann
Am Monday 11 May 2009 13:16:44 schrieb Dominik Waßenhoven:

so I should export my bib file from Jabref in ISO-8599-1 for bibtex. 
bibtex produces the aux file, right? 
And Lyx accepts the ISO-8599-1 code?
What does Lyx do if it gets non- ISO-8599-1 coded characters in the aux-file?

> Wolfgang Engelmann wrote:
> > so lyx expects the ISO-8599-1 encoding of the references, and not utf8?
>
> No, LyX could handle utf8, but BibTeX can't. See the explanation by
> Philipp Lehman on comp.text.tex, Message-ID:
> <5c8mclf2uqc9...@mid.uni-berlin.de>
> (http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

He talks about UTF8, not utf8, as I see. 

Wolfgang


Re: back to LyX1.5.6, and debug

2009-05-11 Thread Guenter Milde
On 2009-05-11, Wolfgang Engelmann wrote:
> Am Monday 11 May 2009 13:16:44 schrieb Dominik Waßenhoven:

> so I should export my bib file from Jabref in ISO-8599-1 for bibtex. 

this depends (see below).

The save bet would be to export clean ASCII which LyX/LaTeX/BibTeX always
understand and use LaTeX constructs for non-ASCII characters.

> And Lyx accepts the ISO-8599-1 code?

This depends on the setting of Document>Settings>Language>Encoding.

LyX just passes it to LaTeX. But the encoding should match the rest of
the document.

As your *.bib database might be used with different documents, possibly
in different encodings, the save bet is to use ASCII only.

> What does Lyx do if it gets non- ISO-8599-1 coded characters in the aux-file?

In the worst case, it does not produce an output file without any visible
error message.

>> Wolfgang Engelmann wrote:
>> > so lyx expects the ISO-8599-1 encoding of the references, and not utf8?

>> No, LyX could handle utf8, but BibTeX can't. See the explanation by
>> Philipp Lehman on comp.text.tex, Message-ID:
>> <5c8mclf2uqc9...@mid.uni-berlin.de>
>> (http://groups.google.com/group/comp.text.tex/msg/8aefd925c735c842)

> He talks about UTF8, not utf8, as I see. 

This should not make any difference.
Capitalization in emails is sometimes inconsistent.

Günter



Reference Formatting

2009-05-11 Thread Hesham Kamel
Hi,
Please, I am using the book more font size class with the unsrt style.
I need to have the references show up as: 1-5 instead 1,2,3,4,5.
Thank you

-- 
Hesham


Re: Reference Formatting

2009-05-11 Thread James C. Sutherland


On May 11, 2009, at 7:56 AM, Hesham Kamel wrote:


Hi,
Please, I am using the book more font size class with the unsrt style.
I need to have the references show up as: 1-5 instead 1,2,3,4,5.


Put:
\usepackage{cite}
in the preamble.


lyxauto file in tmpdir

2009-05-11 Thread Wolfgang Engelmann
I am still hunting for the BIG ERROR. 
as a reminder, I can't get the pdf file of a large document.

I have gone in a texteditor through all the references in the bib file, and 
corrected any non-iso-8859-1 character. 

I have started to remove the offending references from the bibfile and collect 
it in another one which is not in the bibfile list of the references. Lyx 
still chokes on it, unless I stop lyx and restart it again. Now I even get in 
one case the same error of a reference which is not in the bibfile and after 
having restarted Lyx. 

It looks like there is some kind of memory, and I found 

lyxauto.Gw6002 in my
/tmp/lyx_tmpdir.TJ3322 directory

 I renamed it into lyxauto.lyx and ran it. It shows a part of the first 
chapter of my document and trying to output the pdf it gives many

insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!
insets/InsetBibtex.cpp(420): Couldn't find dbook11042008 in 
InsetBibtex::getBibFiles()!.

I renamed this file and ran again my document. 

But I am still having difficulties (it chokes literally at all references in 
the last sections of the last chapter I am trying (13 of 20 chapters). 

#So my questions are:
#what is the function of 
#lyxauto.Gw6002 in my
#/tmp/lyx_tmpdir.TJ3322 directory?

#Could there be some size limit for large documents with many references?

Sorry for bothering you, but lyx used to be reliable even for large documents. 
Which reminds me to ask for the best way to run 1.5.6 or 7 parallel to 1.6.3. 
I liked the new features of the 1.6.X, especially the easy way to find 
references and notes in the text, but if it is not functioning properly its 
useless for my document.

Wolfgang


Re: lyxauto file in tmpdir

2009-05-11 Thread Guenter Milde
On 2009-05-11, Wolfgang Engelmann wrote:
> as a reminder, I can't get the pdf file of a large document.

> I have gone in a texteditor through all the references in the bib file, and 
> corrected any non-iso-8859-1 character. 

Fine.

> I have started to remove the offending references from the bibfile and
> collect it in another one which is not in the bibfile list of the
> references. Lyx still chokes on it, unless I stop lyx and restart it
> again. 

Seems like old auxiliary (aux, bbl, ...) files might be to blame. Does
closing the document and reopening help?

You can also have a look at the "tmp dir".

> Now I even get in one case the same error of a reference which
> is not in the bibfile and after having restarted Lyx. 

This one is strange. 

If the reference is not in the *.bib file, so how should it be solved?

> It looks like there is some kind of memory, and I found 

> lyxauto.Gw6002 in my
...
> #So my questions are:
> #what is the function of 
> #lyxauto.Gw6002 in my
> #/tmp/lyx_tmpdir.TJ3322 directory?

Can't say.

> #Could there be some size limit for large documents with many references?

No.

> Which reminds me to ask for the best way to run 1.5.6 or 7
> parallel to 1.6.3.  

If you are home-compiling, specify a version-suffix in the ./configure
step, e.g.:

 * Configuration/Automake:
 
   Vorkonfiguration mit `autogen.sh`
   
   Ohne debug-symbole, mit suffix (lyx -> lyx16)::
   
./configure --with-version-suffix=16 --enable-build-type=release 


Günter



Re: frozen lyx are more frequents

2009-05-11 Thread Jürgen Spitzmüller
Marcelo Acuña wrote:

> With "frozen lyx" I mean that lyx not respond anymore except for F2 key
> for save the document. With 1.6.1 I encountered this bug after 3 or 4
> hours of work. Now, I have this problem in 1 hour (but, with 1.6.2 I
> changed Linux from opensuse 11.1 to debian lenny 5.0. I don´t konw if
> maybe a difference)

What desktop are you using? I'm also facing some annoying problems with 
window focus on KDE 4 (KDE 4.2.3 here).

> In addition, with 1.6.2, I have stranges behaviour. 1)
> Sometimes, when I make a change in preferences, when I click in save,
> suddenly view source or outline are open by itself. 2) Sometimes, when I
> have several files open, when I close it by clicking in tag and choose
> close, outline is closed by itself. (icon of outline is far of tag)

Both of these are known bugs.

Jürgen




Re: hyperref bug with parent/child documents?

2009-05-11 Thread Pavel Sanda
Jürgen Spitzmüller wrote:
> James C. Sutherland wrote:
> > I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6
> >
> > 1. Create a parent document and turn off hyperref support (Document-
> >  >Settings->PDF Properties, deselct hyperref)
> > 2. Create a child document with hyperref support enabled.
> > 3. Include the child in the parent.
> >
> > At this point, the LaTeX source code for the parent now has hyperref  
> > included in it.  I thought that parent document settings override  
> > child document settings.  Is this a bug?
> 
> I'd say so, yes. Hyperref should only be loaded if either turned on in the 
> master or if a master or a child requests it (e.g., when you use a href 
> hyperlink).

unfortunately this uncover more general bug in our latex generation of
master/child documents. we are not able to distinguish child/master
in validate() so things are added to latexparameters and returned back
to master... i just checked few other parameters from document settings
and it has the same problem (eg use true small caps or background color).

i'm not sure about the solution. maybe to change validate prototype adding
bool in_child. CC-ing devel list.

> Please check whether this is already reported, and if not, file a bug report.

yes, please fill the bug report.
pavel


A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread BcBob

I have developed another solution to inserting matlab code into Lyx using the
'highlight.m' function from the matlab file exchange. This function creates
latex output for the syntax colored matlab code. I wrote a driver function
matlb2tex.m that takes care of the details. You can insert the latex into an
ERT in your Lyx document.

The matlab code and a sample Lyx document are in the attached zip file.

Bob

http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip 
-- 
View this message in context: 
http://n2.nabble.com/A-method-to-insert-syntax-colored-matlab-code-into-Lyx-tp2865240p2865240.html
Sent from the LyX - Users mailing list archive at Nabble.com.



TOC - Table of Contents - Location

2009-05-11 Thread Marcelo Reis
Guys, Is there anyone that could teach me how to use the RENEWCOMMAND to 
make the Text: "Table of Contents"  appears in the Center of the screen? 
(Just the Title)

By default it is shown aligned to the Left.

Thanks
Marcelo


Re: TOC - Table of Contents - Location

2009-05-11 Thread Vincent van Ravesteijn

Marcelo Reis schreef:
Guys, Is there anyone that could teach me how to use the RENEWCOMMAND 
to make the Text: "Table of Contents"  appears in the Center of the 
screen? (Just the Title)

By default it is shown aligned to the Left.

Thanks
Marcelo

I'm in no way an LaTeX expert, but this seems to work:

\renewcommand\contentsname{\center Table of Contents}

Vincent


Re: hyperref bug with parent/child documents?

2009-05-11 Thread James C. Sutherland

Bug #5941
http://www.lyx.org/trac/ticket/5941


On May 11, 2009, at 1:24 PM, Pavel Sanda wrote:


Jürgen Spitzmüller wrote:

James C. Sutherland wrote:

I think I found a LyX bug.  LyX 1.6.2, Mac OSX 10.5.6

1. Create a parent document and turn off hyperref support (Document-

Settings->PDF Properties, deselct hyperref)

2. Create a child document with hyperref support enabled.
3. Include the child in the parent.

At this point, the LaTeX source code for the parent now has hyperref
included in it.  I thought that parent document settings override
child document settings.  Is this a bug?


I'd say so, yes. Hyperref should only be loaded if either turned on  
in the
master or if a master or a child requests it (e.g., when you use a  
href

hyperlink).


unfortunately this uncover more general bug in our latex generation of
master/child documents. we are not able to distinguish child/master
in validate() so things are added to latexparameters and returned back
to master... i just checked few other parameters from document  
settings
and it has the same problem (eg use true small caps or background  
color).


i'm not sure about the solution. maybe to change validate prototype  
adding

bool in_child. CC-ing devel list.

Please check whether this is already reported, and if not, file a  
bug report.


yes, please fill the bug report.
pavel




Re: A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread Erez Yerushalmi
Hi Bob

Thanks for sharing it. This is cool!
I might use this at some point.

Regards, erez



On Mon, May 11, 2009 at 9:24 PM, BcBob  wrote:

>
> I have developed another solution to inserting matlab code into Lyx using
> the
> 'highlight.m' function from the matlab file exchange. This function creates
> latex output for the syntax colored matlab code. I wrote a driver function
> matlb2tex.m that takes care of the details. You can insert the latex into
> an
> ERT in your Lyx document.
>
> The matlab code and a sample Lyx document are in the attached zip file.
>
> Bob
>
> http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip
> --
> View this message in context:
> http://n2.nabble.com/A-method-to-insert-syntax-colored-matlab-code-into-Lyx-tp2865240p2865240.html
> Sent from the LyX - Users mailing list archive at Nabble.com.
>
>


-- 
Erez Yerushalmi
PhD Student
Warwick University, UK
homepage:
http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi


PREGUNTA

2009-05-11 Thread lina paola cipagauta cardozo

LO QUE SUCEDE ES QUE NO TENGO MUY CLARO COMO REALIZAR PRESENTACION EN BEAMER.

QUISIERA SABER COMO HAGO PARA CONFIGURAR LYX PARA EMPEZAR A REALIZAR MI 
PRESENTACION, QUE PARTE DEL MENU DE HERRAMIENTAS USO...

Y COMO REALIZARLA...

GRACIAS

_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us=wlmailtagline

Re: A method to insert syntax colored matlab code into Lyx

2009-05-11 Thread Pavel Sanda
BcBob wrote:
> 
> I have developed another solution to inserting matlab code into Lyx using the
> 'highlight.m' function from the matlab file exchange. This function creates
> latex output for the syntax colored matlab code. I wrote a driver function
> matlb2tex.m that takes care of the details. You can insert the latex into an
> ERT in your Lyx document.

consider adding it into the wiki.
pavel


PREGUNTA

2009-05-11 Thread lina paola cipagauta cardozo

SI YA ESTA COMPLETAMENTE CARGADO...PERO MI PREGUNTA ES COMO HAGO PARA PONER EL 
FORMATO DE PRESENTACION..UE TIPO DE CONFIGURACION TENGO QUE REALIZAR
_
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us=wlmailtagline

Using a table as form for LaTeX macro

2009-05-11 Thread Ryan Warner
I'd like to make a macro that takes multiple parameters.  In LyX it
would be advantageous if I visualize this as a table.  I would grab
the cell contents from this table and pass them as parameters to a
macro call.  This is way beyond what a layout can do, but what about
an external command?

-Ryan