Tell scons about Report.tex.
[matthijs/master-project/report.git] / pret-lam.lua
index c05f987bd71747b26b23c7a31b8775e4d8db1974..f14b962ba2cd162a8f9743e73aeef8e30b695776 100644 (file)
@@ -25,6 +25,7 @@ buffers.visualizers.lam.symbols = {
     -- The default * sits very high above the baseline, \ast (u+2217) looks
     -- better.
     ['*'] = {repr = '\\ast'},
+    ['~'] = {repr = '\\sim'},
 }
 
 
@@ -62,7 +63,9 @@ end
 -- Take a single word from str, if posible. Returns the rest of the string and
 -- the word taken.
 function buffers.visualizers.lam.take_word(str)
-        res, newstr = utf.match(str, "^(%a[%a%d_]+)(.*)")
+        -- A word must always start with a-z (in particular, λ is not a valid
+        -- start of a word).
+        res, newstr = utf.match(str, "^([a-zA-Z][%a%d_]+)(.*)")
         return res, newstr or str
 end