error_outline The use of custom LaTeX packages can only be used for written assignments.
Within Ans, you have the possibility to use LaTeX to create questions and elements such as the instruction on the cover page for written assignments. Ans uses an online LaTeX renderer, called KaTeX to render LaTeX in the browser. There are some characters and functions that are not supported by either LaTeX or KaTeX. A list of support KaTeX symbols and functions can be found here. At the bottom of this article you can also find a list of KaTeX symbols and functions that are not supported in a written assignment. If there is an alternative to symbol or function, you can find it in the table as well.
LaTeX does not support all commands by default. For certain LaTeX operations, packages are needed that will have to be imported into Ans. In case an operation or command is not supported by default, the PDF generator will give errors.
To add custom packages to your written assignment, follow the steps below.
- Click domain School name in the menu on the left.
- Click label_important Courses in the menu at the top.
- Click on your course or use the search bar.
- Click on your assignment or use the search bar.
- Click the dropdown menu Customise layout in the preview section and click format_shapes Edit layout.
- A dialog will open. Fill in the package you would like to add in the Custom latex packages and macros-textbox.
- Click Update.
Now the package is imported into LaTeX and its commands can be used by using it in description content field or question content field or for the instruction on the cover page. In the image below, the LaTeX package \usepackage{mhchem}' is used as an example.
error_outline Using custom packages in Ans can lead to errors in the answer form.
Use at your own risk. You will need to check your questions and assignment thoroughly.
An example of how to solve an error when entering LaTeX can be found in the video below.
You can read more about common preview issues in written assignments here.
Unsupported KaTeX symbols and functions
Below you will find an overview of KaTeX symbols and functions that are unsupported in written assignments.
Accents
KaTeX symbol or function | LaTeX alternative (if available) |
\utilde{AB} |
- |
\widecheck{ac} |
- |
\Overrightarrow{AB} |
- |
Delimiters
KaTeX symbol or function | LaTeX alternative (if available) |
\lang |
\langle |
\rang |
\rangle |
\lt |
- |
\gt |
- |
⎰⎱ |
\lmoustache \rmoustache |
⟮ ⟯ |
\lgroup \rgroup |
┌ ┐ |
\ulcorner \urcorner |
└ ┘ |
\llcorner \lrcorner |
⟦ ⟧ |
- |
\left |
- |
\right |
- |
\llbracket |
- |
\rrbracket |
- |
\lBrace \rBrace |
- |
Letters and unicode
KaTeX symbol or function | LaTeX alternative (if available) |
\digamma |
- |
\Reals |
\R |
\image |
\Im |
\Game |
- |
\weierp |
\wp |
\alef |
\aleph |
\Finv |
- |
\N |
- |
\Z |
- |
\alefsym |
\aleph |
\cnums |
- |
\natnums |
- |
\Complex |
- |
\eth |
- |
\reals |
\R |
Layout
KaTeX symbol or function | LaTeX alternative (if available) |
\sout{abc} |
- |
$a_{\angl n} |
- |
\phase{-78^\circ} |
- |
a_\angln |
- |
\tag{hi} x+y^{2x} |
- |
\tag*{hi} x+y^{2x} |
- |
a+\left(\vcenter{\hbox{$\frac{\frac a b}c$}}\right) |
- |
Logic and Set Theory
KaTeX symbol or function | LaTeX alternative (if available) |
\exist |
\exists |
\isin |
\in |
\Set{ x | x<\frac 1 2 } |
- |
\notni |
- |
\set{x|x<5} |
- |
Operators
KaTeX symbol or function | LaTeX alternative (if available) |
\oiiint |
- |
\plusmn |
\pm |
{a \above{2pt} b+1} |
- |
\cosec |
- |
\arctg |
- |
\cotg |
- |
\sh |
- |
\arcctg |
- |
\ch |
- |
\ctg |
- |
\tg |
- |
\cth |
- |
\argmax |
- |
\argmin |
- |
\plim |
- |
Relations
KaTeX symbol or function | LaTeX alternative (if available) |
\approxcolon |
- |
\approxcoloncolon |
- |
\backepsilon |
- |
\coloncolonapprox |
\Colonapprox |
\colonminus |
\coloneq |
\coloncolonminus |
\Coloneq |
\colonequals |
\coloneqq |
\coloncolonequals |
\Coloneqq |
\coloncolonsim |
\Colonsim |
\coloncolon |
\dblcolon |
\minuscolon |
\eqcolon |
\minuscoloncolon |
\Eqcolon |
\equalscolon |
\eqqcolon |
\equalscoloncolon |
\Eqqcolon |
\gt |
- |
\imageof |
- |
\isin |
- |
\lt |
- |
\origof |
- |
\simcolon |
- |
\simcoloncolon |
- |
\sub |
\subset |
\sube |
\subsetq |
\supe |
\supsetq |
\notni |
- |
Arrows
KaTeX symbol or function | LaTeX alternative (if available) |
\Darr |
- |
\dArr |
- |
\darr |
- |
\Harr |
- |
\hArr |
- |
\harr |
- |
\Larr |
- |
\lArr |
- |
\larr |
- |
\Lrarr |
- |
\lrArr |
- |
\lrarr |
- |
\Rarr |
- |
\rArr |
- |
\rarr |
- |
\Uarr |
- |
\uArr |
- |
\uarr |
- |
\xhookleftarrow{abc} |
- |
\xtwoheadleftarrow{abc} |
- |
\xtofrom{abc} |
- |
\xlongequal{abc} |
- |
\xhookrightarrow{abc} |
- |
\xtwoheadrightarrow{abc} |
- |
\xmapsto{abc} |
- |
Special Notation
KaTeX symbol or function | LaTeX alternative (if available) |
\Bra{\phi} |
- |
\Ket{\psi} |
- |
\braket{\phi|\psi} |
- |
\Braket{ ϕ | \frac{∂^2}{∂ t^2} | ψ } |
- |
Symbols and Punctuation
KaTeX symbol or function | LaTeX alternative (if available) |
\text{\sect} |
- |
\sdot |
- |
\clubs |
- |
\diamonds |
- |
\KaTeX |
- |
\LaTeX |
- |
\TeX |
- |
\infi |
- |
\Dagger |
- |
\degree |
\circ |
\mho |
- |
\hearts |
- |
\spades |
- |
\minuso |
- |
Comments
0 comments
Article is closed for comments.