latex library for centos

Issues related to applications and software problems and general support
Post Reply
bmountain
Posts: 5
Joined: 2023/01/02 03:50:08

latex library for centos

Post by bmountain » 2023/01/03 03:05:30

Hello,
I tried to build gnuplot with latex support.
I installed texlive package, the configure shows:
checking for latex... latex
checking for pdflatex... pdflatex

however, it doesn't support latex terminal after the gnuplot is built.
Not sure if I missed to install any latex devel package?

Thanks.

User avatar
jlehtone
Posts: 4532
Joined: 2007/12/11 08:17:33
Location: Finland

Re: latex library for centos

Post by jlehtone » 2023/01/03 08:37:17

EPEL has gnuplot, including the gnuplot-latex, for el9:

Code: Select all

[Alma9]$ dnf --enablerepo=epel list \*gnuplot\*
Available Packages
gnuplot.x86_64                                              5.4.3-2.el9                                       epel
gnuplot-common.x86_64                                       5.4.3-2.el9                                       epel
gnuplot-doc.noarch                                          5.4.3-2.el9                                       epel
gnuplot-latex.noarch                                        5.4.3-2.el9                                       epel
gnuplot-minimal.x86_64                                      5.4.3-2.el9                                       epel
They have built the gnuplot-latex from the gnuplot-*.el9.src.rpm.

Which distro do you have? CentOS Stream 8?
How do you build gnuplot? With mock from gnuplot-*.el8.src.rpm that is in el8 appstream repo, or from sources?

bmountain
Posts: 5
Joined: 2023/01/02 03:50:08

Re: latex library for centos

Post by bmountain » 2023/01/03 08:45:09

thanks. I used centos 8 stream and the latest gnuplot source downloaded from the its website for build.
when I run ./configure to build, it should pick up latex once I have the latex lib texlive installed. I
am not sure if there is devel package for texlive that I missed?

User avatar
jlehtone
Posts: 4532
Joined: 2007/12/11 08:17:33
Location: Finland

Re: latex library for centos

Post by jlehtone » 2023/01/03 09:48:36

I don't think that there is any devel for texlive.

The el8 source package requires (for build):

Code: Select all

$ rpm -qRp gnuplot-5.2.4-1.el8.src.rpm 
warning: gnuplot-5.2.4-1.el8.src.rpm: Header V4 RSA/SHA256 Signature, key ID c21ad6ea: NOKEY
/usr/bin/texi2dvi
cairo-devel
emacs
gd-devel
giflib-devel
latex2html
libX11-devel
libXt-devel
libjpeg-turbo-devel
libotf
libpng-devel
librsvg2
lua-devel
m17n-lib
pango-devel
qt5-linguist
qt5-qtbase-devel
qt5-qtsvg-devel
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
tex(cm-super-t1.enc)
tex(ecrm1000.tfm)
tex(latex)
tex(pdftex.map)
tex(subfigure.sty)
tex-tex4ht
texinfo
zlib-devel
The things on that list that are not packages can be resolved into packages. For example:

Code: Select all

$ dnf provides 'tex(cm-super-t1.enc)'
Last metadata expiration check: 1:41:59 ago on Tue 03 Jan 2023 09:54:17 AM EET.
texlive-cm-super-7:20180414-25.el8.noarch : CM-Super family of fonts
Repo        : appstream
Matched from:
Provide    : tex(cm-super-t1.enc) = 7:20180414-25.el8

Note that the gnuplot-latex does not seem to modify the gnuplot binary:

Code: Select all

[Alma9]# rpm -ql gnuplot-latex
/usr/share/doc/gnuplot-latex
/usr/share/doc/gnuplot-latex/Copyright
/usr/share/texlive/texmf-dist/tex/latex/gnuplot
/usr/share/texlive/texmf-dist/tex/latex/gnuplot/gnuplot-lua-tikz-common.tex
/usr/share/texlive/texmf-dist/tex/latex/gnuplot/gnuplot-lua-tikz.sty
/usr/share/texlive/texmf-dist/tex/latex/gnuplot/gnuplot-lua-tikz.tex
/usr/share/texlive/texmf-dist/tex/latex/gnuplot/gnuplot.cfg
/usr/share/texlive/texmf-dist/tex/latex/gnuplot/t-gnuplot-lua-tikz.tex
Therefore, the package of the binary, gnuplot, must contain the functionality -- possibly due to build options.


Disclaimer: I don't actually know what the "gnuplot latex terminal" is.

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: latex library for centos

Post by chemal » 2023/01/03 22:19:09

According to the last section of http://gnuplot.info/docs/latex_demo.pdf, gnuplot's latex terminal has been deprecated. There isn't even a configure option to enable it, you need to edit the code.

bmountain
Posts: 5
Joined: 2023/01/02 03:50:08

Re: latex library for centos

Post by bmountain » 2023/01/05 00:09:55

thanks so much, I added tex package and epslatex can be used now.

Post Reply