Commit 1ef260fc authored by Sujin Philip's avatar Sujin Philip

Generate small PDF by default

1) Turn LATEX_SMALL_IMAGES on by default
2) Update its behaviour by changing the scale factor to 36%
parent 6d898123
Pipeline #24638 passed with stage
......@@ -720,14 +720,14 @@ function(latex_setup_variables)
)
option(LATEX_SMALL_IMAGES
"If on, the raster images will be converted to 1/6 the original size. This is because papers usually require 600 dpi images whereas most monitors only require at most 96 dpi. Thus, smaller images make smaller files for web distribution and can make it faster to read dvi files."
OFF)
"If on, the raster images will be scaled to 36% of the original size. This is because publication requires 200 dpi images whereas 72 dpi is good enough for most monitors. Thus, smaller images make smaller files for web distribution and can make it faster to read dvi files."
ON)
if(LATEX_SMALL_IMAGES)
set(LATEX_RASTER_SCALE 16 PARENT_SCOPE)
set(LATEX_RASTER_SCALE 36 PARENT_SCOPE)
set(LATEX_OPPOSITE_RASTER_SCALE 100 PARENT_SCOPE)
else()
set(LATEX_RASTER_SCALE 100 PARENT_SCOPE)
set(LATEX_OPPOSITE_RASTER_SCALE 16 PARENT_SCOPE)
set(LATEX_OPPOSITE_RASTER_SCALE 36 PARENT_SCOPE)
endif()
# Just holds extensions for known image types. They should all be lower case.
......@@ -970,7 +970,7 @@ function(latex_process_images dvi_outputs_var pdf_outputs_var)
# Do conversions for pdf.
if(is_raster)
latex_convert_image(output_files "${file}" .png "${convert_flags}"
latex_convert_image(output_files "${file}" "${extension}" "${convert_flags}"
"${LATEX_PDF_IMAGE_EXTENSIONS}" "${ARGN}")
list(APPEND pdf_outputs ${output_files})
else()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment