[OS X TeX] including a graphics file

Murray Eisenberg murrayeisenberg at gmail.com
Sat Jun 19 20:39:24 CEST 2021


From the TeXShop Help > TeXShop Help Panel > Basic Help:

	"To use TeXShop, type your LaTeX input in the editing window it provides. 
	Then push the "Typeset" button at the top of the window. The input will be saved and PDFLATEX will run. [emph added]”

With the file plot1.pdf you attached, for me the following source file immediately produces the output shown in the pdf attachment to this message.

    \documentclass{article}
    \usepackage{graphicx}
    
    \begin{document}
    
    \begin{figure}
    \centering
    \includegraphics[scale=0.8]{plot1}
    \caption{\textbf{Weierstrass's Function}}
    \label{fig:Weierstrass}
    \end{figure}
    
    \end{document}



> On 19 Jun2021, at 12:30 PM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu> wrote:
> 
> I tried the changes you and Murray Eisenberg suggested.  It crashed the compilation.
> 
> Here is what I know:
> 1. Murray talked about PDFLatex.  I don’t know if it is the same thing as I am using.  The TeXShop editor allows the following Typeset options:
> Plain Tex
> Latex
> Bibtex
> Makeindex
> Xelatex
> Xetex
> I have always used the Latex setting, which seems to include Ghostscript, etc (I use Pstricks a lot, and it works with that setting.)
> 
> 2. My preamble has \usepackage{graphix}
> 
> 3. dropping the .pdf in the file name results in “file plot1 not found"
> 
> 5. Again the TeXShop editor menu has two macros for figures: regular or eps.  The settings I mentioned in my previous email were the eps settings (including all the 
> weird stuff like \bf inside the caption) which I had used because when I used the regular setting (which I usually do) the typesetting crashed.  With the eps settings, the 
> system simply says it doesn’t recognize the \epsfile command, and skips the whole picture.
> The changes suggested by both of you take me back to the “regular” settings.
> 
> 4. The console output which concerns the relevant part of the source code is
>> ./Monsters.tex:669: LaTeX Error: Cannot determine size of graphic in plot1.pdf 
>> (no BoundingBox).
>> 
>> See the LaTeX manual or LaTeX Companion for explanation.
>> Type  H <return>  for immediate help.
>>  ...                                              
>>                                                   
>> l.669 }
>>         \quad
>> ? 
>> <plot1.pdf>
>> 
>> ./Monsters.tex:672: LaTeX Error: Cannot determine size of graphic in plot2.pdf 
>> (no BoundingBox).
>> 
>> See the LaTeX manual or LaTeX Companion for explanation.
>> Type  H <return>  for immediate help.
>>  ...                                              
>>                                                   
>> l.672 }
>>         \quad
>> ? 
>> <plot2.pdf>
>> 
>> ./Monsters.tex:675: LaTeX Error: Cannot determine size of graphic in plot3.pdf 
>> (no BoundingBox).
>> 
>> See the LaTeX manual or LaTeX Companion for explanation.
>> Type  H <return>  for immediate help.
>>  ...                                              
>>                                                   
>> l.675 }
>>         
>> ? 
>> <plot3.pdf> [311] [312] [313]
> 
> 
> and the crash data at the end reads
>> ### ps2pdf13 /tmp/altpdflatex.40944-1624119801/Coeur.ps /tmp/altpdflatex.40944-1624119801/Coeur.pdf
>> Error: /undefined in obj
>> Operand stack:
>>    4   0
>> Execution stack:
>>    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1974   1   3   %oparray_pop   1973   1   3   %oparray_pop   1961   1   3   %oparray_pop   1817   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
>> Dictionary stack:
>>    --dict:727/1123(ro)(G)--   --dict:1/20(G)--   --dict:170/200(L)--   --dict:234/300(L)--   --dict:85/200(L)--
>> Current allocation mode is local
>> Current file position is 4087310
>> GPL Ghostscript 9.50: Unrecoverable error, exit code 1
>> GPL Ghostscript 9.50: ERROR: A pdfmark destination page 318 points beyond the last page 317.
>> ### FAILED to generate /tmp/altpdflatex.40944-1624119801/Coeur.pdf ()
> 
> I am not sure how to specify a bounding box for the output.  I’m attaching the first of the three files that I am trying to include, for reference.
> 

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	
Rockville, MD 20850-6667	Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210619/b131a9e6/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weierstrass.pdf
Type: application/pdf
Size: 44711 bytes
Desc: not available
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210619/b131a9e6/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210619/b131a9e6/attachment-0003.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list.