Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #947 > unrolled thread

Question about tikz terminal

Started byGudrun <bestenborstel@gmail.com>
First post2012-02-21 16:27 +0000
Last post2012-02-22 14:23 +0000
Articles 6 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Question about tikz terminal Gudrun <bestenborstel@gmail.com> - 2012-02-21 16:27 +0000
    Re: Question about tikz terminal Gudrun <bestenborstel@gmail.com> - 2012-02-21 16:55 +0000
      Re: Question about tikz terminal Christoph Bersch <usenet@bersch.net> - 2012-02-22 09:54 +0100
        Re: Question about tikz terminal Gudrun <bestenborstel@gmail.com> - 2012-02-22 14:18 +0000
    Re: Question about tikz terminal Christoph Bersch <usenet@bersch.net> - 2012-02-22 09:56 +0100
      Re: Question about tikz terminal Gudrun <bestenborstel@gmail.com> - 2012-02-22 14:23 +0000

#947 — Question about tikz terminal

FromGudrun <bestenborstel@gmail.com>
Date2012-02-21 16:27 +0000
SubjectQuestion about tikz terminal
Message-ID<ji0gln$e4v$1@news.albasani.net>
Dear all,
I am able to create an output via tikz terminal using
set term tikz size 5in,3in standalone header 
"\\usepackage{MyGnuplotLaTeX}" font "\\rmfamily,12"

I obtain a .tex-file. Although this tex-file contains the line 
\begin{document}, it has no \end{document} which results in a problem if 
my gnuplot script has the following lines:


system(sprintf('pdflatex %s%s', basename, end3))

basename=filename
end3=.tex

The terminal is not able to finish pdflatex as it asks for an \end. At 
least I assume the missing \end{document} is the reason for this.
Terminal says: (Please type a command or say `\end')
If I type into the terminal \end{document}, the latex run finsihes.

How can this be fixed, please?

Thank you.
Gudrun

[toc] | [next] | [standalone]


#949

FromGudrun <bestenborstel@gmail.com>
Date2012-02-21 16:55 +0000
Message-ID<ji0ia0$hfb$1@news.albasani.net>
In reply to#947
There is another mystery I am not able to solve.
The gnuplot manual says when using terminal lua. Via font the size can 
be changed. Even if I use
set term tikz size 5in,3in standalone header 
"\\usepackage{MyGnuplotLaTeX}" font "\rmfamily,12pt"

the final tex-file still has font size 10pt after documentclass rather 
12pt. What do I wrong, please?

[toc] | [prev] | [next] | [standalone]


#954

FromChristoph Bersch <usenet@bersch.net>
Date2012-02-22 09:54 +0100
Message-ID<ji2ag1$1lvb$1@gwdu112.gwdg.de>
In reply to#949
On 21.02.2012 17:55, Gudrun wrote:
> There is another mystery I am not able to solve.
> The gnuplot manual says when using terminal lua. Via font the size can
> be changed. Even if I use
> set term tikz size 5in,3in standalone header
> "\\usepackage{MyGnuplotLaTeX}" font "\rmfamily,12pt"

You must escape the backslash of \rmfamily:

font "\\rmfamily,12pt"

but \rmfamily is the default so it is enough to use

font ",12pt"

> the final tex-file still has font size 10pt after documentclass rather
> 12pt. What do I wrong, please?

I don't know where this comes from, but in the pdf file the 12pt font is 
used correctly (at least with the CVS version). Compare the following 
scripts:

set term tikz size 5in,3in standalone font ",12pt"
set output 'mytest-12pt.tex'
plot sin(x)

and

set term tikz size 5in,3in standalone
set output 'mytest.tex'
plot sin(x)

Christoph

[toc] | [prev] | [next] | [standalone]


#957

FromGudrun <bestenborstel@gmail.com>
Date2012-02-22 14:18 +0000
Message-ID<ji2tet$qb6$1@news.albasani.net>
In reply to#954
Am 22.02.12 08:54, schrieb Christoph Bersch:

> You must escape the backslash of \rmfamily:
>
> font "\\rmfamily,12pt"
>
> but \rmfamily is the default so it is enough to use
>
> font ",12pt"

Thank you, I understand now how to use this command.

>
>> the final tex-file still has font size 10pt after documentclass rather
>> 12pt. What do I wrong, please?
>
> I don't know where this comes from, but in the pdf file the 12pt font is
> used correctly (at least with the CVS version). Compare the following
> scripts:
>
> set term tikz size 5in,3in standalone font ",12pt"
> set output 'mytest-12pt.tex'
> plot sin(x)
>
> and
>
> set term tikz size 5in,3in standalone
> set output 'mytest.tex'
> plot sin(x)

I just produced those two test .tex-files.
Both (!) start with \documentclass[10pt]{article} in the first line, but 
there is a difference later.

\tikzset{every node/.append 
style={font={\fontsize{12pt}{14.4pt}\selectfont}}} for the 12pt version, 
and

the same entry missing for the second example. So maybe the font size 
adjustment happens in tikzset, but I am not an LaTeX expert.





>
> Christoph

[toc] | [prev] | [next] | [standalone]


#955

FromChristoph Bersch <usenet@bersch.net>
Date2012-02-22 09:56 +0100
Message-ID<ji2ak0$1lvb$2@gwdu112.gwdg.de>
In reply to#947
On 21.02.2012 17:27, Gudrun wrote:
> Dear all,
> I am able to create an output via tikz terminal using
> set term tikz size 5in,3in standalone header
> "\\usepackage{MyGnuplotLaTeX}" font "\\rmfamily,12"
>
> I obtain a .tex-file. Although this tex-file contains the line
> \begin{document}, it has no \end{document} which results in a problem if
> my gnuplot script has the following lines:
>
>
> system(sprintf('pdflatex %s%s', basename, end3))
>
> basename=filename
> end3=.tex
>
> The terminal is not able to finish pdflatex as it asks for an \end. At
> least I assume the missing \end{document} is the reason for this.
> Terminal says: (Please type a command or say `\end')
> If I type into the terminal \end{document}, the latex run finsihes.
>
> How can this be fixed, please?

Type a

set output

before the pdflatex compilation line:

set term tikz
...
set output
system(sprintf('pdflatex %s%s', basename, end3))


Christoph

[toc] | [prev] | [next] | [standalone]


#958

FromGudrun <bestenborstel@gmail.com>
Date2012-02-22 14:23 +0000
Message-ID<ji2tpq$qu4$1@news.albasani.net>
In reply to#955
Am 22.02.12 08:56, schrieb Christoph Bersch:
> Type a
>
> set output
>
> before the pdflatex compilation line:
>
> set term tikz
> ...
> set output
> system(sprintf('pdflatex %s%s', basename, end3))
>
>
> Christoph

Dear Christoph,
thank you.

I used the lines:

set term tikz size 407.65pt,251.95pt standalone header 
"\\usepackage{MyGnuplotLaTeX}" font "\\rmfamily,12pt"

set output filepath.basename.end3  #file export

replot  #produce the image

set output  #and with this second output it works when later using

system(sprintf('pdflatex %s%s', basename, end3)) #for compilation

Why do I have to use the second set output, why is the first one not 
sufficient, please? Because I could dump more than one graphic into the 
LaTeX output files?

Christoph, thank you very much for your help. Much appreciated.

Kind regards
Gudrun


[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web