View Single Post
Old 04-29-2023, 09:11 PM   #9
lysakowski
Junior Member
lysakowski began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Feb 2015
Location: Boston area
Device: Adobe Acrobat, iPad 2, Android Phone, Windows 10
Changing PDF output converter CSS settings for Python code that is too small

Quote:
Originally Posted by kovidgoyal View Post
there is no such thing as "programming language code size". You need to figure out what CSS is used for your code samples in the epub files, and adjust the font size key in the conversion settings accordingly or just turn off font size rescaling, then conversion will not touch your font sizes.
I want font size rescaling to work only on the <pre> tags for Python code.

I am starting to understand how to do this font size adjustment during conversion. If I add some extra CSS for the <pre> tag in the field in "Look & Feel" ... "Styling"... "Extra CSS", I can adjust the font size and padding. I have to experiment with it some more to get the result I want. I don't know much about CSS specifics yet, whether to use font-size in pixels, rem units, vmin units, or something else.

Is there a separate converter package in the Calibre package for this conversion functionality? Once I figure out the correct conversion CSS settings, I want to do a bulk conversion of epub files to PDF files, because it is too tedious to do it one publication at a time. I would like to feed in the conversion CSS output specs as a template.

Also, in the Convert dialog box, is there a place to specify the name of the output file?

The Calibre PDF output converter currently truncates the filename to 35 characters. I would like to be able to specify the output when using Calibre to manage the conversion.

Will the changed output filename from the conversion process get picked up by the Calibre Indexing Engine, or the next time Calibre starts up?
lysakowski is offline   Reply With Quote