Graphics, Figures & TablesSize of EPS Image enlarged

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
EPBP
Posts: 2
Joined: Mon Feb 25, 2013 12:51 am

Size of EPS Image enlarged

Post by EPBP »

Hello,

I'm hoping you can assist me. For the past many years a 'new command line' for inserting an EPS image into LaTeX worked perfectly; however, recently after my son in law loaded on the latest Ubuntu, this same 'unaltered' command now results in expanded (magnified) EPS images within my document which is removing necessary spacing and looks incorrect. Has anyone experienced this issue and if so, would you know how I might be able to resolve it. I am hoping that I don't need to adjust the original artwork files or insert new command lines.

The command line I have is (for example):

Code: Select all

\newcommand{\jos}{\includegraphics[48,12]{phjos.eps}}
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Size of EPS Image enlarged

Post by localghost »

EPBP wrote:[…] The command line I have is (for example):

Code: Select all

\newcommand{\jos}{\includegraphics[48,12]{phjos.eps}}
[…]
What do the optional arguments for the \includegraphics command represent here? Please add a self-contained and minimal example to give an adequate problem description.


Best regards and welcome to the board
Thorsten
EPBP
Posts: 2
Joined: Mon Feb 25, 2013 12:51 am

Size of EPS Image enlarged

Post by EPBP »

Sorry, the \includegraphics should have included a *, but, prompted by your remark, I decided to remove all the size limiting options. The example I gave became

Code: Select all

\newcommand{\jos}{\includegraphics{phjos.eps}}
and in the body of the text I had

Code: Select all

... was spelled \jos in Phoenician ...
but the result remained over sized. When, however, I replaced the text with

Code: Select all

... was spelled \includegraphics{phjos.eps} in Phoenician ...
the result came out the correct size. Clearly, it is the \newcommand{}{} instruction that is behaving weirdly. Some of the linguistic symbols I have incorporated into the text occur so frequently, it would be impractical to rewrite them all. My book has worked perfectly (except that I frequently edit it) since 2006, so why has this LaTeX command been allowed to change the way it functions? (or could it be the latest Ubuntu Linux that is causing the problem?) Thanks so much for your help, any and all advice is much appreciated!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Size of EPS Image enlarged

Post by localghost »

EPBP wrote:[…] Some of the linguistic symbols I have incorporated into the text occur so frequently, it would be impractical to rewrite them all. […]
That's the reason why you have been asked for a minimal example (emphasize on minimal). And till such time as you do so we have to wait and see.
EPBP wrote:[…] My book has worked perfectly (except that I frequently edit it) since 2006, so why has this LaTeX command been allowed to change the way it functions? (or could it be the latest Ubuntu Linux that is causing the problem?) […]
LaTeX and especially its packages are under continuous development. Hence things like syntax or sometimes functionality change. Your OS is certainly not the culprit, but perhaps the version of your packages or even your TeX distribution.
Post Reply