[texworks] What file should TeXworks attempt to typeset when the green "Typeset" button is clicked in the preview window ?
Philip Taylor (Small Acres)
P.Taylor at Trezaise.Uk
Mon Mar 6 09:05:45 CET 2023
On 05/03/2023 19:33, Stefan Löffler wrote:
>
> No, this is not intended. The intended behavior is for TeXworks to use
> an open file that typesets the given pdf. If several files are open
> that correspond to the given pdf (e.g., by means of a "!TeX root"
> statement), any one of those could be used. If no appropriate file is
> open, TeXworks should try to find and open one (this would likely be
> the root file).
>
> Unfortunately, I could not reproduce the issue in my quick tests so
> far. Could you specify which files you
> created/opened/saved/typeset/closed in which order? Maybe even provide
> (minimal) example files to facilitate testing? It might be that
> something confuses TeXworks' internal map of which .tex window
> corresponds to which .pdf window, but this very likely depends on the
> exact order of operations.
Unfortunately I cannot, with any confidence, state the order in which
the files are opened, but at the moment I have the following open :
* Handbook.tex
* Men's CBL (Group 2).tex
* Men's ECBL.tex
* Ladies.tex
* Misc.tex
* April+May.tex
* Friendlies.tex
* June.tex
* July.tex
* August.tex
* September.tex
* Catcodes+.tex
* Setup.tex
With Hanbdbook.tex open in the Source window and Handbook.pdf open in
the Preview window, I click on the green "Typeset" triangle in the
Preview window and all proceeds as intended; –ditto– if I have
April+May.tex open in the Source window. But I note that some of the
<month> files have <% !TeX Root> pragmats, and TeXworks appears to
preferentially compile them. If I close all files with <% !TeX Root>
pragmats, TeXworks still does what is intended. I therefore cannot
replicate the problem as I write. If I can replicate it later, I will
report back.
--
/Philip Taylor/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texworks/attachments/20230306/095f1828/attachment.html>
More information about the texworks
mailing list.