Skip to content

Commit

Permalink
update-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCensi committed Sep 22, 2018
1 parent d5e09b7 commit 06f2b40
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
16 changes: 10 additions & 6 deletions book/duckumentation/20_markduck/67_latex_features.md
Expand Up @@ -165,19 +165,23 @@ Note that referring to the equations is done using the syntax `\eqref{eq:![name]
rather than `[](#eq:![name])`.


## LaTeX symbols
## LaTeX symbols {#latex-symbols}

The LaTeX symbols definitions are in a file called `docs/symbols.tex`.
You can place any LaTeX symbols definition in files called `*.symbols.tex`.

These will be included as preamble.

<!-- [symbols]: github:org=Duckietown,repo=duckuments,path=docs/symbols.tex -->
For example, this repository contains a file `a.symbols.tex` containing:

\newcommand{\mysymbol}{\text{This is defined in a.symbols.tex}}

Put all definitions there; if they are centralized it is easier to check
that they are coherent.
So then when we create an equation with:

TODO: this mechanism will be changed to include any file called `*.symbols.tex`.
$$ \mysymbol $$

It gets rendered as:

$$ \mysymbol $$

## Bibliography support {#bibliography-support}

Expand Down
1 change: 1 addition & 0 deletions book/duckumentation/20_markduck/a.symbols.tex
@@ -0,0 +1 @@
\newcommand{\mysymbol}{\text{This is defined in a.symbols.tex}}
2 changes: 1 addition & 1 deletion resources

0 comments on commit 06f2b40

Please sign in to comment.