General ⇒ Undefined control sequence ...\Gin@ext image\GPT@AttrShort
Undefined control sequence ...\Gin@ext image\GPT@AttrShort
Very recently installed MikTeX (Version 2.9.5872 x64), GPL Ghostscript 9.19 and TeXnicCenter Version 2.02 stable x64 (in that order) under Windows 10.
In the settings of MikTeX I added a first root directory with local tex files.
A sample document which includes an eps graphic in standard fashion was processed fine.
[The eps file is located in the local directory].
Trying to process the same file to include a jpg graphic
[from the same local directory] using the standard output profile LaTeX => PS => PDF [as before] produced the following error from Ghostscript (ps2pdf):
Last OS error: No such file or directory
Current file position is ...
GPL Ghostscript 9.19: Unrecoverable error, exit code 1
This was not the case with our previous (older)installation.
Could you please advise how I can remedy and configure the system appropriately?
Many thanks.
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
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Cannot include jpg in document
Re: Cannot include jpg in document
I thought, I had done before.
What compilation path should I follow to be able to process both eps and jpg or other file formats?
Please let me know.
Thanks.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Cannot include jpg in document
XeLaTeX somehow can handle all of them, but you would have to change parts of your document.
Re: Cannot include jpg in document
Okay, I changed the output profile to LaTeX => PDF.
Compilation of the test file yields one error
in the line of the includegraphics command.
Pdflatex says:
< use fn of image.jpg >
! Undefined control sequence
<argument> ...@base \Gin@ext image\GPT@AttrShort
and so on as if it did not find / could not process the image file.
Could you please continue with your help?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Undefined control sequence ...\Gin@ext image\GPT@AttrShort
Undefined control sequence ...\Gin@ext image\GPT@AttrShort
I am trying to include a signature into a letter, but get (different) errors in both locations of the includegraphics command in the following code.
The first error within the main text I already described. Within the closing command where I would like to place the signature I am surprised by a runaway argument.
Code: Select all
\documentclass[11pt,german]{dinbrief}\usepackage[german]{babel}\usepackage[ansinew]{inputenc}\usepackage{calc}\usepackage{color}\usepackage[nodayofweek,raise]{datetime}\usepackage{dcolumn}\usepackage{eurosym}\usepackage{fancyhdr}\usepackage{graphics}\usepackage{ifthen}\usepackage{xspace}\usepackage{hyperref}\nowindowrules\centeraddress%\nowindowtics\nobackaddressrule\begin{document}\begin{letter}{%}\opening{%Sehr geehrte,%}\thispagestyle{empty}\includegraphics[45pt,30pt][525pt,120pt]{sample.jpg}\label{LastPage}\closing[%\hspace*{-6mm}%\includegraphics[45pt,30pt][525pt,120pt]{sample.jpg}%]{%%}\end{letter}\end{document}
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Undefined control sequence ...\Gin@ext image\GPT@AttrShort
The closing should have curly braces, not brakets.
german
gives you the old hyphenation patterns, you might want to use ngerman
instead when loading package babel.- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Undefined control sequence ...\Gin@ext image\GPT@AttrShort
Re: Cannot include jpg in document
I am not following.
I am using optional arguments both with the includegraphics and the closing command.
A. To select an area from the image file
B. To set the signature above the closing formula, which is set in between the curly brackets following the square brackets in the lines of code I posted.
As far as I can see my use of includegraphics is consistent with the documentation that Stefan posted. I was using the graphics package.
Can we take it from there?