mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   being able to use a latex package (https://www.mersenneforum.org/showthread.php?t=22918)

wildrabbitt 2018-01-12 18:03

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

Nick 2018-01-12 18:22

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?

wildrabbitt 2018-01-12 18:56

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 [B]would[/B] be [B]if[/B] it exists on my filesystem?
Please do if you can.

Nick 2018-01-12 19:07

[QUOTE=wildrabbitt;477354]
Can you tell me where the sty file for graphicx [B]would[/B] be [B]if[/B] it exists on my filesystem?
Please do if you can.[/QUOTE]
On my system, it's location is:
[CODE]
/usr/share/texmf/tex/latex/graphics/graphicx.sty
[/CODE]Do you get an error if you simply try to insert a jpg image in latex, for example?

wildrabbitt 2018-01-12 19:11

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

paulunderwood 2018-01-12 19:18

[QUOTE=Nick;477357]On my system, it's location is:
[CODE]
/usr/share/texmf/tex/latex/graphics/graphicx.sty
[/CODE]Do you get an error if you simply try to insert a jpg image in latex, for example?[/QUOTE]

[CODE]locate graphicx.sty
/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty[/CODE]


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
[/CODE]

It is graphicx.sty -- there is no extra "s"

wildrabbitt 2018-01-12 19:39

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

paulunderwood 2018-01-12 19:46

[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
[/CODE]

Note: see my note about the extraneous "s" you put in what should be graphicx.sty (and not graphic[COLOR="Red"]s[/COLOR]x.sty).


All times are UTC. The time now is 04:40.

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