Well, can't find if this has been asked here before, and failing to found good answer with search engines (I tried only with Qwant and DuckDuckGo.) Is there somewhere a good and complete reference somewhere on these

% !TeX directives

put at the top of files by some editors (or IDE like editing environments)?

  • 2
  • 1
    (some editors also have their own magic comments, you should consult the documentation of whichever editor you use) Commented Feb 4, 2023 at 19:59
  • Thanks Sam. Seeing that support list let me think there's a kind of (de facto?) standard, isn't it? Or you mean it's some hazard if things are so? (in that later case, question can be closed.)
    – gildux
    Commented Feb 4, 2023 at 20:06
  • Not really a coincidence, I think one editor started and others adopted the magic comments and sometimes added custom one. Commented Feb 4, 2023 at 20:12
  • 1
    They come from TeXshop originally
    – Joseph Wright
    Commented Feb 4, 2023 at 20:19


Browse other questions tagged .