GithubHelp home page GithubHelp logo

Comments (6)

zr-tex8r avatar zr-tex8r commented on September 7, 2024

jsarticle で等価と思われる

geometry を使った時点で一度「geometry のデフォルト」にリセットされるので、少なくとも、等価ではないですよね……。

おっと違った、 * 付きだったか。

from bxjscls.

zr-tex8r avatar zr-tex8r commented on September 7, 2024

寧ろ「geometryが何でもかんでもリセットする」と考えるのがマチガイで、
実際には“geometryのデフォルト”が適用されるのは次のパラメタに限られるようです。

  • \textwidth
  • \textheight
  • \oddsidemargin
  • \evensidemargin
  • \topmargin

つまり、これ以外は「geometry読込前の値」が“初期値”と見なされる、
つまり reset した場合はその値に戻る、と考えられます。
そして、その初期値がjsarticleとbxjsarticleで異なる。

from bxjscls.

zr-tex8r avatar zr-tex8r commented on September 7, 2024

つまり、JSクラスと異なり、BXJSクラスではほとんどのパラメタを“geometryにより”設定している、
従って、geometryでresetした直後は、多くのパラメタが“無意味な”値になっている。
(例えば \footskip の値がゼロになっている。)

この挙動は“意図通り”といって良いと思いますがどうでしょう……。

from bxjscls.

aminophen avatar aminophen commented on September 7, 2024

BXJSクラスではほとんどのパラメタを“geometryにより”設定している、
従って、geometryで reset した直後は、多くのパラメタが“無意味な”値になっている。

なるほど…

\RequirePackage{filehook}
\AtBeginOfPackageFile{geometry}{\typeout{\the\footskip}}
\documentclass[twocolumn,platex,dvipdfmx,ja=standard]{bxjsarticle}
\typeout{\the\footskip}
\setpagelayout*{margin=15truemm}
\typeout{\the\footskip}

たしかに \footskip の初期値は 0pt ですし、「ほとんどのパラメタを“geometryにより”設定している」のですから、reset すると無意味になるのは確かに意図どおり、という気がしてきました。

from bxjscls.

zr-tex8r avatar zr-tex8r commented on September 7, 2024

ちなみに、マニュアルでは各クラスについて
「どのようなgeometryのパラメタを設定しているのか」
を具体的に記載しているのですが、この目的は
「元々のレイアウトを少し変えた奴を作りたい」
と思ったユーザが正しい設定に行き着けるようにするため、なんですね。

参照:
https://twitter.com/re_easy2/status/760114749128396800?lang=ja
#他人のツイートを借りる奴

from bxjscls.

aminophen avatar aminophen commented on September 7, 2024

記載してあるのは \bxjs@layout の中身ですね。これが“初期値”だと勘違いしていました。
「2. geometry で」と書いてあるのを読んだ時点で気づくべきでしたね…(geometry ムズカシイ)

from bxjscls.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.