Re: LyX cache

2011-06-04 Thread Richard Heck
On 06/04/2011 05:44 PM, Hellmut Weber wrote:
> Hi Påvel,
> would you mind to tell me where you found this setting [Cache Age] exactly?
>
Tools>Preferences>File Handling>Converters, at the bottom.

> I looked through all of the menues, searched in ~/.lyx and
> /usr/share/lyx for a *.prefs file and grepped in both subtrees for
> 'cache' and 'lifetime'. With no result.
>
Preferences are stored in ~/.lyx/preferences.

rh



Re: Implementing a new environment in a LyX .layout

2011-06-04 Thread Guenter Milde
On 2011-06-04, Peter Flynn wrote:

> I think I need to create an EndFoo style 

Please don't do this. There is an alternative (see below).

> so that I can get LyX to 
> display something that shows the end-boundary of the environment, 
> otherwise the user will have no idea if the cursor is still within the 
> Foo environment when inserting the list...I have been spoiled by so many 
> years of using XML and LaTeX where you can see the boundaries.

> My problem was in not expecting a function like Increase List Depth to 
> be needed: I had assumed it was the default that a new environment would 
> go inside the current one. If I invoke a LyX style which is defined as a 
> LaTeX environment, I thought everything I typed or invoked from there on 
> would go inside the environment until I did something to exit the 
> environment.

For this kind of environments, you use an Inset instead of a Style:

it shows as a box in the LyX buffer,
it is only leaved when you tell it, and
it allows two subsequent instances without the 
"--- Environment Separator ---" hack.

Unfortunately, beamer.layout (and some others) are older than the
customizable Inset, so that it contains this "End..." hacks or uglier
things.

> What is the trick that permits (for example) a Frame environment to 
> contain other environments without the need to "increase the depth" of 
> the inserted environment?

Using an Inset instead of a Style.

Günter



Empty document at start

2011-06-04 Thread Trevor Jenkins
Is there an option (preference setting perhaps) that will cause LyX to start
up with an empty document? I'm finding it increasingly tedious whenever I
open LyX to have to do a Cmd-N as the first action before I can start type.
At the moment the default settings mean I get the splash screen displayed
and then I must explicitly create a new document.

Regards, Trevor.

<>< Re: deemed!


Re: LyX cache

2011-06-04 Thread Hellmut Weber
Hi Påvel,
would you mind to tell me where you fou nd this setting exactly?

I looked through all of the menues, searched in ~/.lyx and
/usr/share/lyx for a *.prefs file and grepped in both subtrees for
'cache' and 'lifetime'. With no result.


TIA

Hellmut

Am 18.05.2011 20:49, schrieb Påvel Nicklasson:
> Den 2011-05-18 19:53:05 skrev Pavel Sanda :
> 
>> Richard Heck wrote:
 Thank you for the answer!
 I guess I have to remember cleaning the cache now and then.
>>
>> there is lifetime for cache in lyx prefs.
>> pavel
> 
> 
> I found it!
> The default setting of 180 days seems a little too generous to me.
> Påvel
> 

-- 
Dr. Hellmut Weber m...@hellmutweber.de
Degenfeldstraße 2 tel   +49-89-3081172
D-80803 München-Schwabing mobil +49-172-8450321
please: No DOCs, no PPTs. why: tinyurl.com/cbgq


Questions on viewing PDF problem

2011-06-04 Thread Stanley Hartwell
Dear all,

Starting yesterday, the view function in Lyx suddenly stopped working. (It
was all fine before). It generates an error message that "Auto-view file
/.../file.pdf failed." No matter what type of file I tried, it generated the
same message. (For example, I would open a new Lyx document and type "hello
world!" and click "view" and the same error message would appear)

I've discovered that Lyx actually successfully generates the pdf file in its
temp directory, but it just fails to view it. I have even re-installed Lyx,
to no avail.

Any suggestions?

Relevant info:
Operating System: Win 7
Lyx Version: 2.0.0

Thanks!

Stanley


Re: lyx2 and sweave

2011-06-04 Thread Yihui Xie
I've been thinking about the message "Setting LC_CTYPE=en_US failed"
for a while and have not figured out the reason yet. Why does R have
to set the locale to en_US when it is not actually en_US...

For non-English documents, I guess you have to specify a correct
encoding in the document settings, but I don't know which encoding is
"correct" for German. What was the error message (View-->View
Messages) in R? (not warnings) Did it say something like iconv()
failed?

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Fri, Jun 3, 2011 at 6: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 ...)
>
> ?
>
> .../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
>
>


Re: Getting RevTeX 4.1 layout to work

2011-06-04 Thread Julien Rioux

On 23/12/2010 4:58 AM, Eric Cavalcanti wrote:

Thanks Stephan. Perhaps I should clarify that the problem only occurs when I 
have the revtex4-1.layout file that I created from copying and pasting Julien's 
code into a text file in the layouts folder.

Cheers,
Eric


A kind soul followed up on this and offers the explanation that your 
browser does automatic line wrapping that are not part of the original 
file, and a copy-paste from that messes up with how LyX parses the file. 
This is a logical and very plausible explanation of the problem you have 
encounter.


I have put the layout file available for download from
http://www.physics.utoronto.ca/~jrioux/resources/lyx/

Could you please try to download this file? This should avoid any 
copy-paste problems. Meanwhile the layout file that I am using also 
evolved a bit.


Thanks,
Cheers,
Julien



 Original Message 
Subject: Revtex4-1 for Lyx 1.6.x
Date: Sat, 04 Jun 2011 10:40:36 +0200
From: Timothy Stoltzfus-Dueck

Hi Julien,

Thanks for putting together the revtex4-1 layout!

I had trouble using the version you posted for Lyx 1.6.x, similar to
that discussed in
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg84557.html

It turns out that all it was was that my browser broke up the
\DeclareLatexClass line, moving the \DeclareLatexClass command to the
line following the # , which caused the LyX Reconfigure command to fail.
 Moving the # , \DeclareLatexClass..., and  (REVTEX 4.1)}  [3 separate
lines as my browser gave it to me] to the same line resulted in a
working LyX Reconfigure.

Sorry to send this mail to you.  I tried to reply to Eric Cavalcanti,
who posted the question, but I can't get to a working reply screen.
Your email address was the only one I found, so I thought you might be
able to forward or post this in case Eric is still having trouble.

Thanks again for your work on this.

Tim Stoltzfus-Dueck


Re: How to put temporary files to the lyx-file folder (for TrueCrypt compatibility)

2011-06-04 Thread Richard Heck
On 06/04/2011 10:43 AM, Kotya Karapetyan wrote:
> On 4 June 2011 16:38, Richard Heck  wrote:
>> On 06/03/2011 08:51 AM, Kotya Karapetyan wrote:
>>> Hello,
>>>
>>> I am working on a document in a TrueCrypt volume. As far as I
>>> understand, when I view PDF, LyX puts a temporary PDF file (and
>>> probably all temporary pdflatex files) into some other folder (at
>>> least, I don't see them in the folder with the lyx-file). Can I change
>>> this? I would like all files, even those later deleted, to reside in a
>>> TrueCrypt folder.
>>>
>>> I have tried to remove the path in the Preferences/Paths/Temporary
>>> directory, but the PDF file still doesn't appear in the lyx-file
>>> folder.
>>>
>> If you want all files on the encrypted volume, then set the path for the
>> temporary directory to somewhere on that volume.
> I don't want this behaviour *always*. If I edit some other lyx-file,
> not this secret one, then the TrueCrypt volume may even not be
> mounted.
>
> Is there in LyX some parameter like the 'lyx-file location', so that
> the temporary folder could be specified with this parameter?
>
Not so far as I know. This is a pretty unusual situation, and LyX is
definitely not set up to use different temporary directories for
different files in the same session. You might try setting up a second
user directory, and launching Lyx with:
lyx -userdir /home/you/.lyxcrypt/
when you need to do so.

Richard



Re: Implementing a new environment in a LyX .layout

2011-06-04 Thread Richard Heck
On 06/04/2011 09:42 AM, Peter Flynn wrote:
> On 03/06/11 23:14, Richard Heck wrote:
>> On 06/03/2011 05:48 PM, Peter Flynn wrote:
> [...]
>>> 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
>
> On 03/06/11 23:20, Julien Rioux wrote:
> [...]
>> 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.
>
> I found it eventually, thank you both very much.
>
> I think I need to create an EndFoo style so that I can get LyX to
> display something that shows the end-boundary of the environment,
> otherwise the user will have no idea if the cursor is still within the
> Foo environment when inserting the list...I have been spoiled by so
> many years of using XML and LaTeX where you can see the boundaries.
>
Can't the user look at the dropbox and see what environment they are in?

> My problem was in not expecting a function like Increase List Depth to
> be needed: I had assumed it was the default that a new environment
> would go inside the current one. If I invoke a LyX style which is
> defined as a LaTeX environment, I thought everything I typed or
> invoked from there on would go inside the environment until I did
> something to exit the environment.
>
> (This problem isn't unique to LyX, but most systems do it the other
> way round, allowing arbitrarily anything inside a style and providing
> no way to get outside the environment; see my comment in [1].)
>
I think this is mostly a matter of getting used to LyX's way of doing
things. Both make sense. For me, I'd rather not have to exit the theorem
environment before entering a proof, or a corollary, or whatever.

It would be possible to make this more flexible, though. There probably
are cases, mostly involving lists, where you'd expect the list to be
within the existing environment. E.g., lists within statements of
theorems, or proofs, or what have you. One could have some kind of
setting for different layouts that signalled whether they expected lists
within them. Or maybe one could, by default, increase depth for lists
within environments. Lots of possibilities. But any change would need
discussion.

> What is the trick that permits (for example) a Frame environment to
> contain other environments without the need to "increase the depth" of
> the inserted environment?
>
You can look at the beamer layout to see this, but it is a complete
mess. You really don't want to do this.

rh



Re: How to put temporary files to the lyx-file folder (for TrueCrypt compatibility)

2011-06-04 Thread Kotya Karapetyan
On 4 June 2011 16:38, Richard Heck  wrote:
> On 06/03/2011 08:51 AM, Kotya Karapetyan wrote:
>> Hello,
>>
>> I am working on a document in a TrueCrypt volume. As far as I
>> understand, when I view PDF, LyX puts a temporary PDF file (and
>> probably all temporary pdflatex files) into some other folder (at
>> least, I don't see them in the folder with the lyx-file). Can I change
>> this? I would like all files, even those later deleted, to reside in a
>> TrueCrypt folder.
>>
>> I have tried to remove the path in the Preferences/Paths/Temporary
>> directory, but the PDF file still doesn't appear in the lyx-file
>> folder.
>>
> If you want all files on the encrypted volume, then set the path for the
> temporary directory to somewhere on that volume.

I don't want this behaviour *always*. If I edit some other lyx-file,
not this secret one, then the TrueCrypt volume may even not be
mounted.

Is there in LyX some parameter like the 'lyx-file location', so that
the temporary folder could be specified with this parameter?

Kotya


Re: How to put temporary files to the lyx-file folder (for TrueCrypt compatibility)

2011-06-04 Thread Richard Heck
On 06/03/2011 08:51 AM, Kotya Karapetyan wrote:
> Hello,
>
> I am working on a document in a TrueCrypt volume. As far as I
> understand, when I view PDF, LyX puts a temporary PDF file (and
> probably all temporary pdflatex files) into some other folder (at
> least, I don't see them in the folder with the lyx-file). Can I change
> this? I would like all files, even those later deleted, to reside in a
> TrueCrypt folder.
>
> I have tried to remove the path in the Preferences/Paths/Temporary
> directory, but the PDF file still doesn't appear in the lyx-file
> folder.
>
If you want all files on the encrypted volume, then set the path for the
temporary directory to somewhere on that volume.

Richard



Re: citation in round brackets

2011-06-04 Thread Liviu Andronic
On Tue, Jul 8, 2008 at 11:08 AM, Eli Brosh  wrote:
> Hello,
> I am using LyX with the native bibliography facility.
> Now, when I insert a citation in the text, the result is a reference in
> square brackets [1] or, if I put a different label [different label].
> Is there a simple method to change the brackets around the label from square
> to round, like (1) and (different label) ?
>
Check Section 12 of LyX Essentials [1].
Liviu

[1] 
https://sites.google.com/site/tsewiki/resources/latex/LyX_Essentials.pdf?attredirects=0&d=1


Re: Implementing a new environment in a LyX .layout

2011-06-04 Thread Peter Flynn

On 03/06/11 23:14, Richard Heck wrote:

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

[...]

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


On 03/06/11 23:20, Julien Rioux wrote:
[...]

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.


I found it eventually, thank you both very much.

I think I need to create an EndFoo style so that I can get LyX to 
display something that shows the end-boundary of the environment, 
otherwise the user will have no idea if the cursor is still within the 
Foo environment when inserting the list...I have been spoiled by so many 
years of using XML and LaTeX where you can see the boundaries.


My problem was in not expecting a function like Increase List Depth to 
be needed: I had assumed it was the default that a new environment would 
go inside the current one. If I invoke a LyX style which is defined as a 
LaTeX environment, I thought everything I typed or invoked from there on 
would go inside the environment until I did something to exit the 
environment.


(This problem isn't unique to LyX, but most systems do it the other way 
round, allowing arbitrarily anything inside a style and providing no way 
to get outside the environment; see my comment in [1].)


What is the trick that permits (for example) a Frame environment to 
contain other environments without the need to "increase the depth" of 
the inserted environment?


///Peter
--
[1] 
http://balisage.net/Proceedings/vol3/html/Flynn01/BalisageVol3-Flynn01.html, 
footnote [3].


How to put temporary files to the lyx-file folder (for TrueCrypt compatibility)

2011-06-04 Thread Kotya Karapetyan
Hello,

I am working on a document in a TrueCrypt volume. As far as I
understand, when I view PDF, LyX puts a temporary PDF file (and
probably all temporary pdflatex files) into some other folder (at
least, I don't see them in the folder with the lyx-file). Can I change
this? I would like all files, even those later deleted, to reside in a
TrueCrypt folder.

I have tried to remove the path in the Preferences/Paths/Temporary
directory, but the PDF file still doesn't appear in the lyx-file
folder.

Thanks in advance!

Kotya


Re: Possible Bug: Document Settings -> Bullets -> Size

2011-06-04 Thread Richard Heck
On 06/04/2011 06:31 AM, Ken wrote:
> I am trying to change the size of the bullets in a LyX 2.0 document.
>
> When I go to Document Settings -> Bullets and then change the "Size",
> this does not seem to trigger any sort of change to the document.  The
> Ok/Apply buttons are still disabled.  Is there a possible bug here?
>
Thanks for the report. It's fixed for 2.0.1.

rh



Re: citation in round brackets

2011-06-04 Thread Richard Heck
On 06/01/2011 06:40 AM, colruyt wrote:
> Is there any other ways to change the bracket into round style without adding
> \usepackage{chicago} to your preamble? 
>
Add the class option "round", if you are using natbib.

Richard



Possible Bug: Document Settings -> Bullets -> Size

2011-06-04 Thread Ken
I am trying to change the size of the bullets in a LyX 2.0 document.

When I go to Document Settings -> Bullets and then change the "Size",
this does not seem to trigger any sort of change to the document.  The
Ok/Apply buttons are still disabled.  Is there a possible bug here?

Regards,
Ken


Re: citation in round brackets

2011-06-04 Thread colruyt
Is there any other ways to change the bracket into round style without adding
\usepackage{chicago} to your preamble? 

thanks

--
View this message in context: 
http://lyx.475766.n2.nabble.com/citation-in-round-brackets-tp481932p6426356.html
Sent from the LyX - Users mailing list archive at Nabble.com.