# Silly puzzle, log file

7 messages
Open this post in threaded view
|

## Silly puzzle, log file

 A few days ago, I posted this silly puzzle: I'm writing a paper, swing.tex. I drew a nice illustration in Illustrator, swing.eps, converted it with TeXShop to pdf. It is included in the tex file with \begin{figure}[htb] \centerline{\includegraphics[scale = .9]{swing}} \caption{Illustrating a swing}\label{F:swingillustration} %Figure~\ref{F:swingillustration} \end{figure} Cannot typeset the file. Silly puzle: why? To my surprise, nobody had the obvious answer. So now I am giving it away with the log file: (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/mt-euf.cfg) [1{/usr/loc al/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]Syntax Error: Couldn't read xref table Syntax Warning: PDF file is damaged - attempting to reconstruct xref table... Syntax Error: Couldn't find trailer dictionary Syntax Error: Couldn't read xref table Does this help? George -- Sent from Postbox ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: Silly puzzle, log file

 George, your image file has the same name as your \jobname , that is, the PDF that you are building. Silly indeed. On 10/10/2019, at 0:14, "gratzer via MacOSX-TeX" <[hidden email]> wrote: A few days ago, I posted this silly puzzle: I'm writing a paper, swing.tex. I drew a nice illustration in Illustrator, swing.eps, converted it with TeXShop to pdf. It is included in the tex file with \begin{figure}[htb] \centerline{\includegraphics[scale = .9]{swing}} \caption{Illustrating a swing}\label{F:swingillustration} %Figure~\ref{F:swingillustration} \end{figure} Cannot typeset the file. Silly puzle: why? To my surprise, nobody had the obvious answer. So now I am giving it away with the log file: (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/mt-euf.cfg) [1{/usr/loc al/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]Syntax Error: Couldn't read xref table Syntax Warning: PDF file is damaged - attempting to reconstruct xref table... Syntax Error: Couldn't find trailer dictionary Syntax Error: Couldn't read xref table Does this help? George -- Sent from Postbox ----------- Please Consult the Following Before Posting ----------- List Reminders and Etiquette: https://protect-au.mimecast.com/s/Wo77Cq71jxfzv1NPIQy_o3?domain=sites.esm.psu.edu TeX on Mac OS X Website: https://protect-au.mimecast.com/s/y_7kCwV1jpSAnvxzc8yHSV?domain=mactex-wiki.tug.org ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: Silly puzzle, log file

 > On Oct 9, 2019, at 1:22 PM, Ross Moore <[hidden email]> wrote: > > George, > > your image file has the same name as your \jobname , > that is, the PDF that you are building. > > Silly indeed. > > On 10/10/2019, at 0:14, "gratzer via MacOSX-TeX" <[hidden email]> wrote: > >> A few days ago, I posted this silly puzzle: >> >> I'm writing a paper, swing.tex. I drew a nice illustration in Illustrator, swing.eps, converted it with TeXShop to pdf. It is included in the tex file with >> >> \begin{figure}[htb] >> \centerline{\includegraphics[scale = .9]{swing}} >> \caption{Illustrating a swing}\label{F:swingillustration} >> %Figure~\ref{F:swingillustration} >> \end{figure} >> >> Cannot typeset the file. Silly puzle: why? >> >> To my surprise, nobody had the obvious answer. So now I am giving it away with the log file: >> >> (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/mt-euf.cfg) [1{/usr/loc >> al/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]Syntax Error: Couldn't read xref table >> Syntax Warning: PDF file is damaged - attempting to reconstruct xref table... >> Syntax Error: Couldn't find trailer dictionary >> Syntax Error: Couldn't read xref table >> >> Does this help? >> >> George >> Howdy, Ross, what a perfect solution!!! An interesting thing is that if swing.eps wasn't converted to swing.pdf directly recent (quite a few years now) pdflatex engines would have automatically converted the .eps file to swing-eps-converted-to.pdf using ghostscript and there would have been no problem. Sometimes habits come back to bite you! :-) I believe one of the solutions to the problem gave this solution but no explanation. Good Luck, Herb Schulz (herbs at wideopenwest dot com) ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: Silly puzzle, log file

 > On Oct 9, 2019, at 2:54 PM, Herbert Schulz <[hidden email]> wrote: > >> On Oct 9, 2019, at 1:22 PM, Ross Moore <[hidden email]> wrote: >> >> George, >> >> your image file has the same name as your \jobname , >> that is, the PDF that you are building. >> >> Silly indeed. >> >> On 10/10/2019, at 0:14, "gratzer via MacOSX-TeX" <[hidden email]> wrote: >> >>> A few days ago, I posted this silly puzzle: >>> >>> I'm writing a paper, swing.tex. I drew a nice illustration in Illustrator, swing.eps, converted it with TeXShop to pdf. It is included in the tex file with >>> >>> \begin{figure}[htb] >>> \centerline{\includegraphics[scale = .9]{swing}} >>> \caption{Illustrating a swing}\label{F:swingillustration} >>> %Figure~\ref{F:swingillustration} >>> \end{figure} >>> >>> Cannot typeset the file. Silly puzle: why? >>> >>> To my surprise, nobody had the obvious answer. So now I am giving it away with the log file: >>> >>> (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/mt-euf.cfg) [1{/usr/loc >>> al/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]Syntax Error: Couldn't read xref table >>> Syntax Warning: PDF file is damaged - attempting to reconstruct xref table... >>> Syntax Error: Couldn't find trailer dictionary >>> Syntax Error: Couldn't read xref table >>> >>> Does this help? >>> >>> George >>> > > Howdy, > > Ross, what a perfect solution!!! > > An interesting thing is that if swing.eps wasn't converted to swing.pdf directly recent (quite a few years now) pdflatex engines would have automatically converted the .eps file to swing-eps-converted-to.pdf using ghostscript and there would have been no problem. Sometimes habits come back to bite you! :-) I believe one of the solutions to the problem gave this solution but no explanation. > > Good Luck, > > Herb Schulz > (herbs at wideopenwest dot com) Howdy, Sigh... I just realized that there still would have been a problem if \includegraphics[scale = .9]{swing} was used but not if \includegraphics[scale = .9]{swing.eps} was used. PS: I've got my system set up to have the automatic conversion be file.eps->file.pdf so I would have gotten bitten!!! Well, maybe not since I also prepend' the extension to the list. Good Luck, Herb Schulz (herbs at wideopenwest dot com) ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: Silly puzzle, log file

 Hi Herb, On 10 Oct 2019, at 7:05 am, Herbert Schulz <[hidden email]> wrote: > Howdy, > > Ross, what a perfect solution!!! > > An interesting thing is that if swing.eps wasn't converted to swing.pdf directly recent (quite a few years now) pdflatex engines would have automatically converted the .eps file to swing-eps-converted-to.pdf using ghostscript and there would have been no problem. Sometimes habits come back to bite you! :-) I believe one of the solutions to the problem gave this solution but no explanation. > > Good Luck, > > Herb Schulz > (herbs at wideopenwest dot com) Howdy, Sigh... I just realized that there still would have been a problem if \includegraphics[scale = .9]{swing} There is another possible issue here, related to where the image is stored. It better not be in the same directory as your main document, else it will be clobbered by pdfTeX writing out the current job. Thus you’ll need a  \graphicspath  entry to find its actual directory. was used but not if \includegraphics[scale = .9]{swing.eps} was used. PS: I've got my system set up to have the automatic conversion be file.eps->file.pdf so I would have gotten bitten!!! Well, maybe not since I also prepend' the extension to the list. Good Luck, Herb Schulz (herbs at wideopenwest dot com) Cheers, Ross Dr Ross Moore Department of Mathematics and Statistics  12 Wally’s Walk, Level 7, Room 734 Macquarie University, NSW 2109, Australia T: +61 2 9850 8955  |  F: +61 2 9850 8114 M:+61 407 288 255  |  E: [hidden email] http://www.maths.mq.edu.au CRICOS Provider Number 00002J. Think before you print.  Please consider the environment before printing this email. This message is intended for the addressee named and may  contain confidential information. If you are not the intended  recipient, please delete it and notify the sender. Views expressed  in this message are those of the individual sender, and are not  necessarily the views of Macquarie University. ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
 > On Oct 9, 2019, at 3:11 PM, Ross Moore <[hidden email]> wrote: > > Hi Herb, > >> On 10 Oct 2019, at 7:05 am, Herbert Schulz <[hidden email]> wrote: >> > Howdy, >> > >> > Ross, what a perfect solution!!! >> > >> > An interesting thing is that if swing.eps wasn't converted to swing.pdf directly recent (quite a few years now) pdflatex engines would have automatically converted the .eps file to swing-eps-converted-to.pdf using ghostscript and there would have been no problem. Sometimes habits come back to bite you! :-) I believe one of the solutions to the problem gave this solution but no explanation. >> > >> > Good Luck, >> > >> > Herb Schulz >> > (herbs at wideopenwest dot com) >> >> Howdy, >> >> Sigh... I just realized that there still would have been a problem if >> >> \includegraphics[scale = .9]{swing} > > There is another possible issue here, related to where the image is stored. > It better not be in the same directory as your main document, > else it will be clobbered by pdfTeX writing out the current job. > > Thus you’ll need a  \graphicspath  entry to find its actual directory. > > >> >> was used but not if >> >> \includegraphics[scale = .9]{swing.eps} >> >> was used. >> >> PS: I've got my system set up to have the automatic conversion be file.eps->file.pdf so I would have gotten bitten!!! Well, maybe not since I also prepend' the extension to the list. >> >> Good Luck, >> >> Herb Schulz >> (herbs at wideopenwest dot com) Howdy, Further thinking about it shows that prepending won't fix the problem since the file still gets overwritten. Good Luck, Herb Schulz (herbs at wideopenwest dot com) ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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