Re: end flyleaf

2011-05-31 Thread Richard Heck
On 05/29/2011 04:58 PM, Julien Rioux wrote:
 On 29/05/2011 4:35 PM, Richard Opheim wrote:
 Neither two page breaks nor a pair of braces in a Tex code box
 produced a
 blank page at the end of the document.

So we need some non-printing content. See the attached. There are
arbitrarily many ways of doing this.

rh



page.lyx
Description: application/lyx


Re: cross-reference to an enumerated item within a theorem

2011-05-31 Thread Richard Heck
On 05/30/2011 02:52 PM, Ernesto Posse wrote:
 Hi. Is there a way to do the following? Suppose I have a Proposition
 environment and the text is something like this

 Proposition 3 [pro:some-label] The following holds:
  1. [enu:item1] something
  2. [enu:item2] other

 and later on I want references to show, for example as:

 ... by Proposition 3(2)

 Currently I use a Formatted reference for the first part and an
 un-formatted reference for the second:

 ... by [Formatted ref: pro:some-label]([Ref: enu:item2])

 or in plain LaTeX (with prettyref)

 ... by \prettyref{pro:some-label}(\ref{enu:item2})

 This is a bit cumbersome. Since enu:item2 is inside the Proposition
 environment, would it be possible to infer the label pro:some-label
 associated with that environment to create a format in prettyref so
 that referring only to the individual item, so that it gives you the
 full reference, i.e. something like

 ... by [Formatted ref: enu-item2]

 yields

 ... by Proposition 3(2)

 ?

This would be possible in LaTeX, but a really general solution would be
difficult. If you want to try writing the LaTeX macros, then my idea
would be to use labels of the form:
pro:theprop
enu:1-pro:theprop
enu:2-pro:theprop
the point being that we can reconstruct the earlier label. I don't think
LaTeX normally knows that you are inside some construct you've already
labeled.

Richard



Converting Lyx file to MS word

2011-05-31 Thread Eisa Ayed
Hello, 

I know this kind of weird question.
My Lyx file has no mathematical equations (just plain text+ list of figures+ 
some algorithms). 
is there a way for converting my Lyx file to MS word? 

Thanks,
~Eisa 

Most suitable image format

2011-05-31 Thread Sam Lewis
Hello,

I have a lyx document in which I would like to insert a high-quality 
colour photography of me. The output document will be pdf.

The photo is currently in RAW format (NEF) and I would like to find out what 
will the most suitable image format for converting the raw format into. I 
presume it will be some lossless format. 

Any suggestions? Many thanks!

Cheers, Sam

--
Sam Lewis


Re: Most suitable image format

2011-05-31 Thread Rob Oakes
It actually depends on how you intend to use the resulting document. If you 
will be printing the resulting PDF on a professional press, then you will want 
to use a lossless format (most likely tiff), or a high quality jpeg.  

If the PDF is to be put on your website, you will probably want to use a lossy 
format of some type. It will give a better quality to file size ratio, even 
though it will introduce some artifacts into the image.  But unless your 
readers will be viewing the image at very high resolution (onscreen), they are 
not going to notice.

Hope that's of some help.

Cheers,

Rob

Re: Most suitable image format

2011-05-31 Thread Sam Lewis
Thanks for your quick reply. 

I intent to both print it and distribute it online. I guess two versions of the 
document might be useful.  What lossy format, would you recommend for the 
latter?

Cheers, Sam



- Original Message -
 From: Rob Oakes lyx-de...@oak-tree.us
 To: Sam Lewis stroboscopicallyconflu...@yahoo.co.uk
 Cc: lyx-users@lists.lyx.org
 Sent: Tuesday, 31 May 2011, 20:22
 Subject: Re: Most suitable image format
 
 It actually depends on how you intend to use the resulting document. If you 
 will 
 be printing the resulting PDF on a professional press, then you will want to 
 use 
 a lossless format (most likely tiff), or a high quality jpeg.  
 
 If the PDF is to be put on your website, you will probably want to use a 
 lossy 
 format of some type. It will give a better quality to file size ratio, even 
 though it will introduce some artifacts into the image.  But unless your 
 readers 
 will be viewing the image at very high resolution (onscreen), they are not 
 going 
 to notice.
 
 Hope that's of some help.
 
 Cheers,
 
 Rob



Re: Most suitable image format

2011-05-31 Thread Jens Nöckel
Sam, 
just use PNG for all purposes. It's compressed but lossless, and it's supported 
by LyX as well as all modern web browsers.
Jens
 
On May 31, 2011, at 12:50 PM, Sam Lewis wrote:

 Thanks for your quick reply. 
 
 I intent to both print it and distribute it online. I guess two versions of 
 the document might be useful.  What lossy format, would you recommend for the 
 latter?
 
 Cheers, Sam
 
 
 
 - Original Message -
 From: Rob Oakes lyx-de...@oak-tree.us
 To: Sam Lewis stroboscopicallyconflu...@yahoo.co.uk
 Cc: lyx-users@lists.lyx.org
 Sent: Tuesday, 31 May 2011, 20:22
 Subject: Re: Most suitable image format
 
 It actually depends on how you intend to use the resulting document. If you 
 will 
 be printing the resulting PDF on a professional press, then you will want to 
 use 
 a lossless format (most likely tiff), or a high quality jpeg.  
 
 If the PDF is to be put on your website, you will probably want to use a 
 lossy 
 format of some type. It will give a better quality to file size ratio, even 
 though it will introduce some artifacts into the image.  But unless your 
 readers 
 will be viewing the image at very high resolution (onscreen), they are not 
 going 
 to notice.
 
 Hope that's of some help.
 
 Cheers,
 
 Rob
 
 



Re: Most suitable image format

2011-05-31 Thread Les Denham
On Tuesday, May 31, 2011 15:18:03 Jens Nöckel wrote:
 Sam, 
 just use PNG for all purposes. It's compressed but lossless, and it's
 supported by LyX as well as all modern web browsers. Jens
  
 
 On May 31, 2011, at 12:50 PM, Sam Lewis wrote:
  Thanks for your quick reply. 
 
  
 
  I intent to both print it and distribute it online. I guess two versions
  of the document might be useful.  What lossy format, would you recommend
  for the latter?

If it really is high resolution, even a PNG image format may give unacceptably 
slow loading over some internet connections.  JPEG is usually smaller than 
PNG, so there is an argument for using it for online distribution.  But in 
general PNG is a very good universal format.  If the PNG file is still too 
big, reduce the image resolution for online distribution.
-- 
Les Denham


Implementing a new environment in a LyX .layout

2011-05-31 Thread Peter Flynn
I am having some trouble understanding how to implement a new 
environment in an existing .layout file. The documentation covers the 
principle, but not the detail, especially about how to enable other 
environments (like lists) *inside* the one I am implementing, and how to 
get LyX to prompt for any arguments required in my environment.


I have defined and tested the environment in LaTeX, and I then add to 
the .layout file:



Style Foo
  LatexType Environment
  LatexName foo
  ParSep0.5

  Font
SizeSmall

 Series  Normal

  EndFont

  Preamble
\newenvironment{foo}
  {\begin{quotation}\small\raggedright\noindent\ignorespaces}

   {\par\end{quotation}}

  EndPreamble
End


When I open a .lyx file, the entry for a Foo is there in the menu, and I 
can add a few words and paragraphs and it correctly exports:



\begin{foo}
a few words

and paragraphs\end{foo}


All well so far.

But an environment should be able to contain all kinds of other 
environment, like lists. If I try to add an itemized list between the 
two paragraphs above, the exported LaTeX shows that LyX has terminated 
the foo environment prematurely, inserted the list *outside* the 
environment, and then created a new instance of the foo environment to 
hold the second paragraph:


 \begin{foo}
 a few words\end{panel}
 \begin{itemize}
 \item blort\end{itemize}
 \begin{panel}
 and paragraphs\end{foo}

How do I tell LyX that lists (for example; and much other stuff) is 
permitted inside a Foo environment? Is there a setting or switch that 
tells LyX to allow nested environments globally, or does it have to be 
done on an environment by environment basis?


Bonus question: I will eventually want to extend the environment to add 
a box and shaded background, allowing the user to specify width and 
color in mandatory arguments to the Foo environment. Writing the LaTeX 
definition for the Preamble is easy; but how do I tell LyX that the 
environment has two arguments? I can see that an Inset affords the 
option to add tokens or values, but I can't see how to make one 
compulsory, so that it pops up the moment you add a Foo from the menu.


Final plea: I have been unable to find a formal list of all the keywords 
for a .layout file, with their syntax and application. Does such a list 
exist yet?


///Peter


Re: Most suitable image format

2011-05-31 Thread Rob Oakes
Hi Sam,

You can use the same version of the document, just place the print image in one 
branch and the web version in another. (Branches may be LyX's single most 
awesome, never heard-of feature.)

When you want to compile for print, then activate that branch. When you want to 
compile for web, activate the other. Then you aren't having to maintain two 
copies of your document.

Generally, I prefer jpeg for photographs. If your using Photoshop or GIMP, you 
can specify the amount of compression you want applied to the picture. PNG 
would also work, but it's my opinion that it doesn't preserve color quite as 
well.

Cheers,

Rob

Re: Implementing a new environment in a LyX .layout

2011-05-31 Thread BH
On Tue, May 31, 2011 at 6:12 PM, Peter Flynn pe...@silmaril.ie wrote:
 Final plea: I have been unable to find a formal list of all the keywords for
 a .layout file, with their syntax and application. Does such a list exist
 yet?

Try section 5 of the Customization.lyx help file (in the Help menu).

BH


elyxer options for export to word?

2011-05-31 Thread Neal Becker
It seems if I use elyxer for the purpose of export to 'word', only --html seems 
to produce something word (2007) will recognize.

With defaults, word seems to show the xhtml structure instead of a formatted 
document.

I also tried lyxHTML export to xhtml.  This produced a file.xhtml, which 
word(2007) refused to open.



Re: elyxer options for export to word?

2011-05-31 Thread Alex Fernandez
Hi Neal,

On Wed, Jun 1, 2011 at 1:20 AM, Neal Becker ndbeck...@gmail.com wrote:
 It seems if I use elyxer for the purpose of export to 'word', only --html 
 seems
 to produce something word (2007) will recognize.

 With defaults, word seems to show the xhtml structure instead of a formatted
 document.

Yes, this is a known feature of Word 2007: it will only import HTML documents.

 I also tried lyxHTML export to xhtml.  This produced a file.xhtml, which
 word(2007) refused to open.

XHTML is not good enough for Word, it seems :(

Alex.


Re: end flyleaf

2011-05-31 Thread Richard Heck
On 05/29/2011 04:58 PM, Julien Rioux wrote:
 On 29/05/2011 4:35 PM, Richard Opheim wrote:
 Neither two page breaks nor a pair of braces in a Tex code box
 produced a
 blank page at the end of the document.

So we need some non-printing content. See the attached. There are
arbitrarily many ways of doing this.

rh



page.lyx
Description: application/lyx


Re: cross-reference to an enumerated item within a theorem

2011-05-31 Thread Richard Heck
On 05/30/2011 02:52 PM, Ernesto Posse wrote:
 Hi. Is there a way to do the following? Suppose I have a Proposition
 environment and the text is something like this

 Proposition 3 [pro:some-label] The following holds:
  1. [enu:item1] something
  2. [enu:item2] other

 and later on I want references to show, for example as:

 ... by Proposition 3(2)

 Currently I use a Formatted reference for the first part and an
 un-formatted reference for the second:

 ... by [Formatted ref: pro:some-label]([Ref: enu:item2])

 or in plain LaTeX (with prettyref)

 ... by \prettyref{pro:some-label}(\ref{enu:item2})

 This is a bit cumbersome. Since enu:item2 is inside the Proposition
 environment, would it be possible to infer the label pro:some-label
 associated with that environment to create a format in prettyref so
 that referring only to the individual item, so that it gives you the
 full reference, i.e. something like

 ... by [Formatted ref: enu-item2]

 yields

 ... by Proposition 3(2)

 ?

This would be possible in LaTeX, but a really general solution would be
difficult. If you want to try writing the LaTeX macros, then my idea
would be to use labels of the form:
pro:theprop
enu:1-pro:theprop
enu:2-pro:theprop
the point being that we can reconstruct the earlier label. I don't think
LaTeX normally knows that you are inside some construct you've already
labeled.

Richard



Converting Lyx file to MS word

2011-05-31 Thread Eisa Ayed
Hello, 

I know this kind of weird question.
My Lyx file has no mathematical equations (just plain text+ list of figures+ 
some algorithms). 
is there a way for converting my Lyx file to MS word? 

Thanks,
~Eisa 

Most suitable image format

2011-05-31 Thread Sam Lewis
Hello,

I have a lyx document in which I would like to insert a high-quality 
colour photography of me. The output document will be pdf.

The photo is currently in RAW format (NEF) and I would like to find out what 
will the most suitable image format for converting the raw format into. I 
presume it will be some lossless format. 

Any suggestions? Many thanks!

Cheers, Sam

--
Sam Lewis


Re: Most suitable image format

2011-05-31 Thread Rob Oakes
It actually depends on how you intend to use the resulting document. If you 
will be printing the resulting PDF on a professional press, then you will want 
to use a lossless format (most likely tiff), or a high quality jpeg.  

If the PDF is to be put on your website, you will probably want to use a lossy 
format of some type. It will give a better quality to file size ratio, even 
though it will introduce some artifacts into the image.  But unless your 
readers will be viewing the image at very high resolution (onscreen), they are 
not going to notice.

Hope that's of some help.

Cheers,

Rob

Re: Most suitable image format

2011-05-31 Thread Sam Lewis
Thanks for your quick reply. 

I intent to both print it and distribute it online. I guess two versions of the 
document might be useful.  What lossy format, would you recommend for the 
latter?

Cheers, Sam



- Original Message -
 From: Rob Oakes lyx-de...@oak-tree.us
 To: Sam Lewis stroboscopicallyconflu...@yahoo.co.uk
 Cc: lyx-users@lists.lyx.org
 Sent: Tuesday, 31 May 2011, 20:22
 Subject: Re: Most suitable image format
 
 It actually depends on how you intend to use the resulting document. If you 
 will 
 be printing the resulting PDF on a professional press, then you will want to 
 use 
 a lossless format (most likely tiff), or a high quality jpeg.  
 
 If the PDF is to be put on your website, you will probably want to use a 
 lossy 
 format of some type. It will give a better quality to file size ratio, even 
 though it will introduce some artifacts into the image.  But unless your 
 readers 
 will be viewing the image at very high resolution (onscreen), they are not 
 going 
 to notice.
 
 Hope that's of some help.
 
 Cheers,
 
 Rob



Re: Most suitable image format

2011-05-31 Thread Jens Nöckel
Sam, 
just use PNG for all purposes. It's compressed but lossless, and it's supported 
by LyX as well as all modern web browsers.
Jens
 
On May 31, 2011, at 12:50 PM, Sam Lewis wrote:

 Thanks for your quick reply. 
 
 I intent to both print it and distribute it online. I guess two versions of 
 the document might be useful.  What lossy format, would you recommend for the 
 latter?
 
 Cheers, Sam
 
 
 
 - Original Message -
 From: Rob Oakes lyx-de...@oak-tree.us
 To: Sam Lewis stroboscopicallyconflu...@yahoo.co.uk
 Cc: lyx-users@lists.lyx.org
 Sent: Tuesday, 31 May 2011, 20:22
 Subject: Re: Most suitable image format
 
 It actually depends on how you intend to use the resulting document. If you 
 will 
 be printing the resulting PDF on a professional press, then you will want to 
 use 
 a lossless format (most likely tiff), or a high quality jpeg.  
 
 If the PDF is to be put on your website, you will probably want to use a 
 lossy 
 format of some type. It will give a better quality to file size ratio, even 
 though it will introduce some artifacts into the image.  But unless your 
 readers 
 will be viewing the image at very high resolution (onscreen), they are not 
 going 
 to notice.
 
 Hope that's of some help.
 
 Cheers,
 
 Rob
 
 



Re: Most suitable image format

2011-05-31 Thread Les Denham
On Tuesday, May 31, 2011 15:18:03 Jens Nöckel wrote:
 Sam, 
 just use PNG for all purposes. It's compressed but lossless, and it's
 supported by LyX as well as all modern web browsers. Jens
  
 
 On May 31, 2011, at 12:50 PM, Sam Lewis wrote:
  Thanks for your quick reply. 
 
  
 
  I intent to both print it and distribute it online. I guess two versions
  of the document might be useful.  What lossy format, would you recommend
  for the latter?

If it really is high resolution, even a PNG image format may give unacceptably 
slow loading over some internet connections.  JPEG is usually smaller than 
PNG, so there is an argument for using it for online distribution.  But in 
general PNG is a very good universal format.  If the PNG file is still too 
big, reduce the image resolution for online distribution.
-- 
Les Denham


Implementing a new environment in a LyX .layout

2011-05-31 Thread Peter Flynn
I am having some trouble understanding how to implement a new 
environment in an existing .layout file. The documentation covers the 
principle, but not the detail, especially about how to enable other 
environments (like lists) *inside* the one I am implementing, and how to 
get LyX to prompt for any arguments required in my environment.


I have defined and tested the environment in LaTeX, and I then add to 
the .layout file:



Style Foo
  LatexType Environment
  LatexName foo
  ParSep0.5

  Font
SizeSmall

 Series  Normal

  EndFont

  Preamble
\newenvironment{foo}
  {\begin{quotation}\small\raggedright\noindent\ignorespaces}

   {\par\end{quotation}}

  EndPreamble
End


When I open a .lyx file, the entry for a Foo is there in the menu, and I 
can add a few words and paragraphs and it correctly exports:



\begin{foo}
a few words

and paragraphs\end{foo}


All well so far.

But an environment should be able to contain all kinds of other 
environment, like lists. If I try to add an itemized list between the 
two paragraphs above, the exported LaTeX shows that LyX has terminated 
the foo environment prematurely, inserted the list *outside* the 
environment, and then created a new instance of the foo environment to 
hold the second paragraph:


 \begin{foo}
 a few words\end{panel}
 \begin{itemize}
 \item blort\end{itemize}
 \begin{panel}
 and paragraphs\end{foo}

How do I tell LyX that lists (for example; and much other stuff) is 
permitted inside a Foo environment? Is there a setting or switch that 
tells LyX to allow nested environments globally, or does it have to be 
done on an environment by environment basis?


Bonus question: I will eventually want to extend the environment to add 
a box and shaded background, allowing the user to specify width and 
color in mandatory arguments to the Foo environment. Writing the LaTeX 
definition for the Preamble is easy; but how do I tell LyX that the 
environment has two arguments? I can see that an Inset affords the 
option to add tokens or values, but I can't see how to make one 
compulsory, so that it pops up the moment you add a Foo from the menu.


Final plea: I have been unable to find a formal list of all the keywords 
for a .layout file, with their syntax and application. Does such a list 
exist yet?


///Peter


Re: Most suitable image format

2011-05-31 Thread Rob Oakes
Hi Sam,

You can use the same version of the document, just place the print image in one 
branch and the web version in another. (Branches may be LyX's single most 
awesome, never heard-of feature.)

When you want to compile for print, then activate that branch. When you want to 
compile for web, activate the other. Then you aren't having to maintain two 
copies of your document.

Generally, I prefer jpeg for photographs. If your using Photoshop or GIMP, you 
can specify the amount of compression you want applied to the picture. PNG 
would also work, but it's my opinion that it doesn't preserve color quite as 
well.

Cheers,

Rob

Re: Implementing a new environment in a LyX .layout

2011-05-31 Thread BH
On Tue, May 31, 2011 at 6:12 PM, Peter Flynn pe...@silmaril.ie wrote:
 Final plea: I have been unable to find a formal list of all the keywords for
 a .layout file, with their syntax and application. Does such a list exist
 yet?

Try section 5 of the Customization.lyx help file (in the Help menu).

BH


elyxer options for export to word?

2011-05-31 Thread Neal Becker
It seems if I use elyxer for the purpose of export to 'word', only --html seems 
to produce something word (2007) will recognize.

With defaults, word seems to show the xhtml structure instead of a formatted 
document.

I also tried lyxHTML export to xhtml.  This produced a file.xhtml, which 
word(2007) refused to open.



Re: elyxer options for export to word?

2011-05-31 Thread Alex Fernandez
Hi Neal,

On Wed, Jun 1, 2011 at 1:20 AM, Neal Becker ndbeck...@gmail.com wrote:
 It seems if I use elyxer for the purpose of export to 'word', only --html 
 seems
 to produce something word (2007) will recognize.

 With defaults, word seems to show the xhtml structure instead of a formatted
 document.

Yes, this is a known feature of Word 2007: it will only import HTML documents.

 I also tried lyxHTML export to xhtml.  This produced a file.xhtml, which
 word(2007) refused to open.

XHTML is not good enough for Word, it seems :(

Alex.


Re: end flyleaf

2011-05-31 Thread Richard Heck
On 05/29/2011 04:58 PM, Julien Rioux wrote:
> On 29/05/2011 4:35 PM, Richard Opheim wrote:
>> Neither two page breaks nor a pair of braces in a Tex code box
>> produced a
>> blank page at the end of the document.
>>
So we need some non-printing content. See the attached. There are
arbitrarily many ways of doing this.

rh



page.lyx
Description: application/lyx


Re: cross-reference to an enumerated item within a theorem

2011-05-31 Thread Richard Heck
On 05/30/2011 02:52 PM, Ernesto Posse wrote:
> Hi. Is there a way to do the following? Suppose I have a "Proposition"
> environment and the text is something like this
>
> Proposition 3 [pro:some-label] The following holds:
>  1. [enu:item1] something
>  2. [enu:item2] other
>
> and later on I want references to show, for example as:
>
> "... by Proposition 3(2)"
>
> Currently I use a Formatted reference for the first part and an
> un-formatted reference for the second:
>
> "... by [Formatted ref: pro:some-label]([Ref: enu:item2])"
>
> or in plain LaTeX (with prettyref)
>
> "... by \prettyref{pro:some-label}(\ref{enu:item2})"
>
> This is a bit cumbersome. Since enu:item2 is inside the Proposition
> environment, would it be possible to infer the label pro:some-label
> associated with that environment to create a format in prettyref so
> that referring only to the individual item, so that it gives you the
> full reference, i.e. something like
>
> "... by [Formatted ref: enu-item2]"
>
> yields
>
> "... by Proposition 3(2)"
>
> ?
>
This would be possible in LaTeX, but a really general solution would be
difficult. If you want to try writing the LaTeX macros, then my idea
would be to use labels of the form:
pro:theprop
enu:1-pro:theprop
enu:2-pro:theprop
the point being that we can reconstruct the earlier label. I don't think
LaTeX normally knows that you are inside some construct you've already
labeled.

Richard



Converting Lyx file to MS word

2011-05-31 Thread Eisa Ayed
Hello, 

I know this kind of weird question.
My Lyx file has no mathematical equations (just plain text+ list of figures+ 
some algorithms). 
is there a way for converting my Lyx file to MS word? 

Thanks,
~Eisa 

Most suitable image format

2011-05-31 Thread Sam Lewis
Hello,

I have a lyx document in which I would like to insert a high-quality 
colour photography of me. The output document will be pdf.

The photo is currently in RAW format (NEF) and I would like to find out what 
will the most suitable image format for converting the raw format into. I 
presume it will be some lossless format. 

Any suggestions? Many thanks!

Cheers, Sam

--
Sam Lewis


Re: Most suitable image format

2011-05-31 Thread Rob Oakes
It actually depends on how you intend to use the resulting document. If you 
will be printing the resulting PDF on a professional press, then you will want 
to use a lossless format (most likely tiff), or a high quality jpeg.  

If the PDF is to be put on your website, you will probably want to use a lossy 
format of some type. It will give a better quality to file size ratio, even 
though it will introduce some artifacts into the image.  But unless your 
readers will be viewing the image at very high resolution (onscreen), they are 
not going to notice.

Hope that's of some help.

Cheers,

Rob

Re: Most suitable image format

2011-05-31 Thread Sam Lewis
Thanks for your quick reply. 

I intent to both print it and distribute it online. I guess two versions of the 
document might be useful.  What lossy format, would you recommend for the 
latter?

Cheers, Sam



- Original Message -
> From: Rob Oakes 
> To: Sam Lewis 
> Cc: lyx-users@lists.lyx.org
> Sent: Tuesday, 31 May 2011, 20:22
> Subject: Re: Most suitable image format
> 
> It actually depends on how you intend to use the resulting document. If you 
> will 
> be printing the resulting PDF on a professional press, then you will want to 
> use 
> a lossless format (most likely tiff), or a high quality jpeg.  
> 
> If the PDF is to be put on your website, you will probably want to use a 
> lossy 
> format of some type. It will give a better quality to file size ratio, even 
> though it will introduce some artifacts into the image.  But unless your 
> readers 
> will be viewing the image at very high resolution (onscreen), they are not 
> going 
> to notice.
> 
> Hope that's of some help.
> 
> Cheers,
> 
> Rob
>


Re: Most suitable image format

2011-05-31 Thread Jens Nöckel
Sam, 
just use PNG for all purposes. It's compressed but lossless, and it's supported 
by LyX as well as all modern web browsers.
Jens
 
On May 31, 2011, at 12:50 PM, Sam Lewis wrote:

> Thanks for your quick reply. 
> 
> I intent to both print it and distribute it online. I guess two versions of 
> the document might be useful.  What lossy format, would you recommend for the 
> latter?
> 
> Cheers, Sam
> 
> 
> 
> - Original Message -
>> From: Rob Oakes 
>> To: Sam Lewis 
>> Cc: lyx-users@lists.lyx.org
>> Sent: Tuesday, 31 May 2011, 20:22
>> Subject: Re: Most suitable image format
>> 
>> It actually depends on how you intend to use the resulting document. If you 
>> will 
>> be printing the resulting PDF on a professional press, then you will want to 
>> use 
>> a lossless format (most likely tiff), or a high quality jpeg.  
>> 
>> If the PDF is to be put on your website, you will probably want to use a 
>> lossy 
>> format of some type. It will give a better quality to file size ratio, even 
>> though it will introduce some artifacts into the image.  But unless your 
>> readers 
>> will be viewing the image at very high resolution (onscreen), they are not 
>> going 
>> to notice.
>> 
>> Hope that's of some help.
>> 
>> Cheers,
>> 
>> Rob
>> 
> 



Re: Most suitable image format

2011-05-31 Thread Les Denham
On Tuesday, May 31, 2011 15:18:03 Jens Nöckel wrote:
> Sam, 
> just use PNG for all purposes. It's compressed but lossless, and it's
> supported by LyX as well as all modern web browsers. Jens
>  
> 
> On May 31, 2011, at 12:50 PM, Sam Lewis wrote:
> > Thanks for your quick reply. 
> >
> > 
> >
> > I intent to both print it and distribute it online. I guess two versions
> > of the document might be useful.  What lossy format, would you recommend
> > for the latter?

If it really is high resolution, even a PNG image format may give unacceptably 
slow loading over some internet connections.  JPEG is usually smaller than 
PNG, so there is an argument for using it for online distribution.  But in 
general PNG is a very good universal format.  If the PNG file is still too 
big, reduce the image resolution for online distribution.
-- 
Les Denham


Implementing a new environment in a LyX .layout

2011-05-31 Thread Peter Flynn
I am having some trouble understanding how to implement a new 
environment in an existing .layout file. The documentation covers the 
principle, but not the detail, especially about how to enable other 
environments (like lists) *inside* the one I am implementing, and how to 
get LyX to prompt for any arguments required in my environment.


I have defined and tested the environment in LaTeX, and I then add to 
the .layout file:



Style Foo
  LatexType Environment
  LatexName foo
  ParSep0.5

  Font
SizeSmall

> Series  Normal

  EndFont

  Preamble
\newenvironment{foo}
  {\begin{quotation}\small\raggedright\noindent\ignorespaces}

>   {\par\end{quotation}}

  EndPreamble
End


When I open a .lyx file, the entry for a Foo is there in the menu, and I 
can add a few words and paragraphs and it correctly exports:



\begin{foo}
a few words

and paragraphs\end{foo}


All well so far.

But an environment should be able to contain all kinds of other 
environment, like lists. If I try to add an itemized list between the 
two paragraphs above, the exported LaTeX shows that LyX has terminated 
the foo environment prematurely, inserted the list *outside* the 
environment, and then created a new instance of the foo environment to 
hold the second paragraph:


> \begin{foo}
> a few words\end{panel}
> \begin{itemize}
> \item blort\end{itemize}
> \begin{panel}
> and paragraphs\end{foo}

How do I tell LyX that lists (for example; and much other stuff) is 
permitted inside a Foo environment? Is there a setting or switch that 
tells LyX to allow nested environments globally, or does it have to be 
done on an environment by environment basis?


Bonus question: I will eventually want to extend the environment to add 
a box and shaded background, allowing the user to specify width and 
color in mandatory arguments to the Foo environment. Writing the LaTeX 
definition for the Preamble is easy; but how do I tell LyX that the 
environment has two arguments? I can see that an Inset affords the 
option to add tokens or values, but I can't see how to make one 
compulsory, so that it pops up the moment you add a Foo from the menu.


Final plea: I have been unable to find a formal list of all the keywords 
for a .layout file, with their syntax and application. Does such a list 
exist yet?


///Peter


Re: Most suitable image format

2011-05-31 Thread Rob Oakes
Hi Sam,

You can use the same version of the document, just place the print image in one 
branch and the web version in another. (Branches may be LyX's single most 
awesome, never heard-of feature.)

When you want to compile for print, then activate that branch. When you want to 
compile for web, activate the other. Then you aren't having to maintain two 
copies of your document.

Generally, I prefer jpeg for photographs. If your using Photoshop or GIMP, you 
can specify the amount of compression you want applied to the picture. PNG 
would also work, but it's my opinion that it doesn't preserve color quite as 
well.

Cheers,

Rob

Re: Implementing a new environment in a LyX .layout

2011-05-31 Thread BH
On Tue, May 31, 2011 at 6:12 PM, Peter Flynn  wrote:
> Final plea: I have been unable to find a formal list of all the keywords for
> a .layout file, with their syntax and application. Does such a list exist
> yet?

Try section 5 of the Customization.lyx help file (in the Help menu).

BH


elyxer options for export to word?

2011-05-31 Thread Neal Becker
It seems if I use elyxer for the purpose of export to 'word', only --html seems 
to produce something word (2007) will recognize.

With defaults, word seems to show the xhtml structure instead of a formatted 
document.

I also tried lyxHTML export to xhtml.  This produced a file.xhtml, which 
word(2007) refused to open.



Re: elyxer options for export to word?

2011-05-31 Thread Alex Fernandez
Hi Neal,

On Wed, Jun 1, 2011 at 1:20 AM, Neal Becker  wrote:
> It seems if I use elyxer for the purpose of export to 'word', only --html 
> seems
> to produce something word (2007) will recognize.
>
> With defaults, word seems to show the xhtml structure instead of a formatted
> document.

Yes, this is a known "feature" of Word 2007: it will only import HTML documents.

> I also tried lyxHTML export to xhtml.  This produced a file.xhtml, which
> word(2007) refused to open.

XHTML is not good enough for Word, it seems :(

Alex.