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

interaction with geometry package #5

Open
davidcarlisle opened this issue Dec 28, 2019 · 6 comments
Open

interaction with geometry package #5

davidcarlisle opened this issue Dec 28, 2019 · 6 comments

Comments

@davidcarlisle
Copy link

The stackexchange posting at

https://tex.stackexchange.com/questions/522069/uptex-utarticle-class-and-geometry-package-and-setup

seems to suggest that the geometry package and utarticle class don't really work well together,

This is mainly an issue with geometry not understanding the writing direction modes of ptex (I think) but I am reporting it here rather than at

https://github.com/davidcarlisle/geometry

as that just comes to me, and my understanding of ptex writing modes is rather limited.

Any suggestions welcome (or if my stackexchange answer is completely wrong feel free to edit or ask me to delete)

@aminophen
Copy link
Member

aminophen commented Dec 29, 2019

The fact that geometry does not support vertical writing classes is well-known in Japan; the workaround for the issue is to use lltjp-geometry.sty provided by luatexja project team. I will add an answer in tex.sx later.

@aminophen
Copy link
Member

aminophen commented Dec 29, 2019

Do you think it's possible/better to sort the hooks in lltjp-geometry.sty to be merged into the mainstream geometry.sty? > @h-kitagawa

@davidcarlisle
Copy link
Author

@aminophen yes I think it's always better to fix an upstream package than have a package that patches another.

I can't really do this though as while I more or less understand the vertical mode, I don't have a feeling for the expected affect on the global page layout description. Also to coordinate with lltjp-geometry.sty so that any changes in geometry don't break existing documents using that.

If it requires major changes should check that Hideo Umeki agrees. I set up the geometry github repository for some "emergency fixes" when luatex changes broke geometry and Hideo Umeki had no time to fix, but I feel I am only temporarily holding the package.

@h-kitagawa
Copy link
Member

Do you think it's possible/better to sort the hooks in lltjp-geometry.sty to be merged into the mainstream geometry.sty? > @h-kitagawa

I think that it's not easy, because of how to detect writing direction (horizontal or vertical). I hope the present approach (looking the writing direction at loading the package, and checking that there is \tate in @begindocumenthook) works in almost all cases, but I don't think it covers every cases.

@davidcarlisle
Copy link
Author

I think that it's not easy, because of how to detect writing direction (horizontal or vertical).

one possibility would be to not auto-detect but simply have an option (tate or vertical or something?) that the user could use to enable this.

in fact I think one thing that could probably be done straight away is to add a tate option to geometry that simply does \RequirePackage{ lltjp-geometry} so that the user just needs to add [tate] (which would be documented in the geometry manual), as an alternative to changing \usepackage{geometry} to \usepackage{lltjp-geometry} does this sound reasonable?

Longer term I think it would be good to combine the packages but there is no rush to change anything this has clearly been this way for a while.

@aminophen
Copy link
Member

aminophen commented Feb 24, 2020

For the record: lltjp-geometry is not working after LaTeX2e 2020-02-02.

-> edit: fixed in luatexja 20200227.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants