Show More
@@ -338,7 +338,14 b' Note: For best display, use latex syntax highlighting. =))' | |||||
338 | % Purpose: If the output block provided is a figure type, the 'true_content' |
|
338 | % Purpose: If the output block provided is a figure type, the 'true_content' | |
339 | % parameter will be returned. Else, the 'false_content'. |
|
339 | % parameter will be returned. Else, the 'false_content'. | |
340 | ((* macro iff_figure(output, true_content, false_content) -*)) |
|
340 | ((* macro iff_figure(output, true_content, false_content) -*)) | |
341 | ((* if output.output_type in ['display_data'] -*)) |
|
341 | ((*- set is_figure = false -*)) | |
|
342 | ((*- for type in output | filter_data_type -*)) | |||
|
343 | ((*- if type in ['pdf', 'svg', 'png', 'jpeg','html','jpeg']*)) | |||
|
344 | ((*- set is_figure = true -*)) | |||
|
345 | ((*- endif -*)) | |||
|
346 | ((*- endfor -*)) | |||
|
347 | ||||
|
348 | ((* if is_figure -*)) | |||
342 | ((( true_content ))) |
|
349 | ((( true_content ))) | |
343 | ((*- else -*)) |
|
350 | ((*- else -*)) | |
344 | ((( false_content ))) |
|
351 | ((( false_content ))) |
General Comments 0
You need to be logged in to leave comments.
Login now