TeXMaker: Compiling as Latex or pdfLatex?
If compiling the MWE as pdfLatex all is good. Compiling as Latex raises compilation ERROR ! LaTeX Error: Cannot determine size of graphic in M51.jpg (no BoundingBox), although a pdf output is produced.
To add to the confusion the TeXMaker logfile says for both This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) rather than TeX for one and pdfTeX for the other.
This may just be yet another ploy to confuse lesser minds, it is even difficult to turn it into a question. This seemed to be one: "If a document includes any .png, .jpg or .pdf files compile as pdfLatex". But if continued: "… else, also compile as pdfLatex because it is clearly an improvement on Latex." the question is no more. And why would I want to search a very large project for the occurrence of .png, .jpg or .pdf files to decide how to compile it?
So, when to compile as Latex in preference to pdfLatex, and why? That's the question. And it may well relate to an idiosyncracy in TeXMaker.
Apologies, I don't know how to supply the graphics file, but those wishing to compile the MWE may plug in any .png, .jpg or .pdf available.
documentclass{article}
% RN. 13 March 2019
%=======================
usepackage{graphicx}
%-----------------------
begin{document}
begin{figure}[htp]
centering
includegraphics[width=12cm]{M51.jpg}
caption{Messier 51 and Companion}
label{xxx}
end{figure}
end{document}
pdftex texmaker
add a comment |
If compiling the MWE as pdfLatex all is good. Compiling as Latex raises compilation ERROR ! LaTeX Error: Cannot determine size of graphic in M51.jpg (no BoundingBox), although a pdf output is produced.
To add to the confusion the TeXMaker logfile says for both This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) rather than TeX for one and pdfTeX for the other.
This may just be yet another ploy to confuse lesser minds, it is even difficult to turn it into a question. This seemed to be one: "If a document includes any .png, .jpg or .pdf files compile as pdfLatex". But if continued: "… else, also compile as pdfLatex because it is clearly an improvement on Latex." the question is no more. And why would I want to search a very large project for the occurrence of .png, .jpg or .pdf files to decide how to compile it?
So, when to compile as Latex in preference to pdfLatex, and why? That's the question. And it may well relate to an idiosyncracy in TeXMaker.
Apologies, I don't know how to supply the graphics file, but those wishing to compile the MWE may plug in any .png, .jpg or .pdf available.
documentclass{article}
% RN. 13 March 2019
%=======================
usepackage{graphicx}
%-----------------------
begin{document}
begin{figure}[htp]
centering
includegraphics[width=12cm]{M51.jpg}
caption{Messier 51 and Companion}
label{xxx}
end{figure}
end{document}
pdftex texmaker
1
Pdftex can compile to two output formats: pdf (pdflatex) and dvi (latex). Use the first if you don't know what dvi is for - normally that's the right choice. I haven't used latex earnestly for years now.
– Ulrike Fischer
1 hour ago
@Ulrike Fischer So, if the objective is to produce pdf, use pdflatex. Latex only if dvi is required. I would be happy to tick this off as the answer, if so presented.
– Reinhard Neuwirth
53 mins ago
add a comment |
If compiling the MWE as pdfLatex all is good. Compiling as Latex raises compilation ERROR ! LaTeX Error: Cannot determine size of graphic in M51.jpg (no BoundingBox), although a pdf output is produced.
To add to the confusion the TeXMaker logfile says for both This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) rather than TeX for one and pdfTeX for the other.
This may just be yet another ploy to confuse lesser minds, it is even difficult to turn it into a question. This seemed to be one: "If a document includes any .png, .jpg or .pdf files compile as pdfLatex". But if continued: "… else, also compile as pdfLatex because it is clearly an improvement on Latex." the question is no more. And why would I want to search a very large project for the occurrence of .png, .jpg or .pdf files to decide how to compile it?
So, when to compile as Latex in preference to pdfLatex, and why? That's the question. And it may well relate to an idiosyncracy in TeXMaker.
Apologies, I don't know how to supply the graphics file, but those wishing to compile the MWE may plug in any .png, .jpg or .pdf available.
documentclass{article}
% RN. 13 March 2019
%=======================
usepackage{graphicx}
%-----------------------
begin{document}
begin{figure}[htp]
centering
includegraphics[width=12cm]{M51.jpg}
caption{Messier 51 and Companion}
label{xxx}
end{figure}
end{document}
pdftex texmaker
If compiling the MWE as pdfLatex all is good. Compiling as Latex raises compilation ERROR ! LaTeX Error: Cannot determine size of graphic in M51.jpg (no BoundingBox), although a pdf output is produced.
To add to the confusion the TeXMaker logfile says for both This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) rather than TeX for one and pdfTeX for the other.
This may just be yet another ploy to confuse lesser minds, it is even difficult to turn it into a question. This seemed to be one: "If a document includes any .png, .jpg or .pdf files compile as pdfLatex". But if continued: "… else, also compile as pdfLatex because it is clearly an improvement on Latex." the question is no more. And why would I want to search a very large project for the occurrence of .png, .jpg or .pdf files to decide how to compile it?
So, when to compile as Latex in preference to pdfLatex, and why? That's the question. And it may well relate to an idiosyncracy in TeXMaker.
Apologies, I don't know how to supply the graphics file, but those wishing to compile the MWE may plug in any .png, .jpg or .pdf available.
documentclass{article}
% RN. 13 March 2019
%=======================
usepackage{graphicx}
%-----------------------
begin{document}
begin{figure}[htp]
centering
includegraphics[width=12cm]{M51.jpg}
caption{Messier 51 and Companion}
label{xxx}
end{figure}
end{document}
pdftex texmaker
pdftex texmaker
asked 1 hour ago
Reinhard NeuwirthReinhard Neuwirth
1,60211422
1,60211422
1
Pdftex can compile to two output formats: pdf (pdflatex) and dvi (latex). Use the first if you don't know what dvi is for - normally that's the right choice. I haven't used latex earnestly for years now.
– Ulrike Fischer
1 hour ago
@Ulrike Fischer So, if the objective is to produce pdf, use pdflatex. Latex only if dvi is required. I would be happy to tick this off as the answer, if so presented.
– Reinhard Neuwirth
53 mins ago
add a comment |
1
Pdftex can compile to two output formats: pdf (pdflatex) and dvi (latex). Use the first if you don't know what dvi is for - normally that's the right choice. I haven't used latex earnestly for years now.
– Ulrike Fischer
1 hour ago
@Ulrike Fischer So, if the objective is to produce pdf, use pdflatex. Latex only if dvi is required. I would be happy to tick this off as the answer, if so presented.
– Reinhard Neuwirth
53 mins ago
1
1
Pdftex can compile to two output formats: pdf (pdflatex) and dvi (latex). Use the first if you don't know what dvi is for - normally that's the right choice. I haven't used latex earnestly for years now.
– Ulrike Fischer
1 hour ago
Pdftex can compile to two output formats: pdf (pdflatex) and dvi (latex). Use the first if you don't know what dvi is for - normally that's the right choice. I haven't used latex earnestly for years now.
– Ulrike Fischer
1 hour ago
@Ulrike Fischer So, if the objective is to produce pdf, use pdflatex. Latex only if dvi is required. I would be happy to tick this off as the answer, if so presented.
– Reinhard Neuwirth
53 mins ago
@Ulrike Fischer So, if the objective is to produce pdf, use pdflatex. Latex only if dvi is required. I would be happy to tick this off as the answer, if so presented.
– Reinhard Neuwirth
53 mins ago
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479196%2ftexmaker-compiling-as-latex-or-pdflatex%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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479196%2ftexmaker-compiling-as-latex-or-pdflatex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Pdftex can compile to two output formats: pdf (pdflatex) and dvi (latex). Use the first if you don't know what dvi is for - normally that's the right choice. I haven't used latex earnestly for years now.
– Ulrike Fischer
1 hour ago
@Ulrike Fischer So, if the objective is to produce pdf, use pdflatex. Latex only if dvi is required. I would be happy to tick this off as the answer, if so presented.
– Reinhard Neuwirth
53 mins ago