198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
# File 'lib/review/latexbuilder.rb', line 198
def column_begin(level, label, caption)
blank
@doc_status[:column] = true
target = if label
"\\hypertarget{#{column_label(label)}}{}"
else
"\\hypertarget{#{column_label(caption)}}{}"
end
@doc_status[:caption] = true
if @book.config.check_version('2', exception: false)
puts '\\begin{reviewcolumn}'
puts target
puts macro('reviewcolumnhead', nil, compile_inline(caption))
else
print '\\begin{reviewcolumn}'
puts "[#{compile_inline(caption)}#{target}]"
end
@doc_status[:caption] = nil
if level <= @book.config['toclevel'].to_i
puts "\\addcontentsline{toc}{#{HEADLINE[level]}}{#{compile_inline(caption)}}"
end
end
|