Can LyX repeat custom styles (related to word's "style for next paragraph")?

2015-07-18 Thread C . Fuhrman
I posted quite a detailed question on the tex stack exchange here: 
http://tex.stackexchange.com/q/255936/17868

The short version is that I'm using LyX 2.1.3 on Windows with the 
Exam.cls and a layout file I've customized. 

In the context of a \begin{questions} environment (defined in a Flex 
Inset), I'd like to know if it's possible for LyX to automatically 
repeat a certain style within. For example, it's intuitive within this 
environment to repeat the Question style (which is a LatexType Command 
that maps to \question[]{}). LyX always gives me 'Plain Layout' within 
the inset to start. When I set it to Question, type the question and 
press return, I get again a 'Plain Layout'. I would like Question to be 
the "style for next paragraph" within this inset.

I can *almost* do this with an LatexType Item_Environment which gives me 
Enumerated (\item) styles. However, I'd like to state which LyX style to 
repeat within my custom environment. 

The exam.cls is a great example of where this would be useful. There are 
repeating elements within various nestable environments. For example:

questions, question
parts, part
subparts, subpart
subsubparts, subsubpart
choices, choice (or CorrectChoice)
checkboxes, choice (or CorrectChoice)

Having this feature in LyX would allow easy creation of exams. It's 
already possible to nest the style in the inset, but a manual change 
from 'Plain Layout' to the respective equivalent of \item is required. 
Furthermore, if LyX set the style by default, it would simplify the 
choice. For now, users need to know which Style goes inside which Inset 
(legally for LaTeX, that is).

A similar question was asked some time ago here: http://lyx-
users.lyx.narkive.com/3RGUc265/lyx-layout-file-for-multiple-choice-exam-
anybody-have-examdesign-layout-working

Any ideas if this is possible in LyX 2.1.3? If not, should I suggest it 
as a feature for the future? 



Re: Biblatex not not found by LyX work on new computer / OS 10.10.3

2015-07-18 Thread PhilipPirrip

On 07/18/2015 11:40 AM, jezZiFeR wrote:

I run LyX 2.1.3 on OS 10.10.3. I installed the current bib latex.module, but it 
could not be found by LyX. Could you please tell me, where the biblatex.module 
has to be placed? LyX/about LyX tells me to put it into:
library/application support/LyX-2.1/



You don't even need that module.
If you want to use natbib compatibility mode (a few commands other than 
\cite), you can just enter


provides natbib 1

into Document Settings > Local Layout (that's all what that 'module 
contains anyway).







Biblatex not not found by LyX work on new computer / OS 10.10.3

2015-07-18 Thread jezZiFeR
Hello,

I have problems using biblatex an my new computer for weeks now, and could not 
find the problem. 

I run LyX 2.1.3 on OS 10.10.3. I installed the current bib latex.module, but it 
could not be found by LyX. Could you please tell me, where the biblatex.module 
has to be placed? LyX/about LyX tells me to put it into:
library/application support/LyX-2.1/

It is not placed exactly there, but has an own folder at that place: /layouts. 
I hope this is fine. It has a .txt-ending, is that correct? 
(biblatex.module.txt)

BTW: On my old system (OSX10.8) it was placed in
/usr/local/texlive/texmf-local/
but in OS 10.10.3 it seems to have a new place.

Thank you!
Jess

Re: Restore original layout for Source and Progress panes

2015-07-18 Thread Gilles Moyse
I found a quicker solution than reinstalling the whole software, by simply
deleting the registry entry "layout" under
HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0. I think deleting the line in
lyx.conf for Unix users should work as well.

The problem is that other layout configurations are lost as well, as the
visible toolbars and their locations. But at least it restores the original
layout for the Source and Message panes.

If someone is interested to automate it, here is the command to run on
Windows 7 :
Reg delete HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0 /v layout /f

Gilles

On 18 July 2015 at 10:29, Liviu Andronic  wrote:

> On Sat, Jul 18, 2015 at 9:31 AM, Gilles Moyse 
> wrote:
> > It doesn't work in my case (Lyx 2.1.3), there is no such button when the
> > pane is undocked.
> >
> If all else fails, and this is important, try starting with a fresh
> config to let LyX reinitialize the toolbars.
>
> Liviu
>
>
> > When I looked in my registry (I'm using the Windows version during the
> > week-end) I found the following values for what seems to me related to
> the
> > panes Progress and Source :
> >
> > [HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0\progress]
> >
> "geometry"=hex:40,00,42,00,79,00,74,00,65,00,41,00,72,00,72,00,61,00,79,00,28,00,01,00,d9,00,d0,00,cb,00,00,00,01,00,00,00,00,00,ff,00,ff,00,fc,00,cf,00,ff,00,ff,00,fb,00,76,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fc,00,cf,00,ff,00,ff,00,fb,00,76,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,ff,00,ff,00,00,00,00,00,29,00
> > "autoclear"="true"
> > "statusbarmsgs"="true"
> >
> > [HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0\view-source]
> >
> "geometry"=hex:40,00,42,00,79,00,74,00,65,00,41,00,72,00,72,00,61,00,79,00,28,00,01,00,d9,00,d0,00,cb,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,01,00,00,00,00,00,05,00,55,00,00,00,00,00,02,00,da,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,01,00,00,00,00,00,05,00,55,00,00,00,00,00,02,00,da,00,00,00,00,00,00,00,00,00,00,00,00,00,29,00
> > "autoupdate"="true"
> >
> > Do you know where are the original values for the "geometry" fields in
> order
> > to restore the 2 panes in their original state?
> >
> > Thanks in advance,
> >
> > Gilles
> >
> >
> > On 18 July 2015 at 08:22, Liviu Andronic  wrote:
> >>
> >> On Sat, Jul 18, 2015 at 7:44 AM, Gilles Moyse 
> >> wrote:
> >> > I tried that but it only undocks the pane. What I would like to do is
> >> >
> >> Try it when pane is already undocked. Here it docks it back...
> >> Liviu
> >>
> >>
> >> > restore the original layout where the bottom of the screen is made of
> >> > one
> >> > block containing the source pane on the left and the message pane on
> the
> >> > right.
> >> >
> >> > Gilles
>
>> > On 18 July 2015 at 02:25, Liviu Andronic 
> wrote:
> >> >>
> >> >> On Fri, Jul 17, 2015 at 11:52 AM, Gilles Moyse <
> gilles.mo...@gmail.com>
> >> >> wrote:
> >> >> > Dear all,
> >> >> >
> >> >> > I cannot find a way to restore the original side by side layout of
> >> >> > the
> >> >> > Source and Progress panes in Lyx. If I mistakenly move one of
> those,
> >> >> > I
> >> >> > cannot dock it back to its original position, I can only add it as
> a
> >> >> > tab,
> >> >> > thus preventing to have both views at once.
> >> >> >
> >> >> Have you tried clicking on the button next to close that
> >> >> docks/undocks? Here it restores side by side positioning.
> >> >>
> >> >> Liviu
> >> >>
> >> >>
> >> >> > In this thread, I learnt that the configuration file storing the
> >> >> > panes'
> >> >> > locations parameters was the Registry in Windows and
> >> >> > ~/.config/Lyx/lyx.conf
> >> >> > in Linux.
> >> >> >
> >> >> > Unfortunately, this data is not easily editable since it is stored
> in
> >> >> > some
> >> >> > kind of hexadecimal format. Since what I'd like is restoring the
> >> >> > original
> >> >> > panes' layout, do you know where can I find the original lyx.conf
> >> >> > file
> >> >> > so as
> >> >> > to restore their values in the appropriate fields
> >> >> > (1\progress\geometry
> >> >> > and
> >> >> > 1\view-source\geometry) ?
> >> >> >
> >> >> > Thanks in advance,
> >> >> >
> >> >> > Gilles
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Do you think you know what math is?
> >> >> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
> >> >> Or what it means to be intelligent?
> >> >> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
> >> >> Think again:
> >> >> http://www.ideasroadshow.com/library
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Do you think you know what math is?
> >> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
> >> Or what it means to be intelligent?
> >> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
> >> Think again:
> >> http://www.ideasroadshow.com/library
> >
> >
>
>
>
> --
> Do you think you know what math is?
> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
> Or what it means to be intelligent?
> http://www.ideasroadshow

Re: Restore original layout for Source and Progress panes

2015-07-18 Thread Liviu Andronic
On Sat, Jul 18, 2015 at 9:31 AM, Gilles Moyse  wrote:
> It doesn't work in my case (Lyx 2.1.3), there is no such button when the
> pane is undocked.
>
If all else fails, and this is important, try starting with a fresh
config to let LyX reinitialize the toolbars.

Liviu


> When I looked in my registry (I'm using the Windows version during the
> week-end) I found the following values for what seems to me related to the
> panes Progress and Source :
>
> [HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0\progress]
> "geometry"=hex:40,00,42,00,79,00,74,00,65,00,41,00,72,00,72,00,61,00,79,00,28,00,01,00,d9,00,d0,00,cb,00,00,00,01,00,00,00,00,00,ff,00,ff,00,fc,00,cf,00,ff,00,ff,00,fb,00,76,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fc,00,cf,00,ff,00,ff,00,fb,00,76,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,ff,00,ff,00,00,00,00,00,29,00
> "autoclear"="true"
> "statusbarmsgs"="true"
>
> [HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0\view-source]
> "geometry"=hex:40,00,42,00,79,00,74,00,65,00,41,00,72,00,72,00,61,00,79,00,28,00,01,00,d9,00,d0,00,cb,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,01,00,00,00,00,00,05,00,55,00,00,00,00,00,02,00,da,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,01,00,00,00,00,00,05,00,55,00,00,00,00,00,02,00,da,00,00,00,00,00,00,00,00,00,00,00,00,00,29,00
> "autoupdate"="true"
>
> Do you know where are the original values for the "geometry" fields in order
> to restore the 2 panes in their original state?
>
> Thanks in advance,
>
> Gilles
>
>
>
> ___
> Gilles Moyse
> Mobile : +33 6 38 03 71 63
>
> On 18 July 2015 at 08:22, Liviu Andronic  wrote:
>>
>> On Sat, Jul 18, 2015 at 7:44 AM, Gilles Moyse 
>> wrote:
>> > I tried that but it only undocks the pane. What I would like to do is
>> >
>> Try it when pane is already undocked. Here it docks it back...
>> Liviu
>>
>>
>> > restore the original layout where the bottom of the screen is made of
>> > one
>> > block containing the source pane on the left and the message pane on the
>> > right.
>> >
>> > Gilles
>> >
>> > ___
>> > Gilles Moyse
>> > Mobile : +33 6 38 03 71 63
>> >
>> > On 18 July 2015 at 02:25, Liviu Andronic  wrote:
>> >>
>> >> On Fri, Jul 17, 2015 at 11:52 AM, Gilles Moyse 
>> >> wrote:
>> >> > Dear all,
>> >> >
>> >> > I cannot find a way to restore the original side by side layout of
>> >> > the
>> >> > Source and Progress panes in Lyx. If I mistakenly move one of those,
>> >> > I
>> >> > cannot dock it back to its original position, I can only add it as a
>> >> > tab,
>> >> > thus preventing to have both views at once.
>> >> >
>> >> Have you tried clicking on the button next to close that
>> >> docks/undocks? Here it restores side by side positioning.
>> >>
>> >> Liviu
>> >>
>> >>
>> >> > In this thread, I learnt that the configuration file storing the
>> >> > panes'
>> >> > locations parameters was the Registry in Windows and
>> >> > ~/.config/Lyx/lyx.conf
>> >> > in Linux.
>> >> >
>> >> > Unfortunately, this data is not easily editable since it is stored in
>> >> > some
>> >> > kind of hexadecimal format. Since what I'd like is restoring the
>> >> > original
>> >> > panes' layout, do you know where can I find the original lyx.conf
>> >> > file
>> >> > so as
>> >> > to restore their values in the appropriate fields
>> >> > (1\progress\geometry
>> >> > and
>> >> > 1\view-source\geometry) ?
>> >> >
>> >> > Thanks in advance,
>> >> >
>> >> > Gilles
>> >>
>> >>
>> >>
>> >> --
>> >> Do you think you know what math is?
>> >> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
>> >> Or what it means to be intelligent?
>> >> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
>> >> Think again:
>> >> http://www.ideasroadshow.com/library
>> >
>> >
>>
>>
>>
>> --
>> Do you think you know what math is?
>> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
>> Or what it means to be intelligent?
>> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
>> Think again:
>> http://www.ideasroadshow.com/library
>
>



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library


Re: Restore original layout for Source and Progress panes

2015-07-18 Thread Gilles Moyse
It doesn't work in my case (Lyx 2.1.3), there is no such button when the
pane is undocked.

When I looked in my registry (I'm using the Windows version during the
week-end) I found the following values for what seems to me related to the
panes Progress and Source :

[HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0\progress]
"geometry"=hex:40,00,42,00,79,00,74,00,65,00,41,00,72,00,72,00,61,00,79,00,28,00,01,00,d9,00,d0,00,cb,00,00,00,01,00,00,00,00,00,ff,00,ff,00,fc,00,cf,00,ff,00,ff,00,fb,00,76,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fc,00,cf,00,ff,00,ff,00,fb,00,76,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,fe,00,0b,00,ff,00,ff,00,ff,00,ff,00,00,00,00,00,29,00
"autoclear"="true"
"statusbarmsgs"="true"

[HKEY_CURRENT_USER\Software\LyX\LyX2.1\views\0\view-source]
"geometry"=hex:40,00,42,00,79,00,74,00,65,00,41,00,72,00,72,00,61,00,79,00,28,00,01,00,d9,00,d0,00,cb,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,01,00,00,00,00,00,05,00,55,00,00,00,00,00,02,00,da,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,01,00,00,00,00,00,05,00,55,00,00,00,00,00,02,00,da,00,00,00,00,00,00,00,00,00,00,00,00,00,29,00
"autoupdate"="true"

Do you know where are the original values for the "geometry" fields in
order to restore the 2 panes in their original state?

Thanks in advance,

Gilles



___
Gilles Moyse
Mobile : +33 6 38 03 71 63

On 18 July 2015 at 08:22, Liviu Andronic  wrote:

> On Sat, Jul 18, 2015 at 7:44 AM, Gilles Moyse 
> wrote:
> > I tried that but it only undocks the pane. What I would like to do is
> >
> Try it when pane is already undocked. Here it docks it back...
> Liviu
>
>
> > restore the original layout where the bottom of the screen is made of one
> > block containing the source pane on the left and the message pane on the
> > right.
> >
> > Gilles
> >
> > ___
> > Gilles Moyse
> > Mobile : +33 6 38 03 71 63
> >
> > On 18 July 2015 at 02:25, Liviu Andronic  wrote:
> >>
> >> On Fri, Jul 17, 2015 at 11:52 AM, Gilles Moyse 
> >> wrote:
> >> > Dear all,
> >> >
> >> > I cannot find a way to restore the original side by side layout of the
> >> > Source and Progress panes in Lyx. If I mistakenly move one of those, I
> >> > cannot dock it back to its original position, I can only add it as a
> >> > tab,
> >> > thus preventing to have both views at once.
> >> >
> >> Have you tried clicking on the button next to close that
> >> docks/undocks? Here it restores side by side positioning.
> >>
> >> Liviu
> >>
> >>
> >> > In this thread, I learnt that the configuration file storing the
> panes'
> >> > locations parameters was the Registry in Windows and
> >> > ~/.config/Lyx/lyx.conf
> >> > in Linux.
> >> >
> >> > Unfortunately, this data is not easily editable since it is stored in
> >> > some
> >> > kind of hexadecimal format. Since what I'd like is restoring the
> >> > original
> >> > panes' layout, do you know where can I find the original lyx.conf file
> >> > so as
> >> > to restore their values in the appropriate fields (1\progress\geometry
> >> > and
> >> > 1\view-source\geometry) ?
> >> >
> >> > Thanks in advance,
> >> >
> >> > Gilles
> >>
> >>
> >>
> >> --
> >> Do you think you know what math is?
> >> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
> >> Or what it means to be intelligent?
> >> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
> >> Think again:
> >> http://www.ideasroadshow.com/library
> >
> >
>
>
>
> --
> Do you think you know what math is?
> http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
> Or what it means to be intelligent?
> http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
> Think again:
> http://www.ideasroadshow.com/library
>