@@ -297,6 +297,7 @@ function latexCalloutBoxDefault(caption, type, icon)
297
297
298
298
-- generate options
299
299
local options = {
300
+ breakable = " " ,
300
301
colframe = frameColor ,
301
302
colbacktitle = color .. ' !10!white' ,
302
303
coltitle = ' black' ,
@@ -320,7 +321,7 @@ function latexCalloutBoxDefault(caption, type, icon)
320
321
end
321
322
322
323
-- the core latex for the box
323
- local beginInlines = { pandoc .RawInline (' latex' , ' \\ begin{tcolorbox}[standard jigsaw,' .. tColorOptions (options ) .. ' ]\n ' ) }
324
+ local beginInlines = { pandoc .RawInline (' latex' , ' \\ begin{tcolorbox}[enhanced jigsaw, ' .. tColorOptions (options ) .. ' ]\n ' ) }
324
325
local endInlines = { pandoc .RawInline (' latex' , ' \n\\ end{tcolorbox}' ) }
325
326
326
327
-- Add the captions and contents
@@ -348,6 +349,7 @@ function latexCalloutBoxSimple(caption, type, icon)
348
349
349
350
-- generate options
350
351
local options = {
352
+ breakable = " " ,
351
353
colframe = colorFrame ,
352
354
colback = ' white' ,
353
355
opacityback = 0 ,
@@ -360,7 +362,7 @@ function latexCalloutBoxSimple(caption, type, icon)
360
362
}
361
363
362
364
-- the core latex for the box
363
- local beginInlines = { pandoc .RawInline (' latex' , ' \\ begin{tcolorbox}[standard jigsaw, ' .. tColorOptions (options ) .. ' ]\n ' ) }
365
+ local beginInlines = { pandoc .RawInline (' latex' , ' \\ begin{tcolorbox}[enhanced jigsaw, ' .. tColorOptions (options ) .. ' ]\n ' ) }
364
366
local endInlines = { pandoc .RawInline (' latex' , ' \n\\ end{tcolorbox}' ) }
365
367
366
368
-- generate the icon and use a minipage to position it
864
866
function displayName (type )
865
867
local defaultName = type :sub (1 ,1 ):upper ().. type :sub (2 )
866
868
return param (" callout-" .. type .. " -caption" , defaultName )
867
- end
869
+ end
0 commit comments