All is in place: latest version of TexStudio, latest version of MiKTeX (I chose the installation for my 64x windows 8.1), and latest version of SumatraPDF. I installed every package by hand which TexStudio told me to, using the package manager of MiKTeX, the updater of MiKTeX and refreshed using the Setting option of MiKTeX.
My problem: I press F6 to compile my document, TexStudio writes "Process exited normally" but SumatraPDF doesn't automatically open. The new document is created but I would like SumatraPDF to open automatically like it usually did.
I also looked through Google, replaced MiKTeX by TeXLive, and reinstalled over and over again. Nothing helped so far.
[Tex/LaTex] TexStudio, MiKTeX and Sumatra; Compilation Issue
miktexsumatrapdftexstudio
Best Answer
The shortcut
F6
in TeXstudio is 'Compile', andF5
is 'Compile and view', orF1
prior to version 2.12.2. That is, if you pressF5
, TeXstudio will compile the TeX source file and then (if no error occurs) open the PDF viewer. If you want to open the generated PDF file automatically, useF5
rather thanF6
.In order to use SumatraPDF as the default PDF viewer, you have to use the external PDF viewer and set it to SumutraPDF. Here is a step-by-step guidance.
External PDF Viewer
to"path\to\SumatraPDF.exe" -reuse-instance -forward-search "?am.tex" @ -fwdsearch-permanent 1 "?am.pdf"
External PDF Viewer
for PDF Viewer in Meta Command area.OK
at the bottom of the windowThat's it.
Enjoy TeX and TeX.SX.
: )