Skip to content

Commit

Permalink
update documentation for inEnv trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Jan 11, 2025
1 parent 673f77b commit 71cfabc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utilities/manual/build/html/advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ <h4>Limitation of Scope<a class="headerlink" href="#limitation-of-scope" title="
<td><p>Similar to <code class="docutils literal notranslate"><span class="pre">(?highlighted-as:...)</span></code>, but the macro is deactivated in the given environments.</p></td>
</tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">(?inEnv:...)</span></code></p></td>
<td><p>Restrict the macro to certain environments. Only the latest environment is checked in case of nested environments. Environments are only detected in the lines between “\begin”/”\end”, excluding the lines that conatin those commands! It also checks for aliases, i.e. all math type environments are aliased as “math” as well.<br>Example: <code class="docutils literal notranslate"><span class="pre">(?inEnv:math)</span></code></p></td>
<td><p>Restrict the macro to certain environments. Only the latest environment is checked in case of nested environments. Environments are only detected in the lines between “\begin”/”\end”, excluding the lines that contain those commands! It also checks for aliases, i.e. all math type environments are aliased as “math” as well. “math” is also detected in symbol started mathmode like $…$.<br>Example: <code class="docutils literal notranslate"><span class="pre">(?inEnv:math)</span></code></p></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion utilities/manual/build/html/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion utilities/manual/source/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ expression of the pattern `(?[scope-type]:...)`.
| `(?language:...)` | The macro is only active if the highlighting of the document matches the given language.<br> Example: `(?language:latex)` |
| `(?highlighted-as:...)` | Restrict the macro to certain highlighted environments. The possible values correspond to the list on the syntax highlighting config page.<br>Example: `(?highlighted-as:numbers,math-delimiter,math-keyword)` |
| `(?not-highlighted-as:...)` | Similar to `(?highlighted-as:...)`, but the macro is deactivated in the given environments. |
| `(?inEnv:...)` | Restrict the macro to certain environments. Only the latest environment is checked in case of nested environments. Environments are only detected in the lines between "\begin"/"\end", excluding the lines that conatin those commands! It also checks for aliases, i.e. all math type environments are aliased as "math" as well.<br>Example: `(?inEnv:math)` |
| `(?inEnv:...)` | Restrict the macro to certain environments. Only the latest environment is checked in case of nested environments. Environments are only detected in the lines between "\begin"/"\end", excluding the lines that contain those commands! It also checks for aliases, i.e. all math type environments are aliased as "math" as well. "math" is also detected in symbol started mathmode like $...$.<br>Example: `(?inEnv:math)` |
You may combine `(?language:...)` and `(?highlighted-as:...)`
expressions. However, combing `(?highlighted-as:...)` and
Expand Down

0 comments on commit 71cfabc

Please sign in to comment.