question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Font size does not change in PDF output

See original GitHub issue

Hi,

I am trying to change the font size of the PDF output (using the xelatex engine) via the sphinx: config: latex_elements: pointsize: value in the _confing.yml but no effect is observed. Do you have any idea about it?

The corresponding part in _confing.yml looks like this,

sphinx:
  config:
    latex_elements:
      papersize             : a4paper #(tried lettepaper as well)
      pointsize             : 12pt #(tried 10-16pt)
      fncychap              : \usepackage[Glenn]{fncychap}
      babel                 : "\\usepackage{polyglossia}\n\\setmainlanguage{greek}\n\\setotherlanguage{english}"
      fontpkg               : "\\setmainfont[Script=Greek]{GFS Artemisia} \n\\setsansfont[Script=Greek]{GFS Neohellenic}

Thanks!

> jupyter book --version
Jupyter Book      : 0.12.1
External ToC      : 0.2.3
MyST-Parser       : 0.15.2
MyST-NB           : 0.13.1
Sphinx Book Theme : 0.1.6
Jupyter-Cache     : 0.4.1
NbClient          : 0.5.3

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
AakashGfudecommented, Apr 4, 2022

https://github.com/executablebooks/sphinx-jupyterbook-latex/pull/92 has been merged now. Thanks, @florianbussmann for the change. Will be available in the next sphinx-jupyterbook-latex release.

0reactions
michaelosthegecommented, Oct 26, 2022

Thank you @AakashGfude!! Looks like I expected too much of LaTeX… For my thesis I think 12pt will be good enough.

Next I’ll try to reduce the size of code blocks (as we discussed a few months back).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change the font size in a PDF - Adobe
Click the font size control at the top of the page. It's the icon with a small capital T next to a large...
Read more >
I am having a problem with the text size in a PDF document ...
I am having a problem with the text size in a PDF document that was converted from a word processing program. How can...
Read more >
Inconsistent font size on pdf reports - Google Cloud Community
I just checked my fonts on a new pdf save, I also use calibri in my word template and its doing something strange...
Read more >
Font size in pdf don't change - Calibre - MobileRead Forums
Those settings only affect the font size for text that has no font size defined in the input document. If you want to...
Read more >
How to Change Font Size in PDF - Wondershare PDFelement
This method can be used to change PDF font size in any PDF document. When you resize text in your document, you don't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found