Re: pstricks example in a lyx file

2013-04-24 Thread Wolfgang Engelmann
Am Mittwoch, 24. April 2013, 07:17:30 schrieb Andrew Parsloe:

Hallo, Andrew
and thanks for your pstricks examples in lyx. Both of them work for me.
I have used your pst3dplotExample.lyx as a template for my file 
pst3dplotExampleForTests.lyx

\begin{TeXtoEPS}
\psset{path=/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII,unit=0.75cm} 
\begin{pspicture}(-7,-7)(7,7)
  \WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture}
\end{TeXtoEPS}

which, however, gives me an empty page with VIEW postscript and after 
exporting as ps only an empty globe with latitudes and longitudes and an 
error message of ghostscript
###
Error: /invalidfileaccess in --run--
Operand stack:
   (/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII/europe-cil.dat)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --
nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --
nostringval--   1878   1   7   %oparray_pop   --nostringval--
Dictionary stack:
   --dict:1157/1684(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--   --
dict:174/300(L)--   --dict:38/200(L)--   --dict:126/200(L)--   --
dict:56/100(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
###
which, according to the author of PSTricks is probably a problem with 
GhostScript and the option -dSAFER, which prevents the execution  of 
external files and which is set internally. 
He proposed to try
ps2pdf -dNOSAFER -datei.ps

which I did in this way:
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps

This gives me on the terminal:

wolfgang@wolfgang:/mnt/sda/home/wolfgang/PSTricks$ ps2pdf -dNOSAFER -
pst-3dplotExampleForTests.ps
Running: dvips  -o pst-3dplotExampleForTests.ps 
pst-3dplotExampleForTests.dvi
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2013.04.24:0927' - pst-3dplotExampleForTests.ps
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/tex.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/dvips/pstricks/pstricks.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
algparser.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-tools/pst-
tools.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
dots.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-geo/pst-
map3dII.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/special.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/color.pro. [1] 
#
and stops with:
Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]

I understand only Bahnhof. as we say in German...

Anybody out there who could tell me how to combine this one
ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]
with that one
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps
???

Wolfgang


lyx and natbib, two questions

2013-04-24 Thread Csikos Bela
Hello:

I have two questions on natbib in lyx.

1. How can I set options for the natbib package? The stuff that goes between 
[], like \usepackage[options]{natbib}. As I see lyx adds only 'authoryear' or 
'numbers' as options, but how can I add other options, eg. 'merge'?

2. I have a document where all the citations, even those which are neighbors, 
are inserted separately. This results in separate citations in the output as 
well: (Smith et al., 1995)(Jones et al., 2003), which is ugly. Is it possible 
to get a single output [like (Smith et al., 1995; Jones et al., 2003)] without 
moving all neighboring citations into one group? It would be really tedious 
work to group them now.

Thanks,

bcsikos



Lyx under Windows 8?

2013-04-24 Thread Holger Stenius
Hello. Does anyone know whether Lyx works under windows 8?


Is there a way to make hyperlinked text visible in LyX?

2013-04-24 Thread Winslow Strong
If the text in a hyperlink is a little bit long, currently LyX
truncates it in the editor, so WYSIWYM is violated.  I was wondering
if there is a way to force LyX to display the entire anchor text
always?

Obviously a work around is simply to not hyperlink text that is very
long, but occasionally it's called for IMO.

Thanks for any help.

Cheers,
Winslow


Can not change table padding in Lyx

2013-04-24 Thread Junchao Zhang
Hello,
  I use LyX 2.0 on Linux. I want to decrease table padding in a table. I
read http://tex.stackexchange.com/questions/35493/table-padding-in-lyx
  I included \usepackage{booktabs} in the LaTex preamble. In the lyx file,
I have
[image: Inline image 1]

 But from the generated pdf file, it seems this approach doesn't work.
 What is wrong with my code?
 Thanks

-- Junchao Zhang
image.png

Re: pstricks example in a lyx file

2013-04-24 Thread Andrew Parsloe



On 24/04/2013 8:14 p.m., Wolfgang Engelmann wrote:

Am Mittwoch, 24. April 2013, 07:17:30 schrieb Andrew Parsloe:

Hallo, Andrew
and thanks for your pstricks examples in lyx. Both of them work for me.
I have used your pst3dplotExample.lyx as a template for my file
pst3dplotExampleForTests.lyx


Oops. I meant to click reply list but obviously clicked only reply. 
I've re-sent it, to the list this time. I can't help with these later 
questions, however.


Andrew


\begin{TeXtoEPS}
\psset{path=/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII,unit=0.75cm}
\begin{pspicture}(-7,-7)(7,7)
   \WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture}
\end{TeXtoEPS}

which, however, gives me an empty page with VIEW postscript and after
exporting as ps only an empty globe with latitudes and longitudes and an
error message of ghostscript
###
Error: /invalidfileaccess in --run--
Operand stack:
(/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII/europe-cil.dat)   (r)
Execution stack:
%interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --
nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --
nostringval--   1878   1   7   %oparray_pop   --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--   --
dict:174/300(L)--   --dict:38/200(L)--   --dict:126/200(L)--   --
dict:56/100(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
###
which, according to the author of PSTricks is probably a problem with
GhostScript and the option -dSAFER, which prevents the execution  of
external files and which is set internally.
He proposed to try
ps2pdf -dNOSAFER -datei.ps

which I did in this way:
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps

This gives me on the terminal:

wolfgang@wolfgang:/mnt/sda/home/wolfgang/PSTricks$ ps2pdf -dNOSAFER -
pst-3dplotExampleForTests.ps
Running: dvips  -o pst-3dplotExampleForTests.ps
pst-3dplotExampleForTests.dvi
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software
(www.radicaleye.com)
' TeX output 2013.04.24:0927' - pst-3dplotExampleForTests.ps
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/tex.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/dvips/pstricks/pstricks.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
algparser.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-tools/pst-
tools.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
dots.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-geo/pst-
map3dII.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/special.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/color.pro. [1]
#
and stops with:
Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]

I understand only Bahnhof. as we say in German...

Anybody out there who could tell me how to combine this one
ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]
with that one
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps
???

Wolfgang



Fwd: Re: pstricks example in a lyx file

2013-04-24 Thread Andrew Parsloe




 Original Message 
Subject: Re: pstricks example in a lyx file
Date: Wed, 24 Apr 2013 17:17:30 +1200
From: Andrew Parsloe apars...@clear.net.nz
To: engelm...@uni-tuebingen.de


On 23/04/2013 8:01 p.m., Wolfgang Engelmann wrote:

Could somebody share with me a working lyx file with a pstricks example in
it as ERT? Ideally a pst-geo example. I just can't get it working.
I am on Debian squeeze and Lyx 2.0.5.1
Wolfgang


  Hullo Wolfgang.

I use PSTricks from within LyX constantly (but I'm  on Windows Vista,
and MiKTeK 2.9, rather than Linux  TeXLive.) I presume you know that
you need to use View other formats, View Postscript or View PDF
(ps2pdf)? (Or export to Postscript or PDF (ps2pdf).) The usual pdflatex
won't work.

If that isn't the problem, there are two ways of proceeding. One way is
to insert PSTricks code into an ERT inset (which itself may be in a
Preview inset) in a LyX document, as in the attached triangle.lyx file,
and then either view or export to Postscript or PDF (ps2pdf).

The other way is to create a new LyX document and in an ERT inset  type

\begin{TeXtoEPS}
\pspicture*(-1,-1)(5,5)
%
\psgrid[gridwidth=.3pt,gridlabels=8pt,gridlabelcolor=gray](0,0)(-1,-1)(5,5)
%enter commands after this line



%enter commands above this line
\endpspicture
\end{TeXtoEPS}

Note that the \psgrid ... (-1,-1)(5,5) command is all one line --
there's no carriage return in it). The TeXtoEPS stuff is there to crop
the picture to its natural size. Without it you end up with a whole page
(including headers and footers IIRC). In DocumentSettingsLaTeX
Preamble I have

\usepackage{pstricks}
\usepackage{pst-eps}

The pst-eps package is necessary for the TeXtoEPS commands. (To avoid
having to do this every time, I've made a LyX template with all these
settings.) Lastly, you need to modify the DVI to Postscript converter
under ToolsPreferencesFile HandlingConverters. I think the default
setting is

dvips -o $$o $$i

This needs to be changed to

dvips -E -o $$o $$i

to ensure that the picture is cropped.

To create a picture I type PSTricks commands into the ERT inset in the
place indicated. To see what the picture looks like type Ctrl+T (or
click the View other formats button and select either View Postscript)
or View PDF (ps2pdf). Using the usual View button (pdflatex) will give
errors. With Ctrl+T, after a moment gsview pops up with the cropped
picture. Add more commands then type Ctrl+Shift+T to update the view
(when you click on gsview). When the picture is complete, to get rid of
the grid markings, move the cursor (in LyX) to just after the % sign
above the \psgrid command and press the Del button. This turns the grid
command into a comment. The size of the picture should also be adjusted
at this point (the values in the \pspicture*(-1,-1)(5,5) command). Do a
final updating of the view to see what it looks like, then
FileExportPostscript.

I save the LyX file as a .lyx file so that if I want to adjust the
picture it's available to be edited like any other LyX file. The
exported Postscript file takes up a lot of space and I generally convert
it to .png or .pdf. I gave up using ImageMagick for the conversion
because it kept on giving me trouble, and I now use IrfanView. The
resulting .png or .pdf can be inserted into a LyX document like any
other graphic.

I've attached an example (pst3dplotExample.lyx) which uses the
pst-3dplot package. As for the pst-geo package, which I haven't used,
that seems to need data files. I see \psset{unit=2.75,path=../data} in
the Europe3d.pdf that comes with the package. I suspect the data files
are those at http://frmas.free.fr/li_1.htm#_Xrmap_ (but I'm out of my
depth at this point).

Andrew






pst-3dplotExample.lyx
Description: application/lyx


triangle.lyx
Description: application/lyx


Re: lyx and natbib, two questions

2013-04-24 Thread Jacob Bishop
bcsikos,

1. How can I set options for the natbib package? The stuff that goes
 between [], like \usepackage[options]{natbib}. As I see lyx adds only
 'authoryear' or 'numbers' as options, but how can I add other options, eg.
 'merge'?


Although it seems strange (to me), you actually pass package options in
document - settings under document class, there is a class options
frame, and in that frame there is a textbox for custom options. That is
where you add them. This is documented in the LyX User's guide (in
help-user's guide) section B.1

2. I have a document where all the citations, even those which are
 neighbors, are inserted separately. This results in separate citations in
 the output as well: (Smith et al., 1995)(Jones et al., 2003), which is
 ugly. Is it possible to get a single output [like (Smith et al., 1995;
 Jones et al., 2003)] without moving all neighboring citations into one
 group? It would be really tedious work to group them now.


Not that I am aware of.

I hope this helps.

Jacob


crashes on quit, mac 10.8.3

2013-04-24 Thread Jacob Hammer
I was wondering if anyone can help with this problem: I get consistent
crashes on quit, after performing advanced find. For example, open a fresh
Lyx file, type in a few characters and a few math characters. Then,
perform an advanced find and replace for couple of math characters. Save
the file and quit Lyx. I always a crash on quit (no damage to the file).

I am using a mac with a freshly installed 10.8.3, freshly installed MacTex
and freshly installed Lyx 2.0.5.1. I have reinstalled the last two twice.

Occasionally, there are other crashes on quit, especially when dialog
boxes are used, such as spell check or regular find.

Any help would be greatly appreciated.

Thank you.

Jacob Hammer




Re: pstricks example in a lyx file

2013-04-24 Thread Wolfgang Engelmann
Am Mittwoch, 24. April 2013, 07:17:30 schrieb Andrew Parsloe:

Hallo, Andrew
and thanks for your pstricks examples in lyx. Both of them work for me.
I have used your pst3dplotExample.lyx as a template for my file 
pst3dplotExampleForTests.lyx

\begin{TeXtoEPS}
\psset{path=/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII,unit=0.75cm} 
\begin{pspicture}(-7,-7)(7,7)
  \WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture}
\end{TeXtoEPS}

which, however, gives me an empty page with VIEW postscript and after 
exporting as ps only an empty globe with latitudes and longitudes and an 
error message of ghostscript
###
Error: /invalidfileaccess in --run--
Operand stack:
   (/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII/europe-cil.dat)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --
nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --
nostringval--   1878   1   7   %oparray_pop   --nostringval--
Dictionary stack:
   --dict:1157/1684(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--   --
dict:174/300(L)--   --dict:38/200(L)--   --dict:126/200(L)--   --
dict:56/100(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
###
which, according to the author of PSTricks is probably a problem with 
GhostScript and the option -dSAFER, which prevents the execution  of 
external files and which is set internally. 
He proposed to try
ps2pdf -dNOSAFER -datei.ps

which I did in this way:
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps

This gives me on the terminal:

wolfgang@wolfgang:/mnt/sda/home/wolfgang/PSTricks$ ps2pdf -dNOSAFER -
pst-3dplotExampleForTests.ps
Running: dvips  -o pst-3dplotExampleForTests.ps 
pst-3dplotExampleForTests.dvi
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2013.04.24:0927' - pst-3dplotExampleForTests.ps
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/tex.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/dvips/pstricks/pstricks.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
algparser.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-tools/pst-
tools.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
dots.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-geo/pst-
map3dII.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/special.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/color.pro. [1] 
#
and stops with:
Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]

I understand only Bahnhof. as we say in German...

Anybody out there who could tell me how to combine this one
ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]
with that one
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps
???

Wolfgang


lyx and natbib, two questions

2013-04-24 Thread Csikos Bela
Hello:

I have two questions on natbib in lyx.

1. How can I set options for the natbib package? The stuff that goes between 
[], like \usepackage[options]{natbib}. As I see lyx adds only 'authoryear' or 
'numbers' as options, but how can I add other options, eg. 'merge'?

2. I have a document where all the citations, even those which are neighbors, 
are inserted separately. This results in separate citations in the output as 
well: (Smith et al., 1995)(Jones et al., 2003), which is ugly. Is it possible 
to get a single output [like (Smith et al., 1995; Jones et al., 2003)] without 
moving all neighboring citations into one group? It would be really tedious 
work to group them now.

Thanks,

bcsikos



Lyx under Windows 8?

2013-04-24 Thread Holger Stenius
Hello. Does anyone know whether Lyx works under windows 8?


Is there a way to make hyperlinked text visible in LyX?

2013-04-24 Thread Winslow Strong
If the text in a hyperlink is a little bit long, currently LyX
truncates it in the editor, so WYSIWYM is violated.  I was wondering
if there is a way to force LyX to display the entire anchor text
always?

Obviously a work around is simply to not hyperlink text that is very
long, but occasionally it's called for IMO.

Thanks for any help.

Cheers,
Winslow


Can not change table padding in Lyx

2013-04-24 Thread Junchao Zhang
Hello,
  I use LyX 2.0 on Linux. I want to decrease table padding in a table. I
read http://tex.stackexchange.com/questions/35493/table-padding-in-lyx
  I included \usepackage{booktabs} in the LaTex preamble. In the lyx file,
I have
[image: Inline image 1]

 But from the generated pdf file, it seems this approach doesn't work.
 What is wrong with my code?
 Thanks

-- Junchao Zhang
image.png

Re: pstricks example in a lyx file

2013-04-24 Thread Andrew Parsloe



On 24/04/2013 8:14 p.m., Wolfgang Engelmann wrote:

Am Mittwoch, 24. April 2013, 07:17:30 schrieb Andrew Parsloe:

Hallo, Andrew
and thanks for your pstricks examples in lyx. Both of them work for me.
I have used your pst3dplotExample.lyx as a template for my file
pst3dplotExampleForTests.lyx


Oops. I meant to click reply list but obviously clicked only reply. 
I've re-sent it, to the list this time. I can't help with these later 
questions, however.


Andrew


\begin{TeXtoEPS}
\psset{path=/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII,unit=0.75cm}
\begin{pspicture}(-7,-7)(7,7)
   \WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture}
\end{TeXtoEPS}

which, however, gives me an empty page with VIEW postscript and after
exporting as ps only an empty globe with latitudes and longitudes and an
error message of ghostscript
###
Error: /invalidfileaccess in --run--
Operand stack:
(/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII/europe-cil.dat)   (r)
Execution stack:
%interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --
nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --
nostringval--   1878   1   7   %oparray_pop   --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--   --
dict:174/300(L)--   --dict:38/200(L)--   --dict:126/200(L)--   --
dict:56/100(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
###
which, according to the author of PSTricks is probably a problem with
GhostScript and the option -dSAFER, which prevents the execution  of
external files and which is set internally.
He proposed to try
ps2pdf -dNOSAFER -datei.ps

which I did in this way:
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps

This gives me on the terminal:

wolfgang@wolfgang:/mnt/sda/home/wolfgang/PSTricks$ ps2pdf -dNOSAFER -
pst-3dplotExampleForTests.ps
Running: dvips  -o pst-3dplotExampleForTests.ps
pst-3dplotExampleForTests.dvi
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software
(www.radicaleye.com)
' TeX output 2013.04.24:0927' - pst-3dplotExampleForTests.ps
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/tex.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-
dist/dvips/pstricks/pstricks.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
algparser.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-tools/pst-
tools.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pstricks/pst-
dots.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf-dist/dvips/pst-geo/pst-
map3dII.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/special.pro
/mnt/sda/home/wolfgang/texlive/2012/texmf/dvips/base/color.pro. [1]
#
and stops with:
Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]

I understand only Bahnhof. as we say in German...

Anybody out there who could tell me how to combine this one
ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]
with that one
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps
???

Wolfgang



Fwd: Re: pstricks example in a lyx file

2013-04-24 Thread Andrew Parsloe




 Original Message 
Subject: Re: pstricks example in a lyx file
Date: Wed, 24 Apr 2013 17:17:30 +1200
From: Andrew Parsloe apars...@clear.net.nz
To: engelm...@uni-tuebingen.de


On 23/04/2013 8:01 p.m., Wolfgang Engelmann wrote:

Could somebody share with me a working lyx file with a pstricks example in
it as ERT? Ideally a pst-geo example. I just can't get it working.
I am on Debian squeeze and Lyx 2.0.5.1
Wolfgang


  Hullo Wolfgang.

I use PSTricks from within LyX constantly (but I'm  on Windows Vista,
and MiKTeK 2.9, rather than Linux  TeXLive.) I presume you know that
you need to use View other formats, View Postscript or View PDF
(ps2pdf)? (Or export to Postscript or PDF (ps2pdf).) The usual pdflatex
won't work.

If that isn't the problem, there are two ways of proceeding. One way is
to insert PSTricks code into an ERT inset (which itself may be in a
Preview inset) in a LyX document, as in the attached triangle.lyx file,
and then either view or export to Postscript or PDF (ps2pdf).

The other way is to create a new LyX document and in an ERT inset  type

\begin{TeXtoEPS}
\pspicture*(-1,-1)(5,5)
%
\psgrid[gridwidth=.3pt,gridlabels=8pt,gridlabelcolor=gray](0,0)(-1,-1)(5,5)
%enter commands after this line



%enter commands above this line
\endpspicture
\end{TeXtoEPS}

Note that the \psgrid ... (-1,-1)(5,5) command is all one line --
there's no carriage return in it). The TeXtoEPS stuff is there to crop
the picture to its natural size. Without it you end up with a whole page
(including headers and footers IIRC). In DocumentSettingsLaTeX
Preamble I have

\usepackage{pstricks}
\usepackage{pst-eps}

The pst-eps package is necessary for the TeXtoEPS commands. (To avoid
having to do this every time, I've made a LyX template with all these
settings.) Lastly, you need to modify the DVI to Postscript converter
under ToolsPreferencesFile HandlingConverters. I think the default
setting is

dvips -o $$o $$i

This needs to be changed to

dvips -E -o $$o $$i

to ensure that the picture is cropped.

To create a picture I type PSTricks commands into the ERT inset in the
place indicated. To see what the picture looks like type Ctrl+T (or
click the View other formats button and select either View Postscript)
or View PDF (ps2pdf). Using the usual View button (pdflatex) will give
errors. With Ctrl+T, after a moment gsview pops up with the cropped
picture. Add more commands then type Ctrl+Shift+T to update the view
(when you click on gsview). When the picture is complete, to get rid of
the grid markings, move the cursor (in LyX) to just after the % sign
above the \psgrid command and press the Del button. This turns the grid
command into a comment. The size of the picture should also be adjusted
at this point (the values in the \pspicture*(-1,-1)(5,5) command). Do a
final updating of the view to see what it looks like, then
FileExportPostscript.

I save the LyX file as a .lyx file so that if I want to adjust the
picture it's available to be edited like any other LyX file. The
exported Postscript file takes up a lot of space and I generally convert
it to .png or .pdf. I gave up using ImageMagick for the conversion
because it kept on giving me trouble, and I now use IrfanView. The
resulting .png or .pdf can be inserted into a LyX document like any
other graphic.

I've attached an example (pst3dplotExample.lyx) which uses the
pst-3dplot package. As for the pst-geo package, which I haven't used,
that seems to need data files. I see \psset{unit=2.75,path=../data} in
the Europe3d.pdf that comes with the package. I suspect the data files
are those at http://frmas.free.fr/li_1.htm#_Xrmap_ (but I'm out of my
depth at this point).

Andrew






pst-3dplotExample.lyx
Description: application/lyx


triangle.lyx
Description: application/lyx


Re: lyx and natbib, two questions

2013-04-24 Thread Jacob Bishop
bcsikos,

1. How can I set options for the natbib package? The stuff that goes
 between [], like \usepackage[options]{natbib}. As I see lyx adds only
 'authoryear' or 'numbers' as options, but how can I add other options, eg.
 'merge'?


Although it seems strange (to me), you actually pass package options in
document - settings under document class, there is a class options
frame, and in that frame there is a textbox for custom options. That is
where you add them. This is documented in the LyX User's guide (in
help-user's guide) section B.1

2. I have a document where all the citations, even those which are
 neighbors, are inserted separately. This results in separate citations in
 the output as well: (Smith et al., 1995)(Jones et al., 2003), which is
 ugly. Is it possible to get a single output [like (Smith et al., 1995;
 Jones et al., 2003)] without moving all neighboring citations into one
 group? It would be really tedious work to group them now.


Not that I am aware of.

I hope this helps.

Jacob


crashes on quit, mac 10.8.3

2013-04-24 Thread Jacob Hammer
I was wondering if anyone can help with this problem: I get consistent
crashes on quit, after performing advanced find. For example, open a fresh
Lyx file, type in a few characters and a few math characters. Then,
perform an advanced find and replace for couple of math characters. Save
the file and quit Lyx. I always a crash on quit (no damage to the file).

I am using a mac with a freshly installed 10.8.3, freshly installed MacTex
and freshly installed Lyx 2.0.5.1. I have reinstalled the last two twice.

Occasionally, there are other crashes on quit, especially when dialog
boxes are used, such as spell check or regular find.

Any help would be greatly appreciated.

Thank you.

Jacob Hammer




Re: pstricks example in a lyx file

2013-04-24 Thread Wolfgang Engelmann
Am Mittwoch, 24. April 2013, 07:17:30 schrieb Andrew Parsloe:

Hallo, Andrew
and thanks for your pstricks examples in lyx. Both of them work for me.
I have used your pst3dplotExample.lyx as a template for my file 
pst3dplotExampleForTests.lyx

\begin{TeXtoEPS}
\psset{path=/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII,unit=0.75cm} 
\begin{pspicture}(-7,-7)(7,7)
  \WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture}
\end{TeXtoEPS}

which, however, gives me an empty page with VIEW postscript and after 
exporting as ps only an empty globe with latitudes and longitudes and an 
error message of ghostscript
###
Error: /invalidfileaccess in --run--
Operand stack:
   (/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII/europe-cil.dat)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --
nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop   
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --
nostringval--   1878   1   7   %oparray_pop   --nostringval--
Dictionary stack:
   --dict:1157/1684(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--   --
dict:174/300(L)--   --dict:38/200(L)--   --dict:126/200(L)--   --
dict:56/100(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
###
which, according to the author of PSTricks is probably a problem with 
GhostScript and the option -dSAFER, which prevents the execution  of 
external files and which is set internally. 
He proposed to try
ps2pdf -dNOSAFER -.ps

which I did in this way:
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps

This gives me on the terminal:

wolfgang@wolfgang:/mnt/sda/home/wolfgang/PSTricks$ ps2pdf -dNOSAFER -
pst-3dplotExampleForTests.ps
Running: dvips  -o "pst-3dplotExampleForTests.ps" 
"pst-3dplotExampleForTests.dvi"
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software 
(www.radicaleye.com)
' TeX output 2013.04.24:0927' -> pst-3dplotExampleForTests.ps







. [1] 
#
and stops with:
Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]

I understand only Bahnhof. as we say in German...

Anybody out there who could tell me how to combine this one
ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]
with that one
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps
???

Wolfgang


lyx and natbib, two questions

2013-04-24 Thread Csikos Bela
Hello:

I have two questions on natbib in lyx.

1. How can I set options for the natbib package? The stuff that goes between 
[], like \usepackage[options]{natbib}. As I see lyx adds only 'authoryear' or 
'numbers' as options, but how can I add other options, eg. 'merge'?

2. I have a document where all the citations, even those which are neighbors, 
are inserted separately. This results in separate citations in the output as 
well: (Smith et al., 1995)(Jones et al., 2003), which is ugly. Is it possible 
to get a single output [like (Smith et al., 1995; Jones et al., 2003)] without 
moving all neighboring citations into one group? It would be really tedious 
work to group them now.

Thanks,

bcsikos



Lyx under Windows 8?

2013-04-24 Thread Holger Stenius
Hello. Does anyone know whether Lyx works under windows 8?


Is there a way to make hyperlinked text visible in LyX?

2013-04-24 Thread Winslow Strong
If the text in a hyperlink is a little bit long, currently LyX
truncates it in the editor, so WYSIWYM is violated.  I was wondering
if there is a way to force LyX to display the entire anchor text
always?

Obviously a work around is simply to not hyperlink text that is very
long, but occasionally it's called for IMO.

Thanks for any help.

Cheers,
Winslow


Can not change table padding in Lyx

2013-04-24 Thread Junchao Zhang
Hello,
  I use LyX 2.0 on Linux. I want to decrease table padding in a table. I
read http://tex.stackexchange.com/questions/35493/table-padding-in-lyx
  I included \usepackage{booktabs} in the LaTex preamble. In the lyx file,
I have
[image: Inline image 1]

 But from the generated pdf file, it seems this approach doesn't work.
 What is wrong with my code?
 Thanks

-- Junchao Zhang
<>

Re: pstricks example in a lyx file

2013-04-24 Thread Andrew Parsloe



On 24/04/2013 8:14 p.m., Wolfgang Engelmann wrote:

Am Mittwoch, 24. April 2013, 07:17:30 schrieb Andrew Parsloe:

Hallo, Andrew
and thanks for your pstricks examples in lyx. Both of them work for me.
I have used your pst3dplotExample.lyx as a template for my file
pst3dplotExampleForTests.lyx


Oops. I meant to click "reply list" but obviously clicked only "reply". 
I've re-sent it, to the list this time. I can't help with these later 
questions, however.


Andrew


\begin{TeXtoEPS}
\psset{path=/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII,unit=0.75cm}
\begin{pspicture}(-7,-7)(7,7)
   \WorldMapThreeDII[all=true,rivers=false,level=75]
\end{pspicture}
\end{TeXtoEPS}

which, however, gives me an empty page with VIEW postscript and after
exporting as ps only an empty globe with latitudes and longitudes and an
error message of ghostscript
###
Error: /invalidfileaccess in --run--
Operand stack:
(/home/wolfgang/texlive/2012/texmf-dist/tex/generic/pst-
geo/dataII/europe-cil.dat)   (r)
Execution stack:
%interp_exit   .runexec2   --nostringval--   --nostringval--   --
nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --
nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop
1877   1   3   %oparray_pop   1861   1   3   %oparray_pop   1755   1   3
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --
nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --
nostringval--   1878   1   7   %oparray_pop   --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--   --
dict:174/300(L)--   --dict:38/200(L)--   --dict:126/200(L)--   --
dict:56/100(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
###
which, according to the author of PSTricks is probably a problem with
GhostScript and the option -dSAFER, which prevents the execution  of
external files and which is set internally.
He proposed to try
ps2pdf -dNOSAFER -.ps

which I did in this way:
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps

This gives me on the terminal:

wolfgang@wolfgang:/mnt/sda/home/wolfgang/PSTricks$ ps2pdf -dNOSAFER -
pst-3dplotExampleForTests.ps
Running: dvips  -o "pst-3dplotExampleForTests.ps"
"pst-3dplotExampleForTests.dvi"
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software
(www.radicaleye.com)
' TeX output 2013.04.24:0927' -> pst-3dplotExampleForTests.ps







. [1]
#
and stops with:
Usage: ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]

I understand only Bahnhof. as we say in German...

Anybody out there who could tell me how to combine this one
ps2pdfwr [options...] (input.[e]ps|-) [output.pdf|-]
with that one
ps2pdf -dNOSAFER -pst-3dplotExampleForTests.ps
???

Wolfgang



Fwd: Re: pstricks example in a lyx file

2013-04-24 Thread Andrew Parsloe




 Original Message 
Subject: Re: pstricks example in a lyx file
Date: Wed, 24 Apr 2013 17:17:30 +1200
From: Andrew Parsloe 
To: engelm...@uni-tuebingen.de


On 23/04/2013 8:01 p.m., Wolfgang Engelmann wrote:

Could somebody share with me a working lyx file with a pstricks example in
it as ERT? Ideally a pst-geo example. I just can't get it working.
I am on Debian squeeze and Lyx 2.0.5.1
Wolfgang


  Hullo Wolfgang.

I use PSTricks from within LyX constantly (but I'm  on Windows Vista,
and MiKTeK 2.9, rather than Linux & TeXLive.) I presume you know that
you need to use View other formats, View Postscript or View PDF
(ps2pdf)? (Or export to Postscript or PDF (ps2pdf).) The usual pdflatex
won't work.

If that isn't the problem, there are two ways of proceeding. One way is
to insert PSTricks code into an ERT inset (which itself may be in a
Preview inset) in a LyX document, as in the attached triangle.lyx file,
and then either view or export to Postscript or PDF (ps2pdf).

The other way is to create a new LyX document and in an ERT inset  type

\begin{TeXtoEPS}
\pspicture*(-1,-1)(5,5)
%
\psgrid[gridwidth=.3pt,gridlabels=8pt,gridlabelcolor=gray](0,0)(-1,-1)(5,5)
%enter commands after this line



%enter commands above this line
\endpspicture
\end{TeXtoEPS}

Note that the \psgrid ... (-1,-1)(5,5) command is all one line --
there's no carriage return in it). The TeXtoEPS stuff is there to crop
the picture to its natural size. Without it you end up with a whole page
(including headers and footers IIRC). In Document>Settings>LaTeX
Preamble I have

\usepackage{pstricks}
\usepackage{pst-eps}

The pst-eps package is necessary for the TeXtoEPS commands. (To avoid
having to do this every time, I've made a LyX template with all these
settings.) Lastly, you need to modify the DVI to Postscript converter
under Tools>Preferences>File Handling>Converters. I think the default
setting is

dvips -o $$o $$i

This needs to be changed to

dvips -E -o $$o $$i

to ensure that the picture is cropped.

To create a picture I type PSTricks commands into the ERT inset in the
place indicated. To see what the picture looks like type Ctrl+T (or
click the View other formats button and select either View Postscript)
or View PDF (ps2pdf). Using the usual View button (pdflatex) will give
errors. With Ctrl+T, after a moment gsview pops up with the cropped
picture. Add more commands then type Ctrl+Shift+T to update the view
(when you click on gsview). When the picture is complete, to get rid of
the grid markings, move the cursor (in LyX) to just after the % sign
above the \psgrid command and press the Del button. This turns the grid
command into a comment. The size of the picture should also be adjusted
at this point (the values in the \pspicture*(-1,-1)(5,5) command). Do a
final updating of the view to see what it looks like, then
File>Export>Postscript.

I save the LyX file as a .lyx file so that if I want to adjust the
picture it's available to be edited like any other LyX file. The
exported Postscript file takes up a lot of space and I generally convert
it to .png or .pdf. I gave up using ImageMagick for the conversion
because it kept on giving me trouble, and I now use IrfanView. The
resulting .png or .pdf can be inserted into a LyX document like any
other graphic.

I've attached an example (pst3dplotExample.lyx) which uses the
pst-3dplot package. As for the pst-geo package, which I haven't used,
that seems to need data files. I see \psset{unit=2.75,path=../data} in
the Europe3d.pdf that comes with the package. I suspect the data files
are those at http://frmas.free.fr/li_1.htm#_Xrmap_ (but I'm out of my
depth at this point).

Andrew






pst-3dplotExample.lyx
Description: application/lyx


triangle.lyx
Description: application/lyx


Re: lyx and natbib, two questions

2013-04-24 Thread Jacob Bishop
bcsikos,

1. How can I set options for the natbib package? The stuff that goes
> between [], like \usepackage[options]{natbib}. As I see lyx adds only
> 'authoryear' or 'numbers' as options, but how can I add other options, eg.
> 'merge'?
>

Although it seems strange (to me), you actually pass package options in
document -> settings under document class, there is a "class options"
frame, and in that frame there is a textbox for custom options. That is
where you add them. This is documented in the LyX User's guide (in
help->user's guide) section B.1

2. I have a document where all the citations, even those which are
> neighbors, are inserted separately. This results in separate citations in
> the output as well: (Smith et al., 1995)(Jones et al., 2003), which is
> ugly. Is it possible to get a single output [like (Smith et al., 1995;
> Jones et al., 2003)] without moving all neighboring citations into one
> group? It would be really tedious work to group them now.
>

Not that I am aware of.

I hope this helps.

Jacob


crashes on quit, mac 10.8.3

2013-04-24 Thread Jacob Hammer
I was wondering if anyone can help with this problem: I get consistent
crashes on quit, after performing advanced find. For example, open a fresh
Lyx file, type in a few characters and a few math characters. Then,
perform an advanced find and replace for couple of math characters. Save
the file and quit Lyx. I always a crash on quit (no damage to the file).

I am using a mac with a freshly installed 10.8.3, freshly installed MacTex
and freshly installed Lyx 2.0.5.1. I have reinstalled the last two twice.

Occasionally, there are other crashes on quit, especially when dialog
boxes are used, such as spell check or regular find.

Any help would be greatly appreciated.

Thank you.

Jacob Hammer