##// END OF EJS Templates
Document latex Completion....
Matthias Bussonnier -
Show More
@@ -9,6 +9,60 b' This module now support a wide variety of completion mechanism both available'
9 for normal classic Python code, as well as completer for IPython specific
9 for normal classic Python code, as well as completer for IPython specific
10 Syntax like magics.
10 Syntax like magics.
11
11
12 Latex and Unicode completion
13 ============================
14
15 IPython and compatible frontends not only can complete your code, but can help
16 you to input a wide range of characters. In particular we allow you to insert
17 a unicode character using the tab completion mechanism.
18
19 Forward latex/unicode completion
20 --------------------------------
21
22 Forward completion allows you to easily type a unicode character using its latex
23 name, or unicode long description. To do so type a backslash follow by the
24 relevant name and press tab:
25
26
27 Using latex completion:
28
29 .. code::
30
31 \\alpha<tab>
32 α
33
34 or using unicode completion:
35
36
37 .. code::
38
39 \\greek small letter alpha<tab>
40 α
41
42
43 Only valid Python identifiers will complete. Combining characters (like arrow or
44 dots) are also available, unlike latex they need to be put after the their
45 counterpart that is to say, `F\\\\vec<tab>` is correct, not `\\\\vec<tab>F`.
46
47 Some browsers are known to display combining characters incorrectly.
48
49 Backward latex completion
50 -------------------------
51
52 It is sometime challenging to know how to type a character, if you are using
53 IPython, or any compatible frontend you can prepend backslash to the character
54 and press `<tab>` to expand it to its latex form.
55
56 .. code::
57
58 \\α<tab>
59 \\alpha
60
61
62 Both forward and backward completions can be deactivated by setting the
63 ``Completer.backslash_combining_completions`` option to ``False``.
64
65
12 Experimental
66 Experimental
13 ============
67 ============
14
68
General Comments 0
You need to be logged in to leave comments. Login now