lyx2.1.0dev and svmult

2013-11-20 Thread Wolfgang Engelmann
Hello,

I thought lyx2.1. contains svmult (Springer). But downloading lyx2.1.0dev 
gives me a lyx2.1 which says 
checking for svmult NO
I use linuxmint
and have TeX, Version 3.1415926 (TeX Live 2013/Debian)

What should I do?
build 2.1. newer versions 
or 

copy svmultt1 

if so,  
would I copy it to /usr/share/texmf/tex/latex/
or could I copy it also to my local texmf
or even where my lyx file is?
(texhash, reconfigure, of course)

 svmultt1 contains under  template editor  templates several tex files for 
the different parts of a document

under templates author.tex figure.tex and reference.tex

which one would I load into my lyx file for the svmult style?

I was hoping there exists a template for lyx, perhaps in a more recent 
version of lyx2.1?

confused, as always:

Wolfgang



Re: lyx2.1.0dev and svmult

2013-11-20 Thread Jürgen Spitzmüller
2013/11/20 Wolfgang Engelmann

  Hello,



 I thought lyx2.1. contains svmult (Springer). But downloading lyx2.1.0dev
 gives me a lyx2.1 which says

 checking for svmult NO


As I told you in a previous mail [1]: LyX does notship LaTeX classes, but
only LyX layouts (the link between LyX and LaTeX classes).

Help  LaTeX Configuration tells you where you can download svmult (some
springer site, I suppose). Then install it in your personal texmf dir
(~/texmf/tex/latex), but this is what I told you in the previous mail as
well.

HTH
Jürgen

[1] http://marc.info/?l=lyx-usersm=138426898609178w=2


Re: lyx2.1.0dev and svmult

2013-11-20 Thread Wolfgang Engelmann
On Wednesday 20 November 2013 12:49:09 Jürgen Spitzmüller wrote:
 2013/11/20 Wolfgang Engelmann
 
   Hello,
  
  I thought lyx2.1. contains svmult (Springer). But downloading
  lyx2.1.0dev gives me a lyx2.1 which says
  
  checking for svmult NO
 
 As I told you in a previous mail [1]: LyX does notship LaTeX classes,
 but only LyX layouts (the link between LyX and LaTeX classes).

Thanks Jürgen. 

Question: does a lyx layout file for svmult exist? where?
 
 Help  LaTeX Configuration tells you where you can download svmult (some
 springer site, I suppose). 
I did this and Help  LaTeX Configuration gives me:

Springer Contributed Books
Found: ja
CTAN: ftp://ftp.springer.de/pub/tex/latex/svmultgl/
WWW: http://www.springeronline.com
Notes: svmult is for contributed books published by Springer Verlag. Please 
look at the templates for the structure of the book.


 Then install it in your personal texmf dir

which I did
 (~/texmf/tex/latex), but this is what I told you in the previous mail as
 well.

(~/texmf/tex/latex/Springer/svmultt1/templates/
contains among others author.lyx and referenc.lyx)

Would I use author.lyx and add the contents of my chapter into it?
The alternative would be (and I would prefer it) to have a svmult layout.

By the way, if I run the author.lyx 
 I get an inputenc Error
 which is due to an apostrophe in the cited reference 
  
l.161 ...phil-DOI} Suleiman, Camelia, Daniel C. O�
  Connell,
which I replaced in the referenc.lyx  with a '

Wolfgang


Re: lyx2.1.0dev and svmult

2013-11-20 Thread Jürgen Spitzmüller
2013/11/20 Wolfgang Engelmann

  Question: does a lyx layout file for svmult exist? where?


It is shipped with LyX, you'll find it in the layouts folder
(svmult.layout).


 

  Help  LaTeX Configuration tells you where you can download svmult (some

  springer site, I suppose).

 I did this and Help  LaTeX Configuration gives me:



 Springer Contributed Books

 Found: ja


Which means you have successfully installed the class and LyX finds it.


 (~/texmf/tex/latex/Springer/svmultt1/templates/

 contains among others author.lyx and referenc.lyx)


Look in the LyX examples directory. It also contains svmult example files.


 Would I use author.lyx and add the contents of my chapter into it?

 The alternative would be (and I would prefer it) to have a svmult layout.


I suppose so, but I am not familiar with that class.

Jürgen


Re: creating a quiz /multiple choice questions with Lyx

2013-11-20 Thread Liviu Andronic
Hello Andrew,


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

-- 
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: Cyrillic signs in BibTeX JabRef LyX

2013-11-20 Thread Guenter Milde
On 2013-11-19, Roel Schipper - CITG wrote:

 The original bibtex does not understand non-ASCII charcters.
 There is an 8-bit clean fork (bibtex8).

 If you use literal German umlauts in your *.bib file without problems,
 this is a sign that bibtex8 is used.

 Until now, I used the {\} encoding for German umlauts etc.

Then I recommend to use LaTeX Internal Character Representation (LICR) as
encoding for Cyrillic, too.

 What is the encoding of the bibtex file?

 I have put this to UTF-8; now at least LyX recognizes the reference:
 when I keep my mouse over the citation, LyX shows the Cyrillic
 characters.

 Do you use utf-8 for the exported LaTeX file?
 (DocumentSettingsLanguageEncoding)

 It is on Language Default (no inputenc) now; my language is English. 

Language Default (no inputenc) is an advanced setting. It requires you
either to use pure ASCII or to insert some input converter by hand (e.g.
in the document preamble). Use this only if absolutely required.

However, it may be that you did not change the radiobutton, so that while
the drop-down box shows this text the setting is Language default.

 As soon as I put it on UTF-8 the complete Bibliography chapter will
 disappear at the end of the document after compiling.

Strange. There should be some error report. Maybe this is related to BibTeX
not working with utf8 and will go away if you have your bibfile in pure
ASCII with LICR.

What happens with setting encoding to ASCII?

 Does Cyrillic work, if you drag-and-drop it into the document (just as
 a test)?

 Yes, although in another font than the rest of the text.

For fixing the font issue, you may try the substituefont package
(http://www.ctan.org/pkg/substitutefont has an example file in the
documentation) or (if this is possible for your document) using a font
supporting Cyrillic like Linux Libertine or Deja Vu.

...

 While in the main document, all captions etc are translated to in
 Russian and shown in perfect Cyrillic characters ??? I am clueless.
 

 Alternatively, you may try to write the Cyrillic characters as LICR
 macros (\cyra ... \cyrja) - this should solve utf-8 problems but you
 still need correct fonts and the correct language setting (so switch
 the TeX font encoding).

It seems like you need either to switch to biblatex (I don't know whether
this works with LyX) or

* LICR macros and
* \foreignlanguage{russian}{cyrillic text} around all cyrillic text
  parts in the *.bib file.
  
For conversion of UTF8 encoded characters into LICR, there may be an option
in the BibTeX program (encoding ASCII or similar).
You can also try the recode command line program or LyX:

If you apply the following patch to a copy of unicodesymbols in your
local LyX folder, LyX will do the conversion. Copy/Paste the Cyrillic
text into LyX, set LanguageEncoding to ASCII and see the result with
ViewSource or in an exported LaTeX file.

Günter




Re: Cyrillic signs in BibTeX JabRef LyX

2013-11-20 Thread Guenter Milde
I forgot the patch:

--- /home/milde/.lyx-svn/unicodesymbols 2013-04-03 15:15:47.0 +0200
+++ /usr/local/src/lyx/lib/unicodesymbols   2013-03-25 14:47:18.0 
+0100
@@ -875,213 +875,103 @@
 #
 # Cyrillic
 #
-# textcyr selects LaTeX font encoding T2A
-0x0400 \\textcyr{\\`\\CYRE} textcyr  # CYRILLIC CAPITAL LETTER IE 
WITH GRAVE
-0x0401 \\textcyr{\\CYRYO}   textcyr  # CYRILLIC CAPITAL LETTER IO
-0x0402 \\textcyr{\\CYRDJE}  textcyr  # CYRILLIC CAPITAL LETTER DJE
-0x0403 \\textcyr{\\`\\CYRG} textcyr  # CYRILLIC CAPITAL LETTER GJE
-0x0404 \\textcyr{\\CYRIE}   textcyr  # CYRILLIC CAPITAL LETTER 
UKRAINIAN IE
-0x0405 \\textcyr{\\CYRDZE}  textcyr  # CYRILLIC CAPITAL LETTER DZE
-0x0406 \\textcyr{\\CYRII}   textcyr  # CYRILLIC CAPITAL LETTER 
BYELORUSSIAN-UKRAINIAN I
-0x0407 \\textcyr{\\CYRYI}   textcyr  # CYRILLIC CAPITAL LETTER YI
-0x0408 \\textcyr{\\CYRJE}   textcyr  # CYRILLIC CAPITAL LETTER JE
-0x0409 \\textcyr{\\CYRLJE}  textcyr  # CYRILLIC CAPITAL LETTER LJE
-0x040a \\textcyr{\\CYRNJE}  textcyr  # CYRILLIC CAPITAL LETTER NJE
-0x040b \\textcyr{\\CYRTSHE} textcyr  # CYRILLIC CAPITAL LETTER TSHE
-0x040c \\textcyr{\\`\\CYRK} textcyr  # CYRILLIC CAPITAL LETTER KJE
-0x040d \\textcyr{\\`\\CYRI} textcyr  # CYRILLIC CAPITAL LETTER I 
WITH GRAVE
-0x040e \\textcyr{\\CYRUSHRT}textcyr  # CYRILLIC CAPITAL LETTER SHORT 
U
-0x040f \\textcyr{\\CYRDZHE} textcyr  # CYRILLIC CAPITAL LETTER DZHE
-0x0410 \\textcyr{\\CYRA}textcyr  # CYRILLIC CAPITAL LETTER A
-0x0411 \\textcyr{\\CYRB}textcyr  # CYRILLIC CAPITAL LETTER BE
-0x0412 \\textcyr{\\CYRV}textcyr  # CYRILLIC CAPITAL LETTER VE
-0x0413 \\textcyr{\\CYRG}textcyr  # CYRILLIC CAPITAL LETTER GHE
-0x0414 \\textcyr{\\CYRD}textcyr  # CYRILLIC CAPITAL LETTER DE
-0x0415 \\textcyr{\\CYRE}textcyr  # CYRILLIC CAPITAL LETTER IE
-0x0416 \\textcyr{\\CYRZH}   textcyr  # CYRILLIC CAPITAL LETTER ZHE
-0x0417 \\textcyr{\\CYRZ}textcyr  # CYRILLIC CAPITAL LETTER ZE
-0x0418 \\textcyr{\\CYRI}textcyr  # CYRILLIC CAPITAL LETTER I
-0x0419 \\textcyr{\\CYRISHRT}textcyr  # CYRILLIC CAPITAL LETTER SHORT 
I
-0x041a \\textcyr{\\CYRK}textcyr  # CYRILLIC CAPITAL LETTER KA
-0x041b \\textcyr{\\CYRL}textcyr  # CYRILLIC CAPITAL LETTER EL
-0x041c \\textcyr{\\CYRM}textcyr  # CYRILLIC CAPITAL LETTER EM
-0x041d \\textcyr{\\CYRN}textcyr  # CYRILLIC CAPITAL LETTER EN
-0x041e \\textcyr{\\CYRO}textcyr  # CYRILLIC CAPITAL LETTER O
-0x041f \\textcyr{\\CYRP}textcyr  # CYRILLIC CAPITAL LETTER PE
-0x0420 \\textcyr{\\CYRR}textcyr  # CYRILLIC CAPITAL LETTER ER
-0x0421 \\textcyr{\\CYRS}textcyr  # CYRILLIC CAPITAL LETTER ES
-0x0422 \\textcyr{\\CYRT}textcyr  # CYRILLIC CAPITAL LETTER TE
-0x0423 \\textcyr{\\CYRU}textcyr  # CYRILLIC CAPITAL LETTER U
-0x0424 \\textcyr{\\CYRF}textcyr  # CYRILLIC CAPITAL LETTER EF
-0x0425 \\textcyr{\\CYRH}textcyr  # CYRILLIC CAPITAL LETTER HA
-0x0426 \\textcyr{\\CYRC}textcyr  # CYRILLIC CAPITAL LETTER TSE
-0x0427 \\textcyr{\\CYRCH}   textcyr  # CYRILLIC CAPITAL LETTER CHE
-0x0428 \\textcyr{\\CYRSH}   textcyr  # CYRILLIC CAPITAL LETTER SHA
-0x0429 \\textcyr{\\CYRSHCH} textcyr  # CYRILLIC CAPITAL LETTER SHCHA
-0x042a \\textcyr{\\CYRHRDSN}textcyr  # CYRILLIC CAPITAL LETTER HARD 
SIGN
-0x042b \\textcyr{\\CYRERY}  textcyr  # CYRILLIC CAPITAL LETTER YERU
-0x042c \\textcyr{\\CYRSFTSN}textcyr  # CYRILLIC CAPITAL LETTER SOFT 
SIGN
-0x042d \\textcyr{\\CYREREV} textcyr  # CYRILLIC CAPITAL LETTER E
-0x042e \\textcyr{\\CYRYU}   textcyr  # CYRILLIC CAPITAL LETTER YU
-0x042f \\textcyr{\\CYRYA}   textcyr  # CYRILLIC CAPITAL LETTER YA
-0x0430 \\textcyr{\\cyra}textcyr  # CYRILLIC SMALL LETTER A
-0x0431 \\textcyr{\\cyrb}textcyr  # CYRILLIC SMALL LETTER BE
-0x0432 \\textcyr{\\cyrv}textcyr  # CYRILLIC SMALL LETTER VE
-0x0433 \\textcyr{\\cyrg}textcyr  # CYRILLIC SMALL LETTER GHE
-0x0434 \\textcyr{\\cyrd}textcyr  # CYRILLIC SMALL LETTER DE
-0x0435 \\textcyr{\\cyre}textcyr  # CYRILLIC SMALL LETTER IE
-0x0436 \\textcyr{\\cyrzh}   textcyr  # CYRILLIC SMALL LETTER ZHE
-0x0437 \\textcyr{\\cyrz}textcyr  # CYRILLIC SMALL LETTER ZE
-0x0438 \\textcyr{\\cyri}textcyr  # CYRILLIC SMALL LETTER I
-0x0439 \\textcyr{\\cyrishrt}textcyr  # CYRILLIC SMALL LETTER SHORT I
-0x043a \\textcyr{\\cyrk}textcyr  # CYRILLIC SMALL LETTER KA
-0x043b \\textcyr{\\cyrl}textcyr  # CYRILLIC SMALL LETTER EL
-0x043c \\textcyr{\\cyrm}textcyr  # CYRILLIC SMALL LETTER EM
-0x043d \\textcyr{\\cyrn}textcyr  # CYRILLIC SMALL LETTER EN
-0x043e \\textcyr{\\cyro}textcyr  # CYRILLIC SMALL LETTER O
-0x043f \\textcyr{\\cyrp}textcyr  # CYRILLIC SMALL LETTER PE
-0x0440 \\textcyr{\\cyrr}textcyr  # CYRILLIC SMALL LETTER ER
-0x0441 \\textcyr{\\cyrs}textcyr  # 

Re: Cyrillic signs in BibTeX JabRef LyX

2013-11-20 Thread stefano franchi
On Wed, Nov 20, 2013 at 4:25 PM, Guenter Milde mi...@users.sf.net wrote:

 On 2013-11-19, Roel Schipper - CITG wrote:
  Alternatively, you may try to write the Cyrillic characters as LICR
  macros (\cyra ... \cyrja) - this should solve utf-8 problems but you
  still need correct fonts and the correct language setting (so switch
  the TeX font encoding).

 It seems like you need either to switch to biblatex (I don't know whether
 this works with LyX) or



biblatex does work with lyx, but it requires some workarounds (assuming the
question was not restricted to cyrillic)
The lyx wiki provides instructions.

S.





-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


building/packaging a lyx module

2013-11-20 Thread Christoph Burschka
Hi,

I'm currently trying to write a lyx module (for my own use, though it
may end up on github eventually) that roughly imitates for Python what
knitr/sweave are doing with R:

- Provide an inset for noweb-like code blocks
- Run the file through a pre-processor to interpret those blocks
- Continue Latex compilation with the output inserted.

The first prototype seems to work, but it took quite a bit of
configuring. Adding the module was easy enough (putting the .module in
~/.lyx/layouts, the Python script in ~/.lyx/scripts), but I had to
manually add the file formats and converters to the settings; something
like
pyweave-latex : python3 $$s/scripts/python-weave.py $$i $$o

Is there any way to set up stuff like that automatically with an
installation script? Ideally, I'd want to package the module so I can
install it on other systems without manually configuring anything.

Thanks!

(using a 2.1.0 build compiled from git)



signature.asc
Description: OpenPGP digital signature


Re: building/packaging a lyx module

2013-11-20 Thread Richard Heck

On 11/20/2013 08:00 PM, Christoph Burschka wrote:

Hi,

I'm currently trying to write a lyx module (for my own use, though it
may end up on github eventually) that roughly imitates for Python what
knitr/sweave are doing with R:

- Provide an inset for noweb-like code blocks
- Run the file through a pre-processor to interpret those blocks
- Continue Latex compilation with the output inserted.

The first prototype seems to work, but it took quite a bit of
configuring. Adding the module was easy enough (putting the .module in
~/.lyx/layouts, the Python script in ~/.lyx/scripts), but I had to
manually add the file formats and converters to the settings; something
like
pyweave-latex : python3 $$s/scripts/python-weave.py $$i $$o

Is there any way to set up stuff like that automatically with an
installation script? Ideally, I'd want to package the module so I can
install it on other systems without manually configuring anything.


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



Re: Change tab hotkey

2013-11-20 Thread Daniel CLEMENT
Forgive me for replyint so late to this thread, but I too would like to
set up such a shortcut...

Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
 On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas gaboro...@gmail.com wrote:
 
  Hi:
 
  I would like to know if there is any way for quickly change between document
  tabs in lyx using a hotkey, or if you can give me a link with instructions
  to do this.
 
 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...

 
 Liviu
TIA,
-- 
Daniel CLEMENT


Re: Change tab hotkey

2013-11-20 Thread Liviu Andronic
On Thu, Nov 21, 2013 at 7:42 AM, Daniel CLEMENT dcleme...@laposte.net wrote:
 Forgive me for replyint so late to this thread, but I too would like to
 set up such a shortcut...

 Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
 On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas gaboro...@gmail.com wrote:
 
  Hi:
 
  I would like to know if there is any way for quickly change between 
  document
  tabs in lyx using a hotkey, or if you can give me a link with instructions
  to do this.
 
 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.

Liviu



 Liviu
 TIA,
 --
 Daniel CLEMENT



-- 
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: Change tab hotkey

2013-11-20 Thread Scott Kostyshak
On Thu, Nov 21, 2013 at 1:59 AM, Liviu Andronic landronim...@gmail.com wrote:
 On Thu, Nov 21, 2013 at 7:42 AM, Daniel CLEMENT dcleme...@laposte.net wrote:
 Forgive me for replyint so late to this thread, but I too would like to
 set up such a shortcut...

 Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
 On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas gaboro...@gmail.com wrote:
 
  Hi:
 
  I would like to know if there is any way for quickly change between 
  document
  tabs in lyx using a hotkey, or if you can give me a link with instructions
  to do this.
 
 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'. 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).

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


Re: building/packaging a lyx module

2013-11-20 Thread Christoph Burschka
[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.

Those might be cool features for some remote future version, though I
have no idea how much demand there would be to justify them.


Cheers,
Christoph



signature.asc
Description: OpenPGP digital signature


Re: creating a quiz /multiple choice questions with Lyx

2013-11-20 Thread Andrew Parsloe

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


lyx2.1.0dev and svmult

2013-11-20 Thread Wolfgang Engelmann
Hello,

I thought lyx2.1. contains svmult (Springer). But downloading lyx2.1.0dev 
gives me a lyx2.1 which says 
checking for svmult NO
I use linuxmint
and have TeX, Version 3.1415926 (TeX Live 2013/Debian)

What should I do?
build 2.1. newer versions 
or 

copy svmultt1 

if so,  
would I copy it to /usr/share/texmf/tex/latex/
or could I copy it also to my local texmf
or even where my lyx file is?
(texhash, reconfigure, of course)

 svmultt1 contains under  template editor  templates several tex files for 
the different parts of a document

under templates author.tex figure.tex and reference.tex

which one would I load into my lyx file for the svmult style?

I was hoping there exists a template for lyx, perhaps in a more recent 
version of lyx2.1?

confused, as always:

Wolfgang



Re: lyx2.1.0dev and svmult

2013-11-20 Thread Jürgen Spitzmüller
2013/11/20 Wolfgang Engelmann

  Hello,



 I thought lyx2.1. contains svmult (Springer). But downloading lyx2.1.0dev
 gives me a lyx2.1 which says

 checking for svmult NO


As I told you in a previous mail [1]: LyX does notship LaTeX classes, but
only LyX layouts (the link between LyX and LaTeX classes).

Help  LaTeX Configuration tells you where you can download svmult (some
springer site, I suppose). Then install it in your personal texmf dir
(~/texmf/tex/latex), but this is what I told you in the previous mail as
well.

HTH
Jürgen

[1] http://marc.info/?l=lyx-usersm=138426898609178w=2


Re: lyx2.1.0dev and svmult

2013-11-20 Thread Wolfgang Engelmann
On Wednesday 20 November 2013 12:49:09 Jürgen Spitzmüller wrote:
 2013/11/20 Wolfgang Engelmann
 
   Hello,
  
  I thought lyx2.1. contains svmult (Springer). But downloading
  lyx2.1.0dev gives me a lyx2.1 which says
  
  checking for svmult NO
 
 As I told you in a previous mail [1]: LyX does notship LaTeX classes,
 but only LyX layouts (the link between LyX and LaTeX classes).

Thanks Jürgen. 

Question: does a lyx layout file for svmult exist? where?
 
 Help  LaTeX Configuration tells you where you can download svmult (some
 springer site, I suppose). 
I did this and Help  LaTeX Configuration gives me:

Springer Contributed Books
Found: ja
CTAN: ftp://ftp.springer.de/pub/tex/latex/svmultgl/
WWW: http://www.springeronline.com
Notes: svmult is for contributed books published by Springer Verlag. Please 
look at the templates for the structure of the book.


 Then install it in your personal texmf dir

which I did
 (~/texmf/tex/latex), but this is what I told you in the previous mail as
 well.

(~/texmf/tex/latex/Springer/svmultt1/templates/
contains among others author.lyx and referenc.lyx)

Would I use author.lyx and add the contents of my chapter into it?
The alternative would be (and I would prefer it) to have a svmult layout.

By the way, if I run the author.lyx 
 I get an inputenc Error
 which is due to an apostrophe in the cited reference 
  
l.161 ...phil-DOI} Suleiman, Camelia, Daniel C. O�
  Connell,
which I replaced in the referenc.lyx  with a '

Wolfgang


Re: lyx2.1.0dev and svmult

2013-11-20 Thread Jürgen Spitzmüller
2013/11/20 Wolfgang Engelmann

  Question: does a lyx layout file for svmult exist? where?


It is shipped with LyX, you'll find it in the layouts folder
(svmult.layout).


 

  Help  LaTeX Configuration tells you where you can download svmult (some

  springer site, I suppose).

 I did this and Help  LaTeX Configuration gives me:



 Springer Contributed Books

 Found: ja


Which means you have successfully installed the class and LyX finds it.


 (~/texmf/tex/latex/Springer/svmultt1/templates/

 contains among others author.lyx and referenc.lyx)


Look in the LyX examples directory. It also contains svmult example files.


 Would I use author.lyx and add the contents of my chapter into it?

 The alternative would be (and I would prefer it) to have a svmult layout.


I suppose so, but I am not familiar with that class.

Jürgen


Re: creating a quiz /multiple choice questions with Lyx

2013-11-20 Thread Liviu Andronic
Hello Andrew,


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

-- 
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: Cyrillic signs in BibTeX JabRef LyX

2013-11-20 Thread Guenter Milde
On 2013-11-19, Roel Schipper - CITG wrote:

 The original bibtex does not understand non-ASCII charcters.
 There is an 8-bit clean fork (bibtex8).

 If you use literal German umlauts in your *.bib file without problems,
 this is a sign that bibtex8 is used.

 Until now, I used the {\} encoding for German umlauts etc.

Then I recommend to use LaTeX Internal Character Representation (LICR) as
encoding for Cyrillic, too.

 What is the encoding of the bibtex file?

 I have put this to UTF-8; now at least LyX recognizes the reference:
 when I keep my mouse over the citation, LyX shows the Cyrillic
 characters.

 Do you use utf-8 for the exported LaTeX file?
 (DocumentSettingsLanguageEncoding)

 It is on Language Default (no inputenc) now; my language is English. 

Language Default (no inputenc) is an advanced setting. It requires you
either to use pure ASCII or to insert some input converter by hand (e.g.
in the document preamble). Use this only if absolutely required.

However, it may be that you did not change the radiobutton, so that while
the drop-down box shows this text the setting is Language default.

 As soon as I put it on UTF-8 the complete Bibliography chapter will
 disappear at the end of the document after compiling.

Strange. There should be some error report. Maybe this is related to BibTeX
not working with utf8 and will go away if you have your bibfile in pure
ASCII with LICR.

What happens with setting encoding to ASCII?

 Does Cyrillic work, if you drag-and-drop it into the document (just as
 a test)?

 Yes, although in another font than the rest of the text.

For fixing the font issue, you may try the substituefont package
(http://www.ctan.org/pkg/substitutefont has an example file in the
documentation) or (if this is possible for your document) using a font
supporting Cyrillic like Linux Libertine or Deja Vu.

...

 While in the main document, all captions etc are translated to in
 Russian and shown in perfect Cyrillic characters ??? I am clueless.
 

 Alternatively, you may try to write the Cyrillic characters as LICR
 macros (\cyra ... \cyrja) - this should solve utf-8 problems but you
 still need correct fonts and the correct language setting (so switch
 the TeX font encoding).

It seems like you need either to switch to biblatex (I don't know whether
this works with LyX) or

* LICR macros and
* \foreignlanguage{russian}{cyrillic text} around all cyrillic text
  parts in the *.bib file.
  
For conversion of UTF8 encoded characters into LICR, there may be an option
in the BibTeX program (encoding ASCII or similar).
You can also try the recode command line program or LyX:

If you apply the following patch to a copy of unicodesymbols in your
local LyX folder, LyX will do the conversion. Copy/Paste the Cyrillic
text into LyX, set LanguageEncoding to ASCII and see the result with
ViewSource or in an exported LaTeX file.

Günter




Re: Cyrillic signs in BibTeX JabRef LyX

2013-11-20 Thread Guenter Milde
I forgot the patch:

--- /home/milde/.lyx-svn/unicodesymbols 2013-04-03 15:15:47.0 +0200
+++ /usr/local/src/lyx/lib/unicodesymbols   2013-03-25 14:47:18.0 
+0100
@@ -875,213 +875,103 @@
 #
 # Cyrillic
 #
-# textcyr selects LaTeX font encoding T2A
-0x0400 \\textcyr{\\`\\CYRE} textcyr  # CYRILLIC CAPITAL LETTER IE 
WITH GRAVE
-0x0401 \\textcyr{\\CYRYO}   textcyr  # CYRILLIC CAPITAL LETTER IO
-0x0402 \\textcyr{\\CYRDJE}  textcyr  # CYRILLIC CAPITAL LETTER DJE
-0x0403 \\textcyr{\\`\\CYRG} textcyr  # CYRILLIC CAPITAL LETTER GJE
-0x0404 \\textcyr{\\CYRIE}   textcyr  # CYRILLIC CAPITAL LETTER 
UKRAINIAN IE
-0x0405 \\textcyr{\\CYRDZE}  textcyr  # CYRILLIC CAPITAL LETTER DZE
-0x0406 \\textcyr{\\CYRII}   textcyr  # CYRILLIC CAPITAL LETTER 
BYELORUSSIAN-UKRAINIAN I
-0x0407 \\textcyr{\\CYRYI}   textcyr  # CYRILLIC CAPITAL LETTER YI
-0x0408 \\textcyr{\\CYRJE}   textcyr  # CYRILLIC CAPITAL LETTER JE
-0x0409 \\textcyr{\\CYRLJE}  textcyr  # CYRILLIC CAPITAL LETTER LJE
-0x040a \\textcyr{\\CYRNJE}  textcyr  # CYRILLIC CAPITAL LETTER NJE
-0x040b \\textcyr{\\CYRTSHE} textcyr  # CYRILLIC CAPITAL LETTER TSHE
-0x040c \\textcyr{\\`\\CYRK} textcyr  # CYRILLIC CAPITAL LETTER KJE
-0x040d \\textcyr{\\`\\CYRI} textcyr  # CYRILLIC CAPITAL LETTER I 
WITH GRAVE
-0x040e \\textcyr{\\CYRUSHRT}textcyr  # CYRILLIC CAPITAL LETTER SHORT 
U
-0x040f \\textcyr{\\CYRDZHE} textcyr  # CYRILLIC CAPITAL LETTER DZHE
-0x0410 \\textcyr{\\CYRA}textcyr  # CYRILLIC CAPITAL LETTER A
-0x0411 \\textcyr{\\CYRB}textcyr  # CYRILLIC CAPITAL LETTER BE
-0x0412 \\textcyr{\\CYRV}textcyr  # CYRILLIC CAPITAL LETTER VE
-0x0413 \\textcyr{\\CYRG}textcyr  # CYRILLIC CAPITAL LETTER GHE
-0x0414 \\textcyr{\\CYRD}textcyr  # CYRILLIC CAPITAL LETTER DE
-0x0415 \\textcyr{\\CYRE}textcyr  # CYRILLIC CAPITAL LETTER IE
-0x0416 \\textcyr{\\CYRZH}   textcyr  # CYRILLIC CAPITAL LETTER ZHE
-0x0417 \\textcyr{\\CYRZ}textcyr  # CYRILLIC CAPITAL LETTER ZE
-0x0418 \\textcyr{\\CYRI}textcyr  # CYRILLIC CAPITAL LETTER I
-0x0419 \\textcyr{\\CYRISHRT}textcyr  # CYRILLIC CAPITAL LETTER SHORT 
I
-0x041a \\textcyr{\\CYRK}textcyr  # CYRILLIC CAPITAL LETTER KA
-0x041b \\textcyr{\\CYRL}textcyr  # CYRILLIC CAPITAL LETTER EL
-0x041c \\textcyr{\\CYRM}textcyr  # CYRILLIC CAPITAL LETTER EM
-0x041d \\textcyr{\\CYRN}textcyr  # CYRILLIC CAPITAL LETTER EN
-0x041e \\textcyr{\\CYRO}textcyr  # CYRILLIC CAPITAL LETTER O
-0x041f \\textcyr{\\CYRP}textcyr  # CYRILLIC CAPITAL LETTER PE
-0x0420 \\textcyr{\\CYRR}textcyr  # CYRILLIC CAPITAL LETTER ER
-0x0421 \\textcyr{\\CYRS}textcyr  # CYRILLIC CAPITAL LETTER ES
-0x0422 \\textcyr{\\CYRT}textcyr  # CYRILLIC CAPITAL LETTER TE
-0x0423 \\textcyr{\\CYRU}textcyr  # CYRILLIC CAPITAL LETTER U
-0x0424 \\textcyr{\\CYRF}textcyr  # CYRILLIC CAPITAL LETTER EF
-0x0425 \\textcyr{\\CYRH}textcyr  # CYRILLIC CAPITAL LETTER HA
-0x0426 \\textcyr{\\CYRC}textcyr  # CYRILLIC CAPITAL LETTER TSE
-0x0427 \\textcyr{\\CYRCH}   textcyr  # CYRILLIC CAPITAL LETTER CHE
-0x0428 \\textcyr{\\CYRSH}   textcyr  # CYRILLIC CAPITAL LETTER SHA
-0x0429 \\textcyr{\\CYRSHCH} textcyr  # CYRILLIC CAPITAL LETTER SHCHA
-0x042a \\textcyr{\\CYRHRDSN}textcyr  # CYRILLIC CAPITAL LETTER HARD 
SIGN
-0x042b \\textcyr{\\CYRERY}  textcyr  # CYRILLIC CAPITAL LETTER YERU
-0x042c \\textcyr{\\CYRSFTSN}textcyr  # CYRILLIC CAPITAL LETTER SOFT 
SIGN
-0x042d \\textcyr{\\CYREREV} textcyr  # CYRILLIC CAPITAL LETTER E
-0x042e \\textcyr{\\CYRYU}   textcyr  # CYRILLIC CAPITAL LETTER YU
-0x042f \\textcyr{\\CYRYA}   textcyr  # CYRILLIC CAPITAL LETTER YA
-0x0430 \\textcyr{\\cyra}textcyr  # CYRILLIC SMALL LETTER A
-0x0431 \\textcyr{\\cyrb}textcyr  # CYRILLIC SMALL LETTER BE
-0x0432 \\textcyr{\\cyrv}textcyr  # CYRILLIC SMALL LETTER VE
-0x0433 \\textcyr{\\cyrg}textcyr  # CYRILLIC SMALL LETTER GHE
-0x0434 \\textcyr{\\cyrd}textcyr  # CYRILLIC SMALL LETTER DE
-0x0435 \\textcyr{\\cyre}textcyr  # CYRILLIC SMALL LETTER IE
-0x0436 \\textcyr{\\cyrzh}   textcyr  # CYRILLIC SMALL LETTER ZHE
-0x0437 \\textcyr{\\cyrz}textcyr  # CYRILLIC SMALL LETTER ZE
-0x0438 \\textcyr{\\cyri}textcyr  # CYRILLIC SMALL LETTER I
-0x0439 \\textcyr{\\cyrishrt}textcyr  # CYRILLIC SMALL LETTER SHORT I
-0x043a \\textcyr{\\cyrk}textcyr  # CYRILLIC SMALL LETTER KA
-0x043b \\textcyr{\\cyrl}textcyr  # CYRILLIC SMALL LETTER EL
-0x043c \\textcyr{\\cyrm}textcyr  # CYRILLIC SMALL LETTER EM
-0x043d \\textcyr{\\cyrn}textcyr  # CYRILLIC SMALL LETTER EN
-0x043e \\textcyr{\\cyro}textcyr  # CYRILLIC SMALL LETTER O
-0x043f \\textcyr{\\cyrp}textcyr  # CYRILLIC SMALL LETTER PE
-0x0440 \\textcyr{\\cyrr}textcyr  # CYRILLIC SMALL LETTER ER
-0x0441 \\textcyr{\\cyrs}textcyr  # 

Re: Cyrillic signs in BibTeX JabRef LyX

2013-11-20 Thread stefano franchi
On Wed, Nov 20, 2013 at 4:25 PM, Guenter Milde mi...@users.sf.net wrote:

 On 2013-11-19, Roel Schipper - CITG wrote:
  Alternatively, you may try to write the Cyrillic characters as LICR
  macros (\cyra ... \cyrja) - this should solve utf-8 problems but you
  still need correct fonts and the correct language setting (so switch
  the TeX font encoding).

 It seems like you need either to switch to biblatex (I don't know whether
 this works with LyX) or



biblatex does work with lyx, but it requires some workarounds (assuming the
question was not restricted to cyrillic)
The lyx wiki provides instructions.

S.





-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


building/packaging a lyx module

2013-11-20 Thread Christoph Burschka
Hi,

I'm currently trying to write a lyx module (for my own use, though it
may end up on github eventually) that roughly imitates for Python what
knitr/sweave are doing with R:

- Provide an inset for noweb-like code blocks
- Run the file through a pre-processor to interpret those blocks
- Continue Latex compilation with the output inserted.

The first prototype seems to work, but it took quite a bit of
configuring. Adding the module was easy enough (putting the .module in
~/.lyx/layouts, the Python script in ~/.lyx/scripts), but I had to
manually add the file formats and converters to the settings; something
like
pyweave-latex : python3 $$s/scripts/python-weave.py $$i $$o

Is there any way to set up stuff like that automatically with an
installation script? Ideally, I'd want to package the module so I can
install it on other systems without manually configuring anything.

Thanks!

(using a 2.1.0 build compiled from git)



signature.asc
Description: OpenPGP digital signature


Re: building/packaging a lyx module

2013-11-20 Thread Richard Heck

On 11/20/2013 08:00 PM, Christoph Burschka wrote:

Hi,

I'm currently trying to write a lyx module (for my own use, though it
may end up on github eventually) that roughly imitates for Python what
knitr/sweave are doing with R:

- Provide an inset for noweb-like code blocks
- Run the file through a pre-processor to interpret those blocks
- Continue Latex compilation with the output inserted.

The first prototype seems to work, but it took quite a bit of
configuring. Adding the module was easy enough (putting the .module in
~/.lyx/layouts, the Python script in ~/.lyx/scripts), but I had to
manually add the file formats and converters to the settings; something
like
pyweave-latex : python3 $$s/scripts/python-weave.py $$i $$o

Is there any way to set up stuff like that automatically with an
installation script? Ideally, I'd want to package the module so I can
install it on other systems without manually configuring anything.


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



Re: Change tab hotkey

2013-11-20 Thread Daniel CLEMENT
Forgive me for replyint so late to this thread, but I too would like to
set up such a shortcut...

Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
 On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas gaboro...@gmail.com wrote:
 
  Hi:
 
  I would like to know if there is any way for quickly change between document
  tabs in lyx using a hotkey, or if you can give me a link with instructions
  to do this.
 
 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...

 
 Liviu
TIA,
-- 
Daniel CLEMENT


Re: Change tab hotkey

2013-11-20 Thread Liviu Andronic
On Thu, Nov 21, 2013 at 7:42 AM, Daniel CLEMENT dcleme...@laposte.net wrote:
 Forgive me for replyint so late to this thread, but I too would like to
 set up such a shortcut...

 Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
 On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas gaboro...@gmail.com wrote:
 
  Hi:
 
  I would like to know if there is any way for quickly change between 
  document
  tabs in lyx using a hotkey, or if you can give me a link with instructions
  to do this.
 
 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.

Liviu



 Liviu
 TIA,
 --
 Daniel CLEMENT



-- 
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: Change tab hotkey

2013-11-20 Thread Scott Kostyshak
On Thu, Nov 21, 2013 at 1:59 AM, Liviu Andronic landronim...@gmail.com wrote:
 On Thu, Nov 21, 2013 at 7:42 AM, Daniel CLEMENT dcleme...@laposte.net wrote:
 Forgive me for replyint so late to this thread, but I too would like to
 set up such a shortcut...

 Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
 On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas gaboro...@gmail.com wrote:
 
  Hi:
 
  I would like to know if there is any way for quickly change between 
  document
  tabs in lyx using a hotkey, or if you can give me a link with instructions
  to do this.
 
 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'. 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).

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


Re: building/packaging a lyx module

2013-11-20 Thread Christoph Burschka
[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.

Those might be cool features for some remote future version, though I
have no idea how much demand there would be to justify them.


Cheers,
Christoph



signature.asc
Description: OpenPGP digital signature


Re: creating a quiz /multiple choice questions with Lyx

2013-11-20 Thread Andrew Parsloe

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


lyx2.1.0dev and svmult

2013-11-20 Thread Wolfgang Engelmann
Hello,

I thought lyx2.1. contains svmult (Springer). But downloading lyx2.1.0dev 
gives me a lyx2.1 which says 
checking for svmult NO
I use linuxmint
and have TeX, Version 3.1415926 (TeX Live 2013/Debian)

What should I do?
build 2.1. newer versions 
or 

copy svmultt1 

if so,  
would I copy it to /usr/share/texmf/tex/latex/
or could I copy it also to my local texmf
or even where my lyx file is?
(texhash, reconfigure, of course)

 svmultt1 contains under  template editor > templates several tex files for 
the different parts of a document

under templates author.tex figure.tex and reference.tex

which one would I load into my lyx file for the svmult style?

I was hoping there exists a template for lyx, perhaps in a more recent 
version of lyx2.1?

confused, as always:

Wolfgang



Re: lyx2.1.0dev and svmult

2013-11-20 Thread Jürgen Spitzmüller
2013/11/20 Wolfgang Engelmann

>  Hello,
>
>
>
> I thought lyx2.1. contains svmult (Springer). But downloading lyx2.1.0dev
> gives me a lyx2.1 which says
>
> checking for svmult NO
>

As I told you in a previous mail [1]: LyX does notship LaTeX classes, but
only LyX layouts (the link between LyX and LaTeX classes).

Help > LaTeX Configuration tells you where you can download svmult (some
springer site, I suppose). Then install it in your personal texmf dir
(~/texmf/tex/latex), but this is what I told you in the previous mail as
well.

HTH
Jürgen

[1] http://marc.info/?l=lyx-users=138426898609178=2


Re: lyx2.1.0dev and svmult

2013-11-20 Thread Wolfgang Engelmann
On Wednesday 20 November 2013 12:49:09 Jürgen Spitzmüller wrote:
> 2013/11/20 Wolfgang Engelmann
> 
> >  Hello,
> > 
> > I thought lyx2.1. contains svmult (Springer). But downloading
> > lyx2.1.0dev gives me a lyx2.1 which says
> > 
> > checking for svmult NO
> 
> As I told you in a previous mail [1]: LyX does notship LaTeX classes,
> but only LyX layouts (the link between LyX and LaTeX classes).

Thanks Jürgen. 

Question: does a lyx layout file for svmult exist? where?
> 
> Help > LaTeX Configuration tells you where you can download svmult (some
> springer site, I suppose). 
I did this and Help > LaTeX Configuration gives me:

Springer Contributed Books
Found: ja
CTAN: ftp://ftp.springer.de/pub/tex/latex/svmultgl/
WWW: http://www.springeronline.com
Notes: svmult is for contributed books published by Springer Verlag. Please 
look at the templates for the structure of the book.


> Then install it in your personal texmf dir

which I did
> (~/texmf/tex/latex), but this is what I told you in the previous mail as
> well.

(~/texmf/tex/latex/Springer/svmultt1/templates/
contains among others author.lyx and referenc.lyx)

Would I use author.lyx and add the contents of my chapter into it?
The alternative would be (and I would prefer it) to have a svmult layout.

By the way, if I run the author.lyx 
 I get an inputenc Error
 which is due to an apostrophe in the cited reference 
  
l.161 ...phil-DOI} Suleiman, Camelia, Daniel C. O�
  Connell,
which I replaced in the referenc.lyx  with a '

Wolfgang


Re: lyx2.1.0dev and svmult

2013-11-20 Thread Jürgen Spitzmüller
2013/11/20 Wolfgang Engelmann

>  Question: does a lyx layout file for svmult exist? where?
>

It is shipped with LyX, you'll find it in the layouts folder
(svmult.layout).


> >
>
> > Help > LaTeX Configuration tells you where you can download svmult (some
>
> > springer site, I suppose).
>
> I did this and Help > LaTeX Configuration gives me:
>
>
>
> Springer Contributed Books
>
> Found: ja
>

Which means you have successfully installed the class and LyX finds it.


> (~/texmf/tex/latex/Springer/svmultt1/templates/
>
> contains among others author.lyx and referenc.lyx)
>

Look in the LyX examples directory. It also contains svmult example files.


> Would I use author.lyx and add the contents of my chapter into it?
>
> The alternative would be (and I would prefer it) to have a svmult layout.
>

I suppose so, but I am not familiar with that class.

Jürgen


Re: creating a quiz /multiple choice questions with Lyx

2013-11-20 Thread Liviu Andronic
Hello Andrew,


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).
>
-- 
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: Cyrillic signs in BibTeX > JabRef > LyX

2013-11-20 Thread Guenter Milde
On 2013-11-19, Roel Schipper - CITG wrote:

>> The original bibtex does not understand non-ASCII charcters.
>> There is an 8-bit clean fork (bibtex8).

>> If you use literal German umlauts in your *.bib file without problems,
>> this is a sign that bibtex8 is used.

> Until now, I used the {\} encoding for German umlauts etc.

Then I recommend to use LaTeX Internal Character Representation (LICR) as
encoding for Cyrillic, too.

>> What is the encoding of the bibtex file?

> I have put this to UTF-8; now at least LyX recognizes the reference:
> when I keep my mouse over the citation, LyX shows the Cyrillic
> characters.

>> Do you use utf-8 for the exported LaTeX file?
>> (Document>Settings>Language>Encoding)

> It is on "Language Default (no inputenc)" now; my language is English. 

"Language Default (no inputenc)" is an advanced setting. It requires you
either to use pure ASCII or to insert some input converter "by hand" (e.g.
in the document preamble). Use this only if absolutely required.

However, it may be that you did not change the radiobutton, so that while
the drop-down box shows this text the setting is "Language default".

> As soon as I put it on "UTF-8" the complete Bibliography chapter will
> disappear at the end of the document after compiling.

Strange. There should be some error report. Maybe this is related to BibTeX
not working with utf8 and will go away if you have your bibfile in pure
ASCII with LICR.

What happens with setting encoding to ASCII?

>> Does Cyrillic work, if you drag-and-drop it into the document (just as
>> a test)?

> Yes, although in another font than the rest of the text.

For fixing the font issue, you may try the "substituefont" package
(http://www.ctan.org/pkg/substitutefont has an example file in the
documentation) or (if this is possible for your document) using a font
supporting Cyrillic like "Linux Libertine" or "Deja Vu".

...

> While in the main document, all captions etc are translated to in
> Russian and shown in perfect Cyrillic characters ??? I am clueless.
> 

>> Alternatively, you may try to write the Cyrillic characters as LICR
>> macros (\cyra ... \cyrja) - this should solve utf-8 problems but you
>> still need correct fonts and the correct language setting (so switch
>> the TeX font encoding).

It seems like you need either to switch to biblatex (I don't know whether
this works with LyX) or

* LICR macros and
* \foreignlanguage{russian}{} around all cyrillic text
  parts in the *.bib file.
  
For conversion of UTF8 encoded characters into LICR, there may be an option
in the BibTeX program (encoding ASCII or similar).
You can also try the "recode" command line program or LyX:

If you apply the following patch to a copy of unicodesymbols in your
local LyX folder, LyX will do the conversion. Copy/Paste the Cyrillic
text into LyX, set Language>Encoding to ASCII and see the result with
View>Source or in an exported LaTeX file.

Günter




Re: Cyrillic signs in BibTeX > JabRef > LyX

2013-11-20 Thread Guenter Milde
I forgot the patch:

--- /home/milde/.lyx-svn/unicodesymbols 2013-04-03 15:15:47.0 +0200
+++ /usr/local/src/lyx/lib/unicodesymbols   2013-03-25 14:47:18.0 
+0100
@@ -875,213 +875,103 @@
 #
 # Cyrillic
 #
-# "textcyr" selects LaTeX font encoding T2A
-0x0400 "\\textcyr{\\`\\CYRE}" "textcyr" "" # CYRILLIC CAPITAL LETTER IE 
WITH GRAVE
-0x0401 "\\textcyr{\\CYRYO}"   "textcyr" "" # CYRILLIC CAPITAL LETTER IO
-0x0402 "\\textcyr{\\CYRDJE}"  "textcyr" "" # CYRILLIC CAPITAL LETTER DJE
-0x0403 "\\textcyr{\\`\\CYRG}" "textcyr" "" # CYRILLIC CAPITAL LETTER GJE
-0x0404 "\\textcyr{\\CYRIE}"   "textcyr" "" # CYRILLIC CAPITAL LETTER 
UKRAINIAN IE
-0x0405 "\\textcyr{\\CYRDZE}"  "textcyr" "" # CYRILLIC CAPITAL LETTER DZE
-0x0406 "\\textcyr{\\CYRII}"   "textcyr" "" # CYRILLIC CAPITAL LETTER 
BYELORUSSIAN-UKRAINIAN I
-0x0407 "\\textcyr{\\CYRYI}"   "textcyr" "" # CYRILLIC CAPITAL LETTER YI
-0x0408 "\\textcyr{\\CYRJE}"   "textcyr" "" # CYRILLIC CAPITAL LETTER JE
-0x0409 "\\textcyr{\\CYRLJE}"  "textcyr" "" # CYRILLIC CAPITAL LETTER LJE
-0x040a "\\textcyr{\\CYRNJE}"  "textcyr" "" # CYRILLIC CAPITAL LETTER NJE
-0x040b "\\textcyr{\\CYRTSHE}" "textcyr" "" # CYRILLIC CAPITAL LETTER TSHE
-0x040c "\\textcyr{\\`\\CYRK}" "textcyr" "" # CYRILLIC CAPITAL LETTER KJE
-0x040d "\\textcyr{\\`\\CYRI}" "textcyr" "" # CYRILLIC CAPITAL LETTER I 
WITH GRAVE
-0x040e "\\textcyr{\\CYRUSHRT}""textcyr" "" # CYRILLIC CAPITAL LETTER SHORT 
U
-0x040f "\\textcyr{\\CYRDZHE}" "textcyr" "" # CYRILLIC CAPITAL LETTER DZHE
-0x0410 "\\textcyr{\\CYRA}""textcyr" "" # CYRILLIC CAPITAL LETTER A
-0x0411 "\\textcyr{\\CYRB}""textcyr" "" # CYRILLIC CAPITAL LETTER BE
-0x0412 "\\textcyr{\\CYRV}""textcyr" "" # CYRILLIC CAPITAL LETTER VE
-0x0413 "\\textcyr{\\CYRG}""textcyr" "" # CYRILLIC CAPITAL LETTER GHE
-0x0414 "\\textcyr{\\CYRD}""textcyr" "" # CYRILLIC CAPITAL LETTER DE
-0x0415 "\\textcyr{\\CYRE}""textcyr" "" # CYRILLIC CAPITAL LETTER IE
-0x0416 "\\textcyr{\\CYRZH}"   "textcyr" "" # CYRILLIC CAPITAL LETTER ZHE
-0x0417 "\\textcyr{\\CYRZ}""textcyr" "" # CYRILLIC CAPITAL LETTER ZE
-0x0418 "\\textcyr{\\CYRI}""textcyr" "" # CYRILLIC CAPITAL LETTER I
-0x0419 "\\textcyr{\\CYRISHRT}""textcyr" "" # CYRILLIC CAPITAL LETTER SHORT 
I
-0x041a "\\textcyr{\\CYRK}""textcyr" "" # CYRILLIC CAPITAL LETTER KA
-0x041b "\\textcyr{\\CYRL}""textcyr" "" # CYRILLIC CAPITAL LETTER EL
-0x041c "\\textcyr{\\CYRM}""textcyr" "" # CYRILLIC CAPITAL LETTER EM
-0x041d "\\textcyr{\\CYRN}""textcyr" "" # CYRILLIC CAPITAL LETTER EN
-0x041e "\\textcyr{\\CYRO}""textcyr" "" # CYRILLIC CAPITAL LETTER O
-0x041f "\\textcyr{\\CYRP}""textcyr" "" # CYRILLIC CAPITAL LETTER PE
-0x0420 "\\textcyr{\\CYRR}""textcyr" "" # CYRILLIC CAPITAL LETTER ER
-0x0421 "\\textcyr{\\CYRS}""textcyr" "" # CYRILLIC CAPITAL LETTER ES
-0x0422 "\\textcyr{\\CYRT}""textcyr" "" # CYRILLIC CAPITAL LETTER TE
-0x0423 "\\textcyr{\\CYRU}""textcyr" "" # CYRILLIC CAPITAL LETTER U
-0x0424 "\\textcyr{\\CYRF}""textcyr" "" # CYRILLIC CAPITAL LETTER EF
-0x0425 "\\textcyr{\\CYRH}""textcyr" "" # CYRILLIC CAPITAL LETTER HA
-0x0426 "\\textcyr{\\CYRC}""textcyr" "" # CYRILLIC CAPITAL LETTER TSE
-0x0427 "\\textcyr{\\CYRCH}"   "textcyr" "" # CYRILLIC CAPITAL LETTER CHE
-0x0428 "\\textcyr{\\CYRSH}"   "textcyr" "" # CYRILLIC CAPITAL LETTER SHA
-0x0429 "\\textcyr{\\CYRSHCH}" "textcyr" "" # CYRILLIC CAPITAL LETTER SHCHA
-0x042a "\\textcyr{\\CYRHRDSN}""textcyr" "" # CYRILLIC CAPITAL LETTER HARD 
SIGN
-0x042b "\\textcyr{\\CYRERY}"  "textcyr" "" # CYRILLIC CAPITAL LETTER YERU
-0x042c "\\textcyr{\\CYRSFTSN}""textcyr" "" # CYRILLIC CAPITAL LETTER SOFT 
SIGN
-0x042d "\\textcyr{\\CYREREV}" "textcyr" "" # CYRILLIC CAPITAL LETTER E
-0x042e "\\textcyr{\\CYRYU}"   "textcyr" "" # CYRILLIC CAPITAL LETTER YU
-0x042f "\\textcyr{\\CYRYA}"   "textcyr" "" # CYRILLIC CAPITAL LETTER YA
-0x0430 "\\textcyr{\\cyra}""textcyr" "" # CYRILLIC SMALL LETTER A
-0x0431 "\\textcyr{\\cyrb}""textcyr" "" # CYRILLIC SMALL LETTER BE
-0x0432 "\\textcyr{\\cyrv}""textcyr" "" # CYRILLIC SMALL LETTER VE
-0x0433 "\\textcyr{\\cyrg}""textcyr" "" # CYRILLIC SMALL LETTER GHE
-0x0434 "\\textcyr{\\cyrd}""textcyr" "" # CYRILLIC SMALL LETTER DE
-0x0435 "\\textcyr{\\cyre}""textcyr" "" # CYRILLIC SMALL LETTER IE
-0x0436 "\\textcyr{\\cyrzh}"   "textcyr" "" # CYRILLIC SMALL LETTER ZHE
-0x0437 "\\textcyr{\\cyrz}""textcyr" "" # CYRILLIC SMALL LETTER ZE
-0x0438 "\\textcyr{\\cyri}""textcyr" "" # CYRILLIC SMALL LETTER I
-0x0439 "\\textcyr{\\cyrishrt}""textcyr" "" # CYRILLIC SMALL LETTER SHORT I
-0x043a "\\textcyr{\\cyrk}""textcyr" "" # CYRILLIC SMALL LETTER KA
-0x043b "\\textcyr{\\cyrl}""textcyr" "" # CYRILLIC SMALL LETTER EL
-0x043c "\\textcyr{\\cyrm}"  

Re: Cyrillic signs in BibTeX > JabRef > LyX

2013-11-20 Thread stefano franchi
On Wed, Nov 20, 2013 at 4:25 PM, Guenter Milde  wrote:

> On 2013-11-19, Roel Schipper - CITG wrote:
> >> Alternatively, you may try to write the Cyrillic characters as LICR
> >> macros (\cyra ... \cyrja) - this should solve utf-8 problems but you
> >> still need correct fonts and the correct language setting (so switch
> >> the TeX font encoding).
>
> It seems like you need either to switch to biblatex (I don't know whether
> this works with LyX) or
>
>

biblatex does work with lyx, but it requires some workarounds (assuming the
question was not restricted to cyrillic)
The lyx wiki provides instructions.

S.





-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


building/packaging a lyx module

2013-11-20 Thread Christoph Burschka
Hi,

I'm currently trying to write a lyx module (for my own use, though it
may end up on github eventually) that roughly imitates for Python what
knitr/sweave are doing with R:

- Provide an inset for noweb-like code blocks
- Run the file through a pre-processor to interpret those blocks
- Continue Latex compilation with the output inserted.

The first prototype seems to work, but it took quite a bit of
configuring. Adding the module was easy enough (putting the .module in
~/.lyx/layouts, the Python script in ~/.lyx/scripts), but I had to
manually add the file formats and converters to the settings; something
like
pyweave->latex : python3 $$s/scripts/python-weave.py $$i $$o

Is there any way to set up stuff like that automatically with an
installation script? Ideally, I'd want to package the module so I can
install it on other systems without manually configuring anything.

Thanks!

(using a 2.1.0 build compiled from git)



signature.asc
Description: OpenPGP digital signature


Re: building/packaging a lyx module

2013-11-20 Thread Richard Heck

On 11/20/2013 08:00 PM, Christoph Burschka wrote:

Hi,

I'm currently trying to write a lyx module (for my own use, though it
may end up on github eventually) that roughly imitates for Python what
knitr/sweave are doing with R:

- Provide an inset for noweb-like code blocks
- Run the file through a pre-processor to interpret those blocks
- Continue Latex compilation with the output inserted.

The first prototype seems to work, but it took quite a bit of
configuring. Adding the module was easy enough (putting the .module in
~/.lyx/layouts, the Python script in ~/.lyx/scripts), but I had to
manually add the file formats and converters to the settings; something
like
pyweave->latex : python3 $$s/scripts/python-weave.py $$i $$o

Is there any way to set up stuff like that automatically with an
installation script? Ideally, I'd want to package the module so I can
install it on other systems without manually configuring anything.


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



Re: Change tab hotkey

2013-11-20 Thread Daniel CLEMENT
Forgive me for replyint so late to this thread, but I too would like to
set up such a shortcut...

Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
> On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas  wrote:
> >
> > Hi:
> >
> > I would like to know if there is any way for quickly change between document
> > tabs in lyx using a hotkey, or if you can give me a link with instructions
> > to do this.
> >
> 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"...

> 
> Liviu
TIA,
-- 
Daniel CLEMENT


Re: Change tab hotkey

2013-11-20 Thread Liviu Andronic
On Thu, Nov 21, 2013 at 7:42 AM, Daniel CLEMENT  wrote:
> Forgive me for replyint so late to this thread, but I too would like to
> set up such a shortcut...
>
> Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
>> On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas  wrote:
>> >
>> > Hi:
>> >
>> > I would like to know if there is any way for quickly change between 
>> > document
>> > tabs in lyx using a hotkey, or if you can give me a link with instructions
>> > to do this.
>> >
>> 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.

Liviu


>>
>> Liviu
> TIA,
> --
> Daniel CLEMENT



-- 
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: Change tab hotkey

2013-11-20 Thread Scott Kostyshak
On Thu, Nov 21, 2013 at 1:59 AM, Liviu Andronic  wrote:
> On Thu, Nov 21, 2013 at 7:42 AM, Daniel CLEMENT  wrote:
>> Forgive me for replyint so late to this thread, but I too would like to
>> set up such a shortcut...
>>
>> Le vendredi 08 novembre 2013 à 15:18 +0100, Liviu Andronic a écrit :
>>> On Thu, Nov 7, 2013 at 4:05 PM, Gabriel Rojas  wrote:
>>> >
>>> > Hi:
>>> >
>>> > I would like to know if there is any way for quickly change between 
>>> > document
>>> > tabs in lyx using a hotkey, or if you can give me a link with instructions
>>> > to do this.
>>> >
>>> 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'. 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).

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


Re: building/packaging a lyx module

2013-11-20 Thread Christoph Burschka
[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.

Those might be cool features for some remote future version, though I
have no idea how much demand there would be to justify them.


Cheers,
Christoph



signature.asc
Description: OpenPGP digital signature


Re: creating a quiz /multiple choice questions with Lyx

2013-11-20 Thread Andrew Parsloe

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