pdflatex command-line options with latexmk and TeXShop












0















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.










share|improve this question







New contributor




user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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
















0















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.










share|improve this question







New contributor




user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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














0












0








0








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.










share|improve this question







New contributor




user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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






share|improve this question







New contributor




user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









user650654user650654

101




101




New contributor




user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user650654 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 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






  • 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










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.










draft saved

draft discarded


















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.










draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)