New answers tagged

2

I do not know whether you have found a solution in the mean time, but according to this post https://stackoverflow.com/questions/606191/convert-bytes-to-a-string you have to decode the bytes object, so that the snippet becomes: snippet 'math(.*)math' "math" wr `!p import subprocess code = match.group(1) code = 'ToString[' + code + ',TeXForm]' res = ...


2

Thanks to husB for point me the dynamic tabstop generation, i don't know why it isn't in the doc. The final snippet: global !p def create_line_plhldr(snip): num = int(snip.buffer[snip.line].strip()) snip.buffer[snip.line] = '' anon_snippet_body = '${1:unidad}.${2:ejercicio} )' for var in range(2, int(num)+1): anon_snippet_body +=...


Top 50 recent answers are included