mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2018-01-12, 18:03   #1
wildrabbitt
 
Jul 2014

3×149 Posts
Default being able to use a latex package

Hi,

I'm trying to write in an image file into a pdf file made with pdflatex
from a dvi file.

I need to be able to use the graphicx package but I don't think it's installed on
my ubuntu computer.

Can someone tell me how to achieve this (getting the package installed).

Will
wildrabbitt is offline   Reply With Quote
Old 2018-01-12, 18:22   #2
Nick
 
Nick's Avatar
 
Dec 2012
The Netherlands

5AD16 Posts
Default

On my Linux system (not Ubuntu but another distro), it is contained in the texlive-graphics package, installed in the same way as all packages here.

Have you checked for the file graphicx.sty in your packages directory?
Or tried dvipdfm on the dvi file and then take the image from pdf?
Nick is offline   Reply With Quote
Old 2018-01-12, 18:56   #3
wildrabbitt
 
Jul 2014

3×149 Posts
Default

Thanks.

I've just tried :

william@william-GA-78LMT-USB3:~/Desktop/graphics$ sudo apt-get install texlive-graphics
[sudo] password for william:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package texlive-graphics
william@william-GA-78LMT-USB3:~/Desktop/graphics$

with self-evident results.


Can you tell me where the sty file for graphicx would be if it exists on my filesystem?
Please do if you can.

Last fiddled with by wildrabbitt on 2018-01-12 at 18:57
wildrabbitt is offline   Reply With Quote
Old 2018-01-12, 19:07   #4
Nick
 
Nick's Avatar
 
Dec 2012
The Netherlands

26558 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
Can you tell me where the sty file for graphicx would be if it exists on my filesystem?
Please do if you can.
On my system, it's location is:
Code:
/usr/share/texmf/tex/latex/graphics/graphicx.sty
Do you get an error if you simply try to insert a jpg image in latex, for example?
Nick is offline   Reply With Quote
Old 2018-01-12, 19:11   #5
wildrabbitt
 
Jul 2014

3·149 Posts
Default

william@william-GA-78LMT-USB3:~$ latex quadratic.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./quadratic.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))

! LaTeX Error: File `graphicsx.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: X
wildrabbitt is offline   Reply With Quote
Old 2018-01-12, 19:18   #6
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×1,723 Posts
Default

Quote:
Originally Posted by Nick View Post
On my system, it's location is:
Code:
/usr/share/texmf/tex/latex/graphics/graphicx.sty
Do you get an error if you simply try to insert a jpg image in latex, for example?
Code:
locate graphicx.sty
/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty

on my Debian 9 system...

Code:
apt-cache search texlive | grep Graphics
texlive-pictures - TeX Live: Graphics, pictures, diagrams
texlive-font-utils - TeX Live: Graphics and font utilities
It is graphicx.sty -- there is no extra "s"

Last fiddled with by paulunderwood on 2018-01-12 at 19:19
paulunderwood is offline   Reply With Quote
Old 2018-01-12, 19:39   #7
wildrabbitt
 
Jul 2014

6778 Posts
Default

william@william-GA-78LMT-USB3:~/Desktop/graphics$ apt-cache search texlive | grep Graphics
texlive-font-utils - TeX Live: Graphics and font utilities
texlive-pictures - TeX Live: Graphics, pictures, diagrams


The only directories I've got in

/usr/share/texmf/tex/latex


are

gnuplot, lm, prosper, tex-gyre and tipa

so I'm wondering why theres no graphics folder.

I have downloaded latex-graphics.tds.zip but I extracted it to home.

thanks for your patience
wildrabbitt is offline   Reply With Quote
Old 2018-01-12, 19:46   #8
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2·1,723 Posts
Default

Code:
ls /usr/share/texlive/texmf-dist/tex/latex/
ae        babelbib  etex-pkg  graphics      latexconfig  natbib    pspicture
amscls    base      fancyhdr  graphics-cfg  ltxmisc      oberdiek  tools
amsfonts  carlisle  fix2col   graphics-def  mflogo       pslatex   url
amsmath   colortbl  geometry  hyperref      mfnfss       psnfss
Note: see my note about the extraneous "s" you put in what should be graphicx.sty (and not graphicsx.sty).

Last fiddled with by paulunderwood on 2018-01-12 at 19:50
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python package for sequence analysis Dubslow Aliquot Sequences 0 2015-12-10 18:50
Debian package of mprime Matt Linux 1 2007-02-22 22:36
Improvements for the CWI NFS software package Istari Factoring 30 2005-07-12 20:20
Free C++ package and looking for a bit of help. Uncwilly Programming 9 2005-03-04 13:37
mprime RPM package for linux gbvalor Software 15 2004-01-04 11:51

All times are UTC. The time now is 07:09.

Tue Oct 27 07:09:55 UTC 2020 up 47 days, 4:20, 0 users, load averages: 1.39, 1.74, 1.71

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.