Ticket #34774

fontspec と geometry の lines

Open Date: 2015-01-02 01:12 Last Update: 2015-01-02 12:53

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
1 - Lowest
Severity:
5 - Medium
Resolution:
Duplicate
File:
None

Details

(LuaTeX-ja は関係ないのですが,ハマったので…….)

fontspec を読み込むと,geometry の lines の指定が正しく効かなくなるようです.

  1. \documentclass{article}
  2. \usepackage{geometry}
  3. \usepackage{fontspec}
  4. \geometry{lines=20}
  5. \begin{document}
  6. \newcounter{hoge}
  7. \def\R{\addtocounter{hoge}{1}\thehoge\par}
  8. \R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R
  9. \end{document}

20行としていますが,出力は16行になります.

Ticket History (3/4 Histories)

2015-01-02 01:12 Updated by: kmaeda
  • New Ticket "fontspec と geometry の lines" created
2015-01-02 01:17 Updated by: kmaeda
Comment

ちなみに,元々は LuaTeX ですらなくて,pLaTeX でハマっていました. 次のような場合です.

  1. \documentclass{jsarticle}
  2. \usepackage{geometry}
  3. \usepackage{otf}
  4. \usepackage{newtxtext}
  5. \geometry{lines=20}
  6. \begin{document}
  7. \newcounter{hoge}
  8. \def\R{\addtocounter{hoge}{1}\thehoge\par}
  9. \R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R
  10. \end{document}

newtxtext は,実際には fontenc で十分のようです.otf と newtxtext の読み込む順番が逆の場合は正しく動きます.

2015-01-02 07:27 Updated by: h7k
Comment

過去のチケット #32030 と同じではないでしょうか. \usepackage{geometry} の直前に \normalsize を入れると良いはずです.

2015-01-02 12:53 Updated by: kmaeda
  • Resolution Update from None to Duplicate
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2015-01-02 12:53
Comment

h7k への返信

過去のチケット #32030 と同じではないでしょうか. \usepackage{geometry} の直前に \normalsize を入れると良いはずです.

本当だ.自分も同じことを書いている…….pLaTeX の場合も同じような話かな.

完了にしておこう.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login