pdflatex command-line options with latexmk and TeXShop
How does one specify command-line options (such as -shell-escape
) to pdflatex
while using pdflatexmk
engine in TEXShop other than in the Source file? Is there a way to specify that in Preferences?
According to Herb Schultz's "Using latexmk with TeXShop" guide, one way to specify pdflatex command-line options is in the Source file itself. But I wish to keep separate the Source files and the command-line options for the typesetting program.
texshop latexmk
New contributor
add a comment |
How does one specify command-line options (such as -shell-escape
) to pdflatex
while using pdflatexmk
engine in TEXShop other than in the Source file? Is there a way to specify that in Preferences?
According to Herb Schultz's "Using latexmk with TeXShop" guide, one way to specify pdflatex command-line options is in the Source file itself. But I wish to keep separate the Source files and the command-line options for the typesetting program.
texshop latexmk
New contributor
Do you mean something like this? pdflatexmk -pdf -pdflatex="pdflatex --shell-escape %O %S"
– Majid Abdolshah
3 hours ago
1
Welcome to TeX.SE!
– Kurt
3 hours ago
@MajidAbdolshah, Where would I place that command? Thanks.
– user650654
3 hours ago
@user650654 Which Operating System do you use? Maybe you want to have a look in here?: tex.stackexchange.com/questions/139173/….
– Majid Abdolshah
2 hours ago
Thanks for the pointer, @MajidAbdolshah. It's a bit of a hack, but that might work. Things have changed a bit since that posting it seems. In TeXShop v4.26, there is a file ~/Library/TeXShop/bin/latexmkrcedit that can be edited to define$TSUserCompileOptions = '--shell-escape';
. This change will be reflected for all users, however. I wish there was a cleaner way, but I suppose this will do for now. Thanks.
– user650654
1 hour ago
add a comment |
How does one specify command-line options (such as -shell-escape
) to pdflatex
while using pdflatexmk
engine in TEXShop other than in the Source file? Is there a way to specify that in Preferences?
According to Herb Schultz's "Using latexmk with TeXShop" guide, one way to specify pdflatex command-line options is in the Source file itself. But I wish to keep separate the Source files and the command-line options for the typesetting program.
texshop latexmk
New contributor
How does one specify command-line options (such as -shell-escape
) to pdflatex
while using pdflatexmk
engine in TEXShop other than in the Source file? Is there a way to specify that in Preferences?
According to Herb Schultz's "Using latexmk with TeXShop" guide, one way to specify pdflatex command-line options is in the Source file itself. But I wish to keep separate the Source files and the command-line options for the typesetting program.
texshop latexmk
texshop latexmk
New contributor
New contributor
New contributor
asked 3 hours ago
user650654user650654
101
101
New contributor
New contributor
Do you mean something like this? pdflatexmk -pdf -pdflatex="pdflatex --shell-escape %O %S"
– Majid Abdolshah
3 hours ago
1
Welcome to TeX.SE!
– Kurt
3 hours ago
@MajidAbdolshah, Where would I place that command? Thanks.
– user650654
3 hours ago
@user650654 Which Operating System do you use? Maybe you want to have a look in here?: tex.stackexchange.com/questions/139173/….
– Majid Abdolshah
2 hours ago
Thanks for the pointer, @MajidAbdolshah. It's a bit of a hack, but that might work. Things have changed a bit since that posting it seems. In TeXShop v4.26, there is a file ~/Library/TeXShop/bin/latexmkrcedit that can be edited to define$TSUserCompileOptions = '--shell-escape';
. This change will be reflected for all users, however. I wish there was a cleaner way, but I suppose this will do for now. Thanks.
– user650654
1 hour ago
add a comment |
Do you mean something like this? pdflatexmk -pdf -pdflatex="pdflatex --shell-escape %O %S"
– Majid Abdolshah
3 hours ago
1
Welcome to TeX.SE!
– Kurt
3 hours ago
@MajidAbdolshah, Where would I place that command? Thanks.
– user650654
3 hours ago
@user650654 Which Operating System do you use? Maybe you want to have a look in here?: tex.stackexchange.com/questions/139173/….
– Majid Abdolshah
2 hours ago
Thanks for the pointer, @MajidAbdolshah. It's a bit of a hack, but that might work. Things have changed a bit since that posting it seems. In TeXShop v4.26, there is a file ~/Library/TeXShop/bin/latexmkrcedit that can be edited to define$TSUserCompileOptions = '--shell-escape';
. This change will be reflected for all users, however. I wish there was a cleaner way, but I suppose this will do for now. Thanks.
– user650654
1 hour ago
Do you mean something like this? pdflatexmk -pdf -pdflatex="pdflatex --shell-escape %O %S"
– Majid Abdolshah
3 hours ago
Do you mean something like this? pdflatexmk -pdf -pdflatex="pdflatex --shell-escape %O %S"
– Majid Abdolshah
3 hours ago
1
1
Welcome to TeX.SE!
– Kurt
3 hours ago
Welcome to TeX.SE!
– Kurt
3 hours ago
@MajidAbdolshah, Where would I place that command? Thanks.
– user650654
3 hours ago
@MajidAbdolshah, Where would I place that command? Thanks.
– user650654
3 hours ago
@user650654 Which Operating System do you use? Maybe you want to have a look in here?: tex.stackexchange.com/questions/139173/….
– Majid Abdolshah
2 hours ago
@user650654 Which Operating System do you use? Maybe you want to have a look in here?: tex.stackexchange.com/questions/139173/….
– Majid Abdolshah
2 hours ago
Thanks for the pointer, @MajidAbdolshah. It's a bit of a hack, but that might work. Things have changed a bit since that posting it seems. In TeXShop v4.26, there is a file ~/Library/TeXShop/bin/latexmkrcedit that can be edited to define
$TSUserCompileOptions = '--shell-escape';
. This change will be reflected for all users, however. I wish there was a cleaner way, but I suppose this will do for now. Thanks.– user650654
1 hour ago
Thanks for the pointer, @MajidAbdolshah. It's a bit of a hack, but that might work. Things have changed a bit since that posting it seems. In TeXShop v4.26, there is a file ~/Library/TeXShop/bin/latexmkrcedit that can be edited to define
$TSUserCompileOptions = '--shell-escape';
. This change will be reflected for all users, however. I wish there was a cleaner way, but I suppose this will do for now. Thanks.– user650654
1 hour 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
});
}
});
user650654 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f480800%2fpdflatex-command-line-options-with-latexmk-and-texshop%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
user650654 is a new contributor. Be nice, and check out our Code of Conduct.
user650654 is a new contributor. Be nice, and check out our Code of Conduct.
user650654 is a new contributor. Be nice, and check out our Code of Conduct.
user650654 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f480800%2fpdflatex-command-line-options-with-latexmk-and-texshop%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
Do you mean something like this? pdflatexmk -pdf -pdflatex="pdflatex --shell-escape %O %S"
– Majid Abdolshah
3 hours ago
1
Welcome to TeX.SE!
– Kurt
3 hours ago
@MajidAbdolshah, Where would I place that command? Thanks.
– user650654
3 hours ago
@user650654 Which Operating System do you use? Maybe you want to have a look in here?: tex.stackexchange.com/questions/139173/….
– Majid Abdolshah
2 hours ago
Thanks for the pointer, @MajidAbdolshah. It's a bit of a hack, but that might work. Things have changed a bit since that posting it seems. In TeXShop v4.26, there is a file ~/Library/TeXShop/bin/latexmkrcedit that can be edited to define
$TSUserCompileOptions = '--shell-escape';
. This change will be reflected for all users, however. I wish there was a cleaner way, but I suppose this will do for now. Thanks.– user650654
1 hour ago