pdflatex -no-parse-first-line no ignoring first lineIs the parsing of --translate-file in the first line...
What makes accurate emulation of old systems a difficult task?
Please, smoke with good manners
Why other Westeros houses don't use wildfire?
How would one muzzle a full grown polar bear in the 13th century?
Which big number is bigger?
What is the most expensive material in the world that could be used to create Pun-Pun's lute?
How to make a pipeline wait for end-of-file or stop after an error?
simple conditions equation
Don’t seats that recline flat defeat the purpose of having seatbelts?
What does the "ep" capability mean?
How to creep the reader out with what seems like a normal person?
how to find the equation of a circle given points of the circle
How could Tony Stark make this in Endgame?
How to verbalise code in Mathematica?
Is there really no use for MD5 anymore?
Unexpected email from Yorkshire Bank
Is there an official tutorial for installing Ubuntu 18.04+ on a device with an SSD and an additional internal hard drive?
French for 'It must be my imagination'?
Critique of timeline aesthetic
What's the polite way to say "I need to urinate"?
How to have a sharp product image?
Why does nature favour the Laplacian?
Do I have to worry about players making “bad” choices on level up?
Combinable filters
pdflatex -no-parse-first-line no ignoring first line
Is the parsing of --translate-file in the first line disabled by default?Trouble with my first latex documentCommand line pdflatex vs TeXShopCannot build file on Editorial Managerpdflatex of list of filesInput a file ignoring the main body by command lineHow can I create compile command pdfLatex+Bibtex+pdfLatex+pdfLatex?Compiling laTeX file from C++ => ! LaTeX Error: File `colortbl.sty' not foundChange directory using PDFLatex in command lineCompile error on only some devices
I want to be able to compile my documents with a simple ./main.tex
. The first thing I tried was #!/usr/bin/pdflatex
which gave me an error because the first line is nonsense to the TeX engine. I then tried it with a %
instead but that, as expected didn't do much of anything.
Looking this problem up online I tried adding -no-parse-first-line
to the shebang, but again no luck. Then I thought "executing a script defaults to /usr/bin/sh
so why not just use a normal line". To this end I put pdflatex -no-parse-first-line $0
as my first line, but that doesn't work either.
$ ./main.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2018-12-01>
! LaTeX Error: Missing begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 p
dflatex -no-parse-first-line $0
?
compiling
add a comment |
I want to be able to compile my documents with a simple ./main.tex
. The first thing I tried was #!/usr/bin/pdflatex
which gave me an error because the first line is nonsense to the TeX engine. I then tried it with a %
instead but that, as expected didn't do much of anything.
Looking this problem up online I tried adding -no-parse-first-line
to the shebang, but again no luck. Then I thought "executing a script defaults to /usr/bin/sh
so why not just use a normal line". To this end I put pdflatex -no-parse-first-line $0
as my first line, but that doesn't work either.
$ ./main.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2018-12-01>
! LaTeX Error: Missing begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 p
dflatex -no-parse-first-line $0
?
compiling
add a comment |
I want to be able to compile my documents with a simple ./main.tex
. The first thing I tried was #!/usr/bin/pdflatex
which gave me an error because the first line is nonsense to the TeX engine. I then tried it with a %
instead but that, as expected didn't do much of anything.
Looking this problem up online I tried adding -no-parse-first-line
to the shebang, but again no luck. Then I thought "executing a script defaults to /usr/bin/sh
so why not just use a normal line". To this end I put pdflatex -no-parse-first-line $0
as my first line, but that doesn't work either.
$ ./main.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2018-12-01>
! LaTeX Error: Missing begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 p
dflatex -no-parse-first-line $0
?
compiling
I want to be able to compile my documents with a simple ./main.tex
. The first thing I tried was #!/usr/bin/pdflatex
which gave me an error because the first line is nonsense to the TeX engine. I then tried it with a %
instead but that, as expected didn't do much of anything.
Looking this problem up online I tried adding -no-parse-first-line
to the shebang, but again no luck. Then I thought "executing a script defaults to /usr/bin/sh
so why not just use a normal line". To this end I put pdflatex -no-parse-first-line $0
as my first line, but that doesn't work either.
$ ./main.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=pdflatex)
restricted write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2018-12-01>
! LaTeX Error: Missing begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 p
dflatex -no-parse-first-line $0
?
compiling
compiling
asked 5 mins ago
Nero grisNero gris
286
286
add a comment |
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%2f488001%2fpdflatex-no-parse-first-line-no-ignoring-first-line%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%2f488001%2fpdflatex-no-parse-first-line-no-ignoring-first-line%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