Make pret-lam work for \type{} as well.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 25 Aug 2009 15:36:19 +0000 (17:36 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 25 Aug 2009 15:36:19 +0000 (17:36 +0200)
pret-lam.lua

index eb7d3530395529a0b6ce1b934a4aa6ce4b38c467..aff6988d8af774ef8f1e1021f954ed3f34e786d9 100644 (file)
@@ -107,6 +107,10 @@ function vis.begin_of_display()
     bases = {}
 end
 
+-- Make things work for inline typeing (e.g., \type{}) as well.
+vis.begin_of_inline = vis.begin_of_display
+vis.end_of_inline = vis.end_of_display
+
 function vis.flush_line(str,nested)
     local result, state = { }, 0
     local finish, change = buffers.finish_state, buffers.change_state