Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When 'pointsize' is not 10pt Japanese 'manual' badly renders in PDF #3394

Closed
jfbu opened this issue Feb 5, 2017 · 2 comments
Closed

When 'pointsize' is not 10pt Japanese 'manual' badly renders in PDF #3394

jfbu opened this issue Feb 5, 2017 · 2 comments
Assignees
Milestone

Comments

@jfbu
Copy link
Contributor

jfbu commented Feb 5, 2017

Subject: when 'pointsize' is used, the paper dimensions get wrong with 'manual' class.

Test file (I picked up some random Japanese text...)

Welcome to FOO's documentation!
===============================

.. toctree::
   :maxdepth: 2


CHAPTER 1
---------

A

TeXが未定義の命令名を発見しました.おそらく入力の誤りでしょう.もしこ
のエラーがLaTeX命令の処理中に生じた場合は,その命令は間違った位置に置か
れています.例えば,リスト環境の中でないのに\item命令が使われた場合など
です.また,``\documentclass`` 命令がない場合にもこのエラーが生じます.


CHAPTER 2
---------

B

with

latex_elements = {
    # The paper size ('letterpaper' or 'a4paper').
    #
    # 'papersize': 'letterpaper',

    # The font size ('10pt', '11pt' or '12pt').
    #
    'pointsize': '21pt',
}

and 'manual' docclass and 'ja' language.

Problem

  • The output is bad:

capture d ecran 2017-02-05 a 17 04 22

The page dimensions are much bigger than the expected letterpaper.

Explanation of the problem

This is due to incompatibility of jsbook document class with geometry package if no special measures are taken.

Expected result

Something like:

capture d ecran 2017-02-05 a 17 05 37

In this screen shot, Adobe Reader said page dimensions are those of US letter, as expected.

Environment info

  • Sphinx version: 1.5.2
  • TeX version: TeXLive 2016, more or less up-to-date.

This will be fixed at #3387

Related: #3356

@jfbu jfbu self-assigned this Feb 5, 2017
@jfbu jfbu added this to the 1.5.3 milestone Feb 5, 2017
@jfbu jfbu added the type:bug label Feb 5, 2017
jfbu added a commit to jfbu/sphinx that referenced this issue Feb 5, 2017
…se documents

- make text width integer multiple of zenkaku width

- fix incompatibility of ``geometry`` package with ``jsbook`` LaTeX
  class (``'manual'`` docclass)

- fix issue with shortened text area height in ``'manual'`` docclass
@jfbu
Copy link
Contributor Author

jfbu commented Feb 5, 2017

(the issue was illustrated with 21pt for drama, but it is also there for 12pt)

jfbu added a commit that referenced this issue Feb 6, 2017
Fix #3356 and #3394 latex text layout for Japanese document
@jfbu
Copy link
Contributor Author

jfbu commented Feb 6, 2017

fixed at 09324bd and parent commits (#3387)

@jfbu jfbu closed this as completed Feb 6, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant