<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
On 2012-03-06 10:34, Paul A Norman wrote:<br>
<blockquote
cite="mid:CAG2d78Cgcic2fKsGhvKpf2FbNzUKjwAcGA1M0ZhU2cnqEfcdqQ@mail.gmail.com"
type="cite">
<div class="gmail_quote">On 6 March 2012 05:43, grivet <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:grivet@cnrs-orleans.fr">grivet@cnrs-orleans.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="im"> Hello,<br>
Thank you for your quick answer. I have more questions.<br>
</div>
<blockquote type="cite">
<div>
<div class="gmail_quote"> sync between latex and dvi
<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
</blockquote>
<div><br>
</div>
<div>Ok, </div>
<div><br>
</div>
<div>(i) Right Mouse button and read the menu in
either Tex or preview</div>
<div><br>
</div>
<div>Or</div>
<div><br>
</div>
<div>(ii)holding the Crtl key down, click with the
left mouse button in the text or preview
window where you want to sync</div>
</div>
</div>
</div>
</blockquote>
Doesn't work for me; I use Miktek and Yap. Clicking in the
preview window yields the message: "source file could not be
opened, because the page contains no source links".
<div class="im"><br>
</div>
</div>
</blockquote>
</div>
</blockquote>
<br>
Just a brief answer: TeXworks is built for the pdf workflow (as Paul
pointed out). Synchronizing with dvi is not supported (out of the
box). Going the .tex > .dvi route is not possible at the moment
as TeXworks doesn't currently support external viewers for
synchronization. Going the other way, i.e., .dvi > .tex, should
work, but requires<br>
(a) the dvi to be processed in a special way (I'm no expert here,
either, but if Yap tells you there are no source links, then I would
suspect the dvi does not contain the data necessary for
synchronization)<br>
(b) Yap to be configured to talk to TeXworks (`TeXworks.exe -p
<lineno> file.tex` should work).<br>
<br>
<blockquote
cite="mid:CAG2d78Cgcic2fKsGhvKpf2FbNzUKjwAcGA1M0ZhU2cnqEfcdqQ@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="im"> As labels for formulas and figures, I use
abbreviations that the spell-checker considers as spelling
errors. Is it possible to prevent the spell-checker from
"looking inside" blocks starting with \ref or \label ?<br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Yes have a look at the TeXworks Manual under—</div>
<div><br>
</div>
<div>Apendix A - Customizing TeXworks : A.1 Syntax
highlighting </div>
<div><br>
</div>
<div>There it will tell you how to edit your syntax-patterns.txt
file.</div>
<div><br>
</div>
<div>You may be able to use the N option in the spelling
position to achieve what you want.</div>
<div><br>
</div>
<div>I have one with Y for spell checking to be on, under my
Latex Section, you'll need to nominate another colour, I do
not know whether there is such a thing as 'default'/'current'
colour setting.</div>
</div>
</blockquote>
<br>
You can also use the same color if you don't want to change the
visual appearance. Colors don't need to be mutually exclusive.<br>
The "default" color is "normal text on normal background" (usually
black on white, but this may depend on your system palette,
stylesheets, etc.).<br>
<br>
<blockquote
cite="mid:CAG2d78Cgcic2fKsGhvKpf2FbNzUKjwAcGA1M0ZhU2cnqEfcdqQ@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div><br>
</div>
Regular expressions are not my strength, but may be you could
have...
<div><br>
</div>
<div>black N \\((label)|(ref))\{.+\}</div>
</div>
</blockquote>
<br>
At a quick glance, this looks good.<br>
<br>
HTH<br>
Stefan<br>
</body>
</html>