Notepad++ With MiKTeX and Sumatrapdf
I've seen similar posts to this one, but none have addressed my specific problem (I think!).
I currently use Notepad++ with MikTeX on my Windows 7 desktop. My default pdf viewer is Sumatrapdf.
I have two nppexec commands that compile my current file.
The first is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
NPP_RUN $(NAME_PART).pdf
The second is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
Of course, I run the first command when I want to open a new pdf window and I run the second when I already have a pdf window open and I just want to update the file.
My problem is that my first command always opens a new window. I'd like to just have one command that either opens a new window (if one isn't open already) or brings the updated open window to the front. Does anyone know how to alter my code to do this?
Update: I got it to work! My new code is
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
"C:Program Files (x86)SumatraPDFSumatraPDF.exe" "$(NAME_PART).pdf" -reuse-instance
editors viewers sumatrapdf
add a comment |
I've seen similar posts to this one, but none have addressed my specific problem (I think!).
I currently use Notepad++ with MikTeX on my Windows 7 desktop. My default pdf viewer is Sumatrapdf.
I have two nppexec commands that compile my current file.
The first is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
NPP_RUN $(NAME_PART).pdf
The second is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
Of course, I run the first command when I want to open a new pdf window and I run the second when I already have a pdf window open and I just want to update the file.
My problem is that my first command always opens a new window. I'd like to just have one command that either opens a new window (if one isn't open already) or brings the updated open window to the front. Does anyone know how to alter my code to do this?
Update: I got it to work! My new code is
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
"C:Program Files (x86)SumatraPDFSumatraPDF.exe" "$(NAME_PART).pdf" -reuse-instance
editors viewers sumatrapdf
add a comment |
I've seen similar posts to this one, but none have addressed my specific problem (I think!).
I currently use Notepad++ with MikTeX on my Windows 7 desktop. My default pdf viewer is Sumatrapdf.
I have two nppexec commands that compile my current file.
The first is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
NPP_RUN $(NAME_PART).pdf
The second is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
Of course, I run the first command when I want to open a new pdf window and I run the second when I already have a pdf window open and I just want to update the file.
My problem is that my first command always opens a new window. I'd like to just have one command that either opens a new window (if one isn't open already) or brings the updated open window to the front. Does anyone know how to alter my code to do this?
Update: I got it to work! My new code is
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
"C:Program Files (x86)SumatraPDFSumatraPDF.exe" "$(NAME_PART).pdf" -reuse-instance
editors viewers sumatrapdf
I've seen similar posts to this one, but none have addressed my specific problem (I think!).
I currently use Notepad++ with MikTeX on my Windows 7 desktop. My default pdf viewer is Sumatrapdf.
I have two nppexec commands that compile my current file.
The first is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
NPP_RUN $(NAME_PART).pdf
The second is:
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
Of course, I run the first command when I want to open a new pdf window and I run the second when I already have a pdf window open and I just want to update the file.
My problem is that my first command always opens a new window. I'd like to just have one command that either opens a new window (if one isn't open already) or brings the updated open window to the front. Does anyone know how to alter my code to do this?
Update: I got it to work! My new code is
npp_saveall
CD $(CURRENT_DIRECTORY)
"C:Program FilesMiKTeX 2.9miktexbinx64pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"
"C:Program Files (x86)SumatraPDFSumatraPDF.exe" "$(NAME_PART).pdf" -reuse-instance
editors viewers sumatrapdf
editors viewers sumatrapdf
edited 17 mins ago
Henri Menke
71.5k8158266
71.5k8158266
asked May 21 '13 at 6:05
Brian FitzpatrickBrian Fitzpatrick
384114
384114
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I'm not familiar with Notepad++, but I can tell you that you can pass the option -reuse-instance to SumatraPDF command line to achieve what you want.
For more info see this page.
How would I do this?
– Brian Fitzpatrick
May 21 '13 at 6:20
I have no idea... As I said I'm not familiar with Notepad++. Probably something likeNPP_RUN -reuse-instance $(NAME_PART).pdf?
– karlkoeller
May 21 '13 at 6:25
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%2f115336%2fnotepad-with-miktex-and-sumatrapdf%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
I'm not familiar with Notepad++, but I can tell you that you can pass the option -reuse-instance to SumatraPDF command line to achieve what you want.
For more info see this page.
How would I do this?
– Brian Fitzpatrick
May 21 '13 at 6:20
I have no idea... As I said I'm not familiar with Notepad++. Probably something likeNPP_RUN -reuse-instance $(NAME_PART).pdf?
– karlkoeller
May 21 '13 at 6:25
add a comment |
I'm not familiar with Notepad++, but I can tell you that you can pass the option -reuse-instance to SumatraPDF command line to achieve what you want.
For more info see this page.
How would I do this?
– Brian Fitzpatrick
May 21 '13 at 6:20
I have no idea... As I said I'm not familiar with Notepad++. Probably something likeNPP_RUN -reuse-instance $(NAME_PART).pdf?
– karlkoeller
May 21 '13 at 6:25
add a comment |
I'm not familiar with Notepad++, but I can tell you that you can pass the option -reuse-instance to SumatraPDF command line to achieve what you want.
For more info see this page.
I'm not familiar with Notepad++, but I can tell you that you can pass the option -reuse-instance to SumatraPDF command line to achieve what you want.
For more info see this page.
edited Apr 1 '15 at 23:30
darthbith
5,45831949
5,45831949
answered May 21 '13 at 6:18
karlkoellerkarlkoeller
106k9193357
106k9193357
How would I do this?
– Brian Fitzpatrick
May 21 '13 at 6:20
I have no idea... As I said I'm not familiar with Notepad++. Probably something likeNPP_RUN -reuse-instance $(NAME_PART).pdf?
– karlkoeller
May 21 '13 at 6:25
add a comment |
How would I do this?
– Brian Fitzpatrick
May 21 '13 at 6:20
I have no idea... As I said I'm not familiar with Notepad++. Probably something likeNPP_RUN -reuse-instance $(NAME_PART).pdf?
– karlkoeller
May 21 '13 at 6:25
How would I do this?
– Brian Fitzpatrick
May 21 '13 at 6:20
How would I do this?
– Brian Fitzpatrick
May 21 '13 at 6:20
I have no idea... As I said I'm not familiar with Notepad++. Probably something like
NPP_RUN -reuse-instance $(NAME_PART).pdf?– karlkoeller
May 21 '13 at 6:25
I have no idea... As I said I'm not familiar with Notepad++. Probably something like
NPP_RUN -reuse-instance $(NAME_PART).pdf?– karlkoeller
May 21 '13 at 6:25
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%2f115336%2fnotepad-with-miktex-and-sumatrapdf%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