Re: Change tab hotkey

2013-11-21 Thread Daniel CLEMENT
Thanks a lot! It works perfectly.

Le jeudi 21 novembre 2013 à 02:14 -0500, Scott Kostyshak a écrit :
 On Thu, Nov 21, 2013 at 1:59 AM, Liviu Andronic landronim...@gmail.com 
 wrote:
  [...]
  
  ctrl+tab? ctrl+pgup/pgdown?
 
  ... any of these two would be fine, but how could we define (bind) them
  in lyx? I'm unable to locate the lyx command for change tab...
 
  I think this is standard Qt functionality, and LyX doesn't support
  customizing this.
 
 If I understand correctly, you're talking about 'buffer-next' and
 'buffer-previous'. 

Yes, that's what I was looking for, but I expected 'window (or
tab)-something'...

 I good way to figure out what the underlying
 command is, is to go to View  Messages and in the Messages box click
 on the Settings pane; for Debug messages choose Selected and
 toggle User commands to yes. Then change back to the Output
 pane, do the action that you want (in this case changing the tab with
 ctrl + up).

... so this is very useful, next time I'll know how to do.

 
 Another way (which only works because we trigger the desired action
 with a shortcut) is to go to Tools  Preferences  Editing  Shortcuts
  and under Show key-bindings containing and enter ctrl+pg.
 
 Scott

-- 
Daniel CLEMENT


Re: building/packaging a lyx module

2013-11-21 Thread Richard Heck

On 11/21/2013 02:25 AM, Christoph Burschka wrote:

[sorry, accidentally replied directly instead of to the list]

On 11/21/2013 03:32 AM, Richard Heck wrote:

The only thing I can think of, as things now are, is to run some script
(you can use python, since we know that should be installed) that would
automatically add the relevant lines to the user's preferences file. Of
course, then you have to find that file, and I'm not sure if there's a
totally portable way to do it. Many users wouldn't even be able to find
it themselves. But you could at least check the standard locations.

Richard


Ah, okay. I guess I was hoping for some kind of mini-settings file that
would only add or modify those specific lines when dropped into a
folder. Another thing some extendable programs use is a scripting API
(eg Gimp uses Python, VLC has Lua, etc.), which might then provide
commands like lyx.config.converters.add(from, to, command, options) to
let plugins mess around with settings while wrapping the internal logic.


Actually, this MIGHT be possible using the lyxserver interface, though 
LyX has to be running for that to work. The syntax would be something like:

lyxrc-apply \converter from to command to run converter flags
I.e., what follows is the converter line you wish to add.

Note that you would then have to save the preferences, as well, since 
that does not happen automatically:

preferences-save
Not sure how much this helps, though, since the user has to have set up 
the lyxpipes for the server to work. Typically, this is not done by default.


Totally not tested.

Richard



Re: Changing the dictum style in koma-script.

2013-11-21 Thread Jürgen Spitzmüller
Karl Richter-Trummer wrote:
 \newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
 
 When i insert this in my document it gives me the error of command 
 \dictumrule already defined

Use \renewcommand instead of \newcommand.

Regards,
Jürgen


Re: creating a quiz /multiple choice questions with Lyx

2013-11-21 Thread Andrew Parsloe


On 21/11/2013 8:54 p.m., Andrew Parsloe wrote:

On 21/11/2013 10:03 a.m., Liviu Andronic wrote:

On Mon, Feb 4, 2013 at 10:17 PM, Andrew Parsloe
apars...@clear.net.nz wrote:

Riding my particular hobby horses, generating a randomized selection
looks
like a candidate for a python script after the fashion envisaged in
the pLyX
system (http://wiki.lyx.org/Examples/Examples).


Bad keybinding...

I was wondering, now that you're in midst of refactoring pLyX scripts,
whether you could easily come up with a Python script that could
achieve such randomized selection? Unfortunately my knowledge of
Python tends to zero, so I cannot quite hope to do this myself. I
don't actually need it now, but I'm curious if this can be done.

Please let me know,
Liviu



Since it is possible to sort a list, it should be straightforward. I
shall put it on my to-do list (which has a very random component to its
ordering).

Andrew

In fact, now done as part of the pLyX system using the list sorting 
script. If your questionnaire is in the form of a two-level list, 
questions at the top level, multi-choice answers at the sub-level, then, 
in the pLyX way, placing a .sort list custom inset just before the 
list with the sort specification 2r in it (2 for the sub-level, r 
for random) and clicking the pLyX buttons will randomise each sub-level 
list of potential answers. If the list had some sub-sub-level 
multi-choice answers, the sort spec. 2r3r would do the trick. I'll try 
to update the documentation today and get it to you, Liviu, for the 
Dropbox repository later today.


Andrew


Changing the dictum style in koma-script.

2013-11-21 Thread Karl Richter-Trummer

Dear Lyxers

I am playing around with the dictum style for my thesis. I am using the 
koma-script-book class, it gives me automatically a very basic quotation 
right after the headline:


this is a quote (author)

I read in the coma script guide, in section 3.17 the dictum is described 
as having a line between the quote and the author, it says this can be 
defined by


\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}

When i insert this in my document it gives me the error of command 
\dictumrule already defined


I am not very familiar with latex and its integration, so maybe i am 
doing so kids-error?


Yours

Karl


Re: Changing the dictum style in koma-script.

2013-11-21 Thread Karl Richter-Trummer
Jürgen Spitzmüller spitz at lyx.org writes:

 
 Karl Richter-Trummer wrote:
  \newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
  
  When i insert this in my document it gives me the error of command 
  \dictumrule already defined
 
 Use \renewcommand instead of \newcommand.
 
 Regards,
 Jürgen
 
 

Thank you! It works now, not trowing the error, but it will not show a
horizontal line neither :(

Yours

Karl






Re: building/packaging a lyx module

2013-11-21 Thread Liviu Andronic
On Thu, Nov 21, 2013 at 4:47 PM, Richard Heck rgh...@lyx.org wrote:
 Ah, okay. I guess I was hoping for some kind of mini-settings file that
 would only add or modify those specific lines when dropped into a
 folder. Another thing some extendable programs use is a scripting API
 (eg Gimp uses Python, VLC has Lua, etc.), which might then provide
 commands like lyx.config.converters.add(from, to, command, options) to
 let plugins mess around with settings while wrapping the internal logic.


 Actually, this MIGHT be possible using the lyxserver interface, though LyX
 has to be running for that to work. The syntax would be something like:
 lyxrc-apply \converter from to command to run converter flags
 I.e., what follows is the converter line you wish to add.


Hmm, how difficult would it be to have a CLI to this?

The reason I ask is that I've stumbled upon several instances where
adding a converter was proving a hindrance for users to try out a 3rd
party tool (and resulted in much prose and unnecessary screenshots
explaining how to manually add additional file types and converters to
LyX!). I can think of Andrew's pLyX (
http://wiki.lyx.org/Examples/PLyXSystem ) and Rob's  word2lyx (
http://blog.oak-tree.us/index.php/2012/03/08/word2lyx01-2 ). Providing
users with a 'lyx --add-converter [..]' command would be so much
neater.

Regards,
Liviu


 Note that you would then have to save the preferences, as well, since that
 does not happen automatically:
 preferences-save
 Not sure how much this helps, though, since the user has to have set up the
 lyxpipes for the server to work. Typically, this is not done by default.

 Totally not tested.

 Richard




-- 
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


How to set up mathematica

2013-11-21 Thread Sungki Hong
To whom it may concern,

I have been trying to set up mathematica with my lyx, but I simply got
confused. So what is the right step I should follow? I have downloaded
mathematica already. My system is Mac.

best,
Sungki


Re: Change tab hotkey

2013-11-21 Thread Daniel CLEMENT
Thanks a lot! It works perfectly.

Le jeudi 21 novembre 2013 à 02:14 -0500, Scott Kostyshak a écrit :
 On Thu, Nov 21, 2013 at 1:59 AM, Liviu Andronic landronim...@gmail.com 
 wrote:
  [...]
  
  ctrl+tab? ctrl+pgup/pgdown?
 
  ... any of these two would be fine, but how could we define (bind) them
  in lyx? I'm unable to locate the lyx command for change tab...
 
  I think this is standard Qt functionality, and LyX doesn't support
  customizing this.
 
 If I understand correctly, you're talking about 'buffer-next' and
 'buffer-previous'. 

Yes, that's what I was looking for, but I expected 'window (or
tab)-something'...

 I good way to figure out what the underlying
 command is, is to go to View  Messages and in the Messages box click
 on the Settings pane; for Debug messages choose Selected and
 toggle User commands to yes. Then change back to the Output
 pane, do the action that you want (in this case changing the tab with
 ctrl + up).

... so this is very useful, next time I'll know how to do.

 
 Another way (which only works because we trigger the desired action
 with a shortcut) is to go to Tools  Preferences  Editing  Shortcuts
  and under Show key-bindings containing and enter ctrl+pg.
 
 Scott

-- 
Daniel CLEMENT


Re: building/packaging a lyx module

2013-11-21 Thread Richard Heck

On 11/21/2013 02:25 AM, Christoph Burschka wrote:

[sorry, accidentally replied directly instead of to the list]

On 11/21/2013 03:32 AM, Richard Heck wrote:

The only thing I can think of, as things now are, is to run some script
(you can use python, since we know that should be installed) that would
automatically add the relevant lines to the user's preferences file. Of
course, then you have to find that file, and I'm not sure if there's a
totally portable way to do it. Many users wouldn't even be able to find
it themselves. But you could at least check the standard locations.

Richard


Ah, okay. I guess I was hoping for some kind of mini-settings file that
would only add or modify those specific lines when dropped into a
folder. Another thing some extendable programs use is a scripting API
(eg Gimp uses Python, VLC has Lua, etc.), which might then provide
commands like lyx.config.converters.add(from, to, command, options) to
let plugins mess around with settings while wrapping the internal logic.


Actually, this MIGHT be possible using the lyxserver interface, though 
LyX has to be running for that to work. The syntax would be something like:

lyxrc-apply \converter from to command to run converter flags
I.e., what follows is the converter line you wish to add.

Note that you would then have to save the preferences, as well, since 
that does not happen automatically:

preferences-save
Not sure how much this helps, though, since the user has to have set up 
the lyxpipes for the server to work. Typically, this is not done by default.


Totally not tested.

Richard



Re: Changing the dictum style in koma-script.

2013-11-21 Thread Jürgen Spitzmüller
Karl Richter-Trummer wrote:
 \newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
 
 When i insert this in my document it gives me the error of command 
 \dictumrule already defined

Use \renewcommand instead of \newcommand.

Regards,
Jürgen


Re: creating a quiz /multiple choice questions with Lyx

2013-11-21 Thread Andrew Parsloe


On 21/11/2013 8:54 p.m., Andrew Parsloe wrote:

On 21/11/2013 10:03 a.m., Liviu Andronic wrote:

On Mon, Feb 4, 2013 at 10:17 PM, Andrew Parsloe
apars...@clear.net.nz wrote:

Riding my particular hobby horses, generating a randomized selection
looks
like a candidate for a python script after the fashion envisaged in
the pLyX
system (http://wiki.lyx.org/Examples/Examples).


Bad keybinding...

I was wondering, now that you're in midst of refactoring pLyX scripts,
whether you could easily come up with a Python script that could
achieve such randomized selection? Unfortunately my knowledge of
Python tends to zero, so I cannot quite hope to do this myself. I
don't actually need it now, but I'm curious if this can be done.

Please let me know,
Liviu



Since it is possible to sort a list, it should be straightforward. I
shall put it on my to-do list (which has a very random component to its
ordering).

Andrew

In fact, now done as part of the pLyX system using the list sorting 
script. If your questionnaire is in the form of a two-level list, 
questions at the top level, multi-choice answers at the sub-level, then, 
in the pLyX way, placing a .sort list custom inset just before the 
list with the sort specification 2r in it (2 for the sub-level, r 
for random) and clicking the pLyX buttons will randomise each sub-level 
list of potential answers. If the list had some sub-sub-level 
multi-choice answers, the sort spec. 2r3r would do the trick. I'll try 
to update the documentation today and get it to you, Liviu, for the 
Dropbox repository later today.


Andrew


Changing the dictum style in koma-script.

2013-11-21 Thread Karl Richter-Trummer

Dear Lyxers

I am playing around with the dictum style for my thesis. I am using the 
koma-script-book class, it gives me automatically a very basic quotation 
right after the headline:


this is a quote (author)

I read in the coma script guide, in section 3.17 the dictum is described 
as having a line between the quote and the author, it says this can be 
defined by


\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}

When i insert this in my document it gives me the error of command 
\dictumrule already defined


I am not very familiar with latex and its integration, so maybe i am 
doing so kids-error?


Yours

Karl


Re: Changing the dictum style in koma-script.

2013-11-21 Thread Karl Richter-Trummer
Jürgen Spitzmüller spitz at lyx.org writes:

 
 Karl Richter-Trummer wrote:
  \newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
  
  When i insert this in my document it gives me the error of command 
  \dictumrule already defined
 
 Use \renewcommand instead of \newcommand.
 
 Regards,
 Jürgen
 
 

Thank you! It works now, not trowing the error, but it will not show a
horizontal line neither :(

Yours

Karl






Re: building/packaging a lyx module

2013-11-21 Thread Liviu Andronic
On Thu, Nov 21, 2013 at 4:47 PM, Richard Heck rgh...@lyx.org wrote:
 Ah, okay. I guess I was hoping for some kind of mini-settings file that
 would only add or modify those specific lines when dropped into a
 folder. Another thing some extendable programs use is a scripting API
 (eg Gimp uses Python, VLC has Lua, etc.), which might then provide
 commands like lyx.config.converters.add(from, to, command, options) to
 let plugins mess around with settings while wrapping the internal logic.


 Actually, this MIGHT be possible using the lyxserver interface, though LyX
 has to be running for that to work. The syntax would be something like:
 lyxrc-apply \converter from to command to run converter flags
 I.e., what follows is the converter line you wish to add.


Hmm, how difficult would it be to have a CLI to this?

The reason I ask is that I've stumbled upon several instances where
adding a converter was proving a hindrance for users to try out a 3rd
party tool (and resulted in much prose and unnecessary screenshots
explaining how to manually add additional file types and converters to
LyX!). I can think of Andrew's pLyX (
http://wiki.lyx.org/Examples/PLyXSystem ) and Rob's  word2lyx (
http://blog.oak-tree.us/index.php/2012/03/08/word2lyx01-2 ). Providing
users with a 'lyx --add-converter [..]' command would be so much
neater.

Regards,
Liviu


 Note that you would then have to save the preferences, as well, since that
 does not happen automatically:
 preferences-save
 Not sure how much this helps, though, since the user has to have set up the
 lyxpipes for the server to work. Typically, this is not done by default.

 Totally not tested.

 Richard




-- 
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


How to set up mathematica

2013-11-21 Thread Sungki Hong
To whom it may concern,

I have been trying to set up mathematica with my lyx, but I simply got
confused. So what is the right step I should follow? I have downloaded
mathematica already. My system is Mac.

best,
Sungki


Re: Change tab hotkey

2013-11-21 Thread Daniel CLEMENT
Thanks a lot! It works perfectly.

Le jeudi 21 novembre 2013 à 02:14 -0500, Scott Kostyshak a écrit :
> On Thu, Nov 21, 2013 at 1:59 AM, Liviu Andronic  
> wrote:
> > [...]
> >>> >
> >>> ctrl+tab? ctrl+pgup/pgdown?
> >>
> >> ... any of these two would be fine, but how could we define (bind) them
> >> in lyx? I'm unable to locate the lyx command for "change tab"...
> >>
> > I think this is standard Qt functionality, and LyX doesn't support
> > customizing this.
> 
> If I understand correctly, you're talking about 'buffer-next' and
> 'buffer-previous'. 

Yes, that's what I was looking for, but I expected 'window (or
tab)-something'...

> I good way to figure out what the underlying
> command is, is to go to View > Messages and in the Messages box click
> on the "Settings" pane; for "Debug messages" choose "Selected" and
> toggle "User commands" to "yes". Then change back to the "Output
> pane", do the action that you want (in this case changing the tab with
> ctrl + up).

... so this is very useful, next time I'll know how to do.

> 
> Another way (which only works because we trigger the desired action
> with a shortcut) is to go to Tools > Preferences > Editing > Shortcuts
> > and under "Show key-bindings containing" and enter "ctrl+pg".
> 
> Scott

-- 
Daniel CLEMENT


Re: building/packaging a lyx module

2013-11-21 Thread Richard Heck

On 11/21/2013 02:25 AM, Christoph Burschka wrote:

[sorry, accidentally replied directly instead of to the list]

On 11/21/2013 03:32 AM, Richard Heck wrote:

The only thing I can think of, as things now are, is to run some script
(you can use python, since we know that should be installed) that would
automatically add the relevant lines to the user's preferences file. Of
course, then you have to find that file, and I'm not sure if there's a
totally portable way to do it. Many users wouldn't even be able to find
it themselves. But you could at least check the standard locations.

Richard


Ah, okay. I guess I was hoping for some kind of mini-settings file that
would only add or modify those specific lines when dropped into a
folder. Another thing some extendable programs use is a scripting API
(eg Gimp uses Python, VLC has Lua, etc.), which might then provide
commands like "lyx.config.converters.add(from, to, command, options)" to
let plugins mess around with settings while wrapping the internal logic.


Actually, this MIGHT be possible using the lyxserver interface, though 
LyX has to be running for that to work. The syntax would be something like:

lyxrc-apply \converter from to "command to run" "converter flags"
I.e., what follows is the converter line you wish to add.

Note that you would then have to save the preferences, as well, since 
that does not happen automatically:

preferences-save
Not sure how much this helps, though, since the user has to have set up 
the lyxpipes for the server to work. Typically, this is not done by default.


Totally not tested.

Richard



Re: Changing the dictum style in koma-script.

2013-11-21 Thread Jürgen Spitzmüller
Karl Richter-Trummer wrote:
> \newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
> 
> When i insert this in my document it gives me the error of "command 
> \dictumrule already defined"

Use \renewcommand instead of \newcommand.

Regards,
Jürgen


Re: creating a quiz /multiple choice questions with Lyx

2013-11-21 Thread Andrew Parsloe


On 21/11/2013 8:54 p.m., Andrew Parsloe wrote:

On 21/11/2013 10:03 a.m., Liviu Andronic wrote:

On Mon, Feb 4, 2013 at 10:17 PM, Andrew Parsloe
 wrote:

Riding my particular hobby horses, generating a randomized selection
looks
like a candidate for a python script after the fashion envisaged in
the pLyX
system (http://wiki.lyx.org/Examples/Examples).


Bad keybinding...

I was wondering, now that you're in midst of refactoring pLyX scripts,
whether you could easily come up with a Python script that could
achieve such randomized selection? Unfortunately my knowledge of
Python tends to zero, so I cannot quite hope to do this myself. I
don't actually need it now, but I'm curious if this can be done.

Please let me know,
Liviu



Since it is possible to sort a list, it should be straightforward. I
shall put it on my to-do list (which has a very random component to its
ordering).

Andrew

In fact, now done as part of the pLyX system using the list sorting 
script. If your questionnaire is in the form of a two-level list, 
questions at the top level, multi-choice answers at the sub-level, then, 
in the pLyX way, placing a ".sort list" custom inset just before the 
list with the sort specification "2r" in it ("2" for the sub-level, "r" 
for random) and clicking the pLyX buttons will randomise each sub-level 
list of potential answers. If the list had some sub-sub-level 
multi-choice answers, the sort spec. "2r3r" would do the trick. I'll try 
to update the documentation today and get it to you, Liviu, for the 
Dropbox repository later today.


Andrew


Changing the dictum style in koma-script.

2013-11-21 Thread Karl Richter-Trummer

Dear Lyxers

I am playing around with the dictum style for my thesis. I am using the 
koma-script-book class, it gives me automatically a very basic quotation 
right after the headline:


this is a quote (author)

I read in the coma script guide, in section 3.17 the dictum is described 
as having a line between the quote and the author, it says this can be 
defined by


\newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}

When i insert this in my document it gives me the error of "command 
\dictumrule already defined"


I am not very familiar with latex and its integration, so maybe i am 
doing so kids-error?


Yours

Karl


Re: Changing the dictum style in koma-script.

2013-11-21 Thread Karl Richter-Trummer
Jürgen Spitzmüller  lyx.org> writes:

> 
> Karl Richter-Trummer wrote:
> > \newcommand*{\dictumrule}{\vskip-1ex\hrulefill\par}
> > 
> > When i insert this in my document it gives me the error of "command 
> > \dictumrule already defined"
> 
> Use \renewcommand instead of \newcommand.
> 
> Regards,
> Jürgen
> 
> 

Thank you! It works now, not trowing the error, but it will not show a
horizontal line neither :(

Yours

Karl






Re: building/packaging a lyx module

2013-11-21 Thread Liviu Andronic
On Thu, Nov 21, 2013 at 4:47 PM, Richard Heck  wrote:
>> Ah, okay. I guess I was hoping for some kind of mini-settings file that
>> would only add or modify those specific lines when dropped into a
>> folder. Another thing some extendable programs use is a scripting API
>> (eg Gimp uses Python, VLC has Lua, etc.), which might then provide
>> commands like "lyx.config.converters.add(from, to, command, options)" to
>> let plugins mess around with settings while wrapping the internal logic.
>
>
> Actually, this MIGHT be possible using the lyxserver interface, though LyX
> has to be running for that to work. The syntax would be something like:
> lyxrc-apply \converter from to "command to run" "converter flags"
> I.e., what follows is the converter line you wish to add.
>

Hmm, how difficult would it be to have a CLI to this?

The reason I ask is that I've stumbled upon several instances where
adding a converter was proving a hindrance for users to try out a 3rd
party tool (and resulted in much prose and unnecessary screenshots
explaining how to manually add additional file types and converters to
LyX!). I can think of Andrew's pLyX (
http://wiki.lyx.org/Examples/PLyXSystem ) and Rob's  word2lyx (
http://blog.oak-tree.us/index.php/2012/03/08/word2lyx01-2 ). Providing
users with a 'lyx --add-converter [..]' command would be so much
neater.

Regards,
Liviu


> Note that you would then have to save the preferences, as well, since that
> does not happen automatically:
> preferences-save
> Not sure how much this helps, though, since the user has to have set up the
> lyxpipes for the server to work. Typically, this is not done by default.
>
> Totally not tested.
>
> Richard
>



-- 
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


How to set up mathematica

2013-11-21 Thread Sungki Hong
To whom it may concern,

I have been trying to set up mathematica with my lyx, but I simply got
confused. So what is the right step I should follow? I have downloaded
mathematica already. My system is Mac.

best,
Sungki