lyx2 and sweave

2011-06-03 Thread Rainer Stowasser
Hy

Ive also followed the instruction mentioned in : lyx 2 and sweave

but for me it also doesnt work

What puzzels me is that there s a message
Setting LC_CTYPE=en_US failed 

and that when I look at the latex source settings for the language with babel
apears somewhere within the document and not before \begin{document}

Is it possible that this happens only for lyx user that have a different
language setting (e.g. german in my case or french ...)

?

.../Ressources/examples/sweave.lyx works on an Win 7 System with lyx 2.0.0, R
version 2.13.0 and MikTeX 2.9 

but any document I create with non English settings fails 

Rainer



nearly solved: problem with language settings

2011-06-03 Thread Mike Bonhoff
Hallo,

I had the problem, that some of my environments appeared in the wrong language 
and I couldn't change the language all at ones.

Now I want to explane how to solve the problem:

See how lyx names the environment in the source code.

For example there's a code like the following generated by Lyx (be sure you can 
see the hole source code: see check mark on the right side):

\newtheorem{rem}[thm]{Remark}

If you want that remark is written in another language, for example in German 
add your own code (Document-Settings-preambel) as follows:

\let\rem\undefined
\let\endrem\undefined
\theoremstyle{definition} 
\newtheorem{rem}[thm]{Bemerkung} 
\ifx\proof\undefined\ 
\newenvironment{proof}[1][\proofname]{\par 
\normalfont\topsep6\p@\@plus6\p@\relax 
\trivlist \itemindent\parindent 
\item[\hskip\labelsep \scshape #1]\ignorespaces }{% \endtrivlist\@endpefalse } 
\providecommand{\proofname}{Proof} 
\fi

This works in most cases. It didn't work for the Lyx code

\newtheorem{thm}[thm]{Theorem}

and I think this is because thm has different meanings: At first it is an 
environment and second it has something to do with the package name (amsthm). 
When I made the same with thm my computers (tested at two different computers 
with 2 different OS) computed until I stopped them. 

When I took the thm in []-brackets out of my code 
\newtheorem{thm}{Satz} 
Lyx gave some “error message”.

Thanks for help, Günter!

Mike Bonhoff
-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone


Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/02/2011 07:35 PM, Peter Flynn wrote:
 On 01/06/11 13:57, Richard Heck wrote:
 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?

 This is normal LyX behavior. If you want the list inside, then you need
 to do EditIncrease List Depth on the list items. You can do this when
 you insert the list, and the rest will be correct. Think of this as a
 nesting system.

 There isn't an Insert List Depth item in my Edit menu, or anywhere
 else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
 something I am missing?

You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.

rh



Contract

2011-06-03 Thread Julio Rojas
Dear all, do you know if there is a contract style in Latex?

Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: lyx2 and sweave

2011-06-03 Thread Liviu Andronic
On Fri, Jun 3, 2011 at 7:34 AM, Rainer Stowasser
rainer.stowas...@wissenschaftsrat.ac.at wrote:
 Hy

 Ive also followed the instruction mentioned in : lyx 2 and sweave

 but for me it also doesnt work

 What puzzels me is that there s a message
 Setting LC_CTYPE=en_US failed

 and that when I look at the latex source settings for the language with babel
 apears somewhere within the document and not before \begin{document}

 Is it possible that this happens only for lyx user that have a different
 language setting (e.g. german in my case or french ...)

I'm not sure where's the problem. Have you tried selecting a utf8
encoding, perhaps best 'utf8x'? Or perhaps compiling with XeTeX?
Liviu


 ?

 .../Ressources/examples/sweave.lyx works on an Win 7 System with lyx 2.0.0, R
 version 2.13.0 and MikTeX 2.9

 but any document I create with non English settings fails

 Rainer





-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Uwe Stöhr

Am 23.05.2011 17:30, schrieb Julien Rioux:


I have two versions of a graphic, one is an eps the other a pdf. How can I 
instruct LyX to use the
eps version when compiling to DVI and the pdf version when compiling to PDF 
(pdflatex)?

The usual trick in latex to omit file extension does not work here. LyX displays No 
file found!,


Then you found a bug. This must work.
Take for example the CV class examples files that come with LyX. In the modernCV file we use an 
image file named CV-image. You can see in LyX's messages window that the PNG-version is used when a 
PDF is compiled (no image conversion). For a DVI or Postscript output, the EPS-version of the image 
is used.


If the problem persists, can you please provide a _small_ LyX file and the image files to have a 
closer look?


regards Uwe


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Julien Rioux

On 03/06/2011 4:02 PM, Uwe Stöhr wrote:

Am 23.05.2011 17:30, schrieb Julien Rioux:


I have two versions of a graphic, one is an eps the other a pdf. How
can I instruct LyX to use the
eps version when compiling to DVI and the pdf version when compiling
to PDF (pdflatex)?

The usual trick in latex to omit file extension does not work here.
LyX displays No file found!,


Then you found a bug. This must work.
Take for example the CV class examples files that come with LyX. In the
modernCV file we use an image file named CV-image. You can see in LyX's
messages window that the PNG-version is used when a PDF is compiled (no
image conversion). For a DVI or Postscript output, the EPS-version of
the image is used.

If the problem persists, can you please provide a _small_ LyX file and
the image files to have a closer look?

regards Uwe


In the modernCV document you put the image file in the preamble, which 
to me is the same as using ERT. So you seem to suggest that there is no 
way to use the includegraphics GUI, which offers many advantages, to 
specify alternate versions of an image. Yo suggest instead that I should 
use ERT. That's fine and it will work, using either .eps or .pdf where 
needed.


The other option is using branches, as Jürgen suggested. That also works 
of course, and would be great if there was a notion of output-specific 
branches, which get automatically activated and deactivated according to 
output.


Cheers,
Julien


Re: bug in nested case environment?

2011-06-03 Thread Paul Rubin
Ernesto,

I have hacked versions of the theorem layouts that I think fix the problem
(allowing you to nest up to four levels of Case environments). If you write me
at rubin at msu dot edu and tell me which version of LyX you use, I'll send
you the corresponding files and you can give them a try.

Paul







Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Peter Flynn

On 03/06/11 13:25, Richard Heck wrote:

On 06/02/2011 07:35 PM, Peter Flynn wrote:

On 01/06/11 13:57, Richard Heck wrote:

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?


This is normal LyX behavior. If you want the list inside, then you need
to do EditIncrease List Depth on the list items. You can do this when
you insert the list, and the rest will be correct. Think of this as a
nesting system.


There isn't an Insert List Depth item in my Edit menu, or anywhere
else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
something I am missing?


You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.


Hmmm. That's what I did: insert a list. But there's nothing in the Edit 
menu related to lists at that point. This is using a Beamer layout file: 
does that disable some of this stuff?


///Peter



Re: multicolumn across multiple rows

2011-06-03 Thread Uwe Stöhr

Am 27.05.2011 16:19, schrieb Maas James Dr (MED):


Lyx 2.0.0rc3 on Ubuntu Linux,


At first, please upgrade to LyX 2.0.0 final. (more stable)


I have several big tables that I've imported data from a spreadsheet.  I have 
to join two columns across multiple rows down, i.e. I need to join columns 
2and3, 4and5, 6and7  but all the way down the table for multiple rows.  I 
can do it using multicolumn, but only for a single row at a time.  Is there a 
way to do it for many rows at once?  I guess I'm asking if it is possible to do 
multicolumn across multiple rows?


This is not yet possible. Can you please report this as enhancement request at 
our bugtracker:

http://www.lyx.org/trac/wiki/BugTrackerHome

regards Uwe


Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/03/2011 05:48 PM, Peter Flynn wrote:
 On 03/06/11 13:25, Richard Heck wrote:
 On 06/02/2011 07:35 PM, Peter Flynn wrote:
 On 01/06/11 13:57, Richard Heck wrote:
 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?

 This is normal LyX behavior. If you want the list inside, then you
 need
 to do EditIncrease List Depth on the list items. You can do this when
 you insert the list, and the rest will be correct. Think of this as a
 nesting system.

 There isn't an Insert List Depth item in my Edit menu, or anywhere
 else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
 something I am missing?

 You'll only have it after you insert a list of some sort, i.e., when
 it's available to be used.

 Hmmm. That's what I did: insert a list. But there's nothing in the
 Edit menu related to lists at that point. This is using a Beamer
 layout file: does that disable some of this stuff?

No, it shouldn't. Here, it is at the very bottom of that menu. Try
Alt-Shift-Right Arrow

rh



Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Julien Rioux

On 03/06/2011 5:48 PM, Peter Flynn wrote:

On 03/06/11 13:25, Richard Heck wrote:

On 06/02/2011 07:35 PM, Peter Flynn wrote:

On 01/06/11 13:57, Richard Heck wrote:

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?


This is normal LyX behavior. If you want the list inside, then you need
to do EditIncrease List Depth on the list items. You can do this when
you insert the list, and the rest will be correct. Think of this as a
nesting system.


There isn't an Insert List Depth item in my Edit menu, or anywhere
else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
something I am missing?


You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.


Hmmm. That's what I did: insert a list. But there's nothing in the Edit
menu related to lists at that point. This is using a Beamer layout file:
does that disable some of this stuff?

///Peter




I don't think Beamer disallows it. Try to put two environments (that are 
different from Standard environment) one after the other. Place your 
cursor in the second. You will have the action Increase List Depth 
available and using it will wrap the second environment by the first.


See attached example.

Cheers,
Julien


nesting.lyx
Description: application/lyx


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Uwe Stöhr

Am 03.06.2011 22:27, schrieb Julien Rioux:


In the modernCV document you put the image file in the preamble, which to me is 
the same as using
ERT. So you seem to suggest that there is no way to use the includegraphics 
GUI, which offers many
advantages, to specify alternate versions of an image.


No, this is because modernCV requires the image in its preamble.


Yo suggest instead that I should use ERT.


No, but now I understand the problematic. LyX cannot show a preview if you omit the file extension. 
Fixing this is very difficult and I don't think such a feature is safe for all cases.


So indeed, use in this case TeX-code or branches.

regards Uwe


LyX 2.0.0 spell checker user interface Eeeeeek!

2011-06-03 Thread Joe(theWordy)Philbrook
Hello, I'm mostly interested in just using LyX to write stuff... I learn a
few things about how to do something fancy and keep a copy of something it
worked in so that I'll have a chance of duplicating it again someday.

If it matters: I'm a ‘multi-boot’, ‘multi-Linux Distro’ user. And
I use whichever version of LyX is available from the repository of
whichever Linux system I'm currently using. At the moment that includes:
LyX 2.0.0 (April 29 2011) on PCLinuxOS

Actually I think LyX comes with impressive documentation. But when I half
remember something that I don't do very often it can take forever for me to
figure out where to find it again... And then there are the things that
change from one version to the next... I have a shell script that uses the
command line to open a half dozen related documents. I used to just know
that the one I work with the most could be indexed with ‘alt+V2’. Then
not so long ago the list evidently started loading in the revers order 
so that became ‘alt+V5’... Now with the upgrade to LyX 2.0.0 that
I just got on PCLinuxOS the numbered list now starts with zero rather than
one, so now I've got to use ‘alt+V4’...

That is however not an issue, just an example of how the user interface can
feel like a moving target. Of more concern however is the spellchecker...

1) keyboard shortcuts: I remember that I had a little trouble remembering that
the shortcut to Add a word to the dictionary was the ‘D’ rather than the ‘A’.
And that I used to be frustrated that I couldn't use the keyboard (without
also having to use the {expletive-deleted} mouse) to accept anything but the
default first choice in the list of suggestions.

Then it seamed like somebody was listening because the newer versions of
LyX that started working their way into the assorted repositories of the
various Linux distributions I used, started using the ‘A’ for the Add
function and a suGgestion list picked up the ‘G’ (Though that had a minor
conflict with another button that one had to keep an eye on. But if the
other ‘G’ was selected I only needed to type another ‘alt+G’ to get the
one I wanted and then an enter key would activate it. Now with this version
2.0.0 the conflict for the ‘G’ was eliminated by assigning the ‘U’ to the
‘sUggestion’ list. Which I don't mind so much as I do the fact that the
‘A’ has been reassigned to the ‘replace All’ button and the the ‘D’ has
again been dumped on the 'add’ button. I mean the ‘All’ part of the
‘replace all’ function name isn't even unique. It just as easily congers up
the ‘ignore All’ function to me... «sigh» Worse still the ‘D’ in ‘aDd’ is
in conflict with the ‘D’ in the ‘Document’ pull down menu, resulting in
having to resort to the mouse if I want to ADD a word to the dictionary.


2) pop up vs sidebar: I think this was probably the solution to the issue
that the old pop up wasn't smart enough not to hide the hi-lighted word and
it's immediate context when it opened. And I'll admit that as much as I
totally loath all sidebars «I like  my entire window width to always be
reserved for the primary text window of anything I'm editing/reading...»
Even a pop-up side bar is a better idea than blocking the view of the
word's context... Or at least it would be if:

3) closing spell checker via keyboard «getting it completely out of sight»:
It used to be that when I was done with spell check I could dismiss it
with the escape key. Now escape only returns the focus to the editing window, 
while the spellchecker sidebar stays open. This is worse than those
distracting squiggly underlines that some programs insist on putting under
unrecognized words. I don't like those because they distract me from the
natural flow of my writing. (I spell check after I'm done trying to think
of what to say...) But a side bar that won't go away without making me
wrestle with that {many imaginative expletives deleted} rodent pointing
device to click on an {minor expletive deleted} excruciatingly small “X”
button REALLY stops me from thinking creatively about what I'm trying to
write.

4) adding hyphenated words to the dictionary: This no longer works properly.
In a story I'm writing there is a vessel named the Avant-garde, It's name
was added to the dictionary to make sure I spelled it consistently. Now it
doesn't recognize it. And adding it again (with the durned mouse «sigh»)
doesn't help...

5) checking errors in order of occurrence: I'm not sure that this one wasn't
a fluke, because even though it did this several times, the next time I
opened LyX and tried to duplicate this, it didn't happen. But I sometimes
leave words that are not found in the dictionary in place intentionally.
This is what the ‘ignore’ button is for... But some other place in the
document the non-standard spelling might not be desired. I use a spell
checking place marker text “++ 'begin/end spell here' ++” with ‘'’
characters attached to the words “begin”  “here” to ensure that the 

Re: LyX 2.0.0 spell checker user interface Eeeeeek!

2011-06-03 Thread Charlie
On Fri, 3 Jun 2011 18:56:53 -0400
Joe(theWordy)Philbrook jtw...@ttlc.net wrote:

 This is worse than those
 distracting squiggly underlines that some programs insist on putting
 under unrecognized words. I don't like those because they distract me
 from the natural flow of my writing.

I may be able to help you with the above.

Go to:
Tools -- Preferences -- Language settings -- Spellchecker

and remove the x out of the Spellcheck continuously box

I imagine you must have placed that x in as it was never a default in
my install on Debian testing. This feature was discussed on this list
and it was created so those who wanted it could have it, but was not
forced on everyone, thank heavens.

Also having that feature on might have the spellcheck sidebar
constantly on your monitor. [shudder]

HTH
Charlie
-- 
Registered Linux User:- 329524
***

The sun is but a morning star. ...Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: LyX 2.0.0 spell checker user interface Eeeeeek!

2011-06-03 Thread Joe(theWordy)Philbrook

It would appear that on Jun 4, Charlie did say:

 On Fri, 3 Jun 2011 18:56:53 -0400
 Joe(theWordy)Philbrook jtw...@ttlc.net wrote:
 
  This is worse than those
  distracting squiggly underlines that some programs insist on putting
  under unrecognized words. I don't like those because they distract me
  from the natural flow of my writing.
 
 I may be able to help you with the above.
 
 Go to:
 Tools -- Preferences -- Language settings -- Spellchecker
 
 and remove the x out of the Spellcheck continuously box
 
 I imagine you must have placed that x in as it was never a default in
 my install on Debian testing. This feature was discussed on this list
 and it was created so those who wanted it could have it, but was not
 forced on everyone, thank heavens.
 
 Also having that feature on might have the spellcheck sidebar
 constantly on your monitor. [shudder]

I double checked and that option wasn't checked. So I tried checking it and
*saving the changes. No change in behavior. Then I set it back to unchecked
and again *saves the changes. Still no change... sigh Thanks anyway!

*NOTE: while I can ‘select’ the ‘save’ button in tools-preferences with 
‘alt+S’
(it gets a little blue outline) but the preference dialog doesn't close and
the button gives no visual reference of being pressed. Unlike the way
‘alt+A’ makes the Apply button get animated to appear momentarily
depressed. (So if I want to save changes I'm once again stuck with the
durned rodent.)

If this isn't supposed to be forced on everybody, then maybe this is a
problem with the binary in the PCLinuxOS repository
I hope so because if the LyX in my other Linux installations starts acting
like this I'm gonna cry for real...

I've also notices another oddness. according to those Spellchecker
preferences I do still have aspell selected as my spellchecker.
but when (as I mentioned in my previous post) I couldn't get the spell
checker to recognize “Avant-garde” as a word even after clicking on the add
button I tested the add function with a repeated ridiculous spelling of
“pulleese” And upon adding the first instance by clicking on the add
button the spell checker skipped the second. And when I returned to LyX on
my PCLinuxOS installation to test the Spellcheck continuously checkbox
I started the spell checker at the same place and it still skips over
“pulleese”. Even though I opened ~/.aspell.en.pws with vim and searched for
“pulleese” so I could delete it from the dictionary. But all it got me was:
“E486: Pattern not found: pulleese” 

IF it's using aspell, ¿where else could it be hiding the added word?
I wouldn't have added that silly thing if I didn't think I could remove it...

-- 
|^^^   ^^^
|o   o  Joe (theWordy) Philbrook
|^   J(tWdy)P
|   ___ jtw...@ttlc.net
|  '   `

lyx2 and sweave

2011-06-03 Thread Rainer Stowasser
Hy

Ive also followed the instruction mentioned in : lyx 2 and sweave

but for me it also doesnt work

What puzzels me is that there s a message
Setting LC_CTYPE=en_US failed 

and that when I look at the latex source settings for the language with babel
apears somewhere within the document and not before \begin{document}

Is it possible that this happens only for lyx user that have a different
language setting (e.g. german in my case or french ...)

?

.../Ressources/examples/sweave.lyx works on an Win 7 System with lyx 2.0.0, R
version 2.13.0 and MikTeX 2.9 

but any document I create with non English settings fails 

Rainer



nearly solved: problem with language settings

2011-06-03 Thread Mike Bonhoff
Hallo,

I had the problem, that some of my environments appeared in the wrong language 
and I couldn't change the language all at ones.

Now I want to explane how to solve the problem:

See how lyx names the environment in the source code.

For example there's a code like the following generated by Lyx (be sure you can 
see the hole source code: see check mark on the right side):

\newtheorem{rem}[thm]{Remark}

If you want that remark is written in another language, for example in German 
add your own code (Document-Settings-preambel) as follows:

\let\rem\undefined
\let\endrem\undefined
\theoremstyle{definition} 
\newtheorem{rem}[thm]{Bemerkung} 
\ifx\proof\undefined\ 
\newenvironment{proof}[1][\proofname]{\par 
\normalfont\topsep6\p@\@plus6\p@\relax 
\trivlist \itemindent\parindent 
\item[\hskip\labelsep \scshape #1]\ignorespaces }{% \endtrivlist\@endpefalse } 
\providecommand{\proofname}{Proof} 
\fi

This works in most cases. It didn't work for the Lyx code

\newtheorem{thm}[thm]{Theorem}

and I think this is because thm has different meanings: At first it is an 
environment and second it has something to do with the package name (amsthm). 
When I made the same with thm my computers (tested at two different computers 
with 2 different OS) computed until I stopped them. 

When I took the thm in []-brackets out of my code 
\newtheorem{thm}{Satz} 
Lyx gave some “error message”.

Thanks for help, Günter!

Mike Bonhoff
-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone


Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/02/2011 07:35 PM, Peter Flynn wrote:
 On 01/06/11 13:57, Richard Heck wrote:
 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?

 This is normal LyX behavior. If you want the list inside, then you need
 to do EditIncrease List Depth on the list items. You can do this when
 you insert the list, and the rest will be correct. Think of this as a
 nesting system.

 There isn't an Insert List Depth item in my Edit menu, or anywhere
 else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
 something I am missing?

You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.

rh



Contract

2011-06-03 Thread Julio Rojas
Dear all, do you know if there is a contract style in Latex?

Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: lyx2 and sweave

2011-06-03 Thread Liviu Andronic
On Fri, Jun 3, 2011 at 7:34 AM, Rainer Stowasser
rainer.stowas...@wissenschaftsrat.ac.at wrote:
 Hy

 Ive also followed the instruction mentioned in : lyx 2 and sweave

 but for me it also doesnt work

 What puzzels me is that there s a message
 Setting LC_CTYPE=en_US failed

 and that when I look at the latex source settings for the language with babel
 apears somewhere within the document and not before \begin{document}

 Is it possible that this happens only for lyx user that have a different
 language setting (e.g. german in my case or french ...)

I'm not sure where's the problem. Have you tried selecting a utf8
encoding, perhaps best 'utf8x'? Or perhaps compiling with XeTeX?
Liviu


 ?

 .../Ressources/examples/sweave.lyx works on an Win 7 System with lyx 2.0.0, R
 version 2.13.0 and MikTeX 2.9

 but any document I create with non English settings fails

 Rainer





-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Uwe Stöhr

Am 23.05.2011 17:30, schrieb Julien Rioux:


I have two versions of a graphic, one is an eps the other a pdf. How can I 
instruct LyX to use the
eps version when compiling to DVI and the pdf version when compiling to PDF 
(pdflatex)?

The usual trick in latex to omit file extension does not work here. LyX displays No 
file found!,


Then you found a bug. This must work.
Take for example the CV class examples files that come with LyX. In the modernCV file we use an 
image file named CV-image. You can see in LyX's messages window that the PNG-version is used when a 
PDF is compiled (no image conversion). For a DVI or Postscript output, the EPS-version of the image 
is used.


If the problem persists, can you please provide a _small_ LyX file and the image files to have a 
closer look?


regards Uwe


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Julien Rioux

On 03/06/2011 4:02 PM, Uwe Stöhr wrote:

Am 23.05.2011 17:30, schrieb Julien Rioux:


I have two versions of a graphic, one is an eps the other a pdf. How
can I instruct LyX to use the
eps version when compiling to DVI and the pdf version when compiling
to PDF (pdflatex)?

The usual trick in latex to omit file extension does not work here.
LyX displays No file found!,


Then you found a bug. This must work.
Take for example the CV class examples files that come with LyX. In the
modernCV file we use an image file named CV-image. You can see in LyX's
messages window that the PNG-version is used when a PDF is compiled (no
image conversion). For a DVI or Postscript output, the EPS-version of
the image is used.

If the problem persists, can you please provide a _small_ LyX file and
the image files to have a closer look?

regards Uwe


In the modernCV document you put the image file in the preamble, which 
to me is the same as using ERT. So you seem to suggest that there is no 
way to use the includegraphics GUI, which offers many advantages, to 
specify alternate versions of an image. Yo suggest instead that I should 
use ERT. That's fine and it will work, using either .eps or .pdf where 
needed.


The other option is using branches, as Jürgen suggested. That also works 
of course, and would be great if there was a notion of output-specific 
branches, which get automatically activated and deactivated according to 
output.


Cheers,
Julien


Re: bug in nested case environment?

2011-06-03 Thread Paul Rubin
Ernesto,

I have hacked versions of the theorem layouts that I think fix the problem
(allowing you to nest up to four levels of Case environments). If you write me
at rubin at msu dot edu and tell me which version of LyX you use, I'll send
you the corresponding files and you can give them a try.

Paul







Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Peter Flynn

On 03/06/11 13:25, Richard Heck wrote:

On 06/02/2011 07:35 PM, Peter Flynn wrote:

On 01/06/11 13:57, Richard Heck wrote:

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?


This is normal LyX behavior. If you want the list inside, then you need
to do EditIncrease List Depth on the list items. You can do this when
you insert the list, and the rest will be correct. Think of this as a
nesting system.


There isn't an Insert List Depth item in my Edit menu, or anywhere
else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
something I am missing?


You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.


Hmmm. That's what I did: insert a list. But there's nothing in the Edit 
menu related to lists at that point. This is using a Beamer layout file: 
does that disable some of this stuff?


///Peter



Re: multicolumn across multiple rows

2011-06-03 Thread Uwe Stöhr

Am 27.05.2011 16:19, schrieb Maas James Dr (MED):


Lyx 2.0.0rc3 on Ubuntu Linux,


At first, please upgrade to LyX 2.0.0 final. (more stable)


I have several big tables that I've imported data from a spreadsheet.  I have 
to join two columns across multiple rows down, i.e. I need to join columns 
2and3, 4and5, 6and7  but all the way down the table for multiple rows.  I 
can do it using multicolumn, but only for a single row at a time.  Is there a 
way to do it for many rows at once?  I guess I'm asking if it is possible to do 
multicolumn across multiple rows?


This is not yet possible. Can you please report this as enhancement request at 
our bugtracker:

http://www.lyx.org/trac/wiki/BugTrackerHome

regards Uwe


Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/03/2011 05:48 PM, Peter Flynn wrote:
 On 03/06/11 13:25, Richard Heck wrote:
 On 06/02/2011 07:35 PM, Peter Flynn wrote:
 On 01/06/11 13:57, Richard Heck wrote:
 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?

 This is normal LyX behavior. If you want the list inside, then you
 need
 to do EditIncrease List Depth on the list items. You can do this when
 you insert the list, and the rest will be correct. Think of this as a
 nesting system.

 There isn't an Insert List Depth item in my Edit menu, or anywhere
 else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
 something I am missing?

 You'll only have it after you insert a list of some sort, i.e., when
 it's available to be used.

 Hmmm. That's what I did: insert a list. But there's nothing in the
 Edit menu related to lists at that point. This is using a Beamer
 layout file: does that disable some of this stuff?

No, it shouldn't. Here, it is at the very bottom of that menu. Try
Alt-Shift-Right Arrow

rh



Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Julien Rioux

On 03/06/2011 5:48 PM, Peter Flynn wrote:

On 03/06/11 13:25, Richard Heck wrote:

On 06/02/2011 07:35 PM, Peter Flynn wrote:

On 01/06/11 13:57, Richard Heck wrote:

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?


This is normal LyX behavior. If you want the list inside, then you need
to do EditIncrease List Depth on the list items. You can do this when
you insert the list, and the rest will be correct. Think of this as a
nesting system.


There isn't an Insert List Depth item in my Edit menu, or anywhere
else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
something I am missing?


You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.


Hmmm. That's what I did: insert a list. But there's nothing in the Edit
menu related to lists at that point. This is using a Beamer layout file:
does that disable some of this stuff?

///Peter




I don't think Beamer disallows it. Try to put two environments (that are 
different from Standard environment) one after the other. Place your 
cursor in the second. You will have the action Increase List Depth 
available and using it will wrap the second environment by the first.


See attached example.

Cheers,
Julien


nesting.lyx
Description: application/lyx


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Uwe Stöhr

Am 03.06.2011 22:27, schrieb Julien Rioux:


In the modernCV document you put the image file in the preamble, which to me is 
the same as using
ERT. So you seem to suggest that there is no way to use the includegraphics 
GUI, which offers many
advantages, to specify alternate versions of an image.


No, this is because modernCV requires the image in its preamble.


Yo suggest instead that I should use ERT.


No, but now I understand the problematic. LyX cannot show a preview if you omit the file extension. 
Fixing this is very difficult and I don't think such a feature is safe for all cases.


So indeed, use in this case TeX-code or branches.

regards Uwe


LyX 2.0.0 spell checker user interface Eeeeeek!

2011-06-03 Thread Joe(theWordy)Philbrook
Hello, I'm mostly interested in just using LyX to write stuff... I learn a
few things about how to do something fancy and keep a copy of something it
worked in so that I'll have a chance of duplicating it again someday.

If it matters: I'm a ‘multi-boot’, ‘multi-Linux Distro’ user. And
I use whichever version of LyX is available from the repository of
whichever Linux system I'm currently using. At the moment that includes:
LyX 2.0.0 (April 29 2011) on PCLinuxOS

Actually I think LyX comes with impressive documentation. But when I half
remember something that I don't do very often it can take forever for me to
figure out where to find it again... And then there are the things that
change from one version to the next... I have a shell script that uses the
command line to open a half dozen related documents. I used to just know
that the one I work with the most could be indexed with ‘alt+V2’. Then
not so long ago the list evidently started loading in the revers order 
so that became ‘alt+V5’... Now with the upgrade to LyX 2.0.0 that
I just got on PCLinuxOS the numbered list now starts with zero rather than
one, so now I've got to use ‘alt+V4’...

That is however not an issue, just an example of how the user interface can
feel like a moving target. Of more concern however is the spellchecker...

1) keyboard shortcuts: I remember that I had a little trouble remembering that
the shortcut to Add a word to the dictionary was the ‘D’ rather than the ‘A’.
And that I used to be frustrated that I couldn't use the keyboard (without
also having to use the {expletive-deleted} mouse) to accept anything but the
default first choice in the list of suggestions.

Then it seamed like somebody was listening because the newer versions of
LyX that started working their way into the assorted repositories of the
various Linux distributions I used, started using the ‘A’ for the Add
function and a suGgestion list picked up the ‘G’ (Though that had a minor
conflict with another button that one had to keep an eye on. But if the
other ‘G’ was selected I only needed to type another ‘alt+G’ to get the
one I wanted and then an enter key would activate it. Now with this version
2.0.0 the conflict for the ‘G’ was eliminated by assigning the ‘U’ to the
‘sUggestion’ list. Which I don't mind so much as I do the fact that the
‘A’ has been reassigned to the ‘replace All’ button and the the ‘D’ has
again been dumped on the 'add’ button. I mean the ‘All’ part of the
‘replace all’ function name isn't even unique. It just as easily congers up
the ‘ignore All’ function to me... «sigh» Worse still the ‘D’ in ‘aDd’ is
in conflict with the ‘D’ in the ‘Document’ pull down menu, resulting in
having to resort to the mouse if I want to ADD a word to the dictionary.


2) pop up vs sidebar: I think this was probably the solution to the issue
that the old pop up wasn't smart enough not to hide the hi-lighted word and
it's immediate context when it opened. And I'll admit that as much as I
totally loath all sidebars «I like  my entire window width to always be
reserved for the primary text window of anything I'm editing/reading...»
Even a pop-up side bar is a better idea than blocking the view of the
word's context... Or at least it would be if:

3) closing spell checker via keyboard «getting it completely out of sight»:
It used to be that when I was done with spell check I could dismiss it
with the escape key. Now escape only returns the focus to the editing window, 
while the spellchecker sidebar stays open. This is worse than those
distracting squiggly underlines that some programs insist on putting under
unrecognized words. I don't like those because they distract me from the
natural flow of my writing. (I spell check after I'm done trying to think
of what to say...) But a side bar that won't go away without making me
wrestle with that {many imaginative expletives deleted} rodent pointing
device to click on an {minor expletive deleted} excruciatingly small “X”
button REALLY stops me from thinking creatively about what I'm trying to
write.

4) adding hyphenated words to the dictionary: This no longer works properly.
In a story I'm writing there is a vessel named the Avant-garde, It's name
was added to the dictionary to make sure I spelled it consistently. Now it
doesn't recognize it. And adding it again (with the durned mouse «sigh»)
doesn't help...

5) checking errors in order of occurrence: I'm not sure that this one wasn't
a fluke, because even though it did this several times, the next time I
opened LyX and tried to duplicate this, it didn't happen. But I sometimes
leave words that are not found in the dictionary in place intentionally.
This is what the ‘ignore’ button is for... But some other place in the
document the non-standard spelling might not be desired. I use a spell
checking place marker text “++ 'begin/end spell here' ++” with ‘'’
characters attached to the words “begin”  “here” to ensure that the 

Re: LyX 2.0.0 spell checker user interface Eeeeeek!

2011-06-03 Thread Charlie
On Fri, 3 Jun 2011 18:56:53 -0400
Joe(theWordy)Philbrook jtw...@ttlc.net wrote:

 This is worse than those
 distracting squiggly underlines that some programs insist on putting
 under unrecognized words. I don't like those because they distract me
 from the natural flow of my writing.

I may be able to help you with the above.

Go to:
Tools -- Preferences -- Language settings -- Spellchecker

and remove the x out of the Spellcheck continuously box

I imagine you must have placed that x in as it was never a default in
my install on Debian testing. This feature was discussed on this list
and it was created so those who wanted it could have it, but was not
forced on everyone, thank heavens.

Also having that feature on might have the spellcheck sidebar
constantly on your monitor. [shudder]

HTH
Charlie
-- 
Registered Linux User:- 329524
***

The sun is but a morning star. ...Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: LyX 2.0.0 spell checker user interface Eeeeeek!

2011-06-03 Thread Joe(theWordy)Philbrook

It would appear that on Jun 4, Charlie did say:

 On Fri, 3 Jun 2011 18:56:53 -0400
 Joe(theWordy)Philbrook jtw...@ttlc.net wrote:
 
  This is worse than those
  distracting squiggly underlines that some programs insist on putting
  under unrecognized words. I don't like those because they distract me
  from the natural flow of my writing.
 
 I may be able to help you with the above.
 
 Go to:
 Tools -- Preferences -- Language settings -- Spellchecker
 
 and remove the x out of the Spellcheck continuously box
 
 I imagine you must have placed that x in as it was never a default in
 my install on Debian testing. This feature was discussed on this list
 and it was created so those who wanted it could have it, but was not
 forced on everyone, thank heavens.
 
 Also having that feature on might have the spellcheck sidebar
 constantly on your monitor. [shudder]

I double checked and that option wasn't checked. So I tried checking it and
*saving the changes. No change in behavior. Then I set it back to unchecked
and again *saves the changes. Still no change... sigh Thanks anyway!

*NOTE: while I can ‘select’ the ‘save’ button in tools-preferences with 
‘alt+S’
(it gets a little blue outline) but the preference dialog doesn't close and
the button gives no visual reference of being pressed. Unlike the way
‘alt+A’ makes the Apply button get animated to appear momentarily
depressed. (So if I want to save changes I'm once again stuck with the
durned rodent.)

If this isn't supposed to be forced on everybody, then maybe this is a
problem with the binary in the PCLinuxOS repository
I hope so because if the LyX in my other Linux installations starts acting
like this I'm gonna cry for real...

I've also notices another oddness. according to those Spellchecker
preferences I do still have aspell selected as my spellchecker.
but when (as I mentioned in my previous post) I couldn't get the spell
checker to recognize “Avant-garde” as a word even after clicking on the add
button I tested the add function with a repeated ridiculous spelling of
“pulleese” And upon adding the first instance by clicking on the add
button the spell checker skipped the second. And when I returned to LyX on
my PCLinuxOS installation to test the Spellcheck continuously checkbox
I started the spell checker at the same place and it still skips over
“pulleese”. Even though I opened ~/.aspell.en.pws with vim and searched for
“pulleese” so I could delete it from the dictionary. But all it got me was:
“E486: Pattern not found: pulleese” 

IF it's using aspell, ¿where else could it be hiding the added word?
I wouldn't have added that silly thing if I didn't think I could remove it...

-- 
|^^^   ^^^
|o   o  Joe (theWordy) Philbrook
|^   J(tWdy)P
|   ___ jtw...@ttlc.net
|  '   `

lyx2 and sweave

2011-06-03 Thread Rainer Stowasser
Hy

Ive also followed the instruction mentioned in : lyx 2 and sweave

but for me it also doesnt work

What puzzels me is that there s a message
Setting LC_CTYPE=en_US failed 

and that when I look at the latex source settings for the language with babel
apears somewhere within the document and not before \begin{document}

Is it possible that this happens only for lyx user that have a different
language setting (e.g. german in my case or french ...)

?

.../Ressources/examples/sweave.lyx works on an Win 7 System with lyx 2.0.0, R
version 2.13.0 and MikTeX 2.9 

but any document I create with non English settings fails 

Rainer



nearly solved: problem with language settings

2011-06-03 Thread Mike Bonhoff
Hallo,

I had the problem, that some of my environments appeared in the wrong language 
and I couldn't change the language all at ones.

Now I want to explane how to solve the problem:

See how lyx names the environment in the source code.

For example there's a code like the following generated by Lyx (be sure you can 
see the hole source code: see check mark on the right side):

\newtheorem{rem}[thm]{Remark}

If you want that remark is written in another language, for example in German 
add your own code (Document->Settings->preambel) as follows:

\let\rem\undefined
\let\endrem\undefined
\theoremstyle{definition} 
\newtheorem{rem}[thm]{Bemerkung} 
\ifx\proof\undefined\ 
\newenvironment{proof}[1][\proofname]{\par 
\normalfont\topsep6\p@\@plus6\p@\relax 
\trivlist \itemindent\parindent 
\item[\hskip\labelsep \scshape #1]\ignorespaces }{% \endtrivlist\@endpefalse } 
\providecommand{\proofname}{Proof} 
\fi

This works in most cases. It didn't work for the Lyx code

\newtheorem{thm}[thm]{Theorem}

and I think this is because thm has different meanings: At first it is an 
environment and second it has something to do with the package name (amsthm). 
When I made the same with thm my computers (tested at two different computers 
with 2 different OS) computed until I stopped them. 

When I took the thm in []-brackets out of my code 
\newtheorem{thm}{Satz} 
Lyx gave some “error message”.

Thanks for help, Günter!

Mike Bonhoff
-- 
NEU: FreePhone - kostenlos mobil telefonieren!  
Jetzt informieren: http://www.gmx.net/de/go/freephone


Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/02/2011 07:35 PM, Peter Flynn wrote:
> On 01/06/11 13:57, Richard Heck wrote:
>>> 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?
>>>
>> This is normal LyX behavior. If you want the list inside, then you need
>> to do Edit>Increase List Depth on the list items. You can do this when
>> you insert the list, and the rest will be correct. Think of this as a
>> nesting system.
>
> There isn't an "Insert List Depth" item in my Edit menu, or anywhere
> else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
> something I am missing?
>
You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.

rh



Contract

2011-06-03 Thread Julio Rojas
Dear all, do you know if there is a contract style in Latex?

Regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: lyx2 and sweave

2011-06-03 Thread Liviu Andronic
On Fri, Jun 3, 2011 at 7:34 AM, Rainer Stowasser
 wrote:
> Hy
>
> Ive also followed the instruction mentioned in : lyx 2 and sweave
>
> but for me it also doesnt work
>
> What puzzels me is that there s a message
> Setting LC_CTYPE=en_US failed
>
> and that when I look at the latex source settings for the language with babel
> apears somewhere within the document and not before \begin{document}
>
> Is it possible that this happens only for lyx user that have a different
> language setting (e.g. german in my case or french ...)
>
I'm not sure where's the problem. Have you tried selecting a utf8
encoding, perhaps best 'utf8x'? Or perhaps compiling with XeTeX?
Liviu


> ?
>
> .../Ressources/examples/sweave.lyx works on an Win 7 System with lyx 2.0.0, R
> version 2.13.0 and MikTeX 2.9
>
> but any document I create with non English settings fails
>
> Rainer
>
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Uwe Stöhr

Am 23.05.2011 17:30, schrieb Julien Rioux:


I have two versions of a graphic, one is an eps the other a pdf. How can I 
instruct LyX to use the
eps version when compiling to DVI and the pdf version when compiling to PDF 
(pdflatex)?

The usual trick in latex to omit file extension does not work here. LyX displays "No 
file found!",


Then you found a bug. This must work.
Take for example the CV class examples files that come with LyX. In the modernCV file we use an 
image file named CV-image. You can see in LyX's messages window that the PNG-version is used when a 
PDF is compiled (no image conversion). For a DVI or Postscript output, the EPS-version of the image 
is used.


If the problem persists, can you please provide a _small_ LyX file and the image files to have a 
closer look?


regards Uwe


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Julien Rioux

On 03/06/2011 4:02 PM, Uwe Stöhr wrote:

Am 23.05.2011 17:30, schrieb Julien Rioux:


I have two versions of a graphic, one is an eps the other a pdf. How
can I instruct LyX to use the
eps version when compiling to DVI and the pdf version when compiling
to PDF (pdflatex)?

The usual trick in latex to omit file extension does not work here.
LyX displays "No file found!",


Then you found a bug. This must work.
Take for example the CV class examples files that come with LyX. In the
modernCV file we use an image file named CV-image. You can see in LyX's
messages window that the PNG-version is used when a PDF is compiled (no
image conversion). For a DVI or Postscript output, the EPS-version of
the image is used.

If the problem persists, can you please provide a _small_ LyX file and
the image files to have a closer look?

regards Uwe


In the modernCV document you put the image file in the preamble, which 
to me is the same as using ERT. So you seem to suggest that there is no 
way to use the includegraphics GUI, which offers many advantages, to 
specify alternate versions of an image. Yo suggest instead that I should 
use ERT. That's fine and it will work, using either .eps or .pdf where 
needed.


The other option is using branches, as Jürgen suggested. That also works 
of course, and would be great if there was a notion of output-specific 
branches, which get automatically activated and deactivated according to 
output.


Cheers,
Julien


Re: bug in nested case environment?

2011-06-03 Thread Paul Rubin
Ernesto,

I have hacked versions of the theorem layouts that I think fix the problem
(allowing you to nest up to four levels of Case environments). If you write me
at rubin  msu  edu and tell me which version of LyX you use, I'll send
you the corresponding files and you can give them a try.

Paul







Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Peter Flynn

On 03/06/11 13:25, Richard Heck wrote:

On 06/02/2011 07:35 PM, Peter Flynn wrote:

On 01/06/11 13:57, Richard Heck wrote:

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?


This is normal LyX behavior. If you want the list inside, then you need
to do Edit>Increase List Depth on the list items. You can do this when
you insert the list, and the rest will be correct. Think of this as a
nesting system.


There isn't an "Insert List Depth" item in my Edit menu, or anywhere
else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
something I am missing?


You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.


Hmmm. That's what I did: insert a list. But there's nothing in the Edit 
menu related to lists at that point. This is using a Beamer layout file: 
does that disable some of this stuff?


///Peter



Re: multicolumn across multiple rows

2011-06-03 Thread Uwe Stöhr

Am 27.05.2011 16:19, schrieb Maas James Dr (MED):


Lyx 2.0.0rc3 on Ubuntu Linux,


At first, please upgrade to LyX 2.0.0 final. (more stable)


I have several big tables that I've imported data from a spreadsheet.  I have 
to join two columns across multiple rows down, i.e. I need to join columns 
2and3, 4and5, 6and7  but all the way down the table for multiple rows.  I 
can do it using multicolumn, but only for a single row at a time.  Is there a 
way to do it for many rows at once?  I guess I'm asking if it is possible to do 
multicolumn across multiple rows?


This is not yet possible. Can you please report this as enhancement request at 
our bugtracker:

http://www.lyx.org/trac/wiki/BugTrackerHome

regards Uwe


Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Richard Heck
On 06/03/2011 05:48 PM, Peter Flynn wrote:
> On 03/06/11 13:25, Richard Heck wrote:
>> On 06/02/2011 07:35 PM, Peter Flynn wrote:
>>> On 01/06/11 13:57, Richard Heck wrote:
> 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?
>
 This is normal LyX behavior. If you want the list inside, then you
 need
 to do Edit>Increase List Depth on the list items. You can do this when
 you insert the list, and the rest will be correct. Think of this as a
 nesting system.
>>>
>>> There isn't an "Insert List Depth" item in my Edit menu, or anywhere
>>> else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
>>> something I am missing?
>>>
>> You'll only have it after you insert a list of some sort, i.e., when
>> it's available to be used.
>
> Hmmm. That's what I did: insert a list. But there's nothing in the
> Edit menu related to lists at that point. This is using a Beamer
> layout file: does that disable some of this stuff?
>
No, it shouldn't. Here, it is at the very bottom of that menu. Try
Alt-Shift-Right Arrow

rh



Re: Implementing a new environment in a LyX .layout

2011-06-03 Thread Julien Rioux

On 03/06/2011 5:48 PM, Peter Flynn wrote:

On 03/06/11 13:25, Richard Heck wrote:

On 06/02/2011 07:35 PM, Peter Flynn wrote:

On 01/06/11 13:57, Richard Heck wrote:

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?


This is normal LyX behavior. If you want the list inside, then you need
to do Edit>Increase List Depth on the list items. You can do this when
you insert the list, and the rest will be correct. Think of this as a
nesting system.


There isn't an "Insert List Depth" item in my Edit menu, or anywhere
else that I can see (2.0.0rc3 under Ubuntu 11.4). Is this a plugin or
something I am missing?


You'll only have it after you insert a list of some sort, i.e., when
it's available to be used.


Hmmm. That's what I did: insert a list. But there's nothing in the Edit
menu related to lists at that point. This is using a Beamer layout file:
does that disable some of this stuff?

///Peter




I don't think Beamer disallows it. Try to put two environments (that are 
different from "Standard" environment) one after the other. Place your 
cursor in the second. You will have the action "Increase List Depth" 
available and using it will wrap the second environment by the first.


See attached example.

Cheers,
Julien


nesting.lyx
Description: application/lyx


Re: how to use eps graphic for dvi, pdf graphic for pdf output?

2011-06-03 Thread Uwe Stöhr

Am 03.06.2011 22:27, schrieb Julien Rioux:


In the modernCV document you put the image file in the preamble, which to me is 
the same as using
ERT. So you seem to suggest that there is no way to use the includegraphics 
GUI, which offers many
advantages, to specify alternate versions of an image.


No, this is because modernCV requires the image in its preamble.


Yo suggest instead that I should use ERT.


No, but now I understand the problematic. LyX cannot show a preview if you omit the file extension. 
Fixing this is very difficult and I don't think such a feature is safe for all cases.


So indeed, use in this case TeX-code or branches.

regards Uwe


LyX 2.0.0 spell checker & user interface Eeeeeek!

2011-06-03 Thread Joe(theWordy)Philbrook
Hello, I'm mostly interested in just using LyX to write stuff... I learn a
few things about how to do something fancy and keep a copy of something it
worked in so that I'll have a chance of duplicating it again someday.

If it matters: I'm a ‘multi-boot’, ‘multi-Linux Distro’ user. And
I use whichever version of LyX is available from the repository of
whichever Linux system I'm currently using. At the moment that includes:
LyX 2.0.0 (April 29 2011) on PCLinuxOS

Actually I think LyX comes with impressive documentation. But when I half
remember something that I don't do very often it can take forever for me to
figure out where to find it again... And then there are the things that
change from one version to the next... I have a shell script that uses the
command line to open a half dozen related documents. I used to just know
that the one I work with the most could be indexed with ‘+V2’. Then
not so long ago the list evidently started loading in the revers order 
so that became ‘+V5’... Now with the upgrade to LyX 2.0.0 that
I just got on PCLinuxOS the numbered list now starts with zero rather than
one, so now I've got to use ‘+V4’...

That is however not an issue, just an example of how the user interface can
feel like a moving target. Of more concern however is the spellchecker...

1) keyboard shortcuts: I remember that I had a little trouble remembering that
the shortcut to Add a word to the dictionary was the ‘D’ rather than the ‘A’.
And that I used to be frustrated that I couldn't use the keyboard (without
also having to use the {expletive-deleted} mouse) to accept anything but the
default first choice in the list of suggestions.

Then it seamed like somebody was listening because the newer versions of
LyX that started working their way into the assorted repositories of the
various Linux distributions I used, started using the ‘A’ for the Add
function and a suGgestion list picked up the ‘G’ (Though that had a minor
conflict with another button that one had to keep an eye on. But if the
other ‘G’ was selected I only needed to type another ‘+G’ to get the
one I wanted and then an enter key would activate it. Now with this version
2.0.0 the conflict for the ‘G’ was eliminated by assigning the ‘U’ to the
‘sUggestion’ list. Which I don't mind so much as I do the fact that the
‘A’ has been reassigned to the ‘replace All’ button and the the ‘D’ has
again been dumped on the 'add’ button. I mean the ‘All’ part of the
‘replace all’ function name isn't even unique. It just as easily congers up
the ‘ignore All’ function to me... «sigh» Worse still the ‘D’ in ‘aDd’ is
in conflict with the ‘D’ in the ‘Document’ pull down menu, resulting in
having to resort to the mouse if I want to ADD a word to the dictionary.


2) pop up vs sidebar: I think this was probably the solution to the issue
that the old pop up wasn't smart enough not to hide the hi-lighted word and
it's immediate context when it opened. And I'll admit that as much as I
totally loath all sidebars «I like  my entire window width to always be
reserved for the primary text window of anything I'm editing/reading...»
Even a pop-up side bar is a better idea than blocking the view of the
word's context... Or at least it would be if:

3) closing spell checker via keyboard «getting it completely out of sight»:
It used to be that when I was done with spell check I could dismiss it
with the escape key. Now escape only returns the focus to the editing window, 
while the spellchecker sidebar stays open. This is worse than those
distracting squiggly underlines that some programs insist on putting under
unrecognized words. I don't like those because they distract me from the
natural flow of my writing. (I spell check after I'm done trying to think
of what to say...) But a side bar that won't go away without making me
wrestle with that {many imaginative expletives deleted} rodent pointing
device to click on an {minor expletive deleted} excruciatingly small “X”
button REALLY stops me from thinking creatively about what I'm trying to
write.

4) adding hyphenated words to the dictionary: This no longer works properly.
In a story I'm writing there is a vessel named the Avant-garde, It's name
was added to the dictionary to make sure I spelled it consistently. Now it
doesn't recognize it. And adding it again (with the durned mouse «sigh»)
doesn't help...

5) checking errors in order of occurrence: I'm not sure that this one wasn't
a fluke, because even though it did this several times, the next time I
opened LyX and tried to duplicate this, it didn't happen. But I sometimes
leave words that are not found in the dictionary in place intentionally.
This is what the ‘ignore’ button is for... But some other place in the
document the non-standard spelling might not be desired. I use a spell
checking place marker text “++ 'begin/end spell here' ++” with ‘'’
characters attached to the words “begin” & “here” to ensure that the spell

Re: LyX 2.0.0 spell checker & user interface Eeeeeek!

2011-06-03 Thread Charlie
On Fri, 3 Jun 2011 18:56:53 -0400
"Joe(theWordy)Philbrook"  wrote:

> This is worse than those
> distracting squiggly underlines that some programs insist on putting
> under unrecognized words. I don't like those because they distract me
> from the natural flow of my writing.

I may be able to help you with the above.

Go to:
Tools --> Preferences --> Language settings --> Spellchecker

and remove the "x" out of the  box

I imagine you must have placed that "x" in as it was never a default in
my install on Debian testing. This "feature" was discussed on this list
and it was created so those who wanted it could have it, but was not
forced on everyone, thank heavens.

Also having that feature on might have the spellcheck sidebar
constantly on your monitor. [shudder]

HTH
Charlie
-- 
Registered Linux User:- 329524
***

The sun is but a morning star. ...Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: LyX 2.0.0 spell checker & user interface Eeeeeek!

2011-06-03 Thread Joe(theWordy)Philbrook

It would appear that on Jun 4, Charlie did say:

> On Fri, 3 Jun 2011 18:56:53 -0400
> "Joe(theWordy)Philbrook"  wrote:
> 
> > This is worse than those
> > distracting squiggly underlines that some programs insist on putting
> > under unrecognized words. I don't like those because they distract me
> > from the natural flow of my writing.
> 
> I may be able to help you with the above.
> 
> Go to:
> Tools --> Preferences --> Language settings --> Spellchecker
> 
> and remove the "x" out of the  box
> 
> I imagine you must have placed that "x" in as it was never a default in
> my install on Debian testing. This "feature" was discussed on this list
> and it was created so those who wanted it could have it, but was not
> forced on everyone, thank heavens.
> 
> Also having that feature on might have the spellcheck sidebar
> constantly on your monitor. [shudder]

I double checked and that option wasn't checked. So I tried checking it and
*saving the changes. No change in behavior. Then I set it back to unchecked
and again *saves the changes. Still no change...  Thanks anyway!

*NOTE: while I can ‘select’ the ‘save’ button in tools-preferences with 
‘+S’
(it gets a little blue outline) but the preference dialog doesn't close and
the button gives no visual reference of being pressed. Unlike the way
‘+A’ makes the Apply button get animated to appear momentarily
depressed. (So if I want to save changes I'm once again stuck with the
durned rodent.)

If this isn't supposed to be forced on everybody, then maybe this is a
problem with the binary in the PCLinuxOS repository
I hope so because if the LyX in my other Linux installations starts acting
like this I'm gonna cry for real...

I've also notices another oddness. according to those Spellchecker
preferences I do still have aspell selected as my spellchecker.
but when (as I mentioned in my previous post) I couldn't get the spell
checker to recognize “Avant-garde” as a word even after clicking on the add
button I tested the add function with a repeated ridiculous spelling of
“pulleese” And upon "adding the first instance by clicking on the add
button the spell checker skipped the second. And when I returned to LyX on
my PCLinuxOS installation to test the  checkbox
I started the spell checker at the same place and it still skips over
“pulleese”. Even though I opened ~/.aspell.en.pws with vim and searched for
“pulleese” so I could delete it from the dictionary. But all it got me was:
“E486: Pattern not found: pulleese” 

IF it's using aspell, ¿where else could it be hiding the added word?
I wouldn't have added that silly thing if I didn't think I could remove it...

-- 
|^^^   ^^^
| Joe (theWordy) Philbrook
|^   J(tWdy)P
|   ___ <>
|  '   `