Re: tikz preview

2023-07-03 Thread Jürgen Spitzmüller
Am Montag, dem 03.07.2023 um 16:01 +0200 schrieb Paolo M:
> Here enclosed the log file pertaining to test2-tikz-preview.lyx

Thanks, this reveals that preview generation breaks with an error. The
reason I don't get this is that it has been fixed in the development
version of 2.3.x already:
https://www.lyx.org/trac/changeset/0ffcff55f302c05a9a0eb1f938be6b23fbcbd5c9/lyxgit

Best,
-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: tikz preview

2023-07-03 Thread Paolo M
Here enclosed the log file pertaining to test2-tikz-preview.lyx

Il giorno sab 1 lug 2023 alle ore 14:27 Jürgen Spitzmüller <
jspi...@gmail.com> ha scritto:

> Am Dienstag, dem 27.06.2023 um 07:11 +0200 schrieb Paolo M:
> > New test: Pic A cannot be previewed, Pic A' can be previewed
> > In Pic A' the option
> >  domain=-2:6
> > has been added to just one of the two plots.
>
> Both preview fine here. Again, please provide the lyxpreview[...].log
> files.
>
> --
> Jürgen
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
--- Paolo M. Pumilia - 347 231 54 96.
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/TeX Live for SUSE Linux) (preloaded format=latex 2022.7.11)  3 JUL 2023 15:47
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**lyxpreviewIlwEHq.tex
(./lyxpreviewIlwEHq.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size11.clo
File: size11.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count179
\c@section=\count180
\c@subsection=\count181
\c@subsubsection=\count182
\c@paragraph=\count183
\c@subparagraph=\count184
\c@figure=\count185
\c@table=\count186
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/share/texmf/tex/latex/psnfss/mathpazo.sty
Package: mathpazo 2020/03/25 PSNFSS-v9.3 Palatino w/ Pazo Math (D.Puga, WaS) 
\symupright=\mathgroup4
) (/usr/share/texmf/tex/latex/base/fontenc.sty
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
LaTeX Font Info:Trying to load font information for T1+ppl on input line 11
2.
(/usr/share/texmf/tex/latex/psnfss/t1ppl.fd
File: t1ppl.fd 2001/06/04 font definitions for T1/ppl.
)) (/usr/share/texmf/tex/latex/base/inputenc.sty
Package: inputenc 2020/08/01 v1.3d Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
) (/usr/share/texmf/tex/latex/geometry/geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
(/usr/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
) (/usr/share/texmf/tex/generic/iftex/ifvtex.sty
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
(/usr/share/texmf/tex/generic/iftex/iftex.sty
Package: iftex 2020/03/06 v1.0d TeX engine tests
))
\Gm@cnth=\count187
\Gm@cntv=\count188
\c@Gm@tempcnt=\count189
\Gm@bindingoffset=\dimen139
\Gm@wd@mp=\dimen140
\Gm@odd@mp=\dimen141
\Gm@even@mp=\dimen142
\Gm@layoutwidth=\dimen143
\Gm@layoutheight=\dimen144
\Gm@layouthoffset=\dimen145
\Gm@layoutvoffset=\dimen146
\Gm@dimlist=\toks18
) (/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty
Package: fancyhdr 2021/01/28 v4.0.1 Extensive control of page headers and foote
rs
\f@nch@headwidth=\skip49
\f@nch@O@elh=\skip50
\f@nch@O@erh=\skip51
\f@nch@O@olh=\skip52
\f@nch@O@orh=\skip53
\f@nch@O@elf=\skip54
\f@nch@O@erf=\skip55
\f@nch@O@olf=\skip56
\f@nch@O@orf=\skip57
) (/usr/share/texmf/tex/latex/tools/array.sty
Package: array 2020/10/01 v2.5c Tabular extension package (FMi)
\col@sep=\dimen147
\ar@mcellbox=\box47
\extrarowheight=\dimen148
\NC@list=\toks19
\extratabsurround=\skip58
\backup@length=\skip59
\ar@cellbox=\box48
) (/usr/share/texmf/tex/latex/pgfplots/pgfplots.sty (/usr/share/texmf/tex/gener
ic/pgfplots/pgfplots.revision.tex)
Package: pgfplots 2020/02/29 v1.17 Data Visualization (1.17)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texmf/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
) (/usr/share/texmf/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: dvips.def on input line 105.
(/usr/share/texmf/tex/latex/graphics-def/dvips.def
File: dvips.def 2017/06/20 v3.1d Graphics/color driver for dvips
))
\Gin@req@height=\dimen149
\Gin@req@width=\dimen150
) (/usr/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty (/usr/share/texmf/tex/
latex/pgf/basiclayer/pgf.sty (/usr/share/texmf/tex/latex/pgf/utilities/pgfrcs.s
ty (/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex
\pgfutil@everybye=\toks20
\pgfutil@tempdima=\dimen151
\pgfutil@tempdimb=\dimen152
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common-lists.tex)) (/usr/sh
are/texmf/tex/generic/pgf/utilities/pgfutil-latex.def
\pgfutil@abb=\box49
) (/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex (/usr/share/texmf
/tex/generic/pgf/pgf.revision.tex)
Package: pgfrcs 2020/12/27 v3.1.8b (3.1.8b)
))
Package: pgf 2020/12/27 v3.1.8b (3.1.8b)
(/usr/share/texmf/tex/latex/

Re: tikz preview

2023-07-01 Thread Jürgen Spitzmüller
Am Dienstag, dem 27.06.2023 um 07:11 +0200 schrieb Paolo M:
> New test: Pic A cannot be previewed, Pic A' can be previewed
> In Pic A' the option
>  domain=-2:6 
> has been added to just one of the two plots. 

Both preview fine here. Again, please provide the lyxpreview[...].log
files.

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


Re: tikz preview

2023-07-01 Thread Jürgen Spitzmüller
Am Sonntag, dem 18.06.2023 um 20:03 +0200 schrieb Paolo M:
> Here enclosed, my test lyx file, with some unexplained features:
> 1) there is a line before the table, in the pdf

This is the header line, since you have set Document > Settings > Page
Layout > Fancy

> 2) Pic A  cannot be previewed

works for me.

> 3) Pic B' (differing from B only for the x range) cannot be previewed

works for me as well.

For the non-working previews, please send us the lyxpreview[...].log
files from the tmp folder (the folder where the generated PDF is
located).

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


Re: tikz preview

2023-06-26 Thread Paolo M
New test: Pic A cannot be previewed, Pic A' can be previewed
In Pic A' the option
domain=-2:6
has been added to just one of the two plots.
P.

Il giorno dom 18 giu 2023 alle ore 20:03 Paolo M <
paolo.m.pumilia.gnar...@gmail.com> ha scritto:

> Here enclosed, my test lyx file, with some unexplained features:
> 1) there is a line before the table, in the pdf
> 2) Pic A  cannot be previewed
> 3) Pic B' (differing from B only for the x range) cannot be previewed
>
> Any help will be appreciated
> thank you
>
> --
> --- Paolo M. Pumilia - 347 231 54 96.
>


-- 
--- Paolo M. Pumilia - 347 231 54 96.


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


Re: tikz preview

2023-06-18 Thread Shay Riggs
Hi Paolo,

Documents > Settings > Fonts

Check the “Use non-TeX fonts (via XeTeX or LuaTeX)” box.

Regards
Shay

On Sun, 18 Jun 2023 at 20:05, Paolo M 
wrote:

> Preview of Pic B and B' now works. It was probably only a matter of time.
> Preview of Pic A does not work, yet.  How to set non-tex-fonts?
>
> Il giorno dom 18 giu 2023 alle ore 20:54 Kornel Benko  ha
> scritto:
>
>> Am Sun, 18 Jun 2023 20:03:29 +0200
>> schrieb Paolo M :
>>
>> > Here enclosed, my test lyx file, with some unexplained features:
>> > 1) there is a line before the table, in the pdf
>> > 2) Pic A  cannot be previewed
>> > 3) Pic B' (differing from B only for the x range) cannot be previewed
>> >
>> > Any help will be appreciated
>> > thank you
>> >
>>
>> Interesting, preview works here if setting non-tex-fonts.
>>
>> Kornel
>> --
>> lyx-users mailing list
>> lyx-users@lists.lyx.org
>> http://lists.lyx.org/mailman/listinfo/lyx-users
>>
>
>
> --
> --- Paolo M. Pumilia - 347 231 54 96.
> --
> 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 preview

2023-06-18 Thread Paolo M
Preview of Pic B and B' now works. It was probably only a matter of time.
Preview of Pic A does not work, yet.  How to set non-tex-fonts?

Il giorno dom 18 giu 2023 alle ore 20:54 Kornel Benko  ha
scritto:

> Am Sun, 18 Jun 2023 20:03:29 +0200
> schrieb Paolo M :
>
> > Here enclosed, my test lyx file, with some unexplained features:
> > 1) there is a line before the table, in the pdf
> > 2) Pic A  cannot be previewed
> > 3) Pic B' (differing from B only for the x range) cannot be previewed
> >
> > Any help will be appreciated
> > thank you
> >
>
> Interesting, preview works here if setting non-tex-fonts.
>
> Kornel
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
--- Paolo M. Pumilia - 347 231 54 96.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: tikz preview

2023-06-18 Thread Kornel Benko
Am Sun, 18 Jun 2023 20:03:29 +0200
schrieb Paolo M :

> Here enclosed, my test lyx file, with some unexplained features:
> 1) there is a line before the table, in the pdf
> 2) Pic A  cannot be previewed
> 3) Pic B' (differing from B only for the x range) cannot be previewed
> 
> Any help will be appreciated
> thank you
> 

Interesting, preview works here if setting non-tex-fonts.

Kornel


pgpKSbhR3S2dV.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


tikz preview

2023-06-18 Thread Paolo M
Here enclosed, my test lyx file, with some unexplained features:
1) there is a line before the table, in the pdf
2) Pic A  cannot be previewed
3) Pic B' (differing from B only for the x range) cannot be previewed

Any help will be appreciated
thank you

-- 
--- Paolo M. Pumilia - 347 231 54 96.


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


Re: preview of tikz pictures

2023-03-23 Thread Paolo M
Succeded, thank you

Il giorno gio 23 mar 2023 alle ore 16:49 Paul A. Rubin 
ha scritto:

> On 3/23/23 11:25, Paolo M wrote:
>
> Here enclosed, two lyx docs:  expo2 and expo3 differing just in one
> (commented out) line in their preamble:
> expo2: %\lfoot{  }
> expo3: %\lfoot{ è  }
>
> Both docs produce their pdf file but the weird thing is that, in expo3,
> picture cannot be previewed in lyx.
> How can a comment in preamble affect preview?
>
> Any ideas?
>
> thank you
>
> Paolo M.
>
> --
> --- Paolo M. Pumilia - 347 231 54 96.
>
> I'm not exactly sure why it happens, but when LyX tries to render the
> picture into a graphic image, the Python script fails because both epstopdf
> and pdflatex choke on the accented symbol, despite it being in a comment.
>
> One solution is to go into Document > Settings... > Language and switch
> the encoding from "Language default" to Unicode (UTF-8). Save the changed
> document, close it and reload it, and the image is previewed.
>
> Paul
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
--- Paolo M. Pumilia - 347 231 54 96.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: preview of tikz pictures

2023-03-23 Thread Paul A. Rubin

On 3/23/23 11:25, Paolo M wrote:
Here enclosed, two lyx docs:  expo2 and expo3 differing just in one 
(commented out) line in their preamble:

expo2: %\lfoot{  }
expo3: %\lfoot{ è  }

Both docs produce their pdf file but the weird thing is that, in 
expo3, picture cannot be previewed in lyx.

How can a comment in preamble affect preview?

Any ideas?

thank you

Paolo M.

--
--- Paolo M. Pumilia - 347 231 54 96.

I'm not exactly sure why it happens, but when LyX tries to render the 
picture into a graphic image, the Python script fails because both 
epstopdf and pdflatex choke on the accented symbol, despite it being in 
a comment.


One solution is to go into Document > Settings... > Language and switch 
the encoding from "Language default" to Unicode (UTF-8). Save the 
changed document, close it and reload it, and the image is previewed.


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


preview of tikz pictures

2023-03-23 Thread Paolo M
Here enclosed, two lyx docs:  expo2 and expo3 differing just in one
(commented out) line in their preamble:
expo2: %\lfoot{  }
expo3: %\lfoot{ è  }

Both docs produce their pdf file but the weird thing is that, in expo3,
picture cannot be previewed in lyx.
How can a comment in preamble affect preview?

Any ideas?

thank you

Paolo M.

-- 
--- Paolo M. Pumilia - 347 231 54 96.


espo3.lyx
Description: application/lyx


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


TikZ

2022-09-22 Thread Dan
I was wondering if LyX supports any TikZ packages?

Thanks!
-Dan
-- 
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



tikz picture rendering

2018-12-22 Thread paolo m.
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.

circles.lyx
Description: application/lyx


circle-no-good.lyx
Description: application/lyx


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



tikz pictures rendering

2018-10-28 Thread Pol
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: label to tikz?

2017-10-10 Thread Paul A. Rubin

On 10/10/2017 07:49 AM, Paolo M Pumilia wrote:

How to attach label to a tikz picture, so as to be able to make a
reference to it from my text?
thank you

Put the picture in a figure float (or wrap float), put the cursor in the 
float's caption box, and Insert > Label.


Re: label to tikz?

2017-10-10 Thread edu Gpl
1- add float figure.
2- add latex code by Ctrl+L , then past your tikz code inside it.


بتاريخ ١٠‏/١٠‏/٢٠١٧ ٢:٥١ م، كتب "Paolo M Pumilia" <
paolo.m.pumilia.gnar...@gmail.com>:

> How to attach label to a tikz picture, so as to be able to make a
> reference to it from my text?
> thank you
>
>


label to tikz?

2017-10-10 Thread Paolo M Pumilia
How to attach label to a tikz picture, so as to be able to make a 
reference to it from my text?
thank you 



Wrapping text arund a tikz picture?

2017-10-08 Thread Paolo M Pumilia
Anybody succeeded to let text wrap around tikz picture, while 
preserving its preview mode?

thank you



Re: arrow-movements with 'tikz'

2017-02-20 Thread Michael Berger


On 02/20/2017 01:19 PM, Jürgen Spitzmüller wrote:
2017-02-20 12:08 GMT+01:00 Michael Berger >:


Jürgen, mini example file attached ( I m aware what you need  but
this time I thought it is 'just the syntax code' !)


The code was wrong in many ways. Try if the attached produces what you 
want.


Jürgen

Thanks Jürgen, a nice and clear code; output see screen shot!

I eventually turned to the lyx-users list after having tried five 
different codes including the one I sent you  from texstackexchange.com. 
I tried hard but what really puzzles me is that none worked!


I am not happy with that curved arrow style but now I got a base to 
start trying different arrow styles and perhaps more than one movement 
on the same sentence. ;-)


Cheers,
Michael


Re: arrow-movements with 'tikz'

2017-02-20 Thread Jürgen Spitzmüller
2017-02-20 12:08 GMT+01:00 Michael Berger :

> Jürgen, mini example file attached ( I m aware what you need  but this
> time I thought it is 'just the syntax code' !)
>

The code was wrong in many ways. Try if the attached produces what you want.

Jürgen


arrow-movement-tikz.lyx
Description: application/lyx


Re: arrow-movements with 'tikz'

2017-02-20 Thread Michael Berger
Jürgen, mini example file attached ( I m aware what you need  but this 
time I thought it is 'just the syntax code' !)


Michael


On 02/20/2017 10:34 AM, Jürgen Spitzmüller wrote:

Am Montag, den 20.02.2017, 10:15 +0100 schrieb Michael Berger:

Hi all,

I am trying to draw an arrow between the words 'John' and 'his' but
get
Latex  Error: Emergency stop / no legal end found.

Can somebody give me a hint, please!

I attach screen shots of the code in Lyx and respective part of the
error log file.

Minimal examples files, please.

Jürgen


Thanks and cheers,

Michael




arrow-movement-tikz.lyx
Description: application/lyx


Re: arrow-movements with 'tikz'

2017-02-20 Thread Jürgen Spitzmüller
Am Montag, den 20.02.2017, 10:15 +0100 schrieb Michael Berger:
> Hi all,
> 
> I am trying to draw an arrow between the words 'John' and 'his' but
> get  
> Latex  Error: Emergency stop / no legal end found.
> 
> Can somebody give me a hint, please!
> 
> I attach screen shots of the code in Lyx and respective part of the 
> error log file.

Minimal examples files, please.

Jürgen

> 
> Thanks and cheers,
> 
> Michael
> 

signature.asc
Description: This is a digitally signed message part


arrow-movements with 'tikz'

2017-02-20 Thread Michael Berger

Hi all,

I am trying to draw an arrow between the words 'John' and 'his' but get  
Latex  Error: Emergency stop / no legal end found.


Can somebody give me a hint, please!

I attach screen shots of the code in Lyx and respective part of the 
error log file.


Thanks and cheers,

Michael



error with tikz and arabic letters

2016-10-21 Thread edu Gpl
Dear Uw, lyx users

I used tikz code in preamble for nice title, but if i wrote english title i
did not gote error msg, else i gote error msg when i wrote arabic title
(arabic letters).
like this:

Missing character: There is no ; in font nullfont!
Package tikz Error: Giving up on this path. Did you forget a semicolon?.

please see attachment files.

best regards


‏‏title2-ar.lyx
Description: application/lyx


‏‏title2-en.lyx
Description: application/lyx


title2-ar_errorMsg.log
Description: Binary data


Previewing tikz

2016-01-20 Thread Pol (Le-Z570)
Tikz graph cannot be previewed, when inserted into a mini page, although 
it is correctly displayed in the PDF viwew

Tikz graph not in mini page is correctly previewed in lyx.

Any ideas?

thank you

Pol  



Re: Problem with fraction in TikZ insert

2014-03-04 Thread John Kane
Many thanks Paul.  Works  like a charm.
I had been coming to the conclusion that I was probably going to have to 
reinstall LyX since I could not get LyX to compile even when the expression 
$\dfrac{\pi}{4}$ was outside the TikZ environment.

I tend to use those packages you and Jurgen stripped out, quite a lot so they 
are in my basic template.  I am not likely to really need dfrac{} other than to 
duplicate the examples in the document I am working through so it's not likel 
to be a practical problem for me.
 
Wait a minute!  I find that find that $\dfrac{\pi}{4}$ works just fine with 
them loaded both inside and outside TikZ environment  as long as I load the AMS 
package manually.  Excellent.

Thanks to both of you.





On Friday, February 28, 2014 2:28:18 PM, Paul A. Rubin ru...@msu.edu wrote:
 
Besides stripping out the package loads mentioned by Jürgen, I had to switch
AMSMath (Document  Settings  Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did that,
the document compiled.

Paul

Re: Problem with fraction in TikZ insert

2014-03-04 Thread Paul A. Rubin
Probably should have said that stripping out the \usepackage statements 
was not because there was a collision between them and something else -- 
it's because I don't have those packages installed (and did not want to 
install them just to go bug-hunting).


Paul

On 03/04/2014 04:08 PM, John Kane wrote:

Many thanks Paul. Works  like a charm.
I had been coming to the conclusion that I was probably going to have 
to reinstall LyX since I could not get LyX to compile even when the 
expression $\dfrac{\pi}{4}$ was outside the TikZ environment.


I tend to use those packages you and Jurgen stripped out, quite a lot 
so they are in my basic template.  I am not likely to really need 
dfrac{} other than to duplicate the examples in the document I am 
working through so it's not likel to be a practical problem for me.


Wait a minute!  I find that find that $\dfrac{\pi}{4}$ works just fine 
with them loaded both inside and outside TikZ environment  as long as 
I load the AMS package manually. Excellent.


Thanks to both of you.



On Friday, February 28, 2014 2:28:18 PM, Paul A. Rubin ru...@msu.edu 
wrote:
Besides stripping out the package loads mentioned by Jürgen, I had to 
switch

AMSMath (Document  Settings  Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did 
that,

the document compiled.

Paul











Re: Problem with fraction in TikZ insert

2014-03-04 Thread John Kane
Many thanks Paul.  Works  like a charm.
I had been coming to the conclusion that I was probably going to have to 
reinstall LyX since I could not get LyX to compile even when the expression 
$\dfrac{\pi}{4}$ was outside the TikZ environment.

I tend to use those packages you and Jurgen stripped out, quite a lot so they 
are in my basic template.  I am not likely to really need dfrac{} other than to 
duplicate the examples in the document I am working through so it's not likel 
to be a practical problem for me.
 
Wait a minute!  I find that find that $\dfrac{\pi}{4}$ works just fine with 
them loaded both inside and outside TikZ environment  as long as I load the AMS 
package manually.  Excellent.

Thanks to both of you.





On Friday, February 28, 2014 2:28:18 PM, Paul A. Rubin ru...@msu.edu wrote:
 
Besides stripping out the package loads mentioned by Jürgen, I had to switch
AMSMath (Document  Settings  Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did that,
the document compiled.

Paul

Re: Problem with fraction in TikZ insert

2014-03-04 Thread Paul A. Rubin
Probably should have said that stripping out the \usepackage statements 
was not because there was a collision between them and something else -- 
it's because I don't have those packages installed (and did not want to 
install them just to go bug-hunting).


Paul

On 03/04/2014 04:08 PM, John Kane wrote:

Many thanks Paul. Works  like a charm.
I had been coming to the conclusion that I was probably going to have 
to reinstall LyX since I could not get LyX to compile even when the 
expression $\dfrac{\pi}{4}$ was outside the TikZ environment.


I tend to use those packages you and Jurgen stripped out, quite a lot 
so they are in my basic template.  I am not likely to really need 
dfrac{} other than to duplicate the examples in the document I am 
working through so it's not likel to be a practical problem for me.


Wait a minute!  I find that find that $\dfrac{\pi}{4}$ works just fine 
with them loaded both inside and outside TikZ environment  as long as 
I load the AMS package manually. Excellent.


Thanks to both of you.



On Friday, February 28, 2014 2:28:18 PM, Paul A. Rubin ru...@msu.edu 
wrote:
Besides stripping out the package loads mentioned by Jürgen, I had to 
switch

AMSMath (Document  Settings  Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did 
that,

the document compiled.

Paul











Re: Problem with fraction in TikZ insert

2014-03-04 Thread John Kane
Many thanks Paul.  Works  like a charm.
I had been coming to the conclusion that I was probably going to have to 
reinstall LyX since I could not get LyX to compile even when the expression 
$\dfrac{\pi}{4}$ was outside the TikZ environment.

I tend to use those packages you and Jurgen stripped out, quite a lot so they 
are in my basic template.  I am not likely to really need dfrac{} other than to 
duplicate the examples in the document I am working through so it's not likel 
to be a practical problem for me.
 
Wait a minute!  I find that find that $\dfrac{\pi}{4}$ works just fine with 
them loaded both inside and outside TikZ environment  as long as I load the AMS 
package manually.  Excellent.

Thanks to both of you.





On Friday, February 28, 2014 2:28:18 PM, Paul A. Rubin <ru...@msu.edu> wrote:
 
Besides stripping out the package loads mentioned by Jürgen, I had to switch
AMSMath (Document > Settings > Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did that,
the document compiled.

Paul

Re: Problem with fraction in TikZ insert

2014-03-04 Thread Paul A. Rubin
Probably should have said that stripping out the \usepackage statements 
was not because there was a collision between them and something else -- 
it's because I don't have those packages installed (and did not want to 
install them just to go bug-hunting).


Paul

On 03/04/2014 04:08 PM, John Kane wrote:

Many thanks Paul. Works  like a charm.
I had been coming to the conclusion that I was probably going to have 
to reinstall LyX since I could not get LyX to compile even when the 
expression $\dfrac{\pi}{4}$ was outside the TikZ environment.


I tend to use those packages you and Jurgen stripped out, quite a lot 
so they are in my basic template.  I am not likely to really need 
dfrac{} other than to duplicate the examples in the document I am 
working through so it's not likel to be a practical problem for me.


Wait a minute!  I find that find that $\dfrac{\pi}{4}$ works just fine 
with them loaded both inside and outside TikZ environment  as long as 
I load the AMS package manually. Excellent.


Thanks to both of you.



On Friday, February 28, 2014 2:28:18 PM, Paul A. Rubin <ru...@msu.edu> 
wrote:
Besides stripping out the package loads mentioned by Jürgen, I had to 
switch

AMSMath (Document > Settings > Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did 
that,

the document compiled.

Paul











Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
I have been experimenting with TikZ and have been through the manual TikZ pour 
l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013 Everything was 
going well until I hit the second example on pg. 18. Everything is fine until I 
try to add a fraction , the \draw (22:1.5) node {$\dfrac{\pi}{4}$}; line and I 
don't see what is wrong. 

It looks like the problem is in the fraction expression because it works if I 
switch to \draw (22:1.5) node {$Z$};.

The orignal works just fine in LaTeX. Am I missing something obvious or 
encountering a package conflix of some kind? 

The message say 1:14:53.301: LaTeX2e 2011/06/27 21:14:53.304: Babel 3.9f 
and hyphenation patterns for 78 languages loaded. 21:14:53.306: 21:14:54.653: 
Error while previewing format: pdf2 21:15:07.487: (dialog-toggle progress)


TikZ3.lyx
Description: application/lyx


Re: Problem with fraction in TikZ insert

2014-02-28 Thread Jürgen Spitzmüller
Am Freitag 28 Februar 2014, 04:03:29 schrieb John Kane:
 I have been experimenting with TikZ and have been through the manual TikZ
 pour l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013
 Everything was going well until I hit the second example on pg. 18.
 Everything is fine until I try to add a fraction , the \draw (22:1.5) node
 {$\dfrac{\pi}{4}$}; line and I don't see what is wrong.
 
 It looks like the problem is in the fraction expression because it works if
 I switch to \draw (22:1.5) node {$Z$};.
 
 The orignal works just fine in LaTeX. Am I missing something obvious or
 encountering a package conflix of some kind?
 
 The message say 1:14:53.301: LaTeX2e 2011/06/27 21:14:53.304: Babel 3.9f
 and hyphenation patterns for 78 languages loaded. 21:14:53.306:
 21:14:54.653: Error while previewing format: pdf2 21:15:07.487:
 (dialog-toggle progress)

The document compiles fine here, after I have removed all those unnecessary 
modules (Rnw [knitr], Natbibapa and the unknown shortinsets-name module).

Jürgen


Re: Problem with fraction in TikZ insert

2014-02-28 Thread Jürgen Spitzmüller
John Kane wrote:
 It's beginning to look like it may be something specific to my set-up.

Most likely. Note that I am using an up-to-date TeXLive 2013, while your LaTeX 
distribution looks older. Maybe you just hit an old tikz bug.

Jürgen


Re: Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
Thank Jurgen.
I had forgotten I even had them loaded.  They are part of my normal template.  
The shortinsets-name is a relatively new one by Andrew Parsloe that hides long 
inset names giving less distraction for something like labels or 
cross-references

Unfortuately I am still getting the same error after removing those modules and 
even reloading LyX.  I even removed the local layout I had and stripped the 
preamble to nothing but \usepackage{tikz}  with no better result.  

I, also, tried it in Lyx 2.1 with no luck.


It's beginning to look like it may be something specific to my set-up. Oh well 
I'm not using it, just experimenting for future possible use so it not a panic.

John




On Friday, February 28, 2014 7:41:15 AM, Jürgen Spitzmüller sp...@lyx.org 
wrote:
 
Am Freitag 28 Februar 2014, 04:03:29 schrieb John Kane:

 I have been experimenting with TikZ and have been through the manual TikZ
 pour l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013
 Everything was going well until I hit the second example on pg. 18.
 Everything is fine until I try to add a fraction , the \draw (22:1.5) node
 {$\dfrac{\pi}{4}$}; line and I don't see what is wrong.
 
 It looks like the problem is in the fraction expression because it works if
 I switch to \draw (22:1.5) node {$Z$};.
 
 The orignal works just fine in LaTeX. Am I missing something obvious or
 encountering a package conflix of some kind?
 
 The message say 1:14:53.301: LaTeX2e 2011/06/27 21:14:53.304: Babel 3.9f
 and hyphenation patterns for 78 languages loaded. 21:14:53.306:
 21:14:54.653: Error while previewing format: pdf2 21:15:07.487:
 (dialog-toggle progress)

The document compiles fine here, after I have removed all those unnecessary 
modules (Rnw [knitr], Natbibapa and the unknown shortinsets-name module).

Jürgen

Re: Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
Good point. I am not sure when I updated TeXLive but I think it was over a year 
ago.

Must get to work now but I'll try updating it this afternoon or tomorrow and 
see what happens.

Thanks and have a good week-end.





On Friday, February 28, 2014 8:45:39 AM, Jürgen Spitzmüller sp...@lyx.org 
wrote:
 
John Kane wrote:
 It's beginning to look like it may be something specific to my set-up.

Most likely. Note that I am using an up-to-date TeXLive 2013, while your LaTeX 
distribution looks older. Maybe you just hit an old tikz bug.


Jürgen

Re: Problem with fraction in TikZ insert

2014-02-28 Thread Paul A . Rubin
Besides stripping out the package loads mentioned by Jürgen, I had to switch
AMSMath (Document  Settings  Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did that,
the document compiled.

Paul







Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
I have been experimenting with TikZ and have been through the manual TikZ pour 
l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013 Everything was 
going well until I hit the second example on pg. 18. Everything is fine until I 
try to add a fraction , the \draw (22:1.5) node {$\dfrac{\pi}{4}$}; line and I 
don't see what is wrong. 

It looks like the problem is in the fraction expression because it works if I 
switch to \draw (22:1.5) node {$Z$};.

The orignal works just fine in LaTeX. Am I missing something obvious or 
encountering a package conflix of some kind? 

The message say 1:14:53.301: LaTeX2e 2011/06/27 21:14:53.304: Babel 3.9f 
and hyphenation patterns for 78 languages loaded. 21:14:53.306: 21:14:54.653: 
Error while previewing format: pdf2 21:15:07.487: (dialog-toggle progress)


TikZ3.lyx
Description: application/lyx


Re: Problem with fraction in TikZ insert

2014-02-28 Thread Jürgen Spitzmüller
Am Freitag 28 Februar 2014, 04:03:29 schrieb John Kane:
 I have been experimenting with TikZ and have been through the manual TikZ
 pour l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013
 Everything was going well until I hit the second example on pg. 18.
 Everything is fine until I try to add a fraction , the \draw (22:1.5) node
 {$\dfrac{\pi}{4}$}; line and I don't see what is wrong.
 
 It looks like the problem is in the fraction expression because it works if
 I switch to \draw (22:1.5) node {$Z$};.
 
 The orignal works just fine in LaTeX. Am I missing something obvious or
 encountering a package conflix of some kind?
 
 The message say 1:14:53.301: LaTeX2e 2011/06/27 21:14:53.304: Babel 3.9f
 and hyphenation patterns for 78 languages loaded. 21:14:53.306:
 21:14:54.653: Error while previewing format: pdf2 21:15:07.487:
 (dialog-toggle progress)

The document compiles fine here, after I have removed all those unnecessary 
modules (Rnw [knitr], Natbibapa and the unknown shortinsets-name module).

Jürgen


Re: Problem with fraction in TikZ insert

2014-02-28 Thread Jürgen Spitzmüller
John Kane wrote:
 It's beginning to look like it may be something specific to my set-up.

Most likely. Note that I am using an up-to-date TeXLive 2013, while your LaTeX 
distribution looks older. Maybe you just hit an old tikz bug.

Jürgen


Re: Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
Thank Jurgen.
I had forgotten I even had them loaded.  They are part of my normal template.  
The shortinsets-name is a relatively new one by Andrew Parsloe that hides long 
inset names giving less distraction for something like labels or 
cross-references

Unfortuately I am still getting the same error after removing those modules and 
even reloading LyX.  I even removed the local layout I had and stripped the 
preamble to nothing but \usepackage{tikz}  with no better result.  

I, also, tried it in Lyx 2.1 with no luck.


It's beginning to look like it may be something specific to my set-up. Oh well 
I'm not using it, just experimenting for future possible use so it not a panic.

John




On Friday, February 28, 2014 7:41:15 AM, Jürgen Spitzmüller sp...@lyx.org 
wrote:
 
Am Freitag 28 Februar 2014, 04:03:29 schrieb John Kane:

 I have been experimenting with TikZ and have been through the manual TikZ
 pour l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013
 Everything was going well until I hit the second example on pg. 18.
 Everything is fine until I try to add a fraction , the \draw (22:1.5) node
 {$\dfrac{\pi}{4}$}; line and I don't see what is wrong.
 
 It looks like the problem is in the fraction expression because it works if
 I switch to \draw (22:1.5) node {$Z$};.
 
 The orignal works just fine in LaTeX. Am I missing something obvious or
 encountering a package conflix of some kind?
 
 The message say 1:14:53.301: LaTeX2e 2011/06/27 21:14:53.304: Babel 3.9f
 and hyphenation patterns for 78 languages loaded. 21:14:53.306:
 21:14:54.653: Error while previewing format: pdf2 21:15:07.487:
 (dialog-toggle progress)

The document compiles fine here, after I have removed all those unnecessary 
modules (Rnw [knitr], Natbibapa and the unknown shortinsets-name module).

Jürgen

Re: Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
Good point. I am not sure when I updated TeXLive but I think it was over a year 
ago.

Must get to work now but I'll try updating it this afternoon or tomorrow and 
see what happens.

Thanks and have a good week-end.





On Friday, February 28, 2014 8:45:39 AM, Jürgen Spitzmüller sp...@lyx.org 
wrote:
 
John Kane wrote:
 It's beginning to look like it may be something specific to my set-up.

Most likely. Note that I am using an up-to-date TeXLive 2013, while your LaTeX 
distribution looks older. Maybe you just hit an old tikz bug.


Jürgen

Re: Problem with fraction in TikZ insert

2014-02-28 Thread Paul A . Rubin
Besides stripping out the package loads mentioned by Jürgen, I had to switch
AMSMath (Document  Settings  Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did that,
the document compiled.

Paul







Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
I have been experimenting with TikZ and have been through the manual TikZ pour 
l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013 Everything was 
going well until I hit the second example on pg. 18. Everything is fine until I 
try to add a fraction , the \draw (22:1.5) node {$\dfrac{\pi}{4}$}; line and I 
don't see what is wrong. 

It looks like the problem is in the fraction expression because it works if I 
switch to \draw (22:1.5) node {$Z$};.

The orignal works just fine in LaTeX. Am I missing something obvious or 
encountering a package conflix of some kind? 

The message say 1:14:53.301: LaTeX2e <2011/06/27> 21:14:53.304: Babel <3.9f> 
and hyphenation patterns for 78 languages loaded. 21:14:53.306: 21:14:54.653: 
Error while previewing format: pdf2 21:15:07.487: (dialog-toggle progress)


TikZ3.lyx
Description: application/lyx


Re: Problem with fraction in TikZ insert

2014-02-28 Thread Jürgen Spitzmüller
Am Freitag 28 Februar 2014, 04:03:29 schrieb John Kane:
> I have been experimenting with TikZ and have been through the manual TikZ
> pour l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013
> Everything was going well until I hit the second example on pg. 18.
> Everything is fine until I try to add a fraction , the \draw (22:1.5) node
> {$\dfrac{\pi}{4}$}; line and I don't see what is wrong.
> 
> It looks like the problem is in the fraction expression because it works if
> I switch to \draw (22:1.5) node {$Z$};.
> 
> The orignal works just fine in LaTeX. Am I missing something obvious or
> encountering a package conflix of some kind?
> 
> The message say 1:14:53.301: LaTeX2e <2011/06/27> 21:14:53.304: Babel <3.9f>
> and hyphenation patterns for 78 languages loaded. 21:14:53.306:
> 21:14:54.653: Error while previewing format: pdf2 21:15:07.487:
> (dialog-toggle progress)

The document compiles fine here, after I have removed all those unnecessary 
modules (Rnw [knitr], Natbibapa and the unknown "shortinsets-name" module).

Jürgen


Re: Problem with fraction in TikZ insert

2014-02-28 Thread Jürgen Spitzmüller
John Kane wrote:
> It's beginning to look like it may be something specific to my set-up.

Most likely. Note that I am using an up-to-date TeXLive 2013, while your LaTeX 
distribution looks older. Maybe you just hit an old tikz bug.

Jürgen


Re: Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
Thank Jurgen.
I had forgotten I even had them loaded.  They are part of my normal template.  
The shortinsets-name is a relatively new one by Andrew Parsloe that hides long 
inset names giving less distraction for something like labels or 
cross-references

Unfortuately I am still getting the same error after removing those modules and 
even reloading LyX.  I even removed the local layout I had and stripped the 
preamble to nothing but \usepackage{tikz}  with no better result.  

I, also, tried it in Lyx 2.1 with no luck.


It's beginning to look like it may be something specific to my set-up. Oh well 
I'm not using it, just experimenting for future possible use so it not a panic.

John




On Friday, February 28, 2014 7:41:15 AM, Jürgen Spitzmüller <sp...@lyx.org> 
wrote:
 
Am Freitag 28 Februar 2014, 04:03:29 schrieb John Kane:

> I have been experimenting with TikZ and have been through the manual TikZ
> pour l'impatient, (Gérard Tisseau et Jacques Duma) 15 novembre 2013
> Everything was going well until I hit the second example on pg. 18.
> Everything is fine until I try to add a fraction , the \draw (22:1.5) node
> {$\dfrac{\pi}{4}$}; line and I don't see what is wrong.
> 
> It looks like the problem is in the fraction expression because it works if
> I switch to \draw (22:1.5) node {$Z$};.
> 
> The orignal works just fine in LaTeX. Am I missing something obvious or
> encountering a package conflix of some kind?
> 
> The message say 1:14:53.301: LaTeX2e <2011/06/27> 21:14:53.304: Babel <3.9f>
> and hyphenation patterns for 78 languages loaded. 21:14:53.306:
> 21:14:54.653: Error while previewing format: pdf2 21:15:07.487:
> (dialog-toggle progress)

The document compiles fine here, after I have removed all those unnecessary 
modules (Rnw [knitr], Natbibapa and the unknown "shortinsets-name" module).

Jürgen

Re: Problem with fraction in TikZ insert

2014-02-28 Thread John Kane
Good point. I am not sure when I updated TeXLive but I think it was over a year 
ago.

Must get to work now but I'll try updating it this afternoon or tomorrow and 
see what happens.

Thanks and have a good week-end.





On Friday, February 28, 2014 8:45:39 AM, Jürgen Spitzmüller <sp...@lyx.org> 
wrote:
 
John Kane wrote:
> It's beginning to look like it may be something specific to my set-up.

Most likely. Note that I am using an up-to-date TeXLive 2013, while your LaTeX 
distribution looks older. Maybe you just hit an old tikz bug.


Jürgen

Re: Problem with fraction in TikZ insert

2014-02-28 Thread Paul A . Rubin
Besides stripping out the package loads mentioned by Jürgen, I had to switch
AMSMath (Document > Settings > Math Options) from automatic to manual load
(because the \dfrac command, which requires it, is in ERT). Once I did that,
the document compiled.

Paul







tikz/pgf curves question

2013-12-04 Thread Csikos Bela
Hello:

With tikz I would like to draw 2 curved arrows which touch each other
tangentially. Example image attached.

(I also asked this at the pfg-users list, see:

http://sourceforge.net/mailarchive/message.php?msg_id=31715628)

Any help is appreciated.

Thanks,

bcsikos
attachment: arrows.png

tikz/pgf curves question

2013-12-04 Thread Csikos Bela
Hello:

With tikz I would like to draw 2 curved arrows which touch each other
tangentially. Example image attached.

(I also asked this at the pfg-users list, see:

http://sourceforge.net/mailarchive/message.php?msg_id=31715628)

Any help is appreciated.

Thanks,

bcsikos
attachment: arrows.png

tikz/pgf curves question

2013-12-04 Thread Csikos Bela
Hello:

With tikz I would like to draw 2 curved arrows which touch each other
tangentially. Example image attached.

(I also asked this at the pfg-users list, see:

http://sourceforge.net/mailarchive/message.php?msg_id=31715628)

Any help is appreciated.

Thanks,

bcsikos
<>

Re: Too few reruns for TikZ overlays

2013-11-19 Thread Jürgen Spitzmüller
2013/11/18 Donjan Rodic

 Heiko states that the eventual goal is to have the changes incorporated
 into pgf/TikZ, but I can't find any report of progress. Do you or anyone
 happen to know whether the pgf maintainers are aware of this? Otherwise
 I'll ask on the pgf-users list.


At least there is no request in the pgf bug tracker. So it would be a good
idea if you filed one.

Jürgen


Re: Too few reruns for TikZ overlays

2013-11-19 Thread Jürgen Spitzmüller
2013/11/18 Donjan Rodic

 Heiko states that the eventual goal is to have the changes incorporated
 into pgf/TikZ, but I can't find any report of progress. Do you or anyone
 happen to know whether the pgf maintainers are aware of this? Otherwise
 I'll ask on the pgf-users list.


At least there is no request in the pgf bug tracker. So it would be a good
idea if you filed one.

Jürgen


Re: Too few reruns for TikZ overlays

2013-11-19 Thread Jürgen Spitzmüller
2013/11/18 Donjan Rodic

> Heiko states that the eventual goal is to have the changes incorporated
> into pgf/TikZ, but I can't find any report of progress. Do you or anyone
> happen to know whether the pgf maintainers are aware of this? Otherwise
> I'll ask on the pgf-users list.
>

At least there is no request in the pgf bug tracker. So it would be a good
idea if you filed one.

Jürgen


Re: Too few reruns for TikZ overlays

2013-11-18 Thread Donjan Rodic

Jürgen: perfect, thanks!

Heiko states that the eventual goal is to have the changes incorporated 
into pgf/TikZ, but I can't find any report of progress. Do you or anyone 
happen to know whether the pgf maintainers are aware of this? Otherwise 
I'll ask on the pgf-users list.


Btw: as a more or less one-time stop-by'er I'm not subscribed to this 
list (looked up your reply on the archive), please keep me in the Re.


cheers
Donjan



On 18.11.2013 05:32, Donjan Rodic wrote:
I'm using the overlay functionality of TikZ, which requires at least 
one more rerun than Lyx currently does. It's the same problem as with

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
just in another package. The workaround of hitting Ctrl+R, adding a 
change (e.g. whitespace), then Ctrl+R again works, but clearly lacks 
in elegance.


How can I produce the necessary output to help make Lyx check for the 
rerun? I'm attaching an example file that simply connects two points 
with an arrow line in an overlay. That line always lags behind one 
change step.


cheers
Donjan Rodic





Re: Too few reruns for TikZ overlays

2013-11-18 Thread Donjan Rodic

Jürgen: perfect, thanks!

Heiko states that the eventual goal is to have the changes incorporated 
into pgf/TikZ, but I can't find any report of progress. Do you or anyone 
happen to know whether the pgf maintainers are aware of this? Otherwise 
I'll ask on the pgf-users list.


Btw: as a more or less one-time stop-by'er I'm not subscribed to this 
list (looked up your reply on the archive), please keep me in the Re.


cheers
Donjan



On 18.11.2013 05:32, Donjan Rodic wrote:
I'm using the overlay functionality of TikZ, which requires at least 
one more rerun than Lyx currently does. It's the same problem as with

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
just in another package. The workaround of hitting Ctrl+R, adding a 
change (e.g. whitespace), then Ctrl+R again works, but clearly lacks 
in elegance.


How can I produce the necessary output to help make Lyx check for the 
rerun? I'm attaching an example file that simply connects two points 
with an arrow line in an overlay. That line always lags behind one 
change step.


cheers
Donjan Rodic





Re: Too few reruns for TikZ overlays

2013-11-18 Thread Donjan Rodic

Jürgen: perfect, thanks!

Heiko states that the eventual goal is to have the changes incorporated 
into pgf/TikZ, but I can't find any report of progress. Do you or anyone 
happen to know whether the pgf maintainers are aware of this? Otherwise 
I'll ask on the pgf-users list.


Btw: as a more or less one-time stop-by'er I'm not subscribed to this 
list (looked up your reply on the archive), please keep me in the Re.


cheers
Donjan



On 18.11.2013 05:32, Donjan Rodic wrote:
I'm using the overlay functionality of TikZ, which requires at least 
one more rerun than Lyx currently does. It's the same problem as with

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
just in another package. The workaround of hitting Ctrl+R, adding a 
change (e.g. whitespace), then Ctrl+R again works, but clearly lacks 
in elegance.


How can I produce the necessary output to help make Lyx check for the 
rerun? I'm attaching an example file that simply connects two points 
with an arrow line in an overlay. That line always lags behind one 
change step.


cheers
Donjan Rodic





Too few reruns for TikZ overlays

2013-11-17 Thread Donjan Rodic
I'm using the overlay functionality of TikZ, which requires at least one 
more rerun than Lyx currently does. It's the same problem as with

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
just in another package. The workaround of hitting Ctrl+R, adding a 
change (e.g. whitespace), then Ctrl+R again works, but clearly lacks in 
elegance.


How can I produce the necessary output to help make Lyx check for the 
rerun? I'm attaching an example file that simply connects two points 
with an arrow line in an overlay. That line always lags behind one 
change step.


cheers
Donjan Rodic



tikzoverlay.lyx
Description: application/lyx


Re: Too few reruns for TikZ overlays

2013-11-17 Thread Jürgen Spitzmüller
Am Montag 18 November 2013, 05:32:31 schrieb Donjan Rodic:
 I'm using the overlay functionality of TikZ, which requires at least one
 more rerun than Lyx currently does. It's the same problem as with
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
 just in another package. The workaround of hitting Ctrl+R, adding a
 change (e.g. whitespace), then Ctrl+R again works, but clearly lacks in
 elegance.
 
 How can I produce the necessary output to help make Lyx check for the
 rerun? I'm attaching an example file that simply connects two points
 with an arrow line in an overlay. That line always lags behind one
 change step.

The problem is that LyX needs some clear rerun statement in the log file, but 
tikz does not issue one, so LyX is unable to guess whether a rerun statement 
is needed or not.

Fortunately, the great Heiko Oberdiek has written yet another package which 
fixes exactly this (and other pgf/tikz shortcomings). See
http://tex.stackexchange.com/questions/82063/programming-tex-macros-so-that-they-output-instructions-to-rerun-the-compilation

Despite the announcement, the package is not yet published on CTAN, so I've 
unpacked the version posted to sx, see attachment.
Adding \usepackage{hopgf} to the preamble seems to cure your problem.

HTH
Jürgen

 cheers
 Donjan Rodic

%%
%% This is file `hopgf.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hopgf.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Project: hopgf
%% Version: 2012/09/29 v1.0
%% 
%% Copyright (C) 2012 by
%%Heiko Oberdiek heiko.oberdiek at googlemail.com
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status maintained.
%% 
%% This Current Maintainer of this work is Heiko Oberdiek.
%% 
%% The Base Interpreter refers to any `TeX-Format',
%% because some files are installed in TDS:tex/generic//.
%% 
%% This work consists of the main source file hopgf.dtx
%% and the derived files
%%hopgf.sty, hopgf.pdf, hopgf.ins, hopgf.drv, hopgf.bib,
%%hopgf-test1.tex, hopgf-test-alpha.tex,
%%hopgf-test-sysmark.tex.
%% 
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode35=6 % #
  \catcode39=12 % '
  \catcode44=12 % ,
  \catcode45=12 % -
  \catcode46=12 % .
  \catcode58=12 % :
  \catcode64=11 % @
  \catcode123=1 % {
  \catcode125=2 % }
  \expandafter\let\expandafter\x\csname v...@hopgf.sty\endcsname
  \ifx\x\relax % plain-TeX, first loading
  \else
\def\empty{}%
\ifx\x\empty % LaTeX, first loading,
  % variable is initialized, but \ProvidesPackage not yet seen
\else
  \expandafter\ifx\csname PackageInfo\endcsname\relax
\def\x#1#2{%
  \immediate\write-1{Package #1 Info: #2.}%
}%
  \else
\def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
  \fi
  \x{hopgf}{The package is already loaded}%
  \aftergroup\endinput
\fi
  \fi
\endgroup%
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode35=6 % #
  \catcode39=12 % '
  \catcode40=12 % (
  \catcode41=12 % )
  \catcode44=12 % ,
  \catcode45=12 % -
  \catcode46=12 % .
  \catcode47=12 % /
  \catcode58=12 % :
  \catcode64=11 % @
  \catcode91=12 % [
  \catcode93=12 % ]
  \catcode123=1 % {
  \catcode125=2 % }
  \expandafter\ifx\csname ProvidesPackage\endcsname\relax
\def\x#1#2#3[#4]{\endgroup
  \immediate\write-1{Package: #3 #4}%
  \xdef#1{#4}%
}%
  \else
\def\x#1#2[#3]{\endgroup
  #2[{#3}]%
  \ifx#1\@undefined
\xdef#1{#3}%
  \fi
  \ifx#1\relax
\xdef#1{#3}%
  \fi
}%
  \fi
\expandafter\x\csname v...@hopgf.sty\endcsname
\ProvidesPackage{hopgf}%
  [2012/09/29 v1.0 Some fixes for pgf (HO)]%
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode123=1 % {
  \catcode125=2 % }
  \catcode64=11 % @
  \def\x{\endgroup
\expandafter\edef\csname hopgf@AtEnd\endcsname{%
  \endlinechar=\the\endlinechar\relax
  \catcode13=\the\catcode13\relax
  \catcode32=\the\catcode32\relax
  \catcode35=\the\catcode35\relax
  \catcode61=\the\catcode61\relax
  \catcode64=\the\catcode64\relax
  \catcode123=\the\catcode123\relax
  \catcode125=\the\catcode125\relax
}%
  }%
\x\catcode61\catcode48\catcode32=10\relax%
\catcode13=5 % ^^M
\endlinechar=13 %
\catcode35=6 % #
\catcode64=11 % @
\catcode123=1 % {
\catcode125=2 % }
\def\TMP@EnsureCode#1#2{%
  \edef\hopgf@AtEnd{%
\hopgf@AtEnd

Too few reruns for TikZ overlays

2013-11-17 Thread Donjan Rodic
I'm using the overlay functionality of TikZ, which requires at least one 
more rerun than Lyx currently does. It's the same problem as with

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
just in another package. The workaround of hitting Ctrl+R, adding a 
change (e.g. whitespace), then Ctrl+R again works, but clearly lacks in 
elegance.


How can I produce the necessary output to help make Lyx check for the 
rerun? I'm attaching an example file that simply connects two points 
with an arrow line in an overlay. That line always lags behind one 
change step.


cheers
Donjan Rodic



tikzoverlay.lyx
Description: application/lyx


Re: Too few reruns for TikZ overlays

2013-11-17 Thread Jürgen Spitzmüller
Am Montag 18 November 2013, 05:32:31 schrieb Donjan Rodic:
 I'm using the overlay functionality of TikZ, which requires at least one
 more rerun than Lyx currently does. It's the same problem as with
 http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
 just in another package. The workaround of hitting Ctrl+R, adding a
 change (e.g. whitespace), then Ctrl+R again works, but clearly lacks in
 elegance.
 
 How can I produce the necessary output to help make Lyx check for the
 rerun? I'm attaching an example file that simply connects two points
 with an arrow line in an overlay. That line always lags behind one
 change step.

The problem is that LyX needs some clear rerun statement in the log file, but 
tikz does not issue one, so LyX is unable to guess whether a rerun statement 
is needed or not.

Fortunately, the great Heiko Oberdiek has written yet another package which 
fixes exactly this (and other pgf/tikz shortcomings). See
http://tex.stackexchange.com/questions/82063/programming-tex-macros-so-that-they-output-instructions-to-rerun-the-compilation

Despite the announcement, the package is not yet published on CTAN, so I've 
unpacked the version posted to sx, see attachment.
Adding \usepackage{hopgf} to the preamble seems to cure your problem.

HTH
Jürgen

 cheers
 Donjan Rodic

%%
%% This is file `hopgf.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hopgf.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Project: hopgf
%% Version: 2012/09/29 v1.0
%% 
%% Copyright (C) 2012 by
%%Heiko Oberdiek heiko.oberdiek at googlemail.com
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status maintained.
%% 
%% This Current Maintainer of this work is Heiko Oberdiek.
%% 
%% The Base Interpreter refers to any `TeX-Format',
%% because some files are installed in TDS:tex/generic//.
%% 
%% This work consists of the main source file hopgf.dtx
%% and the derived files
%%hopgf.sty, hopgf.pdf, hopgf.ins, hopgf.drv, hopgf.bib,
%%hopgf-test1.tex, hopgf-test-alpha.tex,
%%hopgf-test-sysmark.tex.
%% 
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode35=6 % #
  \catcode39=12 % '
  \catcode44=12 % ,
  \catcode45=12 % -
  \catcode46=12 % .
  \catcode58=12 % :
  \catcode64=11 % @
  \catcode123=1 % {
  \catcode125=2 % }
  \expandafter\let\expandafter\x\csname v...@hopgf.sty\endcsname
  \ifx\x\relax % plain-TeX, first loading
  \else
\def\empty{}%
\ifx\x\empty % LaTeX, first loading,
  % variable is initialized, but \ProvidesPackage not yet seen
\else
  \expandafter\ifx\csname PackageInfo\endcsname\relax
\def\x#1#2{%
  \immediate\write-1{Package #1 Info: #2.}%
}%
  \else
\def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
  \fi
  \x{hopgf}{The package is already loaded}%
  \aftergroup\endinput
\fi
  \fi
\endgroup%
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode35=6 % #
  \catcode39=12 % '
  \catcode40=12 % (
  \catcode41=12 % )
  \catcode44=12 % ,
  \catcode45=12 % -
  \catcode46=12 % .
  \catcode47=12 % /
  \catcode58=12 % :
  \catcode64=11 % @
  \catcode91=12 % [
  \catcode93=12 % ]
  \catcode123=1 % {
  \catcode125=2 % }
  \expandafter\ifx\csname ProvidesPackage\endcsname\relax
\def\x#1#2#3[#4]{\endgroup
  \immediate\write-1{Package: #3 #4}%
  \xdef#1{#4}%
}%
  \else
\def\x#1#2[#3]{\endgroup
  #2[{#3}]%
  \ifx#1\@undefined
\xdef#1{#3}%
  \fi
  \ifx#1\relax
\xdef#1{#3}%
  \fi
}%
  \fi
\expandafter\x\csname v...@hopgf.sty\endcsname
\ProvidesPackage{hopgf}%
  [2012/09/29 v1.0 Some fixes for pgf (HO)]%
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode123=1 % {
  \catcode125=2 % }
  \catcode64=11 % @
  \def\x{\endgroup
\expandafter\edef\csname hopgf@AtEnd\endcsname{%
  \endlinechar=\the\endlinechar\relax
  \catcode13=\the\catcode13\relax
  \catcode32=\the\catcode32\relax
  \catcode35=\the\catcode35\relax
  \catcode61=\the\catcode61\relax
  \catcode64=\the\catcode64\relax
  \catcode123=\the\catcode123\relax
  \catcode125=\the\catcode125\relax
}%
  }%
\x\catcode61\catcode48\catcode32=10\relax%
\catcode13=5 % ^^M
\endlinechar=13 %
\catcode35=6 % #
\catcode64=11 % @
\catcode123=1 % {
\catcode125=2 % }
\def\TMP@EnsureCode#1#2{%
  \edef\hopgf@AtEnd{%
\hopgf@AtEnd

Too few reruns for TikZ overlays

2013-11-17 Thread Donjan Rodic
I'm using the overlay functionality of TikZ, which requires at least one 
more rerun than Lyx currently does. It's the same problem as with

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
just in another package. The workaround of hitting Ctrl+R, adding a 
change (e.g. whitespace), then Ctrl+R again works, but clearly lacks in 
elegance.


How can I produce the necessary output to help make Lyx check for the 
rerun? I'm attaching an example file that simply connects two points 
with an arrow line in an overlay. That line always lags behind one 
change step.


cheers
Donjan Rodic



tikzoverlay.lyx
Description: application/lyx


Re: Too few reruns for TikZ overlays

2013-11-17 Thread Jürgen Spitzmüller
Am Montag 18 November 2013, 05:32:31 schrieb Donjan Rodic:
> I'm using the overlay functionality of TikZ, which requires at least one
> more rerun than Lyx currently does. It's the same problem as with
> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg89501.html
> just in another package. The workaround of hitting Ctrl+R, adding a
> change (e.g. whitespace), then Ctrl+R again works, but clearly lacks in
> elegance.
> 
> How can I produce the necessary output to help make Lyx check for the
> rerun? I'm attaching an example file that simply connects two points
> with an arrow line in an overlay. That line always lags behind one
> change step.

The problem is that LyX needs some clear rerun statement in the log file, but 
tikz does not issue one, so LyX is unable to guess whether a rerun statement 
is needed or not.

Fortunately, the great Heiko Oberdiek has written yet another package which 
fixes exactly this (and other pgf/tikz shortcomings). See
http://tex.stackexchange.com/questions/82063/programming-tex-macros-so-that-they-output-instructions-to-rerun-the-compilation

Despite the announcement, the package is not yet published on CTAN, so I've 
unpacked the version posted to sx, see attachment.
Adding \usepackage{hopgf} to the preamble seems to cure your problem.

HTH
Jürgen

> cheers
> Donjan Rodic

%%
%% This is file `hopgf.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hopgf.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Project: hopgf
%% Version: 2012/09/29 v1.0
%% 
%% Copyright (C) 2012 by
%%Heiko Oberdiek 
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% This Current Maintainer of this work is Heiko Oberdiek.
%% 
%% The Base Interpreter refers to any `TeX-Format',
%% because some files are installed in TDS:tex/generic//.
%% 
%% This work consists of the main source file hopgf.dtx
%% and the derived files
%%hopgf.sty, hopgf.pdf, hopgf.ins, hopgf.drv, hopgf.bib,
%%hopgf-test1.tex, hopgf-test-alpha.tex,
%%hopgf-test-sysmark.tex.
%% 
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode35=6 % #
  \catcode39=12 % '
  \catcode44=12 % ,
  \catcode45=12 % -
  \catcode46=12 % .
  \catcode58=12 % :
  \catcode64=11 % @
  \catcode123=1 % {
  \catcode125=2 % }
  \expandafter\let\expandafter\x\csname v...@hopgf.sty\endcsname
  \ifx\x\relax % plain-TeX, first loading
  \else
\def\empty{}%
\ifx\x\empty % LaTeX, first loading,
  % variable is initialized, but \ProvidesPackage not yet seen
\else
  \expandafter\ifx\csname PackageInfo\endcsname\relax
\def\x#1#2{%
  \immediate\write-1{Package #1 Info: #2.}%
}%
  \else
\def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
  \fi
  \x{hopgf}{The package is already loaded}%
  \aftergroup\endinput
\fi
  \fi
\endgroup%
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode35=6 % #
  \catcode39=12 % '
  \catcode40=12 % (
  \catcode41=12 % )
  \catcode44=12 % ,
  \catcode45=12 % -
  \catcode46=12 % .
  \catcode47=12 % /
  \catcode58=12 % :
  \catcode64=11 % @
  \catcode91=12 % [
  \catcode93=12 % ]
  \catcode123=1 % {
  \catcode125=2 % }
  \expandafter\ifx\csname ProvidesPackage\endcsname\relax
\def\x#1#2#3[#4]{\endgroup
  \immediate\write-1{Package: #3 #4}%
  \xdef#1{#4}%
}%
  \else
\def\x#1#2[#3]{\endgroup
  #2[{#3}]%
  \ifx#1\@undefined
\xdef#1{#3}%
  \fi
  \ifx#1\relax
\xdef#1{#3}%
  \fi
}%
  \fi
\expandafter\x\csname v...@hopgf.sty\endcsname
\ProvidesPackage{hopgf}%
  [2012/09/29 v1.0 Some fixes for pgf (HO)]%
\begingroup\catcode61\catcode48\catcode32=10\relax%
  \catcode13=5 % ^^M
  \endlinechar=13 %
  \catcode123=1 % {
  \catcode125=2 % }
  \catcode64=11 % @
  \def\x{\endgroup
\expandafter\edef\csname hopgf@AtEnd\endcsname{%
  \endlinechar=\the\endlinechar\relax
  \catcode13=\the\catcode13\relax
  \catcode32=\the\catcode32\relax
  \catcode35=\the\catcode35\relax
  \catcode61=\the\catcode61\relax
  \catcode64=\the\catcode64\relax
  \catcode123=\the\catcode123\relax
  \catcode125=\the\catcode125\relax
}%
  }%
\x\catcode61\catcode48\catcode32=10\relax%
\catcode13=5 % ^^M
\endlinechar=13 %
\catcode35=6 % #
\catcode64=11 % @
\catcode123=1 % {
\catcode125=2 % }
\def\TMP@EnsureCode#1#2{%
  \e

Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread flor...@skwirblies.com
 
Hallo,
ich möchte lernen LyX zu verwenden und möchte in einem Dokument
ein Diagramm erstellen.
Ich verwende LyX auf einem Windows System.
Ich habe bereits rausgefunden, das ich um mit LyX Diagramme zu erzeugen 
dasTikZ-Paket benötige.
Dieses habe ich in den MikTex Ordner installiert.
Leider komme ich mit der Anwendung ab diesem Zeitpunkt nicht zurecht. Muss ich 
nun meinen LyX-Text im Editor schreiben damit ich die
Zeichenfunktionen nutzen kann oder wie funktioniert das über die LyX-Oberfläche?
Mich hätte gefreut wenn nach der installation neue Toolbars, oder Funktionen im 
Menü wären um das TikZ-Paket anzuwenden.
 
Es wäre super wenn mich jemand aufklären könnte weas ich falsch gemacht habe 
oder wie ich weiter vorgehen kann um
meine bis jetzt positiven Erfahrungen mit LyX zu erweitern.
 
 
Danke im Vorraus
 
Florian

Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Jürgen Spitzmüller
Am Samstag 22 Juni 2013, 13:54:49 schrieb flor...@skwirblies.com:
 Hallo,
 ich möchte lernen LyX zu verwenden und möchte in einem Dokument
 ein Diagramm erstellen.
 Ich verwende LyX auf einem Windows System.
 Ich habe bereits rausgefunden, das ich um mit LyX Diagramme zu erzeugen
 dasTikZ-Paket benötige. Dieses habe ich in den MikTex Ordner installiert.
 Leider komme ich mit der Anwendung ab diesem Zeitpunkt nicht zurecht. Muss
 ich nun meinen LyX-Text im Editor schreiben damit ich die Zeichenfunktionen
 nutzen kann oder wie funktioniert das über die LyX-Oberfläche? Mich hätte
 gefreut wenn nach der installation neue Toolbars, oder Funktionen im Menü
 wären um das TikZ-Paket anzuwenden.

LyX does not include a graphical interface to tikz. You can write tikz code 
either via LyX's TeX mode (suitable for rather small code snippets) or in an 
external text file, which you include via Insert  File  Child Document  
Input (select Input, not Include). It is possible to use instant preview 
on this snippet (either via the Input dialog or by selecting the grey input 
box and doing Insert  Preview).

As for TikZ itself, there exist some programs which help generating the files, 
e.g. kTikZ, a genuine TikZ editor with instant preview (which I use myself) or 
TpX, a real graphical editor that apparently can export to tikz (never tried 
that):
http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/
http://tpx.sourceforge.net/
I think also inkscape can export to tikz via some plugin.

HTH
Jürgen


Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Wolfgang Keller
 I think also inkscape can export to tikz via some plugin.

http://code.google.com/p/inkscape2tikz/

http://sourceforge.net/projects/eps2pgf/

Sincerely,

Wolfgang


Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Paul Rubin
Two editors that I have tried and liked:

TikZiT (http://tikzit.sourceforge.net/) -- mainly useful for node diagrams
TikzEdt (http://www.tikzedt.org/) -- just starting with this, but it looks
promising

Paul





Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread flor...@skwirblies.com
 
Hallo,
ich möchte lernen LyX zu verwenden und möchte in einem Dokument
ein Diagramm erstellen.
Ich verwende LyX auf einem Windows System.
Ich habe bereits rausgefunden, das ich um mit LyX Diagramme zu erzeugen 
dasTikZ-Paket benötige.
Dieses habe ich in den MikTex Ordner installiert.
Leider komme ich mit der Anwendung ab diesem Zeitpunkt nicht zurecht. Muss ich 
nun meinen LyX-Text im Editor schreiben damit ich die
Zeichenfunktionen nutzen kann oder wie funktioniert das über die LyX-Oberfläche?
Mich hätte gefreut wenn nach der installation neue Toolbars, oder Funktionen im 
Menü wären um das TikZ-Paket anzuwenden.
 
Es wäre super wenn mich jemand aufklären könnte weas ich falsch gemacht habe 
oder wie ich weiter vorgehen kann um
meine bis jetzt positiven Erfahrungen mit LyX zu erweitern.
 
 
Danke im Vorraus
 
Florian

Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Jürgen Spitzmüller
Am Samstag 22 Juni 2013, 13:54:49 schrieb flor...@skwirblies.com:
 Hallo,
 ich möchte lernen LyX zu verwenden und möchte in einem Dokument
 ein Diagramm erstellen.
 Ich verwende LyX auf einem Windows System.
 Ich habe bereits rausgefunden, das ich um mit LyX Diagramme zu erzeugen
 dasTikZ-Paket benötige. Dieses habe ich in den MikTex Ordner installiert.
 Leider komme ich mit der Anwendung ab diesem Zeitpunkt nicht zurecht. Muss
 ich nun meinen LyX-Text im Editor schreiben damit ich die Zeichenfunktionen
 nutzen kann oder wie funktioniert das über die LyX-Oberfläche? Mich hätte
 gefreut wenn nach der installation neue Toolbars, oder Funktionen im Menü
 wären um das TikZ-Paket anzuwenden.

LyX does not include a graphical interface to tikz. You can write tikz code 
either via LyX's TeX mode (suitable for rather small code snippets) or in an 
external text file, which you include via Insert  File  Child Document  
Input (select Input, not Include). It is possible to use instant preview 
on this snippet (either via the Input dialog or by selecting the grey input 
box and doing Insert  Preview).

As for TikZ itself, there exist some programs which help generating the files, 
e.g. kTikZ, a genuine TikZ editor with instant preview (which I use myself) or 
TpX, a real graphical editor that apparently can export to tikz (never tried 
that):
http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/
http://tpx.sourceforge.net/
I think also inkscape can export to tikz via some plugin.

HTH
Jürgen


Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Wolfgang Keller
 I think also inkscape can export to tikz via some plugin.

http://code.google.com/p/inkscape2tikz/

http://sourceforge.net/projects/eps2pgf/

Sincerely,

Wolfgang


Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Paul Rubin
Two editors that I have tried and liked:

TikZiT (http://tikzit.sourceforge.net/) -- mainly useful for node diagrams
TikzEdt (http://www.tikzedt.org/) -- just starting with this, but it looks
promising

Paul





Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread flor...@skwirblies.com
 
Hallo,
ich möchte lernen LyX zu verwenden und möchte in einem Dokument
ein Diagramm erstellen.
Ich verwende LyX auf einem Windows System.
Ich habe bereits rausgefunden, das ich um mit LyX Diagramme zu erzeugen 
dasTikZ-Paket benötige.
Dieses habe ich in den MikTex Ordner installiert.
Leider komme ich mit der Anwendung ab diesem Zeitpunkt nicht zurecht. Muss ich 
nun meinen LyX-Text im Editor schreiben damit ich die
Zeichenfunktionen nutzen kann oder wie funktioniert das über die LyX-Oberfläche?
Mich hätte gefreut wenn nach der installation neue Toolbars, oder Funktionen im 
Menü wären um das TikZ-Paket anzuwenden.
 
Es wäre super wenn mich jemand aufklären könnte weas ich falsch gemacht habe 
oder wie ich weiter vorgehen kann um
meine bis jetzt positiven Erfahrungen mit LyX zu erweitern.
 
 
Danke im Vorraus
 
Florian

Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Jürgen Spitzmüller
Am Samstag 22 Juni 2013, 13:54:49 schrieb flor...@skwirblies.com:
> Hallo,
> ich möchte lernen LyX zu verwenden und möchte in einem Dokument
> ein Diagramm erstellen.
> Ich verwende LyX auf einem Windows System.
> Ich habe bereits rausgefunden, das ich um mit LyX Diagramme zu erzeugen
> dasTikZ-Paket benötige. Dieses habe ich in den MikTex Ordner installiert.
> Leider komme ich mit der Anwendung ab diesem Zeitpunkt nicht zurecht. Muss
> ich nun meinen LyX-Text im Editor schreiben damit ich die Zeichenfunktionen
> nutzen kann oder wie funktioniert das über die LyX-Oberfläche? Mich hätte
> gefreut wenn nach der installation neue Toolbars, oder Funktionen im Menü
> wären um das TikZ-Paket anzuwenden.

LyX does not include a graphical interface to tikz. You can write tikz code 
either via LyX's "TeX" mode (suitable for rather small code snippets) or in an 
external text file, which you include via Insert > File > Child Document > 
Input (select "Input", not "Include"). It is possible to use instant preview 
on this snippet (either via the "Input" dialog or by selecting the grey input 
box and doing Insert > Preview).

As for TikZ itself, there exist some programs which help generating the files, 
e.g. kTikZ, a genuine TikZ editor with instant preview (which I use myself) or 
TpX, a real graphical editor that apparently can export to tikz (never tried 
that):
http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/
http://tpx.sourceforge.net/
I think also inkscape can export to tikz via some plugin.

HTH
Jürgen


Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Wolfgang Keller
> I think also inkscape can export to tikz via some plugin.

http://code.google.com/p/inkscape2tikz/

http://sourceforge.net/projects/eps2pgf/

Sincerely,

Wolfgang


Re: Installation und Verwendung des TikZ-Paket in LyX

2013-06-23 Thread Paul Rubin
Two editors that I have tried and liked:

TikZiT (http://tikzit.sourceforge.net/) -- mainly useful for node diagrams
TikzEdt (http://www.tikzedt.org/) -- just starting with this, but it looks
promising

Paul





Re: About the tikz/pgf in lyx

2011-10-19 Thread Helge Hafting

On 18. okt. 2011 18:39, Wei-Dong Lian wrote:

hi everyone,

I am adapting the tikz figures into lyx. I can generate tikz codes in
a separated file, name with *.tikz.
The idea is to generate tikz codes for drawing in each file but control
their styles globally. The line width, font size, colors or other styles
will be consistent throughout the whole document. Even if in several
generated tikz files you want special style, you can just modify that
file and suppress the global style options.

Now if in latex, we can replace 'includegraphics' with 'input' in the
following tex code. it works well.
***
\begin{figure}[h]
   \centering
   \includegraphics{}
   \caption{caption}
   \label{waiting for reftex-label call...}
\end{figure}
***
But in lyx, we need to add ERT code 'input{*.tikz}' for each figure.
This is not consistent with the Insert Graphics of Lyx. So I want still
use the Insert Graphics in lyx to treat tikz as a image file as *.eps,
*.png.


Tikz files can be included without ERT - at least files made with qtikz.


I wonder if we could redefine the \includegraphics{*.tikz} to
input{*.tikz} for the specific extension file, Or  from the FileFormat
Settings for tikz in the preference dialog, does it exist some possible
solutions for tikz?



In LyX:
First, add tikz support to the document preamble:
Document-settings-LaTeX Preamble
Type this in the box:
\usepackage{tikz}
Also add any \usetikzlibrary stuff you need.

Then, to insert a tikz file in the main window:
Insert-File-Child Document

You will get a dialog. This can be used to insert lyx or tex files. And 
a tikz file is really a tex file. So:

Type in the filename of your tikz file. e.g. filename.tikz
Use the include type input to get the tikz figure right there, or
the include type include to get the tikz figure on a new page.

This works for me, at least for tikz files like this one:
\begin{tikzpicture}
grow=down

\node (test) [shape=circle,draw] {
  test
}
child {node [shape=circle,draw] {b}}
child {node [shape=rectangle,draw] {a}};

\end{tikzpicture}

tikz code can also be written directly into an ERT box, if you
want to have the image embedded in the LyX file instead of
in a file of its own.

Helge Hafting


Re: About the tikz/pgf in lyx

2011-10-19 Thread Helge Hafting

On 18. okt. 2011 18:39, Wei-Dong Lian wrote:

hi everyone,

I am adapting the tikz figures into lyx. I can generate tikz codes in
a separated file, name with *.tikz.
The idea is to generate tikz codes for drawing in each file but control
their styles globally. The line width, font size, colors or other styles
will be consistent throughout the whole document. Even if in several
generated tikz files you want special style, you can just modify that
file and suppress the global style options.

Now if in latex, we can replace 'includegraphics' with 'input' in the
following tex code. it works well.
***
\begin{figure}[h]
   \centering
   \includegraphics{}
   \caption{caption}
   \label{waiting for reftex-label call...}
\end{figure}
***
But in lyx, we need to add ERT code 'input{*.tikz}' for each figure.
This is not consistent with the Insert Graphics of Lyx. So I want still
use the Insert Graphics in lyx to treat tikz as a image file as *.eps,
*.png.


Tikz files can be included without ERT - at least files made with qtikz.


I wonder if we could redefine the \includegraphics{*.tikz} to
input{*.tikz} for the specific extension file, Or  from the FileFormat
Settings for tikz in the preference dialog, does it exist some possible
solutions for tikz?



In LyX:
First, add tikz support to the document preamble:
Document-settings-LaTeX Preamble
Type this in the box:
\usepackage{tikz}
Also add any \usetikzlibrary stuff you need.

Then, to insert a tikz file in the main window:
Insert-File-Child Document

You will get a dialog. This can be used to insert lyx or tex files. And 
a tikz file is really a tex file. So:

Type in the filename of your tikz file. e.g. filename.tikz
Use the include type input to get the tikz figure right there, or
the include type include to get the tikz figure on a new page.

This works for me, at least for tikz files like this one:
\begin{tikzpicture}
grow=down

\node (test) [shape=circle,draw] {
  test
}
child {node [shape=circle,draw] {b}}
child {node [shape=rectangle,draw] {a}};

\end{tikzpicture}

tikz code can also be written directly into an ERT box, if you
want to have the image embedded in the LyX file instead of
in a file of its own.

Helge Hafting


Re: About the tikz/pgf in lyx

2011-10-19 Thread Helge Hafting

On 18. okt. 2011 18:39, Wei-Dong Lian wrote:

hi everyone,

I am adapting the tikz figures into lyx. I can generate tikz codes in
a separated file, name with *.tikz.
The idea is to generate tikz codes for drawing in each file but control
their styles globally. The line width, font size, colors or other styles
will be consistent throughout the whole document. Even if in several
generated tikz files you want special style, you can just modify that
file and suppress the global style options.

Now if in latex, we can replace 'includegraphics' with 'input' in the
following tex code. it works well.
***
\begin{figure}[h]
   \centering
   \includegraphics{}
   \caption{caption}
   \label{"waiting for reftex-label call..."}
\end{figure}
***
But in lyx, we need to add ERT code 'input{*.tikz}' for each figure.
This is not consistent with the Insert Graphics of Lyx. So I want still
use the Insert Graphics in lyx to treat tikz as a image file as *.eps,
*.png.


Tikz files can be included without ERT - at least files made with qtikz.


I wonder if we could redefine the \includegraphics{*.tikz} to
input{*.tikz} for the specific extension file, Or  from the FileFormat
Settings for tikz in the preference dialog, does it exist some possible
solutions for tikz?



In LyX:
First, add tikz support to the document preamble:
Document->settings->LaTeX Preamble
Type this in the box:
\usepackage{tikz}
Also add any \usetikzlibrary stuff you need.

Then, to insert a tikz file in the main window:
Insert->File->Child Document

You will get a dialog. This can be used to insert lyx or tex files. And 
a tikz file is really a tex file. So:

Type in the filename of your tikz file. e.g. filename.tikz
Use the include type "input" to get the tikz figure right there, or
the include type "include" to get the tikz figure on a new page.

This works for me, at least for tikz files like this one:
\begin{tikzpicture}
grow=down

\node (test) [shape=circle,draw] {
  test
}
child {node [shape=circle,draw] {b}}
child {node [shape=rectangle,draw] {a}};

\end{tikzpicture}

tikz code can also be written directly into an ERT box, if you
want to have the image embedded in the LyX file instead of
in a file of its own.

Helge Hafting


About the tikz/pgf in lyx

2011-10-18 Thread Wei-Dong Lian
hi everyone,

I am adapting the tikz figures into lyx. I can generate tikz codes in
a separated file, name with *.tikz.
The idea is to generate tikz codes for drawing in each file but control
their styles globally. The line width, font size, colors or other styles
will be consistent throughout the whole document. Even if in several
generated tikz files you want special style, you can just modify that file
and suppress the global style options.

Now if in latex, we can replace 'includegraphics' with 'input' in the
following tex code. it works well.
***
\begin{figure}[h]
  \centering
  \includegraphics{}
  \caption{caption}
  \label{waiting for reftex-label call...}
\end{figure}
***
But in lyx, we need to add ERT code 'input{*.tikz}' for each figure. This is
not consistent with the Insert Graphics of Lyx. So I want still use the
Insert Graphics in lyx to treat tikz as a image file as *.eps, *.png.

I wonder if we could redefine the \includegraphics{*.tikz} to input{*.tikz}
for the specific extension file, Or  from the FileFormat Settings for tikz
in the preference dialog, does it exist some possible solutions for tikz?
I know that we can define a converter of tikz to pdf in the preference
dialog settings, then tikz can be viewed as a ordinary graphics file.
However, in beamer presentation, we can not define the animation operations.
So still I expect lyx can treat .tikz as tex code but with a manner more
elegant.

Any other experiences about the usage of tikz in lyx will also
be appreciated.

Thanks in advance,
weidong


About the tikz/pgf in lyx

2011-10-18 Thread Wei-Dong Lian
hi everyone,

I am adapting the tikz figures into lyx. I can generate tikz codes in
a separated file, name with *.tikz.
The idea is to generate tikz codes for drawing in each file but control
their styles globally. The line width, font size, colors or other styles
will be consistent throughout the whole document. Even if in several
generated tikz files you want special style, you can just modify that file
and suppress the global style options.

Now if in latex, we can replace 'includegraphics' with 'input' in the
following tex code. it works well.
***
\begin{figure}[h]
  \centering
  \includegraphics{}
  \caption{caption}
  \label{waiting for reftex-label call...}
\end{figure}
***
But in lyx, we need to add ERT code 'input{*.tikz}' for each figure. This is
not consistent with the Insert Graphics of Lyx. So I want still use the
Insert Graphics in lyx to treat tikz as a image file as *.eps, *.png.

I wonder if we could redefine the \includegraphics{*.tikz} to input{*.tikz}
for the specific extension file, Or  from the FileFormat Settings for tikz
in the preference dialog, does it exist some possible solutions for tikz?
I know that we can define a converter of tikz to pdf in the preference
dialog settings, then tikz can be viewed as a ordinary graphics file.
However, in beamer presentation, we can not define the animation operations.
So still I expect lyx can treat .tikz as tex code but with a manner more
elegant.

Any other experiences about the usage of tikz in lyx will also
be appreciated.

Thanks in advance,
weidong


About the tikz/pgf in lyx

2011-10-18 Thread Wei-Dong Lian
hi everyone,

I am adapting the tikz figures into lyx. I can generate tikz codes in
a separated file, name with *.tikz.
The idea is to generate tikz codes for drawing in each file but control
their styles globally. The line width, font size, colors or other styles
will be consistent throughout the whole document. Even if in several
generated tikz files you want special style, you can just modify that file
and suppress the global style options.

Now if in latex, we can replace 'includegraphics' with 'input' in the
following tex code. it works well.
***
\begin{figure}[h]
  \centering
  \includegraphics{}
  \caption{caption}
  \label{"waiting for reftex-label call..."}
\end{figure}
***
But in lyx, we need to add ERT code 'input{*.tikz}' for each figure. This is
not consistent with the Insert Graphics of Lyx. So I want still use the
Insert Graphics in lyx to treat tikz as a image file as *.eps, *.png.

I wonder if we could redefine the \includegraphics{*.tikz} to input{*.tikz}
for the specific extension file, Or  from the FileFormat Settings for tikz
in the preference dialog, does it exist some possible solutions for tikz?
I know that we can define a converter of tikz to pdf in the preference
dialog settings, then tikz can be viewed as a ordinary graphics file.
However, in beamer presentation, we can not define the animation operations.
So still I expect lyx can treat .tikz as tex code but with a manner more
elegant.

Any other experiences about the usage of tikz in lyx will also
be appreciated.

Thanks in advance,
weidong


Re: Instant preview with tikz?

2011-07-26 Thread Rainer M Krug
On Tue, Jul 26, 2011 at 12:07 AM, Paul Rubin ru...@msu.edu wrote:

 Rainer M Krug r.m.krug at gmail.com writes:


  I am using LyX 2.0.0, and I am wondering if I am doing something wrong,
 as I
  do not get instant preview working for the attached lyx file which
 contains
  a tikz graph wrapped in instant preview.
 
 
  Is it a problem on my side? (instant preview is enabled in the settings.)

 It previews properly for me (also LyX 2.0.0, on Linux Mint). Does an
 ordinary
 math formula preview for you (to verify that you have the preview style
 installed and preview in general works)?


OK - now it is working. It worked after closing lyx and opening again.

I can reproduce this by simply removing the preview box and saving the file.
When I open it and wrap the insert in a preview box, I do not see a preview,
but when I save the file now and re-open it, I see the preview.

Cheers,

Rainer



 Paul





-- 
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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: Instant preview with tikz?

2011-07-26 Thread Rainer M Krug
On Tue, Jul 26, 2011 at 12:07 AM, Paul Rubin ru...@msu.edu wrote:

 Rainer M Krug r.m.krug at gmail.com writes:


  I am using LyX 2.0.0, and I am wondering if I am doing something wrong,
 as I
  do not get instant preview working for the attached lyx file which
 contains
  a tikz graph wrapped in instant preview.
 
 
  Is it a problem on my side? (instant preview is enabled in the settings.)

 It previews properly for me (also LyX 2.0.0, on Linux Mint). Does an
 ordinary
 math formula preview for you (to verify that you have the preview style
 installed and preview in general works)?


OK - now it is working. It worked after closing lyx and opening again.

I can reproduce this by simply removing the preview box and saving the file.
When I open it and wrap the insert in a preview box, I do not see a preview,
but when I save the file now and re-open it, I see the preview.

Cheers,

Rainer



 Paul





-- 
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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: Instant preview with tikz?

2011-07-26 Thread Rainer M Krug
On Tue, Jul 26, 2011 at 12:07 AM, Paul Rubin <ru...@msu.edu> wrote:

> Rainer M Krug  gmail.com> writes:
>
>
> > I am using LyX 2.0.0, and I am wondering if I am doing something wrong,
> as I
> > do not get instant preview working for the attached lyx file which
> contains
> > a tikz graph wrapped in instant preview.
> >
> >
> > Is it a problem on my side? (instant preview is enabled in the settings.)
>
> It previews properly for me (also LyX 2.0.0, on Linux Mint). Does an
> ordinary
> math formula preview for you (to verify that you have the preview style
> installed and preview in general works)?
>

OK - now it is working. It worked after closing lyx and opening again.

I can reproduce this by simply removing the preview box and saving the file.
When I open it and wrap the insert in a preview box, I do not see a preview,
but when I save the file now and re-open it, I see the preview.

Cheers,

Rainer


>
> Paul
>
>
>


-- 
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 (F):   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug


Instant preview with tikz?

2011-07-25 Thread Rainer M Krug
Hi

I am using LyX 2.0.0, and I am wondering if I am doing something wrong, as I
do not get instant preview working for the attached lyx file which contains
a tikz graph wrapped in instant preview.

Is it a problem on my side? (instant preview is enabled in the settings.)

Cheersm

Rainer

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

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

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

email:  rai...@krugs.de

Skype:  RMkrug


tikz.lyx
Description: application/lyx


Re: Instant preview with tikz?

2011-07-25 Thread Paul Rubin
Rainer M Krug r.m.krug at gmail.com writes:

 
 I am using LyX 2.0.0, and I am wondering if I am doing something wrong, as I 
 do not get instant preview working for the attached lyx file which contains 
 a tikz graph wrapped in instant preview.
 
 
 Is it a problem on my side? (instant preview is enabled in the settings.)

It previews properly for me (also LyX 2.0.0, on Linux Mint). Does an ordinary
math formula preview for you (to verify that you have the preview style
installed and preview in general works)?

Paul




Instant preview with tikz?

2011-07-25 Thread Rainer M Krug
Hi

I am using LyX 2.0.0, and I am wondering if I am doing something wrong, as I
do not get instant preview working for the attached lyx file which contains
a tikz graph wrapped in instant preview.

Is it a problem on my side? (instant preview is enabled in the settings.)

Cheersm

Rainer

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

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

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

email:  rai...@krugs.de

Skype:  RMkrug


tikz.lyx
Description: application/lyx


Re: Instant preview with tikz?

2011-07-25 Thread Paul Rubin
Rainer M Krug r.m.krug at gmail.com writes:

 
 I am using LyX 2.0.0, and I am wondering if I am doing something wrong, as I 
 do not get instant preview working for the attached lyx file which contains 
 a tikz graph wrapped in instant preview.
 
 
 Is it a problem on my side? (instant preview is enabled in the settings.)

It previews properly for me (also LyX 2.0.0, on Linux Mint). Does an ordinary
math formula preview for you (to verify that you have the preview style
installed and preview in general works)?

Paul




  1   2   >