# Extension:LatexCompleter

LatexCompleter is an extension for WikiToLearn that will add offline support to the current Wiki Editor.

## Features

This extension is used to add latex completions for a user when inserting the math formula in the Visual Editor.It shows a dropdown based on the user's input , thereby autocompleting the text , and then adds the snippet corresponding to that caption.

## Installation

• Clone the following repo in /extensions directory : https://github.com/Falit/LatexCompleter
• Add the following code at the bottom of your LocalSettings.php
wfLoadExtension('LatexCompleter');


## Latex Formulas

Caption Snippet
frac \\frac{$arg}{$arg}
underset \\underset{$1:text}{$2:text}
cases
\\begin{cases}
$case1 \\$case2
\\end{cases}
sum \\sum_{$inf}^{$sup}
underset \\underset{$1:text}{$2:text}
indefinite integral \\int d${1:x} matrix \\begin{matrix}$1 & $2 \\$3 & $4 \\end{matrix} definite integral \\int_{$1}^{$2} d${3:x}
overrightarrow \overrightarrow{$1:x} overbrace \overbrace{$1:x}

## Known Issues

• Till the time , the hook is not completely working from the Code Editor side, the completions would not work.
 https://phabricator.wikimedia.org/T141021