pdfpages printing AM@currentdocname in a box












0















I am getting an error displaying a PDF in latex. The pdf is only a single page. I am getting a box with AM@currentdocname.pdf shown. Based on my googling, including the [final] option should have stopped this behavior. I've tried eliminating other packages which I thought might cause the error, to no avail. How does this look? I added the potentially extraneous packages for the document.



Here is my MWE:



documentclass[12pt,letterpaper,oneside]{book}
usepackage[font={bf,footnotesize},labelsep=period]{caption}
usepackage{geometry}
usepackage{setspace}
usepackage{indentfirst}
usepackage{float}
usepackage{flafter}
usepackage{amssymb,amsmath,amsfonts}
usepackage{theorem}
usepackage{varioref}
usepackage{tocbibind}
usepackage{listings}
usepackage{xspace}
usepackage{threeparttable}
usepackage{booktabs}
usepackage{color}
usepackage{url}
usepackage{ifpdf}
usepackage{graphicx}
usepackage[final]{pdfpages}

begin{document}

includepdf[pages=1]{5_figures/pdf_file}

end{document}


5_figures is a folder at the top level of the overleaf directory. However, I tried moving the pdf file to the top level and got the same behavior.



I have also tried just using includegraphics instead of pdfpages:



begin{figure}[h]
centering
includegraphics[width=1.00textwidth]{pdf_file}
end{figure}


This option omits the pdf page entirely, however.



The logfile shows 2 errors with the pdfpages example:




Package pdfpages Error: Cannot find file `5_figures/pdf_file'.
Undefined control sequence. Missing number, treated as zero. Package
pdfpages Error: Page 1 of 'AM@currentdocname ' does not exist.
Package pdftex.def Error: File 'AM@currentdocname .pdf' not found:
using draft setting.




and:




The compiler is having trouble understanding a command you have used.
Check that the command is spelled correctly. If the command is part of
a package, make sure you have included the package in your preamble
using usepackage{...}. The control sequence at the end of the top
line of your error message was never def'ed. If you have misspelled
it (e.g., hobx'), typeI' and the correct spelling (e.g.,
`Ihbox'). Otherwise just continue, and I'll forget about whatever was
undefined.




The message about not finding the file is odd because Overleaf recognizes the path and auto-populates the file name when I type it in.










share|improve this question

























  • show the log-file.

    – Ulrike Fischer
    Jan 30 at 20:13











  • Included. Thanks.

    – Shawn
    Jan 30 at 20:23











  • That's the standard error message if a file is not found. So check if the name is correct.

    – Ulrike Fischer
    Jan 30 at 20:26











  • Yeah, that was the first thing I thought of too. The odd thing is that Overleaf recognizes the file in the path and auto-populates the name as I type it in. I've used pdfs in docs before just as above without issue.

    – Shawn
    Jan 30 at 20:28











  • Well don't trust some auto-whatever, check the name (e.g. if there is a space at the end ...)

    – Ulrike Fischer
    Jan 30 at 20:29
















0















I am getting an error displaying a PDF in latex. The pdf is only a single page. I am getting a box with AM@currentdocname.pdf shown. Based on my googling, including the [final] option should have stopped this behavior. I've tried eliminating other packages which I thought might cause the error, to no avail. How does this look? I added the potentially extraneous packages for the document.



Here is my MWE:



documentclass[12pt,letterpaper,oneside]{book}
usepackage[font={bf,footnotesize},labelsep=period]{caption}
usepackage{geometry}
usepackage{setspace}
usepackage{indentfirst}
usepackage{float}
usepackage{flafter}
usepackage{amssymb,amsmath,amsfonts}
usepackage{theorem}
usepackage{varioref}
usepackage{tocbibind}
usepackage{listings}
usepackage{xspace}
usepackage{threeparttable}
usepackage{booktabs}
usepackage{color}
usepackage{url}
usepackage{ifpdf}
usepackage{graphicx}
usepackage[final]{pdfpages}

begin{document}

includepdf[pages=1]{5_figures/pdf_file}

end{document}


5_figures is a folder at the top level of the overleaf directory. However, I tried moving the pdf file to the top level and got the same behavior.



I have also tried just using includegraphics instead of pdfpages:



begin{figure}[h]
centering
includegraphics[width=1.00textwidth]{pdf_file}
end{figure}


This option omits the pdf page entirely, however.



The logfile shows 2 errors with the pdfpages example:




Package pdfpages Error: Cannot find file `5_figures/pdf_file'.
Undefined control sequence. Missing number, treated as zero. Package
pdfpages Error: Page 1 of 'AM@currentdocname ' does not exist.
Package pdftex.def Error: File 'AM@currentdocname .pdf' not found:
using draft setting.




and:




The compiler is having trouble understanding a command you have used.
Check that the command is spelled correctly. If the command is part of
a package, make sure you have included the package in your preamble
using usepackage{...}. The control sequence at the end of the top
line of your error message was never def'ed. If you have misspelled
it (e.g., hobx'), typeI' and the correct spelling (e.g.,
`Ihbox'). Otherwise just continue, and I'll forget about whatever was
undefined.




The message about not finding the file is odd because Overleaf recognizes the path and auto-populates the file name when I type it in.










share|improve this question

























  • show the log-file.

    – Ulrike Fischer
    Jan 30 at 20:13











  • Included. Thanks.

    – Shawn
    Jan 30 at 20:23











  • That's the standard error message if a file is not found. So check if the name is correct.

    – Ulrike Fischer
    Jan 30 at 20:26











  • Yeah, that was the first thing I thought of too. The odd thing is that Overleaf recognizes the file in the path and auto-populates the name as I type it in. I've used pdfs in docs before just as above without issue.

    – Shawn
    Jan 30 at 20:28











  • Well don't trust some auto-whatever, check the name (e.g. if there is a space at the end ...)

    – Ulrike Fischer
    Jan 30 at 20:29














0












0








0








I am getting an error displaying a PDF in latex. The pdf is only a single page. I am getting a box with AM@currentdocname.pdf shown. Based on my googling, including the [final] option should have stopped this behavior. I've tried eliminating other packages which I thought might cause the error, to no avail. How does this look? I added the potentially extraneous packages for the document.



Here is my MWE:



documentclass[12pt,letterpaper,oneside]{book}
usepackage[font={bf,footnotesize},labelsep=period]{caption}
usepackage{geometry}
usepackage{setspace}
usepackage{indentfirst}
usepackage{float}
usepackage{flafter}
usepackage{amssymb,amsmath,amsfonts}
usepackage{theorem}
usepackage{varioref}
usepackage{tocbibind}
usepackage{listings}
usepackage{xspace}
usepackage{threeparttable}
usepackage{booktabs}
usepackage{color}
usepackage{url}
usepackage{ifpdf}
usepackage{graphicx}
usepackage[final]{pdfpages}

begin{document}

includepdf[pages=1]{5_figures/pdf_file}

end{document}


5_figures is a folder at the top level of the overleaf directory. However, I tried moving the pdf file to the top level and got the same behavior.



I have also tried just using includegraphics instead of pdfpages:



begin{figure}[h]
centering
includegraphics[width=1.00textwidth]{pdf_file}
end{figure}


This option omits the pdf page entirely, however.



The logfile shows 2 errors with the pdfpages example:




Package pdfpages Error: Cannot find file `5_figures/pdf_file'.
Undefined control sequence. Missing number, treated as zero. Package
pdfpages Error: Page 1 of 'AM@currentdocname ' does not exist.
Package pdftex.def Error: File 'AM@currentdocname .pdf' not found:
using draft setting.




and:




The compiler is having trouble understanding a command you have used.
Check that the command is spelled correctly. If the command is part of
a package, make sure you have included the package in your preamble
using usepackage{...}. The control sequence at the end of the top
line of your error message was never def'ed. If you have misspelled
it (e.g., hobx'), typeI' and the correct spelling (e.g.,
`Ihbox'). Otherwise just continue, and I'll forget about whatever was
undefined.




The message about not finding the file is odd because Overleaf recognizes the path and auto-populates the file name when I type it in.










share|improve this question
















I am getting an error displaying a PDF in latex. The pdf is only a single page. I am getting a box with AM@currentdocname.pdf shown. Based on my googling, including the [final] option should have stopped this behavior. I've tried eliminating other packages which I thought might cause the error, to no avail. How does this look? I added the potentially extraneous packages for the document.



Here is my MWE:



documentclass[12pt,letterpaper,oneside]{book}
usepackage[font={bf,footnotesize},labelsep=period]{caption}
usepackage{geometry}
usepackage{setspace}
usepackage{indentfirst}
usepackage{float}
usepackage{flafter}
usepackage{amssymb,amsmath,amsfonts}
usepackage{theorem}
usepackage{varioref}
usepackage{tocbibind}
usepackage{listings}
usepackage{xspace}
usepackage{threeparttable}
usepackage{booktabs}
usepackage{color}
usepackage{url}
usepackage{ifpdf}
usepackage{graphicx}
usepackage[final]{pdfpages}

begin{document}

includepdf[pages=1]{5_figures/pdf_file}

end{document}


5_figures is a folder at the top level of the overleaf directory. However, I tried moving the pdf file to the top level and got the same behavior.



I have also tried just using includegraphics instead of pdfpages:



begin{figure}[h]
centering
includegraphics[width=1.00textwidth]{pdf_file}
end{figure}


This option omits the pdf page entirely, however.



The logfile shows 2 errors with the pdfpages example:




Package pdfpages Error: Cannot find file `5_figures/pdf_file'.
Undefined control sequence. Missing number, treated as zero. Package
pdfpages Error: Page 1 of 'AM@currentdocname ' does not exist.
Package pdftex.def Error: File 'AM@currentdocname .pdf' not found:
using draft setting.




and:




The compiler is having trouble understanding a command you have used.
Check that the command is spelled correctly. If the command is part of
a package, make sure you have included the package in your preamble
using usepackage{...}. The control sequence at the end of the top
line of your error message was never def'ed. If you have misspelled
it (e.g., hobx'), typeI' and the correct spelling (e.g.,
`Ihbox'). Otherwise just continue, and I'll forget about whatever was
undefined.




The message about not finding the file is odd because Overleaf recognizes the path and auto-populates the file name when I type it in.







pdfpages overleaf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 30 at 20:22







Shawn

















asked Jan 30 at 20:09









ShawnShawn

11




11













  • show the log-file.

    – Ulrike Fischer
    Jan 30 at 20:13











  • Included. Thanks.

    – Shawn
    Jan 30 at 20:23











  • That's the standard error message if a file is not found. So check if the name is correct.

    – Ulrike Fischer
    Jan 30 at 20:26











  • Yeah, that was the first thing I thought of too. The odd thing is that Overleaf recognizes the file in the path and auto-populates the name as I type it in. I've used pdfs in docs before just as above without issue.

    – Shawn
    Jan 30 at 20:28











  • Well don't trust some auto-whatever, check the name (e.g. if there is a space at the end ...)

    – Ulrike Fischer
    Jan 30 at 20:29



















  • show the log-file.

    – Ulrike Fischer
    Jan 30 at 20:13











  • Included. Thanks.

    – Shawn
    Jan 30 at 20:23











  • That's the standard error message if a file is not found. So check if the name is correct.

    – Ulrike Fischer
    Jan 30 at 20:26











  • Yeah, that was the first thing I thought of too. The odd thing is that Overleaf recognizes the file in the path and auto-populates the name as I type it in. I've used pdfs in docs before just as above without issue.

    – Shawn
    Jan 30 at 20:28











  • Well don't trust some auto-whatever, check the name (e.g. if there is a space at the end ...)

    – Ulrike Fischer
    Jan 30 at 20:29

















show the log-file.

– Ulrike Fischer
Jan 30 at 20:13





show the log-file.

– Ulrike Fischer
Jan 30 at 20:13













Included. Thanks.

– Shawn
Jan 30 at 20:23





Included. Thanks.

– Shawn
Jan 30 at 20:23













That's the standard error message if a file is not found. So check if the name is correct.

– Ulrike Fischer
Jan 30 at 20:26





That's the standard error message if a file is not found. So check if the name is correct.

– Ulrike Fischer
Jan 30 at 20:26













Yeah, that was the first thing I thought of too. The odd thing is that Overleaf recognizes the file in the path and auto-populates the name as I type it in. I've used pdfs in docs before just as above without issue.

– Shawn
Jan 30 at 20:28





Yeah, that was the first thing I thought of too. The odd thing is that Overleaf recognizes the file in the path and auto-populates the name as I type it in. I've used pdfs in docs before just as above without issue.

– Shawn
Jan 30 at 20:28













Well don't trust some auto-whatever, check the name (e.g. if there is a space at the end ...)

– Ulrike Fischer
Jan 30 at 20:29





Well don't trust some auto-whatever, check the name (e.g. if there is a space at the end ...)

– Ulrike Fischer
Jan 30 at 20:29










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472627%2fpdfpages-printing-amcurrentdocname-in-a-box%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472627%2fpdfpages-printing-amcurrentdocname-in-a-box%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?