Re: Header Block with spanning graphic

2013-05-17 Thread John White
I think you scan the image as background or wallpaper.  Don't know 
about  the header business.


John
Morgan Rodwell wrote:

Hey there,

How would one build a header that contained a graphic that spans the 
page from left to right and lies behind text?  Can this be done in 
Lyx?  In Latex at all?


Morgan









Lyx Math Macro Library

2013-05-17 Thread Pavel Bažant
Dear Lyx users,

is there any public library of LyX macros? Math notation has many widely used 
semantic elements that could be abstracted into LyX macros. Things like:

Set builder notation
Sequent calculus notation
Function notation (the fun argument would be the macro argument)
Operator notation (as with functions)
Braket notation
Macros that would take indexed notation in GR and output Penrose notation
(in combination Latex macros to perform the translation and rendering).

I have created a macro that is useful when working with sequent calculi.

One of the goals would be to minimize the need for tweaking the formatting -- 
things like spacing tweaks would be abstracted away into the macro.

IMHO, an official location to share LyX macros would be great.

Pavel Bažant



What about ePub support

2013-05-17 Thread Jan Ulrich Hasecke
Hi,

I want to publish ebooks and typeset books from the same source, because
today nearly all new books are offered as ebooks and as printed books.

Up to now I didn't find a good solution working out of the box.

Sphinx, the documentation system written in Python offers multiple
output formats from one source, eg. PDF via LaTeX. EPub support is
improving but not perfect yet. You have to tweak it a bit
(http://www.hasecke.eu/Members/juh/sphinx-a-tool-for-self-publisher)

I now want to give LyX a try, I used it years ago but always went back
to LaTeX.

I saw that there isn't a no epub support in LyX up to now. I read about
exporting to html and converting to epub via Calibre. This is a
workaround I could choose if I had to, but it is not the solution I am
looking for.

So what are the plans for the future? I read about a GSOC project aiming
to implement epub conversion in LyX. Is there a timeframe? In the road
map of 2.1 epub is not mentioned.

TIA
juh


Re: copy/paste poems into lyx

2013-05-17 Thread Scott Kostyshak
On Fri, May 17, 2013 at 11:06 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 I have a word document with poems. Every line within the same verse is a new 
 paragraph, and the verses are separated by empty paragraphs.

 I would like to copy these poems into lyx and use the verse environment.
 If I copy/paste the poems into lyx, all lines become new paragraphs in lyx 
 and the separating empty paragraphs/lines are removed, that is the verses 
 become fused together. I should manually replace the paragraph marks with new 
 lines within verses and leave them as they are between verses. This would be 
 a very tedious work. Is there a way to automate this?

The following works for me:
Append '\\' to the lines within verses (you should be able to automate
this). Then go to LyX and go to Edit  Paste Special  LaTeX Text. I
think this is only on LyX 2.1. If you are on Ubuntu it's very easy to
try out alongside your current LyX version:
http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3

Otherwise, use LyX 2.0.x and import the Latex file.

Then just select all and set it as verse.

Best,

Scott


Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 12:31:31 +0200
Jan Ulrich Hasecke juhase...@googlemail.com wrote:

 Hi,
 
 I want to publish ebooks and typeset books from the same source,
 because today nearly all new books are offered as ebooks and as
 printed books.
 
 Up to now I didn't find a good solution working out of the box.
 
 Sphinx, the documentation system written in Python offers multiple
 output formats from one source, eg. PDF via LaTeX. EPub support is
 improving but not perfect yet. You have to tweak it a bit
 (http://www.hasecke.eu/Members/juh/sphinx-a-tool-for-self-publisher)
 
 I now want to give LyX a try, I used it years ago but always went back
 to LaTeX.
 
 I saw that there isn't a no epub support in LyX up to now. I read
 about exporting to html and converting to epub via Calibre. This is a
 workaround I could choose if I had to, but it is not the solution I am
 looking for.
 
 So what are the plans for the future? I read about a GSOC project
 aiming to implement epub conversion in LyX. Is there a timeframe? In
 the road map of 2.1 epub is not mentioned.
 
 TIA
 juh

Jan,

I have faced the same problem myself, and have used the HTML route with
very little trouble and with very little effort. I simply export to
LyXHTML and import into Sigil. Some tweaking in Sigil is usually
desirable, if not strictly required. Sigil includes EPUB validation
with FlightCrew (which most publishers require), as well as the
capability to edit all parts of EPUB.

Overall, it is vastly superior to generating an EPUB file from an MS
Word document, which is what most self-publishers (and many publishers)
do. Better results, and less effort.

Les


Re: What about ePub support

2013-05-17 Thread stefano franchi
On Fri, May 17, 2013 at 1:19 PM, Les Denham lden...@hal-pc.org wrote:

 On Fri, 17 May 2013 12:31:31 +0200
 Jan Ulrich Hasecke juhase...@googlemail.com wrote:

  So what are the plans for the future? I read about a GSOC project
  aiming to implement epub conversion in LyX. Is there a timeframe? In
  the road map of 2.1 epub is not mentioned.
 I have faced the same problem myself, and have used the HTML route with
 very little trouble and with very little effort. I simply export to
 LyXHTML and import into Sigil. Some tweaking in Sigil is usually
 desirable, if not strictly required. Sigil includes EPUB validation
 with FlightCrew (which most publishers require), as well as the
 capability to edit all parts of EPUB.

 Les (and all),
 this may be a silly question, but worth asking perhaps: could the tweaks
to the XHTML code that you carry out in Sigil be easily avoided with some,
perhaps minor, tweaks to the existing XHTML export? In other words:  could
we perhaps *completely* replace an ePub export function with a XHTML/Sigil
export? Relatedly: can Sigil be used latex-style, i.e. as a
converter/validator from the command line?

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Aspell for Windows at LyX?

2013-05-17 Thread Ciarán Ó Duibhín
Thanks for replying.  However I'm not thinking of installing LyX just now. 
I'm asking if the LyX repository contains a Windows installer for ASpell, as 
the webpage seems to imply.

Ciarán.
- Original Message - 
From: Liviu Andronic landronim...@gmail.com

To: Ciarán Ó Duibhín cia...@oduibhin.freeserve.co.uk
Cc: lyx-users@lists.lyx.org
Sent: Friday, May 17, 2013 4:12 AM
Subject: Re: Aspell for Windows at LyX?


On Fri, May 17, 2013 at 3:57 AM, Ciarán Ó Duibhín
cia...@oduibhin.freeserve.co.uk wrote:
May I ask a question here about the webpage 
http://wiki.lyx.org/Devel/Aspell

?

The page says:

If you need to install Aspell separately on windows, it can be downloaded
from the LyX repositories:

ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows/ 

To install Aspell separately on Windows is what I would like to do, but
there seems to be nothing but a short text message at sourceforge.net, and
only a very old (2002) Windows installer at http://aspell.net/win32/

Now, the sentence quoted above seems to say I can download a (hopefully
up-to-date) Aspell installer for Windows from that LyX ftp site; and
further, http://en.wikipedia.org/wiki/GNU_Aspell says that the LyX 
project

has long solved the Windows packaging problem by forking Aspell.

But, as far as I can see, the ftp site contains only dictionaries.  Is 
this

so, or am I missing something?


To my knowledge the Windows builds of LyX do not support Aspell. Use
Hunspell (or Enchant).

Liviu 



Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 13:32:51 -0500
stefano franchi stefano.fran...@gmail.com wrote:

  this may be a silly question, but worth asking perhaps: could the
 tweaks to the XHTML code that you carry out in Sigil be easily
 avoided with some, perhaps minor, tweaks to the existing XHTML
 export? In other words:  could we perhaps *completely* replace an
 ePub export function with a XHTML/Sigil export? Relatedly: can Sigil
 be used latex-style, i.e. as a converter/validator from the command
 line?

Stefano,

I don't think so: Sigil is not a command-line tool. Sigil has a
GPL3 license, so I don't see that there would be any problem re-using
code in it to create a command-line tool. But I think it would be
simpler to create such a tool from scratch.

If you just start Sigil from the command line with an HTML file as
the argument, you get a usable EPUB book brought up in the GUI, but it
has a few problems: firstly, the default text file is present but not
referenced; then there are four items of required metadata missing; and
the table of contents is inaccurate. There is also no cover. However,
with no editing the saved EPUB would probably work in most readers.

Fixing these problems takes no more than five minutes, unless you want
a fancy cover image.

Les


Re: What about ePub support

2013-05-17 Thread Liviu Andronic
On Fri, May 17, 2013 at 8:32 PM, stefano franchi
stefano.fran...@gmail.com wrote:
 export? Relatedly: can Sigil be used latex-style, i.e. as a
 converter/validator from the command line?

A quick search turned up this CLI ePub validator:
http://code.google.com/p/epubcheck/

And on Sigil's Issues tracker:
https://code.google.com/p/sigil/issues/detail?id=518
Actually there's an *undocumented and unsupported* HTML-to-EPUB
command line conversion option. See main.cpp for details. Did I
mention the feature is *undocumented and unsupported*? :)
It's there because a certain company was willing to pay to see it
included, but I'm opposed to the feature on principle. Sigil is an
editor, not an automatic converter. If you need one, there's Calibre.

And here's Calibre's documentation:
http://manual.calibre-ebook.com/conversion.html#conversion
http://manual.calibre-ebook.com/cli/ebook-convert.html#ebook-convert

I don't see why we couldn't support the CLI  tools if someone showed
us how to use them.

Liviu


Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 22:56:17 +0200
Liviu Andronic landronim...@gmail.com wrote:

 Actually there's an *undocumented and unsupported* HTML-to-EPUB
 command line conversion option. See main.cpp for details. Did I
 mention the feature is *undocumented and unsupported*? :)
 It's there because a certain company was willing to pay to see it
 included, but I'm opposed to the feature on principle. Sigil is an
 editor, not an automatic converter. If you need one, there's Calibre.
 
 And here's Calibre's documentation:
 http://manual.calibre-ebook.com/conversion.html#conversion
 http://manual.calibre-ebook.com/cli/ebook-convert.html#ebook-convert
 
 I don't see why we couldn't support the CLI  tools if someone showed
 us how to use them.

Liviu,

I've used Calibre to convert from HTML to EPUB, and that's why I prefer
to use Sigil. Calibre does a very good job of converting between ebook
formats, such as from EPUB to MOBI. But unless your book is very simple
it tends to run into problems with HTML input.

Les

-- 
http://lrdenham.wordpress.com/


Re: Aspell for Windows at LyX?

2013-05-17 Thread Uwe Stöhr

Am 17.05.2013 21:46, schrieb Ciarán Ó Duibhín:


Thanks for replying.  However I'm not thinking of installing LyX just now.


Why not. Our the installer comes with all you need. Just click a few times OK and your get a fully 
functional LaTeX/LyX, a bibliography manager and also the spell checker is included.



I'm asking if the LyX
repository contains a Windows installer for ASpell, as the webpage seems to 
imply.


With LyX on Windows you can only use hunspell dictionaries. The Aspell traces you found in the Wiki 
are leftovers from LyX 1.6.x. However, the LyX repository does not contain dictionaries.


regards Uwe


Re: Offset problem with pdf picture floats

2013-05-17 Thread Uwe Stöhr

Am 18.05.2013 00:56, schrieb Marc Wijnand:


I am able to use picture floats without any problem in Lyx 2.0.5.1, for all 
types of pictures except for pdfs. When I insert a pdf, the whole picture float 
is located a little bit to high, covering some text. How can I fix this without 
needing to copy the original pdf files and change the extension in order to be 
able to use them correctly in Lyx? You can find an example of this problem 
attached to this mail.


Could you send me a _small_ LyX file and your PDF image to have a look?

regards Uwe


Re: Header Block with spanning graphic

2013-05-17 Thread John White
I think you scan the image as background or wallpaper.  Don't know 
about  the header business.


John
Morgan Rodwell wrote:

Hey there,

How would one build a header that contained a graphic that spans the 
page from left to right and lies behind text?  Can this be done in 
Lyx?  In Latex at all?


Morgan









Lyx Math Macro Library

2013-05-17 Thread Pavel Bažant
Dear Lyx users,

is there any public library of LyX macros? Math notation has many widely used 
semantic elements that could be abstracted into LyX macros. Things like:

Set builder notation
Sequent calculus notation
Function notation (the fun argument would be the macro argument)
Operator notation (as with functions)
Braket notation
Macros that would take indexed notation in GR and output Penrose notation
(in combination Latex macros to perform the translation and rendering).

I have created a macro that is useful when working with sequent calculi.

One of the goals would be to minimize the need for tweaking the formatting -- 
things like spacing tweaks would be abstracted away into the macro.

IMHO, an official location to share LyX macros would be great.

Pavel Bažant



What about ePub support

2013-05-17 Thread Jan Ulrich Hasecke
Hi,

I want to publish ebooks and typeset books from the same source, because
today nearly all new books are offered as ebooks and as printed books.

Up to now I didn't find a good solution working out of the box.

Sphinx, the documentation system written in Python offers multiple
output formats from one source, eg. PDF via LaTeX. EPub support is
improving but not perfect yet. You have to tweak it a bit
(http://www.hasecke.eu/Members/juh/sphinx-a-tool-for-self-publisher)

I now want to give LyX a try, I used it years ago but always went back
to LaTeX.

I saw that there isn't a no epub support in LyX up to now. I read about
exporting to html and converting to epub via Calibre. This is a
workaround I could choose if I had to, but it is not the solution I am
looking for.

So what are the plans for the future? I read about a GSOC project aiming
to implement epub conversion in LyX. Is there a timeframe? In the road
map of 2.1 epub is not mentioned.

TIA
juh


Re: copy/paste poems into lyx

2013-05-17 Thread Scott Kostyshak
On Fri, May 17, 2013 at 11:06 AM, Csikos Bela bcsikos...@freemail.hu wrote:
 Hello:

 I have a word document with poems. Every line within the same verse is a new 
 paragraph, and the verses are separated by empty paragraphs.

 I would like to copy these poems into lyx and use the verse environment.
 If I copy/paste the poems into lyx, all lines become new paragraphs in lyx 
 and the separating empty paragraphs/lines are removed, that is the verses 
 become fused together. I should manually replace the paragraph marks with new 
 lines within verses and leave them as they are between verses. This would be 
 a very tedious work. Is there a way to automate this?

The following works for me:
Append '\\' to the lines within verses (you should be able to automate
this). Then go to LyX and go to Edit  Paste Special  LaTeX Text. I
think this is only on LyX 2.1. If you are on Ubuntu it's very easy to
try out alongside your current LyX version:
http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3

Otherwise, use LyX 2.0.x and import the Latex file.

Then just select all and set it as verse.

Best,

Scott


Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 12:31:31 +0200
Jan Ulrich Hasecke juhase...@googlemail.com wrote:

 Hi,
 
 I want to publish ebooks and typeset books from the same source,
 because today nearly all new books are offered as ebooks and as
 printed books.
 
 Up to now I didn't find a good solution working out of the box.
 
 Sphinx, the documentation system written in Python offers multiple
 output formats from one source, eg. PDF via LaTeX. EPub support is
 improving but not perfect yet. You have to tweak it a bit
 (http://www.hasecke.eu/Members/juh/sphinx-a-tool-for-self-publisher)
 
 I now want to give LyX a try, I used it years ago but always went back
 to LaTeX.
 
 I saw that there isn't a no epub support in LyX up to now. I read
 about exporting to html and converting to epub via Calibre. This is a
 workaround I could choose if I had to, but it is not the solution I am
 looking for.
 
 So what are the plans for the future? I read about a GSOC project
 aiming to implement epub conversion in LyX. Is there a timeframe? In
 the road map of 2.1 epub is not mentioned.
 
 TIA
 juh

Jan,

I have faced the same problem myself, and have used the HTML route with
very little trouble and with very little effort. I simply export to
LyXHTML and import into Sigil. Some tweaking in Sigil is usually
desirable, if not strictly required. Sigil includes EPUB validation
with FlightCrew (which most publishers require), as well as the
capability to edit all parts of EPUB.

Overall, it is vastly superior to generating an EPUB file from an MS
Word document, which is what most self-publishers (and many publishers)
do. Better results, and less effort.

Les


Re: What about ePub support

2013-05-17 Thread stefano franchi
On Fri, May 17, 2013 at 1:19 PM, Les Denham lden...@hal-pc.org wrote:

 On Fri, 17 May 2013 12:31:31 +0200
 Jan Ulrich Hasecke juhase...@googlemail.com wrote:

  So what are the plans for the future? I read about a GSOC project
  aiming to implement epub conversion in LyX. Is there a timeframe? In
  the road map of 2.1 epub is not mentioned.
 I have faced the same problem myself, and have used the HTML route with
 very little trouble and with very little effort. I simply export to
 LyXHTML and import into Sigil. Some tweaking in Sigil is usually
 desirable, if not strictly required. Sigil includes EPUB validation
 with FlightCrew (which most publishers require), as well as the
 capability to edit all parts of EPUB.

 Les (and all),
 this may be a silly question, but worth asking perhaps: could the tweaks
to the XHTML code that you carry out in Sigil be easily avoided with some,
perhaps minor, tweaks to the existing XHTML export? In other words:  could
we perhaps *completely* replace an ePub export function with a XHTML/Sigil
export? Relatedly: can Sigil be used latex-style, i.e. as a
converter/validator from the command line?

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Aspell for Windows at LyX?

2013-05-17 Thread Ciarán Ó Duibhín
Thanks for replying.  However I'm not thinking of installing LyX just now. 
I'm asking if the LyX repository contains a Windows installer for ASpell, as 
the webpage seems to imply.

Ciarán.
- Original Message - 
From: Liviu Andronic landronim...@gmail.com

To: Ciarán Ó Duibhín cia...@oduibhin.freeserve.co.uk
Cc: lyx-users@lists.lyx.org
Sent: Friday, May 17, 2013 4:12 AM
Subject: Re: Aspell for Windows at LyX?


On Fri, May 17, 2013 at 3:57 AM, Ciarán Ó Duibhín
cia...@oduibhin.freeserve.co.uk wrote:
May I ask a question here about the webpage 
http://wiki.lyx.org/Devel/Aspell

?

The page says:

If you need to install Aspell separately on windows, it can be downloaded
from the LyX repositories:

ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows/ 

To install Aspell separately on Windows is what I would like to do, but
there seems to be nothing but a short text message at sourceforge.net, and
only a very old (2002) Windows installer at http://aspell.net/win32/

Now, the sentence quoted above seems to say I can download a (hopefully
up-to-date) Aspell installer for Windows from that LyX ftp site; and
further, http://en.wikipedia.org/wiki/GNU_Aspell says that the LyX 
project

has long solved the Windows packaging problem by forking Aspell.

But, as far as I can see, the ftp site contains only dictionaries.  Is 
this

so, or am I missing something?


To my knowledge the Windows builds of LyX do not support Aspell. Use
Hunspell (or Enchant).

Liviu 



Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 13:32:51 -0500
stefano franchi stefano.fran...@gmail.com wrote:

  this may be a silly question, but worth asking perhaps: could the
 tweaks to the XHTML code that you carry out in Sigil be easily
 avoided with some, perhaps minor, tweaks to the existing XHTML
 export? In other words:  could we perhaps *completely* replace an
 ePub export function with a XHTML/Sigil export? Relatedly: can Sigil
 be used latex-style, i.e. as a converter/validator from the command
 line?

Stefano,

I don't think so: Sigil is not a command-line tool. Sigil has a
GPL3 license, so I don't see that there would be any problem re-using
code in it to create a command-line tool. But I think it would be
simpler to create such a tool from scratch.

If you just start Sigil from the command line with an HTML file as
the argument, you get a usable EPUB book brought up in the GUI, but it
has a few problems: firstly, the default text file is present but not
referenced; then there are four items of required metadata missing; and
the table of contents is inaccurate. There is also no cover. However,
with no editing the saved EPUB would probably work in most readers.

Fixing these problems takes no more than five minutes, unless you want
a fancy cover image.

Les


Re: What about ePub support

2013-05-17 Thread Liviu Andronic
On Fri, May 17, 2013 at 8:32 PM, stefano franchi
stefano.fran...@gmail.com wrote:
 export? Relatedly: can Sigil be used latex-style, i.e. as a
 converter/validator from the command line?

A quick search turned up this CLI ePub validator:
http://code.google.com/p/epubcheck/

And on Sigil's Issues tracker:
https://code.google.com/p/sigil/issues/detail?id=518
Actually there's an *undocumented and unsupported* HTML-to-EPUB
command line conversion option. See main.cpp for details. Did I
mention the feature is *undocumented and unsupported*? :)
It's there because a certain company was willing to pay to see it
included, but I'm opposed to the feature on principle. Sigil is an
editor, not an automatic converter. If you need one, there's Calibre.

And here's Calibre's documentation:
http://manual.calibre-ebook.com/conversion.html#conversion
http://manual.calibre-ebook.com/cli/ebook-convert.html#ebook-convert

I don't see why we couldn't support the CLI  tools if someone showed
us how to use them.

Liviu


Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 22:56:17 +0200
Liviu Andronic landronim...@gmail.com wrote:

 Actually there's an *undocumented and unsupported* HTML-to-EPUB
 command line conversion option. See main.cpp for details. Did I
 mention the feature is *undocumented and unsupported*? :)
 It's there because a certain company was willing to pay to see it
 included, but I'm opposed to the feature on principle. Sigil is an
 editor, not an automatic converter. If you need one, there's Calibre.
 
 And here's Calibre's documentation:
 http://manual.calibre-ebook.com/conversion.html#conversion
 http://manual.calibre-ebook.com/cli/ebook-convert.html#ebook-convert
 
 I don't see why we couldn't support the CLI  tools if someone showed
 us how to use them.

Liviu,

I've used Calibre to convert from HTML to EPUB, and that's why I prefer
to use Sigil. Calibre does a very good job of converting between ebook
formats, such as from EPUB to MOBI. But unless your book is very simple
it tends to run into problems with HTML input.

Les

-- 
http://lrdenham.wordpress.com/


Re: Aspell for Windows at LyX?

2013-05-17 Thread Uwe Stöhr

Am 17.05.2013 21:46, schrieb Ciarán Ó Duibhín:


Thanks for replying.  However I'm not thinking of installing LyX just now.


Why not. Our the installer comes with all you need. Just click a few times OK and your get a fully 
functional LaTeX/LyX, a bibliography manager and also the spell checker is included.



I'm asking if the LyX
repository contains a Windows installer for ASpell, as the webpage seems to 
imply.


With LyX on Windows you can only use hunspell dictionaries. The Aspell traces you found in the Wiki 
are leftovers from LyX 1.6.x. However, the LyX repository does not contain dictionaries.


regards Uwe


Re: Offset problem with pdf picture floats

2013-05-17 Thread Uwe Stöhr

Am 18.05.2013 00:56, schrieb Marc Wijnand:


I am able to use picture floats without any problem in Lyx 2.0.5.1, for all 
types of pictures except for pdfs. When I insert a pdf, the whole picture float 
is located a little bit to high, covering some text. How can I fix this without 
needing to copy the original pdf files and change the extension in order to be 
able to use them correctly in Lyx? You can find an example of this problem 
attached to this mail.


Could you send me a _small_ LyX file and your PDF image to have a look?

regards Uwe


Re: Header Block with spanning graphic

2013-05-17 Thread John White
I think you scan the image as background or wallpaper.  Don't know 
about  the header business.


John
Morgan Rodwell wrote:

Hey there,

How would one build a header that contained a graphic that spans the 
page from left to right and lies behind text?  Can this be done in 
Lyx?  In Latex at all?


Morgan









Lyx Math Macro Library

2013-05-17 Thread Pavel Bažant
Dear Lyx users,

is there any public library of LyX macros? Math notation has many widely used 
semantic elements that could be abstracted into LyX macros. Things like:

Set builder notation
Sequent calculus notation
Function notation (the fun argument would be the macro argument)
Operator notation (as with functions)
Braket notation
Macros that would take indexed notation in GR and output Penrose notation
(in combination Latex macros to perform the translation and rendering).

I have created a macro that is useful when working with sequent calculi.

One of the goals would be to minimize the need for tweaking the formatting -- 
things like spacing tweaks would be abstracted away into the macro.

IMHO, an official location to share LyX macros would be great.

Pavel Bažant



What about ePub support

2013-05-17 Thread Jan Ulrich Hasecke
Hi,

I want to publish ebooks and typeset books from the same source, because
today nearly all new books are offered as ebooks and as printed books.

Up to now I didn't find a good solution working out of the box.

Sphinx, the documentation system written in Python offers multiple
output formats from one source, eg. PDF via LaTeX. EPub support is
improving but not perfect yet. You have to tweak it a bit
(http://www.hasecke.eu/Members/juh/sphinx-a-tool-for-self-publisher)

I now want to give LyX a try, I used it years ago but always went back
to LaTeX.

I saw that there isn't a no epub support in LyX up to now. I read about
exporting to html and converting to epub via Calibre. This is a
workaround I could choose if I had to, but it is not the solution I am
looking for.

So what are the plans for the future? I read about a GSOC project aiming
to implement epub conversion in LyX. Is there a timeframe? In the road
map of 2.1 epub is not mentioned.

TIA
juh


Re: copy/paste poems into lyx

2013-05-17 Thread Scott Kostyshak
On Fri, May 17, 2013 at 11:06 AM, Csikos Bela  wrote:
> Hello:
>
> I have a word document with poems. Every line within the same verse is a new 
> paragraph, and the verses are separated by empty paragraphs.
>
> I would like to copy these poems into lyx and use the verse environment.
> If I copy/paste the poems into lyx, all lines become new paragraphs in lyx 
> and the separating empty paragraphs/lines are removed, that is the verses 
> become fused together. I should manually replace the paragraph marks with new 
> lines within verses and leave them as they are between verses. This would be 
> a very tedious work. Is there a way to automate this?

The following works for me:
Append '\\' to the lines within verses (you should be able to automate
this). Then go to LyX and go to Edit > Paste Special > LaTeX Text. I
think this is only on LyX 2.1. If you are on Ubuntu it's very easy to
try out alongside your current LyX version:
http://wiki.lyx.org/LyX/LyXOnUbuntu#toc3

Otherwise, use LyX 2.0.x and import the Latex file.

Then just select all and set it as verse.

Best,

Scott


Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 12:31:31 +0200
Jan Ulrich Hasecke  wrote:

> Hi,
> 
> I want to publish ebooks and typeset books from the same source,
> because today nearly all new books are offered as ebooks and as
> printed books.
> 
> Up to now I didn't find a good solution working out of the box.
> 
> Sphinx, the documentation system written in Python offers multiple
> output formats from one source, eg. PDF via LaTeX. EPub support is
> improving but not perfect yet. You have to tweak it a bit
> (http://www.hasecke.eu/Members/juh/sphinx-a-tool-for-self-publisher)
> 
> I now want to give LyX a try, I used it years ago but always went back
> to LaTeX.
> 
> I saw that there isn't a no epub support in LyX up to now. I read
> about exporting to html and converting to epub via Calibre. This is a
> workaround I could choose if I had to, but it is not the solution I am
> looking for.
> 
> So what are the plans for the future? I read about a GSOC project
> aiming to implement epub conversion in LyX. Is there a timeframe? In
> the road map of 2.1 epub is not mentioned.
> 
> TIA
> juh

Jan,

I have faced the same problem myself, and have used the HTML route with
very little trouble and with very little effort. I simply export to
LyXHTML and import into Sigil. Some tweaking in Sigil is usually
desirable, if not strictly required. Sigil includes EPUB validation
with FlightCrew (which most publishers require), as well as the
capability to edit all parts of EPUB.

Overall, it is vastly superior to generating an EPUB file from an MS
Word document, which is what most self-publishers (and many publishers)
do. Better results, and less effort.

Les


Re: What about ePub support

2013-05-17 Thread stefano franchi
On Fri, May 17, 2013 at 1:19 PM, Les Denham  wrote:

> On Fri, 17 May 2013 12:31:31 +0200
> Jan Ulrich Hasecke  wrote:
>
> > So what are the plans for the future? I read about a GSOC project
> > aiming to implement epub conversion in LyX. Is there a timeframe? In
> > the road map of 2.1 epub is not mentioned.
> I have faced the same problem myself, and have used the HTML route with
> very little trouble and with very little effort. I simply export to
> LyXHTML and import into Sigil. Some tweaking in Sigil is usually
> desirable, if not strictly required. Sigil includes EPUB validation
> with FlightCrew (which most publishers require), as well as the
> capability to edit all parts of EPUB.
>
> Les (and all),
 this may be a silly question, but worth asking perhaps: could the "tweaks"
to the XHTML code that you carry out in Sigil be easily avoided with some,
perhaps minor, tweaks to the existing XHTML export? In other words:  could
we perhaps *completely* replace an ePub export function with a XHTML/Sigil
export? Relatedly: can Sigil be used latex-style, i.e. as a
converter/validator from the command line?

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Aspell for Windows at LyX?

2013-05-17 Thread Ciarán Ó Duibhín
Thanks for replying.  However I'm not thinking of installing LyX just now. 
I'm asking if the LyX repository contains a Windows installer for ASpell, as 
the webpage seems to imply.

Ciarán.
- Original Message - 
From: "Liviu Andronic" 

To: "Ciarán Ó Duibhín" 
Cc: 
Sent: Friday, May 17, 2013 4:12 AM
Subject: Re: Aspell for Windows at LyX?


On Fri, May 17, 2013 at 3:57 AM, Ciarán Ó Duibhín
 wrote:
May I ask a question here about the webpage 
http://wiki.lyx.org/Devel/Aspell

?

The page says:

"If you need to install Aspell separately on windows, it can be downloaded
from the LyX repositories:

ftp://ftp.lyx.org/pub/lyx/contrib/aspell6-windows/ "

To install Aspell separately on Windows is what I would like to do, but
there seems to be nothing but a short text message at sourceforge.net, and
only a very old (2002) Windows installer at http://aspell.net/win32/

Now, the sentence quoted above seems to say I can download a (hopefully
up-to-date) Aspell installer for Windows from that LyX ftp site; and
further, http://en.wikipedia.org/wiki/GNU_Aspell says that "the LyX 
project

has long solved the Windows packaging problem by forking Aspell".

But, as far as I can see, the ftp site contains only dictionaries.  Is 
this

so, or am I missing something?


To my knowledge the Windows builds of LyX do not support Aspell. Use
Hunspell (or Enchant).

Liviu 



Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 13:32:51 -0500
stefano franchi  wrote:

>  this may be a silly question, but worth asking perhaps: could the
> "tweaks" to the XHTML code that you carry out in Sigil be easily
> avoided with some, perhaps minor, tweaks to the existing XHTML
> export? In other words:  could we perhaps *completely* replace an
> ePub export function with a XHTML/Sigil export? Relatedly: can Sigil
> be used latex-style, i.e. as a converter/validator from the command
> line?

Stefano,

I don't think so: Sigil is not a command-line tool. Sigil has a
GPL3 license, so I don't see that there would be any problem re-using
code in it to create a command-line tool. But I think it would be
simpler to create such a tool from scratch.

If you just start Sigil from the command line with an HTML file as
the argument, you get a usable EPUB book brought up in the GUI, but it
has a few problems: firstly, the default text file is present but not
referenced; then there are four items of required metadata missing; and
the table of contents is inaccurate. There is also no cover. However,
with no editing the saved EPUB would probably work in most readers.

Fixing these problems takes no more than five minutes, unless you want
a fancy cover image.

Les


Re: What about ePub support

2013-05-17 Thread Liviu Andronic
On Fri, May 17, 2013 at 8:32 PM, stefano franchi
 wrote:
> export? Relatedly: can Sigil be used latex-style, i.e. as a
> converter/validator from the command line?
>
A quick search turned up this CLI ePub validator:
http://code.google.com/p/epubcheck/

And on Sigil's Issues tracker:
https://code.google.com/p/sigil/issues/detail?id=518
"Actually there's an *undocumented and unsupported* HTML-to-EPUB
command line conversion option. See main.cpp for details. Did I
mention the feature is *undocumented and unsupported*? :)
It's there because a certain company was willing to pay to see it
included, but I'm opposed to the feature on principle. Sigil is an
editor, not an automatic converter. If you need one, there's Calibre."

And here's Calibre's documentation:
http://manual.calibre-ebook.com/conversion.html#conversion
http://manual.calibre-ebook.com/cli/ebook-convert.html#ebook-convert

I don't see why we couldn't support the CLI  tools if someone showed
us how to use them.

Liviu


Re: What about ePub support

2013-05-17 Thread Les Denham
On Fri, 17 May 2013 22:56:17 +0200
Liviu Andronic  wrote:

> "Actually there's an *undocumented and unsupported* HTML-to-EPUB
> command line conversion option. See main.cpp for details. Did I
> mention the feature is *undocumented and unsupported*? :)
> It's there because a certain company was willing to pay to see it
> included, but I'm opposed to the feature on principle. Sigil is an
> editor, not an automatic converter. If you need one, there's Calibre."
> 
> And here's Calibre's documentation:
> http://manual.calibre-ebook.com/conversion.html#conversion
> http://manual.calibre-ebook.com/cli/ebook-convert.html#ebook-convert
> 
> I don't see why we couldn't support the CLI  tools if someone showed
> us how to use them.

Liviu,

I've used Calibre to convert from HTML to EPUB, and that's why I prefer
to use Sigil. Calibre does a very good job of converting between ebook
formats, such as from EPUB to MOBI. But unless your book is very simple
it tends to run into problems with HTML input.

Les

-- 
http://lrdenham.wordpress.com/


Re: Aspell for Windows at LyX?

2013-05-17 Thread Uwe Stöhr

Am 17.05.2013 21:46, schrieb Ciarán Ó Duibhín:


Thanks for replying.  However I'm not thinking of installing LyX just now.


Why not. Our the installer comes with all you need. Just click a few times OK and your get a fully 
functional LaTeX/LyX, a bibliography manager and also the spell checker is included.



I'm asking if the LyX
repository contains a Windows installer for ASpell, as the webpage seems to 
imply.


With LyX on Windows you can only use hunspell dictionaries. The Aspell traces you found in the Wiki 
are leftovers from LyX 1.6.x. However, the LyX repository does not contain dictionaries.


regards Uwe


Re: Offset problem with pdf picture floats

2013-05-17 Thread Uwe Stöhr

Am 18.05.2013 00:56, schrieb Marc Wijnand:


I am able to use picture floats without any problem in Lyx 2.0.5.1, for all 
types of pictures except for pdfs. When I insert a pdf, the whole picture float 
is located a little bit to high, covering some text. How can I fix this without 
needing to copy the original pdf files and change the extension in order to be 
able to use them correctly in Lyx? You can find an example of this problem 
attached to this mail.


Could you send me a _small_ LyX file and your PDF image to have a look?

regards Uwe