Re: TikZ

2022-09-28 Thread Daniel CLEMENT via lyx-users
Le mardi 27 septembre 2022 à 17:42 +0200, Tobias Hilbricht a écrit :
> Am Dienstag, dem 27.09.2022 um 17:06 +0200 schrieb Daniel CLEMENT via
> lyx-users:
> > Le mardi 27 septembre 2022 à 09:29 +0100, José Matos a écrit :
> > > On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote:
> > > > Hallo Dan,
> > > > 
> > > > LaTeX-Preamble:
> > > >\usepackage{tikz}
> > > >\usepackage{braids}
> > > > 
> > > > this works perfect - or what support do you wish?
> > > > bernhard
> > > 
> > > If you insert the tikz code inside a preview box the figure will be
> > > shown immediately, if you click over it you will see the code.
> > > 
> > > The preview box can be inserted in the same way as the tex code:
> > > 
> > > Insert -> TeX Code
> > > Insert -> Preview
> > 
> > Hmm... PFMJI, but I'd like to give this a try. Exactly how should it
> > be
> > done? 
> > 
> > If I put the tikz code inside the Preview, I just get the code in the
> > output. If I put it inside TeX Code, I get an error ("control
> > sequence
> > never def'd" about tkzTabInit)
> > 
> > I know my tikz code is OK because I was able to preview its result
> > and
> > export to eps from the Qtikz utility. But it would be sooo much
> > simpler
> > to get that directly under LyX!
> > > You are still responsible for adding the correct tikz code...
> > > 
> > > -- 
> > > José Abílio
> > 
> > -- 
> > Daniel CLEMENT
> 
> See the attached sample file. 
> Tobias
> 
> 
Thanks Tobias and Paul, problem solved. It was indeed twofold. For
reference, here is what I've done:

1) in order to get variation tables (is that correct?) to compile
correctly, I had to load the tkz-tab package instead of just tikz. (I
guess it's a superset of tikz with commands such as \TkzTabLine and so
on.)

2) My instant preview was indeed turned off, which I prefer for maths,
but there is the "no maths" option, which previews just the drawings. 

Very convenient!
-- 
Daniel CLEMENT
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: TikZ

2022-09-27 Thread Paul Smith
You have to activate instant preview beforehand, going to

Tools -> Preferences -> Look and Feel -> Display.

Paul

On Tue, Sep 27, 2022 at 4:12 PM Daniel CLEMENT via lyx-users
 wrote:
>
> Le mardi 27 septembre 2022 à 09:29 +0100, José Matos a écrit :
> > On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote:
> > > Hallo Dan,
> > >
> > > LaTeX-Preamble:
> > >\usepackage{tikz}
> > >\usepackage{braids}
> > >
> > > this works perfect - or what support do you wish?
> > > bernhard
> >
> > If you insert the tikz code inside a preview box the figure will be
> > shown immediately, if you click over it you will see the code.
> >
> > The preview box can be inserted in the same way as the tex code:
> >
> > Insert -> TeX Code
> > Insert -> Preview
>
> Hmm... PFMJI, but I'd like to give this a try. Exactly how should it be
> done?
>
> If I put the tikz code inside the Preview, I just get the code in the
> output. If I put it inside TeX Code, I get an error ("control sequence
> never def'd" about tkzTabInit)
>
> I know my tikz code is OK because I was able to preview its result and
> export to eps from the Qtikz utility. But it would be sooo much simpler
> to get that directly under LyX!
> >
> > You are still responsible for adding the correct tikz code...
> >
> > --
> > José Abílio
> --
> Daniel CLEMENT
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: TikZ

2022-09-27 Thread Tobias Hilbricht
Am Dienstag, dem 27.09.2022 um 17:06 +0200 schrieb Daniel CLEMENT via
lyx-users:
> Le mardi 27 septembre 2022 à 09:29 +0100, José Matos a écrit :
> > On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote:
> > > Hallo Dan,
> > > 
> > > LaTeX-Preamble:
> > >\usepackage{tikz}
> > >\usepackage{braids}
> > > 
> > > this works perfect - or what support do you wish?
> > > bernhard
> > 
> > If you insert the tikz code inside a preview box the figure will be
> > shown immediately, if you click over it you will see the code.
> > 
> > The preview box can be inserted in the same way as the tex code:
> > 
> > Insert -> TeX Code
> > Insert -> Preview
> 
> Hmm... PFMJI, but I'd like to give this a try. Exactly how should it
> be
> done? 
> 
> If I put the tikz code inside the Preview, I just get the code in the
> output. If I put it inside TeX Code, I get an error ("control
> sequence
> never def'd" about tkzTabInit)
> 
> I know my tikz code is OK because I was able to preview its result
> and
> export to eps from the Qtikz utility. But it would be sooo much
> simpler
> to get that directly under LyX!
> > You are still responsible for adding the correct tikz code...
> > 
> > -- 
> > José Abílio
> -- 
> Daniel CLEMENT

See the attached sample file. 
Tobias




tikz.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: TikZ

2022-09-27 Thread Daniel CLEMENT via lyx-users
Le mardi 27 septembre 2022 à 09:29 +0100, José Matos a écrit :
> On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote:
> > Hallo Dan,
> > 
> > LaTeX-Preamble:
> >    \usepackage{tikz}
> >    \usepackage{braids}
> > 
> > this works perfect - or what support do you wish?
> > bernhard
> 
> If you insert the tikz code inside a preview box the figure will be
> shown immediately, if you click over it you will see the code.
> 
> The preview box can be inserted in the same way as the tex code:
> 
> Insert -> TeX Code
> Insert -> Preview

Hmm... PFMJI, but I'd like to give this a try. Exactly how should it be
done? 

If I put the tikz code inside the Preview, I just get the code in the
output. If I put it inside TeX Code, I get an error ("control sequence
never def'd" about tkzTabInit)

I know my tikz code is OK because I was able to preview its result and
export to eps from the Qtikz utility. But it would be sooo much simpler
to get that directly under LyX!
> 
> You are still responsible for adding the correct tikz code...
> 
> -- 
> José Abílio
-- 
Daniel CLEMENT
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: TikZ

2022-09-27 Thread José Matos
On Fri, 2022-09-23 at 06:40 +, M.B. Schiekel wrote:
> Hallo Dan,
> 
> LaTeX-Preamble:
>    \usepackage{tikz}
>    \usepackage{braids}
> 
> this works perfect - or what support do you wish?
> bernhard

If you insert the tikz code inside a preview box the figure will be
shown immediately, if you click over it you will see the code.

The preview box can be inserted in the same way as the tex code:

Insert -> TeX Code
Insert -> Preview

You are still responsible for adding the correct tikz code...

-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: TikZ

2022-09-23 Thread M.B. Schiekel

Am 22.09.22 um 23:08 schrieb Dan:

I was wondering if LyX supports any TikZ packages?


Hallo Dan,

LaTeX-Preamble:
  \usepackage{tikz}
  \usepackage{braids}

this works perfect - or what support do you wish?
bernhard

--
M.B. Schiekel,
Email: mb.schie...@posteo.de
Homepage: https://www.mb-schiekel.de/
GnuPG: https://keys.openpgp.org/
posteo.de: SSL-Verschluesselung + Oekostrom

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: tikz picture rendering

2018-12-22 Thread Daniel

On 22/12/2018 11:39, paolo m.  wrote:

A circle appears downward shifted and cut off, in LyX display, when paragraph
separation is set 'vertical space", as in circle-no-good.lyx
Pdf rendering is different in the two files, as well.

paolo m.



I can reproduce the problem. And it depends on the size of the vertical 
space set as paragraph separation. I am not sure how the preview 
rendering is done but I guess for some reason a paragraph break seems to 
be added at it's beginning.


I suggest you file a bug report.

Daniel



Re: tikz pictures rendering

2018-10-28 Thread Baris Erkus
On 10/28/2018 3:36 PM, Pol wrote:

Hi all,
​I don't know  if this a lyx software issue or a tikz programming issue (i
am
rather new to tikz)

I would like to lower a bit the circle in the 'in line' command:

 \tikz \draw (0,-9pt) circle (4pt);

so that the circle appear shifted a little lower, with respect to the text
line it is in.
​inserting the latex command:

\tikz \draw (0,-9pt) circle (4pt);

​obtains:
1 - ​the ​picture​​,​ on the lyx display​,​ effectively shifted downward, but
its lower part has been cut away.​ I would have a full circle in the text
line.
​
​2 - T​he picture appears unmoved, in the pdf rendering

Any comments will be appreciated

thank you

paolo m.



Hello,

It seems like, inline tikz figures ignores the white spaces around the figure. 
So, even if you shift the figure, you will not see a change in the PDF. To fix 
that you can use "baseline" as in:

\tikz[baseline]{\draw (0,0pt) circle (4pt);}

This seems to glue the 0,0 center point to the baseline.

See the SE query at

https://tex.stackexchange.com/questions/416226/move-an-inline-tikz-node-vertically-to-align-with-baseline-of-surrounding-text

I think this may help with your PDF output.

When it comes to LyX rendering, I don't think you should expect too much from 
LyX. As far as I know, the "Instant Preview" option is not intended to show the 
perfect PDF output. Maybe it needs an adjustment with the inline Tikz figures. 
You can report this issue to the developers, if you wish.

Baris


test-inline-tikz-new.lyx
Description: test-inline-tikz-new.lyx


Re: tikz pictures rendering

2018-10-28 Thread Pol
Joel Kulesza wrote:

> Paolo,
> 
> Can you please provide MWE 
(https://wiki.lyx.org/FAQ/MinimalExample
> )?  If so, I'll take a closer
> look.

Here included my test file.
I have to correct my observations here (probably my tikz command, a 
few hours ago, was not the same; not sure):
- both normal position circle and the shifted one, have been cut off, 
as displayed by LyX.
- no cut off, no shift for both normal position circle and the shifted 
one, as rendered as pdf.

Thank you

paolo m.



test-inline-tikz.lyx
Description: application/lyx


Re: tikz pictures rendering

2018-10-28 Thread Joel Kulesza
Paolo,

Can you please provide MWE (https://wiki.lyx.org/FAQ/MinimalExample 
)?  If so, I'll take a closer look.

Thanks,
Joel

> On Oct 28, 2018, at 6:36 AM, Pol  wrote:
> 
> Hi all, 
> ​I don't know  if this a lyx software issue or a tikz programming issue (i 
> am
> rather new to tikz)
> 
> I would like to lower a bit the circle in the 'in line' command:
> 
> \tikz \draw (0,-9pt) circle (4pt);
> 
> so that the circle appear shifted a little lower, with respect to the text
> line it is in.
> ​inserting the latex command:
> 
> \tikz \draw (0,-9pt) circle (4pt);
> 
> ​obtains:
> 1 - ​the ​picture​​,​ on the lyx display​,​ effectively shifted downward, but 
> its lower part has been cut away.​ I would have a full circle in the text 
> line.
> ​
> ​2 - T​he picture appears unmoved, in the pdf rendering
> 
> Any comments will be appreciated
> 
> thank you
> 
> paolo m.
> 



Re: Tikz Sparklines

2010-02-10 Thread Manveru
2010/2/7 Paul A. Rubin ru...@msu.edu:
 Jason Waskiewicz wrote:

 I've been using Tikz graphics in my LyX files for some time now, with
 success, I might add.

 Recently, I tried to include sparklines in two different LyX files. An
 example of what I mean can be found at:
 http://www.texample.net/tikz/examples/temperature-and-rain-sparklines/
 They do not appear. With the first one, I simply exported the file as
 LaTeX and was able to use it that way. My most recent project is part of a
 much larger project with many files and the idea of switching entirely to
 LaTeX sounds like too much work. I like the visual advantages of LyX, but
 these sparklines only seem to work in pure LaTeX.

 Does anyone have any suggestions to make it work? If it helps, I've tried
 this in the Tufte book and handout classes as well as the Memoir class. I've
 even tried a standalone article class with only the graphic in it.

 Can I make it work or must I turn to LaTeX?

 --Jason Waskiewicz
  Bowman County High School


 You need to use an absolute path to the data files.  I just set up Fauske's
 example in LyX.  After changing

 \def\temperaturedata{data/temperaturesOslo.txt}
 \def\raindata{data/rainOslo.txt}

 to

 \def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
 \def\raindata{/temp/sparklines/rainOslo.txt}

 (and putting the data in C:\temp\sparklines on Windows) it worked.  My LyX
 file is attached.

 The problem is that LyX generates the DVI or PDF file in a temporary working
 directory. It exports the LaTeX version of your LyX doc to that working
 directory, and it knows to export graphics files that you inserted the usual
 way, but it doesn't recognize the data files here, so they don't get copied
 to the working directory -- which is fine if you use an absolute path, but a
 problem is you use a relative path.

 /Paul


This is next example that LyX should have a user configurable file
copier for advanced users. One of its abilites should be putting
proper file paths in places where it is needed.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Tikz Sparklines

2010-02-10 Thread Manveru
2010/2/7 Paul A. Rubin ru...@msu.edu:
 Jason Waskiewicz wrote:

 I've been using Tikz graphics in my LyX files for some time now, with
 success, I might add.

 Recently, I tried to include sparklines in two different LyX files. An
 example of what I mean can be found at:
 http://www.texample.net/tikz/examples/temperature-and-rain-sparklines/
 They do not appear. With the first one, I simply exported the file as
 LaTeX and was able to use it that way. My most recent project is part of a
 much larger project with many files and the idea of switching entirely to
 LaTeX sounds like too much work. I like the visual advantages of LyX, but
 these sparklines only seem to work in pure LaTeX.

 Does anyone have any suggestions to make it work? If it helps, I've tried
 this in the Tufte book and handout classes as well as the Memoir class. I've
 even tried a standalone article class with only the graphic in it.

 Can I make it work or must I turn to LaTeX?

 --Jason Waskiewicz
  Bowman County High School


 You need to use an absolute path to the data files.  I just set up Fauske's
 example in LyX.  After changing

 \def\temperaturedata{data/temperaturesOslo.txt}
 \def\raindata{data/rainOslo.txt}

 to

 \def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
 \def\raindata{/temp/sparklines/rainOslo.txt}

 (and putting the data in C:\temp\sparklines on Windows) it worked.  My LyX
 file is attached.

 The problem is that LyX generates the DVI or PDF file in a temporary working
 directory. It exports the LaTeX version of your LyX doc to that working
 directory, and it knows to export graphics files that you inserted the usual
 way, but it doesn't recognize the data files here, so they don't get copied
 to the working directory -- which is fine if you use an absolute path, but a
 problem is you use a relative path.

 /Paul


This is next example that LyX should have a user configurable file
copier for advanced users. One of its abilites should be putting
proper file paths in places where it is needed.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Tikz Sparklines

2010-02-10 Thread Manveru
2010/2/7 Paul A. Rubin :
> Jason Waskiewicz wrote:
>>
>> I've been using Tikz graphics in my LyX files for some time now, with
>> success, I might add.
>>
>> Recently, I tried to include sparklines in two different LyX files. An
>> example of what I mean can be found at:
>> http://www.texample.net/tikz/examples/temperature-and-rain-sparklines/
>> They do not appear. With the first one, I simply exported the file as
>> LaTeX and was able to use it that way. My most recent project is part of a
>> much larger project with many files and the idea of switching entirely to
>> LaTeX sounds like too much work. I like the visual advantages of LyX, but
>> these sparklines only seem to work in pure LaTeX.
>>
>> Does anyone have any suggestions to make it work? If it helps, I've tried
>> this in the Tufte book and handout classes as well as the Memoir class. I've
>> even tried a standalone article class with only the graphic in it.
>>
>> Can I make it work or must I turn to LaTeX?
>>
>> --Jason Waskiewicz
>>  Bowman County High School
>>
>
> You need to use an absolute path to the data files.  I just set up Fauske's
> example in LyX.  After changing
>
> \def\temperaturedata{data/temperaturesOslo.txt}
> \def\raindata{data/rainOslo.txt}
>
> to
>
> \def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
> \def\raindata{/temp/sparklines/rainOslo.txt}
>
> (and putting the data in C:\temp\sparklines on Windows) it worked.  My LyX
> file is attached.
>
> The problem is that LyX generates the DVI or PDF file in a temporary working
> directory. It exports the LaTeX version of your LyX doc to that working
> directory, and it knows to export graphics files that you inserted the usual
> way, but it doesn't recognize the data files here, so they don't get copied
> to the working directory -- which is fine if you use an absolute path, but a
> problem is you use a relative path.
>
> /Paul
>

This is next example that LyX should have a user configurable file
copier for advanced users. One of its abilites should be putting
proper file paths in places where it is needed.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Tikz Sparklines

2010-02-07 Thread Paul A. Rubin

Jason Waskiewicz wrote:
I've been using Tikz graphics in my LyX files for some time now, with 
success, I might add.


Recently, I tried to include sparklines in two different LyX files. An 
example of what I mean can be found at:

http://www.texample.net/tikz/examples/temperature-and-rain-sparklines/
They do not appear. With the first one, I simply exported the file as 
LaTeX and was able to use it that way. My most recent project is part of 
a much larger project with many files and the idea of switching entirely 
to LaTeX sounds like too much work. I like the visual advantages of LyX, 
but these sparklines only seem to work in pure LaTeX.


Does anyone have any suggestions to make it work? If it helps, I've 
tried this in the Tufte book and handout classes as well as the Memoir 
class. I've even tried a standalone article class with only the graphic 
in it.


Can I make it work or must I turn to LaTeX?

--Jason Waskiewicz
 Bowman County High School



You need to use an absolute path to the data files.  I just set up 
Fauske's example in LyX.  After changing


\def\temperaturedata{data/temperaturesOslo.txt}
\def\raindata{data/rainOslo.txt}

to

\def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
\def\raindata{/temp/sparklines/rainOslo.txt}

(and putting the data in C:\temp\sparklines on Windows) it worked.  My 
LyX file is attached.


The problem is that LyX generates the DVI or PDF file in a temporary 
working directory. It exports the LaTeX version of your LyX doc to that 
working directory, and it knows to export graphics files that you 
inserted the usual way, but it doesn't recognize the data files here, so 
they don't get copied to the working directory -- which is fine if you 
use an absolute path, but a problem is you use a relative path.


/Paul


sparklines.lyx
Description: application/lyx


Re: Tikz Sparklines

2010-02-07 Thread Jason Waskiewicz
Paul A. Rubin ru...@... writes:

 
 You need to use an absolute path to the data files.  I just set up 
 Fauske's example in LyX.  After changing
 
 \def\temperaturedata{data/temperaturesOslo.txt}
 \def\raindata{data/rainOslo.txt}
 
 to
 
 \def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
 \def\raindata{/temp/sparklines/rainOslo.txt}
 
 (and putting the data in C:\temp\sparklines on Windows) it worked.  My 
 LyX file is attached.

Thanks, that did the trick. Since I'm using Linux, I had to modify the line as:

\def\radius{\string/home/jwaskiewicz/Dropbox/2009-2010/Chemistry/Unit
6/data/radius\string.txt}

I suppose if I work on my Mac, I'll need to make further changes.

Thank-you very much!

--Jason Waskiewicz
  Bowman County High School



Re: Tikz Sparklines

2010-02-07 Thread Paul A. Rubin

Jason Waskiewicz wrote:
I've been using Tikz graphics in my LyX files for some time now, with 
success, I might add.


Recently, I tried to include sparklines in two different LyX files. An 
example of what I mean can be found at:

http://www.texample.net/tikz/examples/temperature-and-rain-sparklines/
They do not appear. With the first one, I simply exported the file as 
LaTeX and was able to use it that way. My most recent project is part of 
a much larger project with many files and the idea of switching entirely 
to LaTeX sounds like too much work. I like the visual advantages of LyX, 
but these sparklines only seem to work in pure LaTeX.


Does anyone have any suggestions to make it work? If it helps, I've 
tried this in the Tufte book and handout classes as well as the Memoir 
class. I've even tried a standalone article class with only the graphic 
in it.


Can I make it work or must I turn to LaTeX?

--Jason Waskiewicz
 Bowman County High School



You need to use an absolute path to the data files.  I just set up 
Fauske's example in LyX.  After changing


\def\temperaturedata{data/temperaturesOslo.txt}
\def\raindata{data/rainOslo.txt}

to

\def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
\def\raindata{/temp/sparklines/rainOslo.txt}

(and putting the data in C:\temp\sparklines on Windows) it worked.  My 
LyX file is attached.


The problem is that LyX generates the DVI or PDF file in a temporary 
working directory. It exports the LaTeX version of your LyX doc to that 
working directory, and it knows to export graphics files that you 
inserted the usual way, but it doesn't recognize the data files here, so 
they don't get copied to the working directory -- which is fine if you 
use an absolute path, but a problem is you use a relative path.


/Paul


sparklines.lyx
Description: application/lyx


Re: Tikz Sparklines

2010-02-07 Thread Jason Waskiewicz
Paul A. Rubin ru...@... writes:

 
 You need to use an absolute path to the data files.  I just set up 
 Fauske's example in LyX.  After changing
 
 \def\temperaturedata{data/temperaturesOslo.txt}
 \def\raindata{data/rainOslo.txt}
 
 to
 
 \def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
 \def\raindata{/temp/sparklines/rainOslo.txt}
 
 (and putting the data in C:\temp\sparklines on Windows) it worked.  My 
 LyX file is attached.

Thanks, that did the trick. Since I'm using Linux, I had to modify the line as:

\def\radius{\string/home/jwaskiewicz/Dropbox/2009-2010/Chemistry/Unit
6/data/radius\string.txt}

I suppose if I work on my Mac, I'll need to make further changes.

Thank-you very much!

--Jason Waskiewicz
  Bowman County High School



Re: Tikz Sparklines

2010-02-07 Thread Paul A. Rubin

Jason Waskiewicz wrote:
I've been using Tikz graphics in my LyX files for some time now, with 
success, I might add.


Recently, I tried to include sparklines in two different LyX files. An 
example of what I mean can be found at:

http://www.texample.net/tikz/examples/temperature-and-rain-sparklines/
They do not appear. With the first one, I simply exported the file as 
LaTeX and was able to use it that way. My most recent project is part of 
a much larger project with many files and the idea of switching entirely 
to LaTeX sounds like too much work. I like the visual advantages of LyX, 
but these sparklines only seem to work in pure LaTeX.


Does anyone have any suggestions to make it work? If it helps, I've 
tried this in the Tufte book and handout classes as well as the Memoir 
class. I've even tried a standalone article class with only the graphic 
in it.


Can I make it work or must I turn to LaTeX?

--Jason Waskiewicz
 Bowman County High School



You need to use an absolute path to the data files.  I just set up 
Fauske's example in LyX.  After changing


\def\temperaturedata{data/temperaturesOslo.txt}
\def\raindata{data/rainOslo.txt}

to

\def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
\def\raindata{/temp/sparklines/rainOslo.txt}

(and putting the data in C:\temp\sparklines on Windows) it worked.  My 
LyX file is attached.


The problem is that LyX generates the DVI or PDF file in a temporary 
working directory. It exports the LaTeX version of your LyX doc to that 
working directory, and it knows to export graphics files that you 
inserted the usual way, but it doesn't recognize the data files here, so 
they don't get copied to the working directory -- which is fine if you 
use an absolute path, but a problem is you use a relative path.


/Paul


sparklines.lyx
Description: application/lyx


Re: Tikz Sparklines

2010-02-07 Thread Jason Waskiewicz
Paul A. Rubin  writes:

> 
> You need to use an absolute path to the data files.  I just set up 
> Fauske's example in LyX.  After changing
> 
> \def\temperaturedata{data/temperaturesOslo.txt}
> \def\raindata{data/rainOslo.txt}
> 
> to
> 
> \def\temperaturedata{/temp/sparklines/temperaturesOslo.txt}
> \def\raindata{/temp/sparklines/rainOslo.txt}
> 
> (and putting the data in C:\temp\sparklines on Windows) it worked.  My 
> LyX file is attached.

Thanks, that did the trick. Since I'm using Linux, I had to modify the line as:

\def\radius{\string"/home/jwaskiewicz/Dropbox/2009-2010/Chemistry/Unit
6/data/radius\string".txt}

I suppose if I work on my Mac, I'll need to make further changes.

Thank-you very much!

--Jason Waskiewicz
  Bowman County High School



RE: TikZ in LyX

2010-01-13 Thread Vincent van Ravesteijn - TNW
Hello to all,

5. I still get errors when compiling:
A few of them are like 'Missing } or \cr' inserted.
The others go like 'Package error: No shape named base
is known'. Sometimes, it says 'M' instead of 'shape'.

What can i do to solve these problems? 

Can you send us your file, then we can have a look at what is wrong ?

Vincent
 



RE: TikZ in LyX

2010-01-13 Thread Vincent van Ravesteijn - TNW
 
Hello to all,

5. I still get errors when compiling:
A few of them are like 'Missing } or \cr' inserted.
The others go like 'Package error: No shape named base is known'. 
Sometimes, it says 'M' instead of 'shape'.

What can i do to solve these problems? 

Can you send us your file, then we can have a look at what is wrong ?


I enclosed the lyx file.
The code I used can be found on the link I sent in the first email


If you paste the code into LyX, you should use Edit-Paste
Special-Plain Text. If you do that, the newlines are preserved. In the
document you have now, there are some % characters disabling code.

See the attached.

Robert
 

Vincent



tikz.lyx
Description: tikz.lyx


Re: TikZ in LyX

2010-01-13 Thread curtis osterhoudt
I've just tried a few TikZ scripts in the 2.0.0 svn version of LyX. 

   The more complicated ones tend to fail for me (I'm not sure why; I don't 
have time to track down what is going wrong at the moment). However, the one 
here: http://www.texample.net/tikz/examples/nav1d/ works, possibly because it's 
so simple. 

  Does it work for you?

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Robert_Schiemann robert_schiem...@freenet.de
To: lyx-users@lists.lyx.org
Sent: Wed, January 13, 2010 11:07:05 AM
Subject: TikZ in LyX

Hello to all,

I am quite new to using LaTeX and even newer to using it with LyX. However,
I tried to use the
http://www.texample.net/tikz/examples/free-body-diagrams/ TikZ package
from LyX. 

I did it the following way:
1. download the package and extract the file content to Program
Files\MikTeX\
2. Insert one of the example codes (see link above) in TeXnic Center -
works.
3. Insert the same example code as a new TeX code block ('Insert TeX code')
into LyX. When Compiling, i get a few errors, mainly 'Can be used only in
preamble' and 'Environment tikzpicture undefined', and a few others. 
4. I fixed these errors by deleting the \documentclass and \enddocument
commands. In addition, I inserted the \usepackage and the \usetikzlibrary
commands in the document settings (Document - Settings - Latex preamble).
Of course, i deleted these lines from the code.
5. I still get errors when compiling:
A few of them are like 'Missing } or \cr' inserted.
The others go like 'Package error: No shape named base is known'. Sometimes,
it says 'M' instead of 'shape'.

What can i do to solve these problems? 

Thank you a lot in advance for your help!


  

RE: TikZ in LyX

2010-01-13 Thread Vincent van Ravesteijn - TNW
Hello to all,

5. I still get errors when compiling:
A few of them are like 'Missing } or \cr' inserted.
The others go like 'Package error: No shape named base
is known'. Sometimes, it says 'M' instead of 'shape'.

What can i do to solve these problems? 

Can you send us your file, then we can have a look at what is wrong ?

Vincent
 



RE: TikZ in LyX

2010-01-13 Thread Vincent van Ravesteijn - TNW
 
Hello to all,

5. I still get errors when compiling:
A few of them are like 'Missing } or \cr' inserted.
The others go like 'Package error: No shape named base is known'. 
Sometimes, it says 'M' instead of 'shape'.

What can i do to solve these problems? 

Can you send us your file, then we can have a look at what is wrong ?


I enclosed the lyx file.
The code I used can be found on the link I sent in the first email


If you paste the code into LyX, you should use Edit-Paste
Special-Plain Text. If you do that, the newlines are preserved. In the
document you have now, there are some % characters disabling code.

See the attached.

Robert
 

Vincent



tikz.lyx
Description: tikz.lyx


Re: TikZ in LyX

2010-01-13 Thread curtis osterhoudt
I've just tried a few TikZ scripts in the 2.0.0 svn version of LyX. 

   The more complicated ones tend to fail for me (I'm not sure why; I don't 
have time to track down what is going wrong at the moment). However, the one 
here: http://www.texample.net/tikz/examples/nav1d/ works, possibly because it's 
so simple. 

  Does it work for you?

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Robert_Schiemann robert_schiem...@freenet.de
To: lyx-users@lists.lyx.org
Sent: Wed, January 13, 2010 11:07:05 AM
Subject: TikZ in LyX

Hello to all,

I am quite new to using LaTeX and even newer to using it with LyX. However,
I tried to use the
http://www.texample.net/tikz/examples/free-body-diagrams/ TikZ package
from LyX. 

I did it the following way:
1. download the package and extract the file content to Program
Files\MikTeX\
2. Insert one of the example codes (see link above) in TeXnic Center -
works.
3. Insert the same example code as a new TeX code block ('Insert TeX code')
into LyX. When Compiling, i get a few errors, mainly 'Can be used only in
preamble' and 'Environment tikzpicture undefined', and a few others. 
4. I fixed these errors by deleting the \documentclass and \enddocument
commands. In addition, I inserted the \usepackage and the \usetikzlibrary
commands in the document settings (Document - Settings - Latex preamble).
Of course, i deleted these lines from the code.
5. I still get errors when compiling:
A few of them are like 'Missing } or \cr' inserted.
The others go like 'Package error: No shape named base is known'. Sometimes,
it says 'M' instead of 'shape'.

What can i do to solve these problems? 

Thank you a lot in advance for your help!


  

RE: TikZ in LyX

2010-01-13 Thread Vincent van Ravesteijn - TNW
>Hello to all,
>
>5. I still get errors when compiling:
>A few of them are like 'Missing } or \cr' inserted.
>The others go like 'Package error: No shape named base
>is known'. Sometimes, it says 'M' instead of 'shape'.
>
>What can i do to solve these problems? 

Can you send us your file, then we can have a look at what is wrong ?

Vincent
 



RE: TikZ in LyX

2010-01-13 Thread Vincent van Ravesteijn - TNW
 
>>>Hello to all,
>>>
>>>5. I still get errors when compiling:
>>>A few of them are like 'Missing } or \cr' inserted.
>>>The others go like 'Package error: No shape named base is known'. 
>>>Sometimes, it says 'M' instead of 'shape'.
>>>
>>>What can i do to solve these problems? 
>>
>>Can you send us your file, then we can have a look at what is wrong ?
>
>
>I enclosed the lyx file.
>The code I used can be found on the link I sent in the first email
>

If you paste the code into LyX, you should use "Edit->Paste
Special->Plain Text". If you do that, the newlines are preserved. In the
document you have now, there are some % characters disabling code.

See the attached.

>Robert
 

Vincent



tikz.lyx
Description: tikz.lyx


Re: TikZ in LyX

2010-01-13 Thread curtis osterhoudt
I've just tried a few TikZ scripts in the 2.0.0 svn version of LyX. 

   The more complicated ones tend to fail for me (I'm not sure why; I don't 
have time to track down what is going wrong at the moment). However, the one 
here: http://www.texample.net/tikz/examples/nav1d/ works, possibly because it's 
so simple. 

  Does it work for you?

 /
Down with categorical imperative!
flutz...@yahoo.com
/





From: Robert_Schiemann 
To: lyx-users@lists.lyx.org
Sent: Wed, January 13, 2010 11:07:05 AM
Subject: TikZ in LyX

Hello to all,

I am quite new to using LaTeX and even newer to using it with LyX. However,
I tried to use the
 TikZ package
from LyX. 

I did it the following way:
1. download the package and extract the file content to Program
Files\MikTeX\
2. Insert one of the example codes (see link above) in TeXnic Center -
works.
3. Insert the same example code as a new TeX code block ('Insert TeX code')
into LyX. When Compiling, i get a few errors, mainly 'Can be used only in
preamble' and 'Environment tikzpicture undefined', and a few others. 
4. I fixed these errors by deleting the \documentclass and \enddocument
commands. In addition, I inserted the \usepackage and the \usetikzlibrary
commands in the document settings (Document -> Settings -> Latex preamble).
Of course, i deleted these lines from the code.
5. I still get errors when compiling:
A few of them are like 'Missing } or \cr' inserted.
The others go like 'Package error: No shape named base is known'. Sometimes,
it says 'M' instead of 'shape'.

What can i do to solve these problems? 

Thank you a lot in advance for your help!