program list in LyX notes

2014-04-10 Thread Wolfgang Engelmann

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually. I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang


Re: program list in LyX notes

2014-04-10 Thread aparsloe


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit  Paste Special  Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my system.

Andrew

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang





Re: program list in LyX notes

2014-04-10 Thread Wolfgang Engelmann


Am 10.04.2014 11:13, schrieb aparsloe:


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit  Paste Special  Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my 
system.


Andrew

Thanks, Andrew. That is handy!

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang







Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Rainer M Krug
Full Name veurbu...@myway.com writes:

 I have a bunch of vector graphics (from Draw, Scribus and Origin) that
 are included as eps files in my document. With the current (2.0.6)
 version under WinXP making a pdf goes smoothly except for a few
 problems with some of these pictures getting cut off at the bottom. On
 Linux Mint though the vector graphics get converted to pixel graphics
 of horrible quality in the pdf when running pdflatex. Dvipdfm and

Tsis all depends on the tools for graphic conversion installed. If you
specify the type of vector format, one could have a better idea what is
possibly missing o=under Linux Mint.

 ps2pdf also work under Windows but under Linux they throw errors of a
 number being too large or of some pixel images (that are tif files
 converted to eps, not the files mentioned before) being too large (in
 inches). So I cannot test these methods.

Just to clarify - and likely you know it - tif is not a vector format
but a bitmap format.

Cheers,

Rainer

 What do you think is missing in the installation under Linux that is present 
 in the Windows one?
 Thank you.

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


pgpWRaoapJRuS.pgp
Description: PGP signature


Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Les Denham
On Thu, 10 Apr 2014 11:21:35 -0400
Full Name veurbu...@myway.com wrote:

 I have a bunch of vector graphics (from Draw, Scribus and Origin)
 that are included as eps files in my document. With the current
 (2.0.6) version under WinXP making a pdf goes smoothly except for a
 few problems with some of these pictures getting cut off at the
 bottom. On Linux Mint though the vector graphics get converted to
 pixel graphics of horrible quality in the pdf when running pdflatex.
 Dvipdfm and ps2pdf also work under Windows but under Linux they throw
 errors of a number being too large or of some pixel images (that are
 tif files converted to eps, not the files mentioned before) being too
 large (in inches). So I cannot test these methods. What do you think
 is missing in the installation under Linux that is present in the
 Windows one? Thank you.

I have a Linux system which does not have these problems, though it is
Gentoo, not Linux Mint. The problem with pdflatex might involve not
having a full texlive installed. As far as I can tell the conversion is
handled (at least in ps2pdf) by epstopdf, which is part of the
dev-texlive/texlive-fontutils package.

On my system LyX handles the tiff to PDF conversion with tiff2ps, which
is part of the media-libs/tiff package. You may be missing this package
(which may have a different name in Linux Mint).

Les


Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Pavel Sanda
Full Name wrote:
 I have a bunch of vector graphics (from Draw, Scribus and Origin) that are 
 included as eps files in my document. With the current (2.0.6) version under 
 WinXP making a pdf goes smoothly except for a few problems with some of these 
 pictures getting cut off at the bottom. On Linux Mint though the vector 
 graphics get converted to pixel graphics of horrible quality in the pdf when 
 running pdflatex. Dvipdfm and ps2pdf also work under Windows but under Linux 
 they throw errors of a number being too large or of some pixel images (that 
 are tif files converted to eps, not the files mentioned before) being too 
 large (in inches). So I cannot test these methods.
 What do you think is missing in the installation under Linux that is present 
 in the Windows one?
 Thank you.

Do you have installed epstopdf binary (part of texlive-fontutils)?
If not please report it on mint bug tracker that this should be part of 
depencies when lyx is installed.
Pavel


Re: Thesis template and layout files

2014-04-10 Thread Jacob Bishop
On Thu, Apr 10, 2014 at 5:14 PM, Steve Burnham dan...@gmail.com wrote:

 I am trying to write my thesis using LyX but I am experiencing some
 confusion/problems with importing my universities thesis class and create
 the LyX template.


Hi Steve, I used LyX for my thesis, and had to customize things to work for
my university template. Perhaps you have already figured some of this out,
but I would like to provide a few suggestions for how to proceed:

1) Download the template (including both the necessary .cls/sty files and a
minimal example). Your university should provide a working example. If they
don't then find a classmate or friend that has one.
2) Get the minimal example to compile and produce acceptable output using
regular old LaTeX.
3) Write a minimal layout file for LyX so the class shows up.
4) Put in everything you need from the example document, at this stage you
will typically use ERT liberally, and have a load of stuff in the preamble.
5) Debug until the document compiles in LyX just as it did in regular LaTeX.
6+) [optional] Gradually improve the LyX interface by modifying the .layout
file to support more of the thesis template's features, which will allow
you to remove ERT.

It appears to me that you tried to start somewhere in the middle of this
process, which I wouldn't generally recommend.

It looks like you tried to modify the book layout file to use with your
document class. Now, I could have missed something, but it looks like your
university's document class is not based on book. So, that won't work.

To explain a bit more in case you are lost with what I mean, a LaTeX
document typically relies on a document class. That class can either be an
original document class, or a derived one. By original, I mean a
document class that was written from scratch. There are several document
classes that come standard with LaTeX. These include book, article, report,
etc. Now, when a person writes a new document class (to use for a
university thesis, for instance) they usually create a derived class. By
that, I mean that they import the base class, inheriting all of the
goodness from it. The book class is usually a good base class for a thesis
template, but article is also sometimes used. Just as in LaTeX, .cls or
.sty files, LyX .layout files can be created by modifying an existing one.
The guiding principle in doing that is to create a new .layout file by
modifying the same .layout file your class was based on (again, for theses,
this is  usually the book class).

In any case, it looks to me like the person(s) who wrote the thesis
template you sent started from scratch. That means modifying the layout for
the book class won't work as well as one might hope. It might end up
requiring a bit more work, so my recommendation is to start at step 1
above, then ask again once you get past step 2 (and include the minimal
example in your response, it will make it easier to help).

Jacob

p.s. I did my MS at BYU and PhD at USU (both theses were written in LyX).
If it had been one of those, I would have a drop-in solution for you.


program list in LyX notes

2014-04-10 Thread Wolfgang Engelmann

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually. I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang


Re: program list in LyX notes

2014-04-10 Thread aparsloe


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit  Paste Special  Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my system.

Andrew

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang





Re: program list in LyX notes

2014-04-10 Thread Wolfgang Engelmann


Am 10.04.2014 11:13, schrieb aparsloe:


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit  Paste Special  Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my 
system.


Andrew

Thanks, Andrew. That is handy!

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang







Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Rainer M Krug
Full Name veurbu...@myway.com writes:

 I have a bunch of vector graphics (from Draw, Scribus and Origin) that
 are included as eps files in my document. With the current (2.0.6)
 version under WinXP making a pdf goes smoothly except for a few
 problems with some of these pictures getting cut off at the bottom. On
 Linux Mint though the vector graphics get converted to pixel graphics
 of horrible quality in the pdf when running pdflatex. Dvipdfm and

Tsis all depends on the tools for graphic conversion installed. If you
specify the type of vector format, one could have a better idea what is
possibly missing o=under Linux Mint.

 ps2pdf also work under Windows but under Linux they throw errors of a
 number being too large or of some pixel images (that are tif files
 converted to eps, not the files mentioned before) being too large (in
 inches). So I cannot test these methods.

Just to clarify - and likely you know it - tif is not a vector format
but a bitmap format.

Cheers,

Rainer

 What do you think is missing in the installation under Linux that is present 
 in the Windows one?
 Thank you.

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


pgpWRaoapJRuS.pgp
Description: PGP signature


Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Les Denham
On Thu, 10 Apr 2014 11:21:35 -0400
Full Name veurbu...@myway.com wrote:

 I have a bunch of vector graphics (from Draw, Scribus and Origin)
 that are included as eps files in my document. With the current
 (2.0.6) version under WinXP making a pdf goes smoothly except for a
 few problems with some of these pictures getting cut off at the
 bottom. On Linux Mint though the vector graphics get converted to
 pixel graphics of horrible quality in the pdf when running pdflatex.
 Dvipdfm and ps2pdf also work under Windows but under Linux they throw
 errors of a number being too large or of some pixel images (that are
 tif files converted to eps, not the files mentioned before) being too
 large (in inches). So I cannot test these methods. What do you think
 is missing in the installation under Linux that is present in the
 Windows one? Thank you.

I have a Linux system which does not have these problems, though it is
Gentoo, not Linux Mint. The problem with pdflatex might involve not
having a full texlive installed. As far as I can tell the conversion is
handled (at least in ps2pdf) by epstopdf, which is part of the
dev-texlive/texlive-fontutils package.

On my system LyX handles the tiff to PDF conversion with tiff2ps, which
is part of the media-libs/tiff package. You may be missing this package
(which may have a different name in Linux Mint).

Les


Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Pavel Sanda
Full Name wrote:
 I have a bunch of vector graphics (from Draw, Scribus and Origin) that are 
 included as eps files in my document. With the current (2.0.6) version under 
 WinXP making a pdf goes smoothly except for a few problems with some of these 
 pictures getting cut off at the bottom. On Linux Mint though the vector 
 graphics get converted to pixel graphics of horrible quality in the pdf when 
 running pdflatex. Dvipdfm and ps2pdf also work under Windows but under Linux 
 they throw errors of a number being too large or of some pixel images (that 
 are tif files converted to eps, not the files mentioned before) being too 
 large (in inches). So I cannot test these methods.
 What do you think is missing in the installation under Linux that is present 
 in the Windows one?
 Thank you.

Do you have installed epstopdf binary (part of texlive-fontutils)?
If not please report it on mint bug tracker that this should be part of 
depencies when lyx is installed.
Pavel


Re: Thesis template and layout files

2014-04-10 Thread Jacob Bishop
On Thu, Apr 10, 2014 at 5:14 PM, Steve Burnham dan...@gmail.com wrote:

 I am trying to write my thesis using LyX but I am experiencing some
 confusion/problems with importing my universities thesis class and create
 the LyX template.


Hi Steve, I used LyX for my thesis, and had to customize things to work for
my university template. Perhaps you have already figured some of this out,
but I would like to provide a few suggestions for how to proceed:

1) Download the template (including both the necessary .cls/sty files and a
minimal example). Your university should provide a working example. If they
don't then find a classmate or friend that has one.
2) Get the minimal example to compile and produce acceptable output using
regular old LaTeX.
3) Write a minimal layout file for LyX so the class shows up.
4) Put in everything you need from the example document, at this stage you
will typically use ERT liberally, and have a load of stuff in the preamble.
5) Debug until the document compiles in LyX just as it did in regular LaTeX.
6+) [optional] Gradually improve the LyX interface by modifying the .layout
file to support more of the thesis template's features, which will allow
you to remove ERT.

It appears to me that you tried to start somewhere in the middle of this
process, which I wouldn't generally recommend.

It looks like you tried to modify the book layout file to use with your
document class. Now, I could have missed something, but it looks like your
university's document class is not based on book. So, that won't work.

To explain a bit more in case you are lost with what I mean, a LaTeX
document typically relies on a document class. That class can either be an
original document class, or a derived one. By original, I mean a
document class that was written from scratch. There are several document
classes that come standard with LaTeX. These include book, article, report,
etc. Now, when a person writes a new document class (to use for a
university thesis, for instance) they usually create a derived class. By
that, I mean that they import the base class, inheriting all of the
goodness from it. The book class is usually a good base class for a thesis
template, but article is also sometimes used. Just as in LaTeX, .cls or
.sty files, LyX .layout files can be created by modifying an existing one.
The guiding principle in doing that is to create a new .layout file by
modifying the same .layout file your class was based on (again, for theses,
this is  usually the book class).

In any case, it looks to me like the person(s) who wrote the thesis
template you sent started from scratch. That means modifying the layout for
the book class won't work as well as one might hope. It might end up
requiring a bit more work, so my recommendation is to start at step 1
above, then ask again once you get past step 2 (and include the minimal
example in your response, it will make it easier to help).

Jacob

p.s. I did my MS at BYU and PhD at USU (both theses were written in LyX).
If it had been one of those, I would have a drop-in solution for you.


program list in LyX notes

2014-04-10 Thread Wolfgang Engelmann

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually. I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insert>file>external material
such as is done for xfig would be the best solution.

Wolfgang


Re: program list in LyX notes

2014-04-10 Thread aparsloe


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit > Paste Special > Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my system.

Andrew

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insert>file>external material
such as is done for xfig would be the best solution.

Wolfgang





Re: program list in LyX notes

2014-04-10 Thread Wolfgang Engelmann


Am 10.04.2014 11:13, schrieb aparsloe:


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit > Paste Special > Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my 
system.


Andrew

Thanks, Andrew. That is handy!

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insert>file>external material
such as is done for xfig would be the best solution.

Wolfgang







Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Rainer M Krug
"Full Name"  writes:

> I have a bunch of vector graphics (from Draw, Scribus and Origin) that
> are included as eps files in my document. With the current (2.0.6)
> version under WinXP making a pdf goes smoothly except for a few
> problems with some of these pictures getting cut off at the bottom. On
> Linux Mint though the vector graphics get converted to pixel graphics
> of horrible quality in the pdf when running pdflatex. Dvipdfm and

Tsis all depends on the tools for graphic conversion installed. If you
specify the type of vector format, one could have a better idea what is
possibly missing o=under Linux Mint.

> ps2pdf also work under Windows but under Linux they throw errors of a
> number being too large or of some pixel images (that are tif files
> converted to eps, not the files mentioned before) being too large (in
> inches). So I cannot test these methods.

Just to clarify - and likely you know it - tif is not a vector format
but a bitmap format.

Cheers,

Rainer

> What do you think is missing in the installation under Linux that is present 
> in the Windows one?
> Thank you.

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


pgpWRaoapJRuS.pgp
Description: PGP signature


Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Les Denham
On Thu, 10 Apr 2014 11:21:35 -0400
"Full Name"  wrote:

> I have a bunch of vector graphics (from Draw, Scribus and Origin)
> that are included as eps files in my document. With the current
> (2.0.6) version under WinXP making a pdf goes smoothly except for a
> few problems with some of these pictures getting cut off at the
> bottom. On Linux Mint though the vector graphics get converted to
> pixel graphics of horrible quality in the pdf when running pdflatex.
> Dvipdfm and ps2pdf also work under Windows but under Linux they throw
> errors of a number being too large or of some pixel images (that are
> tif files converted to eps, not the files mentioned before) being too
> large (in inches). So I cannot test these methods. What do you think
> is missing in the installation under Linux that is present in the
> Windows one? Thank you.

I have a Linux system which does not have these problems, though it is
Gentoo, not Linux Mint. The problem with pdflatex might involve not
having a full texlive installed. As far as I can tell the conversion is
handled (at least in ps2pdf) by epstopdf, which is part of the
dev-texlive/texlive-fontutils package.

On my system LyX handles the tiff to PDF conversion with tiff2ps, which
is part of the media-libs/tiff package. You may be missing this package
(which may have a different name in Linux Mint).

Les


Re: vector graphics badly pixelated when creating pdf with pdflatex under Linux Mint 16. Everything works perfectly under Windows XP.

2014-04-10 Thread Pavel Sanda
Full Name wrote:
> I have a bunch of vector graphics (from Draw, Scribus and Origin) that are 
> included as eps files in my document. With the current (2.0.6) version under 
> WinXP making a pdf goes smoothly except for a few problems with some of these 
> pictures getting cut off at the bottom. On Linux Mint though the vector 
> graphics get converted to pixel graphics of horrible quality in the pdf when 
> running pdflatex. Dvipdfm and ps2pdf also work under Windows but under Linux 
> they throw errors of a number being too large or of some pixel images (that 
> are tif files converted to eps, not the files mentioned before) being too 
> large (in inches). So I cannot test these methods.
> What do you think is missing in the installation under Linux that is present 
> in the Windows one?
> Thank you.

Do you have installed epstopdf binary (part of texlive-fontutils)?
If not please report it on mint bug tracker that this should be part of 
depencies when lyx is installed.
Pavel


Re: Thesis template and layout files

2014-04-10 Thread Jacob Bishop
On Thu, Apr 10, 2014 at 5:14 PM, Steve Burnham  wrote:

> I am trying to write my thesis using LyX but I am experiencing some
> confusion/problems with importing my universities thesis class and create
> the LyX template.
>

Hi Steve, I used LyX for my thesis, and had to customize things to work for
my university template. Perhaps you have already figured some of this out,
but I would like to provide a few suggestions for how to proceed:

1) Download the template (including both the necessary .cls/sty files and a
minimal example). Your university should provide a working example. If they
don't then find a classmate or friend that has one.
2) Get the minimal example to compile and produce acceptable output using
regular old LaTeX.
3) Write a minimal layout file for LyX so the class shows up.
4) Put in everything you need from the example document, at this stage you
will typically use ERT liberally, and have a load of stuff in the preamble.
5) Debug until the document compiles in LyX just as it did in regular LaTeX.
6+) [optional] Gradually improve the LyX interface by modifying the .layout
file to support more of the thesis template's features, which will allow
you to remove ERT.

It appears to me that you tried to start somewhere in the middle of this
process, which I wouldn't generally recommend.

It looks like you tried to modify the book layout file to use with your
document class. Now, I could have missed something, but it looks like your
university's document class is not based on book. So, that won't work.

To explain a bit more in case you are lost with what I mean, a LaTeX
document typically relies on a document class. That class can either be an
"original" document class, or a derived one. By "original," I mean a
document class that was written from scratch. There are several document
classes that come standard with LaTeX. These include book, article, report,
etc. Now, when a person writes a new document class (to use for a
university thesis, for instance) they usually create a derived class. By
that, I mean that they import the base class, inheriting all of the
goodness from it. The book class is usually a good base class for a thesis
template, but article is also sometimes used. Just as in LaTeX, .cls or
.sty files, LyX .layout files can be created by modifying an existing one.
The guiding principle in doing that is to create a new .layout file by
modifying the same .layout file your class was based on (again, for theses,
this is  usually the book class).

In any case, it looks to me like the person(s) who wrote the thesis
template you sent started from scratch. That means modifying the layout for
the book class won't work as well as one might hope. It might end up
requiring a bit more work, so my recommendation is to start at step 1
above, then ask again once you get past step 2 (and include the minimal
example in your response, it will make it easier to help).

Jacob

p.s. I did my MS at BYU and PhD at USU (both theses were written in LyX).
If it had been one of those, I would have a drop-in solution for you.