Re: Riga magica del motore di composizione

#78552
Up
0
Down
::


Ciao Claudio,

la mia versione è TeXstudio 2.4 (SVN 3251M). Nel paragrafo 4.10 trovo scritto:

Texstudio can use special, “magic” comments in the text to adapt options for that document.
[tt]% !TeX spellcheck = de_DE[/tt]

This special comment tells txs that this document is written in German and German spell checking is to be used, independent on any general settings.
[tt]% !TeX encoding = utf8[/tt]

The code defines the character encoding of a document.
[tt]% !TeX program = pdflatex[/tt]

This marks the document as to be compiled with pdflatex. (i.e. overrides the default txs:///quick command)
[tt]% !TeX TXS-program:latex = txs:///xelatex %[/tt]

This overrides the default txs:///latex command to call xelatex instead
[tt]% !TeX TXS-SCRIPT = foobar[/tt]
[tt]% //Trigger = ?load-this-file[/tt]
[tt]% app.load(“/tmp/test/test.tex”);[/tt]
[tt]% app.load(“/tmp/test/a.tex”);[/tt]
[tt]% TXS-SCRIPT-END[/tt]

This defines a temporary javascript macro which is executed, when the file is loaded, and which in turns loads the two files in /tmp/test. .

Grazie dell’indicazione su come trovare quel menù!

Ciao e buona giornata,
Marco.

Go to top