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