LaTeX forum ⇒ GeneralUndefined control sequence ...\Gin@ext image\GPT@AttrShort Topic is solved

General information and discussion about TeXnicCenter
mb2
Posts: 10
Joined: Sat Jun 04, 2016 2:20 pm

Undefined control sequence ...\Gin@ext image\GPT@AttrShort

Postby mb2 » Sat Jun 04, 2016 2:49 pm

I need your help please.
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.

User avatar
Johannes_B
Site Moderator
Posts: 3585
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Jun 04, 2016 3:03 pm

You cannot use jpg images with LaTeX in DVI-mode (that is LaTeX to DVI, to PS, to PDF).
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mb2
Posts: 10
Joined: Sat Jun 04, 2016 2:20 pm

Postby mb2 » Sat Jun 04, 2016 3:10 pm

Thank you, Johannes.
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.

User avatar
Johannes_B
Site Moderator
Posts: 3585
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Jun 04, 2016 3:28 pm

LaTeX => pdf (i.e. pdflatex) allows you to use jpg, png and pdf. You would need to convert all eps files to pdf.

XeLaTeX somehow can handle all of them, but you would have to change parts of your document.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mb2
Posts: 10
Joined: Sat Jun 04, 2016 2:20 pm

Postby mb2 » Sat Jun 04, 2016 7:12 pm

Dear Johannes,
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?

User avatar
Johannes_B
Site Moderator
Posts: 3585
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Jun 04, 2016 9:35 pm

Sure, no problem. But the error message alone isn't helpful for me. I would need to see a minimal working example of your code to see what produces the error message.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

mb2
Posts: 10
Joined: Sat Jun 04, 2016 2:20 pm

Postby mb2 » Sun Jun 05, 2016 9:49 am

Okay, Johannes, thank you.
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.
  1. \documentclass[11pt,german]{dinbrief}
  2. \usepackage[german]{babel}
  3. \usepackage[ansinew]{inputenc}
  4. \usepackage{calc}
  5. \usepackage{color}
  6. \usepackage[nodayofweek,raise]{datetime}
  7. \usepackage{dcolumn}
  8. \usepackage{eurosym}
  9. \usepackage{fancyhdr}
  10. \usepackage{graphics}
  11. \usepackage{ifthen}
  12. \usepackage{xspace}
  13. \usepackage{hyperref}
  14.  
  15. \nowindowrules
  16. \centeraddress
  17. %\nowindowtics
  18. \nobackaddressrule
  19.  
  20. \begin{document}
  21. \begin{letter}{%
  22. }
  23. \opening{%
  24. Sehr geehrte,%
  25. }
  26. \thispagestyle{empty}
  27. \includegraphics[45pt,30pt][525pt,120pt]{sample.jpg}
  28. \label{LastPage}
  29. \closing[%
  30. \hspace*{-6mm}%
  31. \includegraphics[45pt,30pt][525pt,120pt]{sample.jpg}%
  32. ]
  33. {%
  34. %
  35. }
  36. \end{letter}
  37. \end{document}

Many thanks for your support.

User avatar
Johannes_B
Site Moderator
Posts: 3585
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Jun 05, 2016 10:37 am

Your includegraphics statements are completely wrong, i don't know what you want to achieve there.

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8537
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Jun 05, 2016 10:39 am

Hi,

the syntax of \includegraphics and how it works, is explained in the graphicx manual.

Stefan
Site admin

mb2
Posts: 10
Joined: Sat Jun 04, 2016 2:20 pm

Postby mb2 » Sun Jun 05, 2016 10:58 am

Dear Johannes,
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?


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests