From: Matthijs Kooijman Date: Tue, 25 Aug 2009 15:36:19 +0000 (+0200) Subject: Make pret-lam work for \type{} as well. X-Git-Tag: final-thesis~291 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=ba27dfb753703acfda3d7165ab2c0a334515c310;p=matthijs%2Fmaster-project%2Freport.git Make pret-lam work for \type{} as well. --- diff --git a/pret-lam.lua b/pret-lam.lua index eb7d353..aff6988 100644 --- a/pret-lam.lua +++ b/pret-lam.lua @@ -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