TeXMaker: Compiling as Latex or pdfLatex?
Multi tool use
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
|
show 3 more comments
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
3
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
Mar 13 at 0:10
2
offf topic: in MWEs you can use theexample-image-a.jpg/.eps/.pdf
etc. from packagemwe
. The package must be installed but not loaded to be able to use the images. Find its documentation withtexdoc mwe
if it is already installed on your system.
– Kurt
Mar 13 at 1:40
2
you have tagged the question with texmaker but that is not involved at all, that's just the editor you used to write the source file
– David Carlisle
Mar 13 at 1:44
2
dvi is almost never required in itself it is an intermediate format designed to be transformed so dvips to get postscript dvipdfmx to get pdf dvisvg to get svg etc.
– David Carlisle
Mar 13 at 1:46
1
The LaTeX option is useful for compiling pstricks documents. And TeXmaker has nothing to do with it, because TeX distributions link the DVI compilation to pdfTeX n DVI mode.
– TeXnician
Mar 13 at 7:47
|
show 3 more comments
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 Mar 12 at 23:58
Reinhard NeuwirthReinhard Neuwirth
1,62111422
1,62111422
3
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
Mar 13 at 0:10
2
offf topic: in MWEs you can use theexample-image-a.jpg/.eps/.pdf
etc. from packagemwe
. The package must be installed but not loaded to be able to use the images. Find its documentation withtexdoc mwe
if it is already installed on your system.
– Kurt
Mar 13 at 1:40
2
you have tagged the question with texmaker but that is not involved at all, that's just the editor you used to write the source file
– David Carlisle
Mar 13 at 1:44
2
dvi is almost never required in itself it is an intermediate format designed to be transformed so dvips to get postscript dvipdfmx to get pdf dvisvg to get svg etc.
– David Carlisle
Mar 13 at 1:46
1
The LaTeX option is useful for compiling pstricks documents. And TeXmaker has nothing to do with it, because TeX distributions link the DVI compilation to pdfTeX n DVI mode.
– TeXnician
Mar 13 at 7:47
|
show 3 more comments
3
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
Mar 13 at 0:10
2
offf topic: in MWEs you can use theexample-image-a.jpg/.eps/.pdf
etc. from packagemwe
. The package must be installed but not loaded to be able to use the images. Find its documentation withtexdoc mwe
if it is already installed on your system.
– Kurt
Mar 13 at 1:40
2
you have tagged the question with texmaker but that is not involved at all, that's just the editor you used to write the source file
– David Carlisle
Mar 13 at 1:44
2
dvi is almost never required in itself it is an intermediate format designed to be transformed so dvips to get postscript dvipdfmx to get pdf dvisvg to get svg etc.
– David Carlisle
Mar 13 at 1:46
1
The LaTeX option is useful for compiling pstricks documents. And TeXmaker has nothing to do with it, because TeX distributions link the DVI compilation to pdfTeX n DVI mode.
– TeXnician
Mar 13 at 7:47
3
3
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
Mar 13 at 0:10
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
Mar 13 at 0:10
2
2
offf topic: in MWEs you can use the
example-image-a.jpg/.eps/.pdf
etc. from package mwe
. The package must be installed but not loaded to be able to use the images. Find its documentation with texdoc mwe
if it is already installed on your system.– Kurt
Mar 13 at 1:40
offf topic: in MWEs you can use the
example-image-a.jpg/.eps/.pdf
etc. from package mwe
. The package must be installed but not loaded to be able to use the images. Find its documentation with texdoc mwe
if it is already installed on your system.– Kurt
Mar 13 at 1:40
2
2
you have tagged the question with texmaker but that is not involved at all, that's just the editor you used to write the source file
– David Carlisle
Mar 13 at 1:44
you have tagged the question with texmaker but that is not involved at all, that's just the editor you used to write the source file
– David Carlisle
Mar 13 at 1:44
2
2
dvi is almost never required in itself it is an intermediate format designed to be transformed so dvips to get postscript dvipdfmx to get pdf dvisvg to get svg etc.
– David Carlisle
Mar 13 at 1:46
dvi is almost never required in itself it is an intermediate format designed to be transformed so dvips to get postscript dvipdfmx to get pdf dvisvg to get svg etc.
– David Carlisle
Mar 13 at 1:46
1
1
The LaTeX option is useful for compiling pstricks documents. And TeXmaker has nothing to do with it, because TeX distributions link the DVI compilation to pdfTeX n DVI mode.
– TeXnician
Mar 13 at 7:47
The LaTeX option is useful for compiling pstricks documents. And TeXmaker has nothing to do with it, because TeX distributions link the DVI compilation to pdfTeX n DVI mode.
– TeXnician
Mar 13 at 7:47
|
show 3 more comments
1 Answer
1
active
oldest
votes
The application pdftex can compile to two output formats: pdf
and dvi
.
pdf
is an end format. dvi
is only an intermediary format. With drivers like dvips, dvipdfmx, dvisvg it has to be processed further.
When using pdflatex
you are running pdftex
with the format latex
in the pdf
output mode.
When using latex
you are running pdftex
with the format latex
in the dvi
output mode.
The two output mode differ in their capabilities. As you discovered including jpg
or png
directly requires the pdf
mode. On the other side things like pstricks or psfrag need dvi mode.
Use the pdf
mode if you don't know what dvi is for – normally that's the right choice.
add a comment |
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
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The application pdftex can compile to two output formats: pdf
and dvi
.
pdf
is an end format. dvi
is only an intermediary format. With drivers like dvips, dvipdfmx, dvisvg it has to be processed further.
When using pdflatex
you are running pdftex
with the format latex
in the pdf
output mode.
When using latex
you are running pdftex
with the format latex
in the dvi
output mode.
The two output mode differ in their capabilities. As you discovered including jpg
or png
directly requires the pdf
mode. On the other side things like pstricks or psfrag need dvi mode.
Use the pdf
mode if you don't know what dvi is for – normally that's the right choice.
add a comment |
The application pdftex can compile to two output formats: pdf
and dvi
.
pdf
is an end format. dvi
is only an intermediary format. With drivers like dvips, dvipdfmx, dvisvg it has to be processed further.
When using pdflatex
you are running pdftex
with the format latex
in the pdf
output mode.
When using latex
you are running pdftex
with the format latex
in the dvi
output mode.
The two output mode differ in their capabilities. As you discovered including jpg
or png
directly requires the pdf
mode. On the other side things like pstricks or psfrag need dvi mode.
Use the pdf
mode if you don't know what dvi is for – normally that's the right choice.
add a comment |
The application pdftex can compile to two output formats: pdf
and dvi
.
pdf
is an end format. dvi
is only an intermediary format. With drivers like dvips, dvipdfmx, dvisvg it has to be processed further.
When using pdflatex
you are running pdftex
with the format latex
in the pdf
output mode.
When using latex
you are running pdftex
with the format latex
in the dvi
output mode.
The two output mode differ in their capabilities. As you discovered including jpg
or png
directly requires the pdf
mode. On the other side things like pstricks or psfrag need dvi mode.
Use the pdf
mode if you don't know what dvi is for – normally that's the right choice.
The application pdftex can compile to two output formats: pdf
and dvi
.
pdf
is an end format. dvi
is only an intermediary format. With drivers like dvips, dvipdfmx, dvisvg it has to be processed further.
When using pdflatex
you are running pdftex
with the format latex
in the pdf
output mode.
When using latex
you are running pdftex
with the format latex
in the dvi
output mode.
The two output mode differ in their capabilities. As you discovered including jpg
or png
directly requires the pdf
mode. On the other side things like pstricks or psfrag need dvi mode.
Use the pdf
mode if you don't know what dvi is for – normally that's the right choice.
answered Mar 13 at 9:31
Ulrike FischerUlrike Fischer
196k8302689
196k8302689
add a comment |
add a comment |
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
8II,wToIlFXS veJsMUfEx04fokv0p79 Ys4WWI873z,8 g w HnVM8HTMES
3
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
Mar 13 at 0:10
2
offf topic: in MWEs you can use the
example-image-a.jpg/.eps/.pdf
etc. from packagemwe
. The package must be installed but not loaded to be able to use the images. Find its documentation withtexdoc mwe
if it is already installed on your system.– Kurt
Mar 13 at 1:40
2
you have tagged the question with texmaker but that is not involved at all, that's just the editor you used to write the source file
– David Carlisle
Mar 13 at 1:44
2
dvi is almost never required in itself it is an intermediate format designed to be transformed so dvips to get postscript dvipdfmx to get pdf dvisvg to get svg etc.
– David Carlisle
Mar 13 at 1:46
1
The LaTeX option is useful for compiling pstricks documents. And TeXmaker has nothing to do with it, because TeX distributions link the DVI compilation to pdfTeX n DVI mode.
– TeXnician
Mar 13 at 7:47