BibTeX troubles (fails with some styles, succeeds with others)

2014-06-11 Thread Scott Kostyshak
The attached document fails to compile for me on Ubuntu 13.10 with TeX
Live 2013. If I change the style from acmsiggraph to plain then it
succeeds.

Note that this same bibliography (and style) is used in the
ACM-siggraph.lyx template (see File  New From Template 
ACM-siggraph.lyx). I can export that file without any issues.

Is it because I have to use the ACM SIGGRAPH document class?

My LaTeX log is here:
https://www.dropbox.com/s/63swzedzkrq99y1/mwe_bib.log
and my BibTeX log is here:
https://www.dropbox.com/s/8biyk9tv7zg9cae/mwe_bib.blg

Scott


mwe_bib.lyx
Description: application/lyx


Re: pick out all graphics from a lyx file?

2014-06-11 Thread Daniel CLEMENT
Le mardi 10 juin 2014 à 23:34 +0200, Liviu Andronic a écrit :
 On Tue, Jun 10, 2014 at 7:35 PM, Neal Becker ndbeck...@gmail.com wrote:
  Helpful, but does not pick out a page from a multi-page pdf
 
 Oh, then (on Linux) I would recommend:
 PDF Mod: https://wiki.gnome.org/Apps/PdfMod

PMFJI, but I take opportunity of this thread to mention a strange
feature: on my setup (LyX 2.0.6/Debian), PDFmod can't open the
LyX-produced PDFs (an error occurred while opening...). Can someone
confirm?

I can't tell whether that's a PDFMod, LyX or even LaTeX issue, but
PDFMod doesn't rely on the pdftk command-line utility (which works
fine).

PDF-Shuffler is fine.

Still, it's a little issue: imagine a (non-LyX) user who has received a
PDF coming from LyX, and wants to extract some pages or pictures: he
could wonder why PDFMod doesn't handle this document.

 PDF Chain: http://pdfchain.sourceforge.net/
 PDF-Shuffler: http://sourceforge.net/projects/pdfshuffler/
 
 Either of these would allow to extract individual pages from a PDF.
 
 Liviu
 
 

-- 
Daniel CLEMENT


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:

   - Original Message - From: Wolfgang Engelmann Sent: Tuesday, June 
10, 2014 2:19 PM

   Thanks, Alex, for the new lyx file. I now realized, that I had to load the 
matplotlib and pandas packages, which I did. I followed your advices
   Define a new file format in toolspreferences, name it Python graphics, 
extension pygr and vector image format ticked
   Define a new converter from the format Python graphics to the format EPS as 
...
   After reconfigure (necessary?) and making sure the two example graphics (in 
pygr format) are found in the path I get this error
No, reconfigure is not necessary
   LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not found on 
input line 83.
   Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
   What am I missing?
   Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly in your 
system? if not the case check that the example script is located at the same 
path than the lyx file, another way is to click in the inserted graphic and 
look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, example2.pygr) show: 
Error converting to loadable format.




Another possible explanation is that your system doesn't handle with eps, in 
this case you should change the definition and instead of eps, put pdf or png 
as final format, whichever work for you, you can check that because it will 
display the graphic within LyX even before you export anything!


I have changed to png, now the first example renders alright (in LyX), but the 
second one not. Shouldn't your LyX file contain already your toolspreferences 
settings? Or how can one make LyX remember these settings, so that people trying 
it have not to fiddle with it?
Wolfgang




Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 09:47, schrieb Wolfgang Engelmann:


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:
- Original Message - From: Wolfgang Engelmann Sent: Tuesday, 
June 10, 2014 2:19 PM


Thanks, Alex, for the new lyx file. I now realized, that I had to 
load the matplotlib and pandas packages, which I did. I followed your 
advices
Define a new file format in toolspreferences, name it Python 
graphics, extension pygr and vector image format ticked
Define a new converter from the format Python graphics to the format 
EPS as ...
After reconfigure (necessary?) and making sure the two example 
graphics (in pygr format) are found in the path I get this error

No, reconfigure is not necessary
LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not 
found on input line 83.

Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
What am I missing?
Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly 
in your system? if not the case check that the example script is 
located at the same path than the lyx file, another way is to click 
in the inserted graphic and look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, 
example2.pygr) show: Error converting to loadable format.





Another possible explanation is that your system doesn't handle with 
eps, in this case you should change the definition and instead of 
eps, put pdf or png as final format, whichever work for you, you can 
check that because it will display the graphic within LyX even before 
you export anything!


I have changed to png, now the first example renders alright (in LyX), 
but the second one not. Shouldn't your LyX file contain already your 
toolspreferences settings? Or how can one make LyX remember these 
settings, so that people trying it have not to fiddle with it?

Wolfgang

Sorry, I should have read the last part: Using more advanced python 
libraries are also allowed, like this example using seaborn, scipy and 
numpy. To obtain extra python packages you have to install the 
python-pip package manager and perform“pip install package” with root 
permissions, where package can be seaborn for instance. So I will try 
installing this and hope it will work. An additional question I will 
mail separately. Wolfgang





Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 09:53, schrieb Wolfgang Engelmann:


Am 11.06.2014 09:47, schrieb Wolfgang Engelmann:


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:
- Original Message - From: Wolfgang Engelmann Sent: Tuesday, 
June 10, 2014 2:19 PM


Thanks, Alex, for the new lyx file. I now realized, that I had to 
load the matplotlib and pandas packages, which I did. I followed 
your advices
Define a new file format in toolspreferences, name it Python 
graphics, extension pygr and vector image format ticked
Define a new converter from the format Python graphics to the format 
EPS as ...
After reconfigure (necessary?) and making sure the two example 
graphics (in pygr format) are found in the path I get this error

No, reconfigure is not necessary
LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not 
found on input line 83.

Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
What am I missing?
Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly 
in your system? if not the case check that the example script is 
located at the same path than the lyx file, another way is to click 
in the inserted graphic and look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, 
example2.pygr) show: Error converting to loadable format.





Another possible explanation is that your system doesn't handle with 
eps, in this case you should change the definition and instead of 
eps, put pdf or png as final format, whichever work for you, you can 
check that because it will display the graphic within LyX even 
before you export anything!


I have changed to png, now the first example renders alright (in 
LyX), but the second one not. Shouldn't your LyX file contain already 
your toolspreferences settings? Or how can one make LyX remember 
these settings, so that people trying it have not to fiddle with it?

Wolfgang

Sorry, I should have read the last part: Using more advanced python 
libraries are also allowed, like this example using seaborn, scipy 
and numpy. To obtain extra python packages you have to install the 
python-pip package manager and perform“pip install package” with root 
permissions, where package can be seaborn for instance. So I will try 
installing this and hope it will work. An additional question I will 
mail separately. Wolfgang



I can' find seaborn for python in synaptic (Kubuntu). Quoting: where 
package can be seaborn for instance.

What  other instances are available?
Wolfgang


PythonGraphics with data file

2014-06-11 Thread Wolfgang Engelmann
If one wants to use a figure in PythonGraphics which needs an external 
data set, how is this achieved?

Wolfgang


Re: PythonGraphics with data file

2014-06-11 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 If one wants to use a figure in PythonGraphics which needs an external
 data set, how is this achieved?
 Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqodTl49I3d.pgp
Description: PGP signature


Re: PythonGraphics with data file

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 10:30, schrieb Rainer M Krug:

Wolfgang Engelmann engelm...@uni-tuebingen.de writes:


If one wants to use a figure in PythonGraphics which needs an external
data set, how is this achieved?
Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


Yes, Rainer,  I understand that. My question was -being not familiar 
with python- whether one can include the data set in the python script. 
I use pyxplot where this can be done by simply adding

--
and afterward the data set. The advantage is, that one does not need to 
keep an extra file outside the script.

Wolfgang


Re: BibTeX troubles (fails with some styles, succeeds with others)

2014-06-11 Thread Richard Heck

On 06/11/2014 02:01 AM, Scott Kostyshak wrote:

The attached document fails to compile for me on Ubuntu 13.10 with TeX
Live 2013. If I change the style from acmsiggraph to plain then it
succeeds.

Note that this same bibliography (and style) is used in the
ACM-siggraph.lyx template (see File  New From Template 
ACM-siggraph.lyx). I can export that file without any issues.

Is it because I have to use the ACM SIGGRAPH document class?


It could be. Some style files do depend upon LaTeX declarations made 
elsewhere. I have

one that has to be used with a certain style file, e.g.

Richard



Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Ross Reyes


Hi Alex,

I still get the error converting to loadable format message.

I can run the python script from the command line and it does work.   I can
and have modified the .pygr script to produce other outputs in .png, 
.jpg, .ps, etc.

without problem.

But inside LyX, regardless of what I do to define the converter,  I can 
not get the image

to render nor can I produce a .pdf output from the LyX doc.

Something is not right.   I am using LyX 2.0.1

Phil


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Rainer M Krug


Envoyé de mon iPhone

 Le 11 juin 2014 à 16:07, Ross Reyes philip_...@yahoo.com a écrit :
 
 
 Hi Alex,
 
 I still get the error converting to loadable format message.
 
 I can run the python script from the command line and it does work.   I can
 and have modified the .pygr script to produce other outputs in .png, .jpg, 
 .ps, etc.
 without problem.
 
 But inside LyX, regardless of what I do to define the converter,  I can not 
 get the image
 to render nor can I produce a .pdf output from the LyX doc.
 
 Something is not right.   I am using LyX 2.0.1

The converters are defined in the configuration file LyX. If you could take a 
loom at it and post the lines where you file formats and the converters are 
defined, one could see if there is something wrong. I don't have LyX at hand, 
so I can't give you the location of the config file. 

Cheers,

Rainer

 
 Phil


Re: paper accepted for publication, but need help!

2014-06-11 Thread Benedict Holland
I think this is a problem with the default configuration, at least on
linux. You really need to use Bibtex8 for the bibliogrophy generation. This
is NOT the default. The default is bibtex which doesn't have any unicode
support because it actually was written in the 1980's. bibtex8 should
really be the default by now on any system. Also the language support in
lyx should default to utf-8. It would make life much easier to not have to
change these around so much and avoid these sorts of bugs. I also should
point out that pdflatex does an excellent job at catching these problems.
XeTex I think uses utf-8 by default which is why it worked when you
switched from pdflatex to XeTex.

~Ben


On Tue, Jun 10, 2014 at 7:57 AM, Jean-Marc Lasgouttes lasgout...@lyx.org
wrote:

 10/06/2014 13:49, Neal Becker:

  The problem is triggered by my .bib entry, which includes a non-ascii
 character:

author =  {Wojciech Bruzda and Wojciech Tadej and Karol
 Życzkowski},

 By playing with lyx Document/Settings/Encoding, selecting unicode XeTeX
 (utf-8),
 I seem to be able to export dvi and then convert dvipdf OK.

 So is this a good procedure, or is something else recommended here?


 You should use the same encoding for your document and the LyX output
 encoding. A workaround is to use LaTeX markup in the .bib file so that it
 is compatible with any encoding.

 JMarc




BibTeX troubles (fails with some styles, succeeds with others)

2014-06-11 Thread Scott Kostyshak
The attached document fails to compile for me on Ubuntu 13.10 with TeX
Live 2013. If I change the style from acmsiggraph to plain then it
succeeds.

Note that this same bibliography (and style) is used in the
ACM-siggraph.lyx template (see File  New From Template 
ACM-siggraph.lyx). I can export that file without any issues.

Is it because I have to use the ACM SIGGRAPH document class?

My LaTeX log is here:
https://www.dropbox.com/s/63swzedzkrq99y1/mwe_bib.log
and my BibTeX log is here:
https://www.dropbox.com/s/8biyk9tv7zg9cae/mwe_bib.blg

Scott


mwe_bib.lyx
Description: application/lyx


Re: pick out all graphics from a lyx file?

2014-06-11 Thread Daniel CLEMENT
Le mardi 10 juin 2014 à 23:34 +0200, Liviu Andronic a écrit :
 On Tue, Jun 10, 2014 at 7:35 PM, Neal Becker ndbeck...@gmail.com wrote:
  Helpful, but does not pick out a page from a multi-page pdf
 
 Oh, then (on Linux) I would recommend:
 PDF Mod: https://wiki.gnome.org/Apps/PdfMod

PMFJI, but I take opportunity of this thread to mention a strange
feature: on my setup (LyX 2.0.6/Debian), PDFmod can't open the
LyX-produced PDFs (an error occurred while opening...). Can someone
confirm?

I can't tell whether that's a PDFMod, LyX or even LaTeX issue, but
PDFMod doesn't rely on the pdftk command-line utility (which works
fine).

PDF-Shuffler is fine.

Still, it's a little issue: imagine a (non-LyX) user who has received a
PDF coming from LyX, and wants to extract some pages or pictures: he
could wonder why PDFMod doesn't handle this document.

 PDF Chain: http://pdfchain.sourceforge.net/
 PDF-Shuffler: http://sourceforge.net/projects/pdfshuffler/
 
 Either of these would allow to extract individual pages from a PDF.
 
 Liviu
 
 

-- 
Daniel CLEMENT


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:

   - Original Message - From: Wolfgang Engelmann Sent: Tuesday, June 
10, 2014 2:19 PM

   Thanks, Alex, for the new lyx file. I now realized, that I had to load the 
matplotlib and pandas packages, which I did. I followed your advices
   Define a new file format in toolspreferences, name it Python graphics, 
extension pygr and vector image format ticked
   Define a new converter from the format Python graphics to the format EPS as 
...
   After reconfigure (necessary?) and making sure the two example graphics (in 
pygr format) are found in the path I get this error
No, reconfigure is not necessary
   LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not found on 
input line 83.
   Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
   What am I missing?
   Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly in your 
system? if not the case check that the example script is located at the same 
path than the lyx file, another way is to click in the inserted graphic and 
look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, example2.pygr) show: 
Error converting to loadable format.




Another possible explanation is that your system doesn't handle with eps, in 
this case you should change the definition and instead of eps, put pdf or png 
as final format, whichever work for you, you can check that because it will 
display the graphic within LyX even before you export anything!


I have changed to png, now the first example renders alright (in LyX), but the 
second one not. Shouldn't your LyX file contain already your toolspreferences 
settings? Or how can one make LyX remember these settings, so that people trying 
it have not to fiddle with it?
Wolfgang




Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 09:47, schrieb Wolfgang Engelmann:


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:
- Original Message - From: Wolfgang Engelmann Sent: Tuesday, 
June 10, 2014 2:19 PM


Thanks, Alex, for the new lyx file. I now realized, that I had to 
load the matplotlib and pandas packages, which I did. I followed your 
advices
Define a new file format in toolspreferences, name it Python 
graphics, extension pygr and vector image format ticked
Define a new converter from the format Python graphics to the format 
EPS as ...
After reconfigure (necessary?) and making sure the two example 
graphics (in pygr format) are found in the path I get this error

No, reconfigure is not necessary
LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not 
found on input line 83.

Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
What am I missing?
Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly 
in your system? if not the case check that the example script is 
located at the same path than the lyx file, another way is to click 
in the inserted graphic and look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, 
example2.pygr) show: Error converting to loadable format.





Another possible explanation is that your system doesn't handle with 
eps, in this case you should change the definition and instead of 
eps, put pdf or png as final format, whichever work for you, you can 
check that because it will display the graphic within LyX even before 
you export anything!


I have changed to png, now the first example renders alright (in LyX), 
but the second one not. Shouldn't your LyX file contain already your 
toolspreferences settings? Or how can one make LyX remember these 
settings, so that people trying it have not to fiddle with it?

Wolfgang

Sorry, I should have read the last part: Using more advanced python 
libraries are also allowed, like this example using seaborn, scipy and 
numpy. To obtain extra python packages you have to install the 
python-pip package manager and perform“pip install package” with root 
permissions, where package can be seaborn for instance. So I will try 
installing this and hope it will work. An additional question I will 
mail separately. Wolfgang





Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 09:53, schrieb Wolfgang Engelmann:


Am 11.06.2014 09:47, schrieb Wolfgang Engelmann:


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:
- Original Message - From: Wolfgang Engelmann Sent: Tuesday, 
June 10, 2014 2:19 PM


Thanks, Alex, for the new lyx file. I now realized, that I had to 
load the matplotlib and pandas packages, which I did. I followed 
your advices
Define a new file format in toolspreferences, name it Python 
graphics, extension pygr and vector image format ticked
Define a new converter from the format Python graphics to the format 
EPS as ...
After reconfigure (necessary?) and making sure the two example 
graphics (in pygr format) are found in the path I get this error

No, reconfigure is not necessary
LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not 
found on input line 83.

Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
What am I missing?
Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly 
in your system? if not the case check that the example script is 
located at the same path than the lyx file, another way is to click 
in the inserted graphic and look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, 
example2.pygr) show: Error converting to loadable format.





Another possible explanation is that your system doesn't handle with 
eps, in this case you should change the definition and instead of 
eps, put pdf or png as final format, whichever work for you, you can 
check that because it will display the graphic within LyX even 
before you export anything!


I have changed to png, now the first example renders alright (in 
LyX), but the second one not. Shouldn't your LyX file contain already 
your toolspreferences settings? Or how can one make LyX remember 
these settings, so that people trying it have not to fiddle with it?

Wolfgang

Sorry, I should have read the last part: Using more advanced python 
libraries are also allowed, like this example using seaborn, scipy 
and numpy. To obtain extra python packages you have to install the 
python-pip package manager and perform“pip install package” with root 
permissions, where package can be seaborn for instance. So I will try 
installing this and hope it will work. An additional question I will 
mail separately. Wolfgang



I can' find seaborn for python in synaptic (Kubuntu). Quoting: where 
package can be seaborn for instance.

What  other instances are available?
Wolfgang


PythonGraphics with data file

2014-06-11 Thread Wolfgang Engelmann
If one wants to use a figure in PythonGraphics which needs an external 
data set, how is this achieved?

Wolfgang


Re: PythonGraphics with data file

2014-06-11 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 If one wants to use a figure in PythonGraphics which needs an external
 data set, how is this achieved?
 Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqodTl49I3d.pgp
Description: PGP signature


Re: PythonGraphics with data file

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 10:30, schrieb Rainer M Krug:

Wolfgang Engelmann engelm...@uni-tuebingen.de writes:


If one wants to use a figure in PythonGraphics which needs an external
data set, how is this achieved?
Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


Yes, Rainer,  I understand that. My question was -being not familiar 
with python- whether one can include the data set in the python script. 
I use pyxplot where this can be done by simply adding

--
and afterward the data set. The advantage is, that one does not need to 
keep an extra file outside the script.

Wolfgang


Re: BibTeX troubles (fails with some styles, succeeds with others)

2014-06-11 Thread Richard Heck

On 06/11/2014 02:01 AM, Scott Kostyshak wrote:

The attached document fails to compile for me on Ubuntu 13.10 with TeX
Live 2013. If I change the style from acmsiggraph to plain then it
succeeds.

Note that this same bibliography (and style) is used in the
ACM-siggraph.lyx template (see File  New From Template 
ACM-siggraph.lyx). I can export that file without any issues.

Is it because I have to use the ACM SIGGRAPH document class?


It could be. Some style files do depend upon LaTeX declarations made 
elsewhere. I have

one that has to be used with a certain style file, e.g.

Richard



Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Ross Reyes


Hi Alex,

I still get the error converting to loadable format message.

I can run the python script from the command line and it does work.   I can
and have modified the .pygr script to produce other outputs in .png, 
.jpg, .ps, etc.

without problem.

But inside LyX, regardless of what I do to define the converter,  I can 
not get the image

to render nor can I produce a .pdf output from the LyX doc.

Something is not right.   I am using LyX 2.0.1

Phil


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Rainer M Krug


Envoyé de mon iPhone

 Le 11 juin 2014 à 16:07, Ross Reyes philip_...@yahoo.com a écrit :
 
 
 Hi Alex,
 
 I still get the error converting to loadable format message.
 
 I can run the python script from the command line and it does work.   I can
 and have modified the .pygr script to produce other outputs in .png, .jpg, 
 .ps, etc.
 without problem.
 
 But inside LyX, regardless of what I do to define the converter,  I can not 
 get the image
 to render nor can I produce a .pdf output from the LyX doc.
 
 Something is not right.   I am using LyX 2.0.1

The converters are defined in the configuration file LyX. If you could take a 
loom at it and post the lines where you file formats and the converters are 
defined, one could see if there is something wrong. I don't have LyX at hand, 
so I can't give you the location of the config file. 

Cheers,

Rainer

 
 Phil


Re: paper accepted for publication, but need help!

2014-06-11 Thread Benedict Holland
I think this is a problem with the default configuration, at least on
linux. You really need to use Bibtex8 for the bibliogrophy generation. This
is NOT the default. The default is bibtex which doesn't have any unicode
support because it actually was written in the 1980's. bibtex8 should
really be the default by now on any system. Also the language support in
lyx should default to utf-8. It would make life much easier to not have to
change these around so much and avoid these sorts of bugs. I also should
point out that pdflatex does an excellent job at catching these problems.
XeTex I think uses utf-8 by default which is why it worked when you
switched from pdflatex to XeTex.

~Ben


On Tue, Jun 10, 2014 at 7:57 AM, Jean-Marc Lasgouttes lasgout...@lyx.org
wrote:

 10/06/2014 13:49, Neal Becker:

  The problem is triggered by my .bib entry, which includes a non-ascii
 character:

author =  {Wojciech Bruzda and Wojciech Tadej and Karol
 Życzkowski},

 By playing with lyx Document/Settings/Encoding, selecting unicode XeTeX
 (utf-8),
 I seem to be able to export dvi and then convert dvipdf OK.

 So is this a good procedure, or is something else recommended here?


 You should use the same encoding for your document and the LyX output
 encoding. A workaround is to use LaTeX markup in the .bib file so that it
 is compatible with any encoding.

 JMarc




BibTeX troubles (fails with some styles, succeeds with others)

2014-06-11 Thread Scott Kostyshak
The attached document fails to compile for me on Ubuntu 13.10 with TeX
Live 2013. If I change the style from "acmsiggraph" to "plain" then it
succeeds.

Note that this same bibliography (and style) is used in the
ACM-siggraph.lyx template (see File > New From Template >
ACM-siggraph.lyx). I can export that file without any issues.

Is it because I have to use the ACM SIGGRAPH document class?

My LaTeX log is here:
https://www.dropbox.com/s/63swzedzkrq99y1/mwe_bib.log
and my BibTeX log is here:
https://www.dropbox.com/s/8biyk9tv7zg9cae/mwe_bib.blg

Scott


mwe_bib.lyx
Description: application/lyx


Re: pick out all graphics from a lyx file?

2014-06-11 Thread Daniel CLEMENT
Le mardi 10 juin 2014 à 23:34 +0200, Liviu Andronic a écrit :
> On Tue, Jun 10, 2014 at 7:35 PM, Neal Becker  wrote:
> > Helpful, but does not pick out a page from a multi-page pdf
> >
> Oh, then (on Linux) I would recommend:
> PDF Mod: https://wiki.gnome.org/Apps/PdfMod

PMFJI, but I take opportunity of this thread to mention a strange
"feature": on my setup (LyX 2.0.6/Debian), PDFmod can't open the
LyX-produced PDFs ("an error occurred while opening..."). Can someone
confirm?

I can't tell whether that's a PDFMod, LyX or even LaTeX issue, but
PDFMod doesn't rely on the pdftk command-line utility (which works
fine).

PDF-Shuffler is fine.

Still, it's a little issue: imagine a (non-LyX) user who has received a
PDF coming from LyX, and wants to extract some pages or pictures: he
could wonder why PDFMod doesn't handle this document.

> PDF Chain: http://pdfchain.sourceforge.net/
> PDF-Shuffler: http://sourceforge.net/projects/pdfshuffler/
> 
> Either of these would allow to extract individual pages from a PDF.
> 
> Liviu
> 
> 

-- 
Daniel CLEMENT


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:

   - Original Message - From: Wolfgang Engelmann Sent: Tuesday, June 
10, 2014 2:19 PM

   Thanks, Alex, for the new lyx file. I now realized, that I had to load the 
matplotlib and pandas packages, which I did. I followed your advices
   Define a new file format in tools>preferences, name it Python graphics, 
extension pygr and vector image format ticked
   Define a new converter from the format Python graphics to the format EPS as 
...
   After reconfigure (necessary?) and making sure the two example graphics (in 
pygr format) are found in the path I get this error
No, reconfigure is not necessary
   LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not found on 
input line 83.
   Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
   What am I missing?
   Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly in your 
system? if not the case check that the example script is located at the same 
path than the lyx file, another way is to click in the inserted graphic and 
look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, example2.pygr) show: 
Error converting to loadable format.




Another possible explanation is that your system doesn't handle with eps, in 
this case you should change the definition and instead of eps, put pdf or png 
as final format, whichever work for you, you can check that because it will 
display the graphic within LyX even before you export anything!


I have changed to png, now the first example renders alright (in LyX), but the 
second one not. Shouldn't your LyX file contain already your tools>preferences 
settings? Or how can one make LyX remember these settings, so that people trying 
it have not to fiddle with it?
Wolfgang




Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 09:47, schrieb Wolfgang Engelmann:


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:
- Original Message - From: Wolfgang Engelmann Sent: Tuesday, 
June 10, 2014 2:19 PM


Thanks, Alex, for the new lyx file. I now realized, that I had to 
load the matplotlib and pandas packages, which I did. I followed your 
advices
Define a new file format in tools>preferences, name it Python 
graphics, extension pygr and vector image format ticked
Define a new converter from the format Python graphics to the format 
EPS as ...
After reconfigure (necessary?) and making sure the two example 
graphics (in pygr format) are found in the path I get this error

No, reconfigure is not necessary
LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not 
found on input line 83.

Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
What am I missing?
Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly 
in your system? if not the case check that the example script is 
located at the same path than the lyx file, another way is to click 
in the inserted graphic and look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, 
example2.pygr) show: Error converting to loadable format.





Another possible explanation is that your system doesn't handle with 
eps, in this case you should change the definition and instead of 
eps, put pdf or png as final format, whichever work for you, you can 
check that because it will display the graphic within LyX even before 
you export anything!


I have changed to png, now the first example renders alright (in LyX), 
but the second one not. Shouldn't your LyX file contain already your 
tools>preferences settings? Or how can one make LyX remember these 
settings, so that people trying it have not to fiddle with it?

Wolfgang

Sorry, I should have read the last part: Using more advanced python 
libraries are also allowed, like this example using seaborn, scipy and 
numpy. To obtain extra python packages you have to install the 
python-pip package manager and perform“pip install package” with root 
permissions, where package can be seaborn for instance. So I will try 
installing this and hope it will work. An additional question I will 
mail separately. Wolfgang





Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 09:53, schrieb Wolfgang Engelmann:


Am 11.06.2014 09:47, schrieb Wolfgang Engelmann:


Am 10.06.2014 22:26, schrieb Alex Vergara Gil:
- Original Message - From: Wolfgang Engelmann Sent: Tuesday, 
June 10, 2014 2:19 PM


Thanks, Alex, for the new lyx file. I now realized, that I had to 
load the matplotlib and pandas packages, which I did. I followed 
your advices
Define a new file format in tools>preferences, name it Python 
graphics, extension pygr and vector image format ticked
Define a new converter from the format Python graphics to the format 
EPS as ...
After reconfigure (necessary?) and making sure the two example 
graphics (in pygr format) are found in the path I get this error

No, reconfigure is not necessary
LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not 
found on input line 83.

Why is it expecting an eps file instead of taking the pygr files?
indeed a eps file is expected
What am I missing?
Wolfgang
Did you can see the graphic within LyX? Did LyX display it correctly 
in your system? if not the case check that the example script is 
located at the same path than the lyx file, another way is to click 
in the inserted graphic and look for the example.pygr path


Yes, all this is ok. However, both graphics (example.pygr, 
example2.pygr) show: Error converting to loadable format.





Another possible explanation is that your system doesn't handle with 
eps, in this case you should change the definition and instead of 
eps, put pdf or png as final format, whichever work for you, you can 
check that because it will display the graphic within LyX even 
before you export anything!


I have changed to png, now the first example renders alright (in 
LyX), but the second one not. Shouldn't your LyX file contain already 
your tools>preferences settings? Or how can one make LyX remember 
these settings, so that people trying it have not to fiddle with it?

Wolfgang

Sorry, I should have read the last part: Using more advanced python 
libraries are also allowed, like this example using seaborn, scipy 
and numpy. To obtain extra python packages you have to install the 
python-pip package manager and perform“pip install package” with root 
permissions, where package can be seaborn for instance. So I will try 
installing this and hope it will work. An additional question I will 
mail separately. Wolfgang



I can' find seaborn for python in synaptic (Kubuntu). Quoting: where 
package can be seaborn for instance.

What  other instances are available?
Wolfgang


PythonGraphics with data file

2014-06-11 Thread Wolfgang Engelmann
If one wants to use a figure in PythonGraphics which needs an external 
data set, how is this achieved?

Wolfgang


Re: PythonGraphics with data file

2014-06-11 Thread Rainer M Krug
Wolfgang Engelmann  writes:

> If one wants to use a figure in PythonGraphics which needs an external
> data set, how is this achieved?
> Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqodTl49I3d.pgp
Description: PGP signature


Re: PythonGraphics with data file

2014-06-11 Thread Wolfgang Engelmann


Am 11.06.2014 10:30, schrieb Rainer M Krug:

Wolfgang Engelmann  writes:


If one wants to use a figure in PythonGraphics which needs an external
data set, how is this achieved?
Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


Yes, Rainer,  I understand that. My question was -being not familiar 
with python- whether one can include the data set in the python script. 
I use pyxplot where this can be done by simply adding

--
and afterward the data set. The advantage is, that one does not need to 
keep an extra file outside the script.

Wolfgang


Re: BibTeX troubles (fails with some styles, succeeds with others)

2014-06-11 Thread Richard Heck

On 06/11/2014 02:01 AM, Scott Kostyshak wrote:

The attached document fails to compile for me on Ubuntu 13.10 with TeX
Live 2013. If I change the style from "acmsiggraph" to "plain" then it
succeeds.

Note that this same bibliography (and style) is used in the
ACM-siggraph.lyx template (see File > New From Template >
ACM-siggraph.lyx). I can export that file without any issues.

Is it because I have to use the ACM SIGGRAPH document class?


It could be. Some style files do depend upon LaTeX declarations made 
elsewhere. I have

one that has to be used with a certain style file, e.g.

Richard



Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Ross Reyes


Hi Alex,

I still get the "error converting to loadable format" message.

I can run the python script from the command line and it does work.   I can
and have modified the .pygr script to produce other outputs in .png, 
.jpg, .ps, etc.

without problem.

But inside LyX, regardless of what I do to define the converter,  I can 
not get the image

to render nor can I produce a .pdf output from the LyX doc.

Something is not right.   I am using LyX 2.0.1

Phil


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Rainer M Krug


Envoyé de mon iPhone

> Le 11 juin 2014 à 16:07, Ross Reyes  a écrit :
> 
> 
> Hi Alex,
> 
> I still get the "error converting to loadable format" message.
> 
> I can run the python script from the command line and it does work.   I can
> and have modified the .pygr script to produce other outputs in .png, .jpg, 
> .ps, etc.
> without problem.
> 
> But inside LyX, regardless of what I do to define the converter,  I can not 
> get the image
> to render nor can I produce a .pdf output from the LyX doc.
> 
> Something is not right.   I am using LyX 2.0.1

The converters are defined in the configuration file LyX. If you could take a 
loom at it and post the lines where you file formats and the converters are 
defined, one could see if there is something wrong. I don't have LyX at hand, 
so I can't give you the location of the config file. 

Cheers,

Rainer

> 
> Phil


Re: paper accepted for publication, but need help!

2014-06-11 Thread Benedict Holland
I think this is a problem with the default configuration, at least on
linux. You really need to use Bibtex8 for the bibliogrophy generation. This
is NOT the default. The default is bibtex which doesn't have any unicode
support because it actually was written in the 1980's. bibtex8 should
really be the default by now on any system. Also the language support in
lyx should default to utf-8. It would make life much easier to not have to
change these around so much and avoid these sorts of bugs. I also should
point out that pdflatex does an excellent job at catching these problems.
XeTex I think uses utf-8 by default which is why it worked when you
switched from pdflatex to XeTex.

~Ben


On Tue, Jun 10, 2014 at 7:57 AM, Jean-Marc Lasgouttes 
wrote:

> 10/06/2014 13:49, Neal Becker:
>
>  The problem is triggered by my .bib entry, which includes a non-ascii
>> character:
>>
>>author =  {Wojciech Bruzda and Wojciech Tadej and Karol
>> Życzkowski},
>>
>> By playing with lyx Document/Settings/Encoding, selecting unicode XeTeX
>> (utf-8),
>> I seem to be able to export dvi and then convert dvipdf OK.
>>
>> So is this a "good" procedure, or is something else recommended here?
>>
>
> You should use the same encoding for your document and the LyX output
> encoding. A workaround is to use LaTeX markup in the .bib file so that it
> is compatible with any encoding.
>
> JMarc
>
>