Hi Milan,<div><br></div><div>As far as I know the .tex document needs to be actually open in TeXworks, and the .pdf outputted has to be in the same directory as the open .tex that you are typesetting for things just to flow and show. </div>
<div><br></div><div>AFAIK For these things TeXworks does not back read in your shell settings on the Typeset tabs, those settings are generally only for passing out to the shell/ comandline (--IYL) when TeXworks Typesets, and internally TeXworks takes no more notice of them in determining what .pdf to open for a document open in the editor.</div>
<div><br></div><div>So if your .pdf is being output to a different directory to the .tex that you have open in TeXworks, you are not going to see it in the previewer when that Typeset run is finished.</div><div>I have raised it here before, but could see that it was not a great issue for others.</div>
<div><br></div><div>The same issue arrises when a colleagure may be viewing a .tex and ,odf through a Local Area Network (even non drive substitutions), and can not sync between the previewer and the ,tex document.</div><div>
<br></div><div>I am not sure from your description whether those command line switches you are setting for passing to pdflatex are pointing to the .tex editor document that is in focus in TeXworks when you issue the Typeset command in TeXworks. As said, if not, you would not see the .pdf open in the previewer when typesetting is finished.</div>
<div><br></div><div>Allowing that I am not sure exactly what you are trying to achieve ... what you could do is run your pdflatex command from a shell aware of your LaTeX distribution, or even do it from a Texworks Script, then open the relevant .tex in TeXworks after pdflatex is completed (that would open any .pdf associated with the .tex), you may be able to detect that in a shell script or in a TeXworks Script result and open the .tex up in TeXworks from there.</div>
<div><br></div><div>Otherwise generally if your .tex is open in TeXworks (and the document is in good order), and you run pdflatex using TeXworks Typeset command, you should see the finished product. If that is not happening in a straightforward scenario, then perhaps use Menu> File / Remove Aux Files, and rebuild any indexes biblios etc again on successive runs and your ,pdf should be showing.</div>
<div><br></div><div>Paul</div><div><br><div class="gmail_quote">On 5 December 2011 03:04, Milan Jaroš <span dir="ltr"><<a href="mailto:milan.jaros@gmail.com">milan.jaros@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font size="3" face="Times New Roman">
</font><div style="margin:0cm 0cm 12pt" class="MsoNormal"><span><font size="3" face="Times New Roman"> Hello,</font></span></div><div style="margin:0cm 0cm 12pt" class="MsoNormal">
<span><font size="3" face="Times New Roman">I tried to configure TeXworks (see attachment) to be able Typeset some specific file from any file used by \input but I failed. I tried to Google out something but without success. :( </font></span></div>
<div style="margin:0cm 0cm 12pt" class="MsoNormal"><span><font size="3" face="Times New Roman">File is typeset fine but preview on right side is not working even if I have "View PDF after running" checked. If I use default pdfLaTeX it is OK but it does not work with my configuration (see attachment). Please, can you see what have I done wrong? Thank you for your time.</font></span></div>
<div style="margin:0cm 0cm 12pt" class="MsoNormal"><span></span> </div><div style="margin:0cm 0cm 12pt" class="MsoNormal"><span>Best regards,</span></div>
<div style="margin:0cm 0cm 12pt" class="MsoNormal"><span>Milan</span></div><font size="3" face="Times New Roman">
</font><p><span style="font-family:"Calibri","sans-serif""><font size="3">----- configuration info
-----</font></span><font size="3"><font face="Times New Roman"> <br>
</font><span style="font-family:"Calibri","sans-serif"">TeXworks version : 0.4.3r857
(MiKTeX 2.9 64-bit)</span></font><font size="3"><font face="Times New Roman"> <br>
</font><span style="font-family:"Calibri","sans-serif"">Install location : C:/Program
Files/MiKTeX 2.9/miktex/bin/x64/miktex-texworks.exe</span></font><font size="3"><font face="Times New Roman"> <br>
</font><span style="font-family:"Calibri","sans-serif"">Library
path : C:/Users/DZCMJ1E/AppData/Local/MiKTeX/2.9/TeXworks/0.4\</span></font><font size="3"><font face="Times New Roman">
<br>
</font><span style="font-family:"Calibri","sans-serif"">pdfTeX location :
C:/Program Files/MiKTeX 2.9/miktex/bin/x64/pdftex.exe</span></font><font size="3"><font face="Times New Roman"> <br>
</font><span style="font-family:"Calibri","sans-serif"">Operating system : Windows
Microsoft Windows 7 Ultimate Edition, 64-bit Service Pack 1 (build 7601)</span></font><font size="3"><font face="Times New Roman">
<br>
</font><span style="font-family:"Calibri","sans-serif"">Qt4
version : 4.7.2 (build) / 4.7.2 (runtime)</span></font><font size="3"><font face="Times New Roman"> <br>
</font><span style="font-family:"Calibri","sans-serif"">------------------------------</span><font face="Times New Roman">
</font></font></p><font size="3" face="Times New Roman">
</font>
</blockquote></div><br></div>