Re: Converting lyx to odt

2013-04-29 Thread Wolfgang Engelmann
Am Montag, 29. April 2013, 01:02:12 schrieb Sotiris Hasapis:
 I ' m trying to convert lyx to odt file using the methods described
 here: http://wiki.lyx.org/Tools/LyX2OpenOffice
 but nothing seems to work. In fact when taking the convert option :
 Latex(plain) to openoffice nothing happens and responds : Error while
 exporting format: odtFile 'C:/Documents and Settings/Owner/Local
 Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_
 cryptograhpy.tex' was not closed properly.
 Any help please?
 
 I'm using windows xp, lyx 2.0.
 Thank you.
 Sotiris.

I am on Debian Linux and can export a small text file to odt.
However, a longer document with figures returns:

System call: rmdir sxw-
AAABlumenuhr20130419.20.dir/Pictures/AAABlumenuhr20130419.2061x.png
System return: 0
System call: cpAAABlumenuhr20130419.2061x.png sxw-
AAABlumenuhr20130419.20.dir/Pictures/AAABlumenuhr20130419.2061x.png
--- Warning --- System return: 256
Error: Cannot view file

File does not exist: 
/tmp/lyx_tmpdir.MT3747/lyx_tmpbuf2/AAABlumenuhr20130419.20.odt

Wolfgang



Re: Converting lyx to odt

2013-04-29 Thread Ray Rashif
On 29 April 2013 07:02, Sotiris Hasapis shasa...@gmail.com wrote:
 I ' m trying to convert lyx to odt file using the methods described here:
 http://wiki.lyx.org/Tools/LyX2OpenOffice
 but nothing seems to work. In fact when taking the convert option :
 Latex(plain) to openoffice nothing happens and responds : Error while
 exporting format: odtFile 'C:/Documents and Settings/Owner/Local
 Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
 was not closed properly.
 Any help please?

 I'm using windows xp, lyx 2.0.
 Thank you.
 Sotiris.

From experience this has never proven useful. Interoperability is an
issue here with LyX and other word processors. Even if one conversion
succeeds (to either a .doc, .docx, .odt or .rtf), you'd likely need to
do some clean-up here and there.

A fine compromise I have found is to use elyxer¹ as an intermediary
tool. Its HTML output is beautiful, and it works with complex
parent-child lyx documents including figures. You could also take a
look at pandoc (via LaTeX).²

¹ http://elyxer.nongnu.org/
² http://johnmacfarlane.net/pandoc/


--
GPG/PGP ID: C0711BF1


Re: Converting lyx to odt

2013-04-29 Thread Richard Heck



On 29 April 2013 07:02, Sotiris Hasapis shasa...@gmail.com wrote:

I ' m trying to convert lyx to odt file using the methods described here:
http://wiki.lyx.org/Tools/LyX2OpenOffice
but nothing seems to work. In fact when taking the convert option :
Latex(plain) to openoffice nothing happens and responds : Error while
exporting format: odtFile 'C:/Documents and Settings/Owner/Local
Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
was not closed properly.
Any help please?


This conversion route works only with fairly simple documents. It relies 
upon the external tool oolatex, which is skitchy at best.


My own technique, when I have to do this, is to export to LyXHTML and 
then import that into Libre Office. As someone else said, you'll have to 
do some cleanup, but it works reasonably well.


Richard



Re: Spanners in tables

2013-04-29 Thread John Kane
I suspect that tables are the curse of LaTeX/LyX at best.  I remember being 
horrified the first time I saw a LaTeX table layout.


I suppose it depends on where your original numbers for the table are coming 
from but there may be some help.  I am just a real beginner with LyX (and LaTex 
too for that matter) but in the stats environment R 
([url=http://www.r-project.org/][b]R[/b][/url]) there are a number of packages 
/ functions/ who-knows-what that can output some rather nice tables.  Whether 
or not they would do exactly the spanners that you need is another matter.


R integrates fairly smoothly with LyX through the Sweave or kintr packages (or 
so some people say) so if you can get the data in a reasonable format in R then 
it may not be too bad to simply produce the tables using knitr or Sweave. 

I suspect that something like Matlab , SAS or Stata can do something similar 
but I have never used them.


http://stackoverflow.com/questions/5465314/tools-for-making-latex-tables-in-r
http://www.r-statistics.com/2013/01/stargazer-package-for-beautiful-latex-tables-from-r-statistical-models-output/



 From: Marshall Feldman ma...@uri.edu
To: John Kane jrkrid...@yahoo.ca 
Cc: lyx-users@lists.lyx.org lyx-users@lists.lyx.org; Scott Kostyshak 
skost...@princeton.edu 
Sent: Sunday, April 28, 2013 4:14:58 PM
Subject: Re: Spanners in tables
 


Tanks, John. The second table is almost what I want. The only change is to 
remove the bottom border from the cell to the left of the Result spanner.

This approach works, but I was hoping there's an easier way in
  LyX. The whole idea of keeping presentation separate from content
  would imply that tables can be formatted according to different
  styles at the push of a button.

Nonetheless, this works.

    Marsh

On 4/27/13 9:55 AM, John Kane wrote:

Hi Marshall,

I think that it can be done fairly easily by inserting some
extra columns and then using the multi-column approach. See the
second table in the attached file. Is that what you wanted.?







 From: Marshall Feldman ma...@uri.edu
To: lyx-users@lists.lyx.org 
Cc: Scott Kostyshak skost...@princeton.edu 
Sent: Friday, April 26, 2013 4:57:01 PM
Subject: Re: Spanners in tables
 




On 4/26/13 4:12 PM, Scott Kostyshak wrote:

On Fri, Apr 26, 2013 at 3:00 PM, Marshall Feldman ma...@uri.edu wrote: 
Hello, The standard format for formal tables uses spanners to indicate 
columns with
similar, related content. I am using LyX with the formal tables option set
to on. But I don't see how to introduce spanners into a table.. For example, 
suppose a table has two lines of headings. Suppose further that
row 1 has Revenue as a heading and that below this the table has two
headings, Sales and Interest. So we would like the line beneath
Revenue to span two columns with a solid line, and for there to be enough
space at the edges of the spanned columns for the reader to make out that
the spanner is indeed separate from adjacent columns. See this page for
examples. So how does one handle spanners in LyX? 
Hi Marshall, If I understand correctly, what you refer to as spanners LyX 
would
refer to as multi-column. In a table, select a couple of rows and
click on multi-column in the table toolbar (which is at the bottom
of the screen and is activated when the cursor is in a table). Best, Scott 
Thanks, Scott.

Well it's not exactly multicolumn, at least not how I
  understand this term. A cell that's multicolumn spans
  more than one column. This relates to spanners, but
  it's only part of the issue.

A spanner is a line under the heading for the
  multicolumn cell. The line does not run the full width
  of the original columns that went into the multicolumn
  cell. Since the spanner typically serves as a heading
  indicating which columns fall under the heading, there
  has to be some way to distinguish the columns falling
  under the heading from other, adjacent columns. This
  is why the spanner line is shorter than the combined
  widths of the original columns: whitespace on either
  side of the line separates it from lines in adjacent
  cells.

I'll try to draw a picture:

            Greetings                        Century
Holiday            ---    --             
= These dashed lines are spanners
    Coming                    Going            18    19    
20    21
Mardis Gras    Want beads?    Happy Mardi Gras       
           X   X
Xmas              Merry Xmas    Merry Xmas           
              X X       X


Thanks for your help.

    Marsh




Compilation problem

2013-04-29 Thread Emil Pavlov

I have a large lyx document (several child documents, together around 60
pages) and sometimes I have problems compiling the pdf. I even cannot
close lyx, because it says it is still compiling.
1. How can I interrupt the compilation?
2. How can I fix this?

I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I
enable forward/reverse search (I really need this feature).

Best regards,
Emil



Re: Compilation problem

2013-04-29 Thread curtis osterhoudt
I ran into this problem just this weekend (using the 2.1.0 dev version of LyX 
on a debian-based system). I happen to have figured out what I did wrong, 
though it didn't have anything to do with forward/reverse searches; I thought 
the condition was interesting: I put some ERT into my document to change some 
enumeration settings (explicitly, the following command to change numbering to 
a lowercase letter surrounded by parentheses: 
\renewcommand{\theenumi}{(\alph{enumi})}). Later on, though, in playing with 
that command, I changed it to the following: 
\renewcommand{\theenumi}{(\theenumi)}. This, I think, is a sort of circular 
definition, and pdflatex chokes on it, and LyX appears to be frozen (I think 
it's waiting for pdflatex to finish its compilation). 

  If you haven't started LyX from the command line (so that you can simply 
ctrl-c it), then you can use the following to kill the process:

From a command window, run top or htop, and find the process (likely gs or 
pdflatex) which is eating up resources and kill it that way.
OR
run the command ps -ef | grep pdflatex (or whatever process you suspect of 
hanging), which will return the process number of the program running. Then you 
can run kill process number (or, for extreme maliciousness, kill -9 
process number) to make LyX useable again. 

  Hope that helps!





 From: Emil Pavlov emil.p.pav...@gmail.com
To: lyx-users@lists.lyx.org 
Sent: Monday, April 29, 2013 1:15 PM
Subject: Compilation problem
 

I have a large lyx document (several child documents, together around 60
pages) and sometimes I have problems compiling the pdf. I even cannot
close lyx, because it says it is still compiling.
1. How can I interrupt the compilation?
2. How can I fix this?

I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I
enable forward/reverse search (I really need this feature).

Best regards,
Emil





Lyx to ODT

2013-04-29 Thread Gordon Cooper

Another way, and I will admit to not having tested it,
could be to produce a PDF from the Lyx file, then convert
the PDF to Word, which can be read by Libre Office, tidied
up, then saved as an odt.

Gordon Cooper


Re: Lyx to ODT

2013-04-29 Thread Steve Litt
On Tue, 30 Apr 2013 11:04:40 +1200
Gordon Cooper gordon_coo...@clear.net.nz wrote:

 Another way, and I will admit to not having tested it,
 could be to produce a PDF from the Lyx file, then convert
 the PDF to Word, which can be read by Libre Office, tidied
 up, then saved as an odt.
 
 Gordon Cooper

You'd lose all your styles, or to phrase it in LyXese, you'd lose your
WYSIWYM.


SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Converting lyx to odt

2013-04-29 Thread Wolfgang Engelmann
Am Montag, 29. April 2013, 01:02:12 schrieb Sotiris Hasapis:
 I ' m trying to convert lyx to odt file using the methods described
 here: http://wiki.lyx.org/Tools/LyX2OpenOffice
 but nothing seems to work. In fact when taking the convert option :
 Latex(plain) to openoffice nothing happens and responds : Error while
 exporting format: odtFile 'C:/Documents and Settings/Owner/Local
 Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_
 cryptograhpy.tex' was not closed properly.
 Any help please?
 
 I'm using windows xp, lyx 2.0.
 Thank you.
 Sotiris.

I am on Debian Linux and can export a small text file to odt.
However, a longer document with figures returns:

System call: rmdir sxw-
AAABlumenuhr20130419.20.dir/Pictures/AAABlumenuhr20130419.2061x.png
System return: 0
System call: cpAAABlumenuhr20130419.2061x.png sxw-
AAABlumenuhr20130419.20.dir/Pictures/AAABlumenuhr20130419.2061x.png
--- Warning --- System return: 256
Error: Cannot view file

File does not exist: 
/tmp/lyx_tmpdir.MT3747/lyx_tmpbuf2/AAABlumenuhr20130419.20.odt

Wolfgang



Re: Converting lyx to odt

2013-04-29 Thread Ray Rashif
On 29 April 2013 07:02, Sotiris Hasapis shasa...@gmail.com wrote:
 I ' m trying to convert lyx to odt file using the methods described here:
 http://wiki.lyx.org/Tools/LyX2OpenOffice
 but nothing seems to work. In fact when taking the convert option :
 Latex(plain) to openoffice nothing happens and responds : Error while
 exporting format: odtFile 'C:/Documents and Settings/Owner/Local
 Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
 was not closed properly.
 Any help please?

 I'm using windows xp, lyx 2.0.
 Thank you.
 Sotiris.

From experience this has never proven useful. Interoperability is an
issue here with LyX and other word processors. Even if one conversion
succeeds (to either a .doc, .docx, .odt or .rtf), you'd likely need to
do some clean-up here and there.

A fine compromise I have found is to use elyxer¹ as an intermediary
tool. Its HTML output is beautiful, and it works with complex
parent-child lyx documents including figures. You could also take a
look at pandoc (via LaTeX).²

¹ http://elyxer.nongnu.org/
² http://johnmacfarlane.net/pandoc/


--
GPG/PGP ID: C0711BF1


Re: Converting lyx to odt

2013-04-29 Thread Richard Heck



On 29 April 2013 07:02, Sotiris Hasapis shasa...@gmail.com wrote:

I ' m trying to convert lyx to odt file using the methods described here:
http://wiki.lyx.org/Tools/LyX2OpenOffice
but nothing seems to work. In fact when taking the convert option :
Latex(plain) to openoffice nothing happens and responds : Error while
exporting format: odtFile 'C:/Documents and Settings/Owner/Local
Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
was not closed properly.
Any help please?


This conversion route works only with fairly simple documents. It relies 
upon the external tool oolatex, which is skitchy at best.


My own technique, when I have to do this, is to export to LyXHTML and 
then import that into Libre Office. As someone else said, you'll have to 
do some cleanup, but it works reasonably well.


Richard



Re: Spanners in tables

2013-04-29 Thread John Kane
I suspect that tables are the curse of LaTeX/LyX at best.  I remember being 
horrified the first time I saw a LaTeX table layout.


I suppose it depends on where your original numbers for the table are coming 
from but there may be some help.  I am just a real beginner with LyX (and LaTex 
too for that matter) but in the stats environment R 
([url=http://www.r-project.org/][b]R[/b][/url]) there are a number of packages 
/ functions/ who-knows-what that can output some rather nice tables.  Whether 
or not they would do exactly the spanners that you need is another matter.


R integrates fairly smoothly with LyX through the Sweave or kintr packages (or 
so some people say) so if you can get the data in a reasonable format in R then 
it may not be too bad to simply produce the tables using knitr or Sweave. 

I suspect that something like Matlab , SAS or Stata can do something similar 
but I have never used them.


http://stackoverflow.com/questions/5465314/tools-for-making-latex-tables-in-r
http://www.r-statistics.com/2013/01/stargazer-package-for-beautiful-latex-tables-from-r-statistical-models-output/



 From: Marshall Feldman ma...@uri.edu
To: John Kane jrkrid...@yahoo.ca 
Cc: lyx-users@lists.lyx.org lyx-users@lists.lyx.org; Scott Kostyshak 
skost...@princeton.edu 
Sent: Sunday, April 28, 2013 4:14:58 PM
Subject: Re: Spanners in tables
 


Tanks, John. The second table is almost what I want. The only change is to 
remove the bottom border from the cell to the left of the Result spanner.

This approach works, but I was hoping there's an easier way in
  LyX. The whole idea of keeping presentation separate from content
  would imply that tables can be formatted according to different
  styles at the push of a button.

Nonetheless, this works.

    Marsh

On 4/27/13 9:55 AM, John Kane wrote:

Hi Marshall,

I think that it can be done fairly easily by inserting some
extra columns and then using the multi-column approach. See the
second table in the attached file. Is that what you wanted.?







 From: Marshall Feldman ma...@uri.edu
To: lyx-users@lists.lyx.org 
Cc: Scott Kostyshak skost...@princeton.edu 
Sent: Friday, April 26, 2013 4:57:01 PM
Subject: Re: Spanners in tables
 




On 4/26/13 4:12 PM, Scott Kostyshak wrote:

On Fri, Apr 26, 2013 at 3:00 PM, Marshall Feldman ma...@uri.edu wrote: 
Hello, The standard format for formal tables uses spanners to indicate 
columns with
similar, related content. I am using LyX with the formal tables option set
to on. But I don't see how to introduce spanners into a table.. For example, 
suppose a table has two lines of headings. Suppose further that
row 1 has Revenue as a heading and that below this the table has two
headings, Sales and Interest. So we would like the line beneath
Revenue to span two columns with a solid line, and for there to be enough
space at the edges of the spanned columns for the reader to make out that
the spanner is indeed separate from adjacent columns. See this page for
examples. So how does one handle spanners in LyX? 
Hi Marshall, If I understand correctly, what you refer to as spanners LyX 
would
refer to as multi-column. In a table, select a couple of rows and
click on multi-column in the table toolbar (which is at the bottom
of the screen and is activated when the cursor is in a table). Best, Scott 
Thanks, Scott.

Well it's not exactly multicolumn, at least not how I
  understand this term. A cell that's multicolumn spans
  more than one column. This relates to spanners, but
  it's only part of the issue.

A spanner is a line under the heading for the
  multicolumn cell. The line does not run the full width
  of the original columns that went into the multicolumn
  cell. Since the spanner typically serves as a heading
  indicating which columns fall under the heading, there
  has to be some way to distinguish the columns falling
  under the heading from other, adjacent columns. This
  is why the spanner line is shorter than the combined
  widths of the original columns: whitespace on either
  side of the line separates it from lines in adjacent
  cells.

I'll try to draw a picture:

            Greetings                        Century
Holiday            ---    --             
= These dashed lines are spanners
    Coming                    Going            18    19    
20    21
Mardis Gras    Want beads?    Happy Mardi Gras       
           X   X
Xmas              Merry Xmas    Merry Xmas           
              X X       X


Thanks for your help.

    Marsh




Compilation problem

2013-04-29 Thread Emil Pavlov

I have a large lyx document (several child documents, together around 60
pages) and sometimes I have problems compiling the pdf. I even cannot
close lyx, because it says it is still compiling.
1. How can I interrupt the compilation?
2. How can I fix this?

I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I
enable forward/reverse search (I really need this feature).

Best regards,
Emil



Re: Compilation problem

2013-04-29 Thread curtis osterhoudt
I ran into this problem just this weekend (using the 2.1.0 dev version of LyX 
on a debian-based system). I happen to have figured out what I did wrong, 
though it didn't have anything to do with forward/reverse searches; I thought 
the condition was interesting: I put some ERT into my document to change some 
enumeration settings (explicitly, the following command to change numbering to 
a lowercase letter surrounded by parentheses: 
\renewcommand{\theenumi}{(\alph{enumi})}). Later on, though, in playing with 
that command, I changed it to the following: 
\renewcommand{\theenumi}{(\theenumi)}. This, I think, is a sort of circular 
definition, and pdflatex chokes on it, and LyX appears to be frozen (I think 
it's waiting for pdflatex to finish its compilation). 

  If you haven't started LyX from the command line (so that you can simply 
ctrl-c it), then you can use the following to kill the process:

From a command window, run top or htop, and find the process (likely gs or 
pdflatex) which is eating up resources and kill it that way.
OR
run the command ps -ef | grep pdflatex (or whatever process you suspect of 
hanging), which will return the process number of the program running. Then you 
can run kill process number (or, for extreme maliciousness, kill -9 
process number) to make LyX useable again. 

  Hope that helps!





 From: Emil Pavlov emil.p.pav...@gmail.com
To: lyx-users@lists.lyx.org 
Sent: Monday, April 29, 2013 1:15 PM
Subject: Compilation problem
 

I have a large lyx document (several child documents, together around 60
pages) and sometimes I have problems compiling the pdf. I even cannot
close lyx, because it says it is still compiling.
1. How can I interrupt the compilation?
2. How can I fix this?

I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I
enable forward/reverse search (I really need this feature).

Best regards,
Emil





Lyx to ODT

2013-04-29 Thread Gordon Cooper

Another way, and I will admit to not having tested it,
could be to produce a PDF from the Lyx file, then convert
the PDF to Word, which can be read by Libre Office, tidied
up, then saved as an odt.

Gordon Cooper


Re: Lyx to ODT

2013-04-29 Thread Steve Litt
On Tue, 30 Apr 2013 11:04:40 +1200
Gordon Cooper gordon_coo...@clear.net.nz wrote:

 Another way, and I will admit to not having tested it,
 could be to produce a PDF from the Lyx file, then convert
 the PDF to Word, which can be read by Libre Office, tidied
 up, then saved as an odt.
 
 Gordon Cooper

You'd lose all your styles, or to phrase it in LyXese, you'd lose your
WYSIWYM.


SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Converting lyx to odt

2013-04-29 Thread Wolfgang Engelmann
Am Montag, 29. April 2013, 01:02:12 schrieb Sotiris Hasapis:
> I ' m trying to convert lyx to odt file using the methods described
> here: http://wiki.lyx.org/Tools/LyX2OpenOffice
> but nothing seems to work. In fact when taking the convert option :
> Latex(plain) to openoffice nothing happens and responds : "Error while
> exporting format: odtFile 'C:/Documents and Settings/Owner/Local
> Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_
> cryptograhpy.tex' was not closed properly."
> Any help please?
> 
> I'm using windows xp, lyx 2.0.
> Thank you.
> Sotiris.

I am on Debian Linux and can export a small text file to odt.
However, a longer document with figures returns:

System call: rmdir sxw-
AAABlumenuhr20130419.20.dir/Pictures/AAABlumenuhr20130419.2061x.png
System return: 0
System call: cpAAABlumenuhr20130419.2061x.png sxw-
AAABlumenuhr20130419.20.dir/Pictures/AAABlumenuhr20130419.2061x.png
--- Warning --- System return: 256
Error: Cannot view file

File does not exist: 
/tmp/lyx_tmpdir.MT3747/lyx_tmpbuf2/AAABlumenuhr20130419.20.odt

Wolfgang



Re: Converting lyx to odt

2013-04-29 Thread Ray Rashif
On 29 April 2013 07:02, Sotiris Hasapis  wrote:
> I ' m trying to convert lyx to odt file using the methods described here:
> http://wiki.lyx.org/Tools/LyX2OpenOffice
> but nothing seems to work. In fact when taking the convert option :
> Latex(plain) to openoffice nothing happens and responds : "Error while
> exporting format: odtFile 'C:/Documents and Settings/Owner/Local
> Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
> was not closed properly."
> Any help please?
>
> I'm using windows xp, lyx 2.0.
> Thank you.
> Sotiris.

>From experience this has never proven useful. Interoperability is an
issue here with LyX and other word processors. Even if one conversion
succeeds (to either a .doc, .docx, .odt or .rtf), you'd likely need to
do some clean-up here and there.

A fine compromise I have found is to use elyxer¹ as an intermediary
tool. Its HTML output is beautiful, and it works with complex
parent-child lyx documents including figures. You could also take a
look at pandoc (via LaTeX).²

¹ http://elyxer.nongnu.org/
² http://johnmacfarlane.net/pandoc/


--
GPG/PGP ID: C0711BF1


Re: Converting lyx to odt

2013-04-29 Thread Richard Heck



On 29 April 2013 07:02, Sotiris Hasapis  wrote:

I ' m trying to convert lyx to odt file using the methods described here:
http://wiki.lyx.org/Tools/LyX2OpenOffice
but nothing seems to work. In fact when taking the convert option :
Latex(plain) to openoffice nothing happens and responds : "Error while
exporting format: odtFile 'C:/Documents and Settings/Owner/Local
Settings/Temp/lyx_tmpdir.Hp4792/lyx_tmpbuf3/Some_aspects_of_group-based_cryptograhpy.tex'
was not closed properly."
Any help please?


This conversion route works only with fairly simple documents. It relies 
upon the external tool oolatex, which is skitchy at best.


My own technique, when I have to do this, is to export to LyXHTML and 
then import that into Libre Office. As someone else said, you'll have to 
do some cleanup, but it works reasonably well.


Richard



Re: Spanners in tables

2013-04-29 Thread John Kane
I suspect that tables are the curse of LaTeX/LyX at best.  I remember being 
horrified the first time I saw a LaTeX table layout.


I suppose it depends on where your original numbers for the table are coming 
from but there may be some help.  I am just a real beginner with LyX (and LaTex 
too for that matter) but in the stats environment R 
([url=http://www.r-project.org/][b]R[/b][/url]) there are a number of packages 
/ functions/ who-knows-what that can output some rather nice tables.  Whether 
or not they would do exactly the spanners that you need is another matter.


R integrates fairly smoothly with LyX through the Sweave or kintr packages (or 
so some people say) so if you can get the data in a reasonable format in R then 
it may not be too bad to simply produce the tables using knitr or Sweave. 

I suspect that something like Matlab , SAS or Stata can do something similar 
but I have never used them.


http://stackoverflow.com/questions/5465314/tools-for-making-latex-tables-in-r
http://www.r-statistics.com/2013/01/stargazer-package-for-beautiful-latex-tables-from-r-statistical-models-output/



 From: Marshall Feldman 
To: John Kane  
Cc: "lyx-users@lists.lyx.org" ; Scott Kostyshak 
 
Sent: Sunday, April 28, 2013 4:14:58 PM
Subject: Re: Spanners in tables
 


Tanks, John. The second table is almost what I want. The only change is to 
remove the bottom border from the cell to the left of the "Result" spanner.

This approach works, but I was hoping there's an easier way in
  LyX. The whole idea of keeping presentation separate from content
  would imply that tables can be formatted according to different
  styles at the push of a button.

Nonetheless, this works.

    Marsh

On 4/27/13 9:55 AM, John Kane wrote:

Hi Marshall,
>
>I think that it can be done fairly easily by inserting some
extra columns and then using the multi-column approach. See the
second table in the attached file. Is that what you wanted.?
>
>
>
>
>
>
>
> From: Marshall Feldman 
>To: lyx-users@lists.lyx.org 
>Cc: Scott Kostyshak  
>Sent: Friday, April 26, 2013 4:57:01 PM
>Subject: Re: Spanners in tables
> 
>
>
>
>
>On 4/26/13 4:12 PM, Scott Kostyshak wrote:
>
>On Fri, Apr 26, 2013 at 3:00 PM, Marshall Feldman  wrote: 
>>Hello, The standard format for formal tables uses spanners to indicate 
>>columns with
similar, related content. I am using LyX with the "formal" tables option set
to on. But I don't see how to introduce spanners into a table.. For example, 
suppose a table has two lines of headings. Suppose further that
row 1 has "Revenue" as a heading and that below this the table has two
headings, "Sales" and "Interest." So we would like the line beneath
"Revenue" to span two columns with a solid line, and for there to be enough
space at the edges of the spanned columns for the reader to make out that
the spanner is indeed separate from adjacent columns. See this page for
examples. So how does one handle spanners in LyX? 
>>Hi Marshall, If I understand correctly, what you refer to as "spanners" LyX 
>>would
refer to as "multi-column". In a table, select a couple of rows and
click on "multi-column" in the table toolbar (which is at the bottom
of the screen and is activated when the cursor is in a table). Best, Scott 
Thanks, Scott.
>
>Well it's not exactly multicolumn, at least not how I
  understand this term. A cell that's multicolumn spans
  more than one column. This relates to spanners, but
  it's only part of the issue.
>
>A spanner is a line under the heading for the
  multicolumn cell. The line does not run the full width
  of the original columns that went into the multicolumn
  cell. Since the spanner typically serves as a heading
  indicating which columns fall under the heading, there
  has to be some way to distinguish the columns falling
  under the heading from other, adjacent columns. This
  is why the spanner line is shorter than the combined
  widths of the original columns: whitespace on either
  side of the line separates it from lines in adjacent
  cells.
>
>I'll try to draw a picture:
>
>            Greetings                        Century
>Holiday            ---    --             
><= These dashed lines are "spanners"
>    Coming                    Going            18    19    
>20    21
>Mardis Gras    Want beads?    Happy Mardi Gras       
           X   X
>Xmas              Merry Xmas    Merry Xmas           
              X X       X
>
>
>Thanks for your 

Compilation problem

2013-04-29 Thread Emil Pavlov

I have a large lyx document (several child documents, together around 60
pages) and sometimes I have problems compiling the pdf. I even cannot
close lyx, because it says it is still compiling.
1. How can I interrupt the compilation?
2. How can I fix this?

I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I
enable forward/reverse search (I really need this feature).

Best regards,
Emil



Re: Compilation problem

2013-04-29 Thread curtis osterhoudt
I ran into this problem just this weekend (using the 2.1.0 dev version of LyX 
on a debian-based system). I happen to have figured out what I did wrong, 
though it didn't have anything to do with forward/reverse searches; I thought 
the condition was interesting: I put some ERT into my document to change some 
enumeration settings (explicitly, the following command to change numbering to 
a lowercase letter surrounded by parentheses: 
\renewcommand{\theenumi}{(\alph{enumi})}). Later on, though, in playing with 
that command, I changed it to the following: 
\renewcommand{\theenumi}{(\theenumi)}. This, I think, is a sort of circular 
definition, and pdflatex chokes on it, and LyX appears to be frozen (I think 
it's waiting for pdflatex to finish its compilation). 

  If you haven't started LyX from the command line (so that you can simply 
ctrl-c it), then you can use the following to kill the process:

From a command window, run "top" or "htop", and find the process (likely gs or 
pdflatex) which is eating up resources and kill it that way.
OR
run the command "ps -ef | grep pdflatex" (or whatever process you suspect of 
hanging), which will return the process number of the program running. Then you 
can run "kill " (or, for extreme maliciousness, "kill -9 
") to make LyX useable again. 

  Hope that helps!




>
> From: Emil Pavlov 
>To: lyx-users@lists.lyx.org 
>Sent: Monday, April 29, 2013 1:15 PM
>Subject: Compilation problem
> 
>
>I have a large lyx document (several child documents, together around 60
>pages) and sometimes I have problems compiling the pdf. I even cannot
>close lyx, because it says it is still compiling.
>1. How can I interrupt the compilation?
>2. How can I fix this?
>
>I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I
>enable forward/reverse search (I really need this feature).
>
>Best regards,
>Emil
>
>
>
>

Lyx to ODT

2013-04-29 Thread Gordon Cooper

Another way, and I will admit to not having tested it,
could be to produce a PDF from the Lyx file, then convert
the PDF to Word, which can be read by Libre Office, tidied
up, then saved as an odt.

Gordon Cooper


Re: Lyx to ODT

2013-04-29 Thread Steve Litt
On Tue, 30 Apr 2013 11:04:40 +1200
Gordon Cooper  wrote:

> Another way, and I will admit to not having tested it,
> could be to produce a PDF from the Lyx file, then convert
> the PDF to Word, which can be read by Libre Office, tidied
> up, then saved as an odt.
> 
> Gordon Cooper

You'd lose all your styles, or to phrase it in LyXese, you'd lose your
WYSIWYM.


SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance