231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
# File 'lib/review/latexbuilder.rb', line 231
def common_block_begin(type, caption = nil)
check_nested_minicolumn
if @book.config.check_version('2', exception: false)
type = 'minicolumn'
end
@doc_status[:minicolumn] = type
print "\\begin{review#{type}}"
@doc_status[:caption] = true
if @book.config.check_version('2', exception: false)
puts
if caption.present?
puts "\\reviewminicolumntitle{#{compile_inline(caption)}}"
end
else
if caption.present?
print "[#{compile_inline(caption)}]"
end
puts
end
@doc_status[:caption] = nil
end
|