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

TeX: フックreview{begin/end}documenthookの追加 #1111

Merged
merged 2 commits into from Oct 6, 2018
Merged

Conversation

kmuto
Copy link
Owner

@kmuto kmuto commented Sep 24, 2018

最初にコンテンツに加工を入れたいけれども、reviewcoverpagecontを変えるのはだいぶ違うし…ということがちょっとあったので、先頭・末尾用のフックを追加します。
普通は空なので、挙動としての変化はなく、未定義でも問題ありません。

@takahashim
Copy link
Collaborator

いまのところRe:VIEWで使っているhookとしては、

\reviewfrontmatterhook
\reviewmainmatterhook
\reviewappendixhook
\reviewbackmatterhook

の4種類で、これに+2するというので正しいですか?

@kmuto
Copy link
Owner Author

kmuto commented Sep 24, 2018

です

@kmuto
Copy link
Owner Author

kmuto commented Oct 6, 2018

エラーはビルド環境側の問題のようなのでマージします(beginでフックしたいものが…)。

@kmuto kmuto merged commit 23127af into master Oct 6, 2018
@kmuto kmuto deleted the hook-startend branch October 6, 2018 05:23
@munepi
Copy link
Contributor

munepi commented Oct 7, 2018

@kmuto

  • \reviewfrontmatterhook
  • \reviewmainmatterhook
  • \reviewappendixhook
  • \reviewbackmatterhook

これらのフックは、通常のLaTeXで利用している \AtBeginDocument などの「フック」相当と使い勝手が異なるので、再実装したい気がしています。

さらに、それぞれ各開始宣言 \frontmatter, \mainmatter, \appendix, \backmatter に内包するかどうかもできなくもないです。もちろん、現状のとおり、明示的に親LaTeXファイル中に「これらのフックを実行したぞ!」と書いてある状態でもOKです。なお、各内包したフックの実行は、元の開始宣言実行終了直後に行えます。

@kmuto
Copy link
Owner Author

kmuto commented Oct 7, 2018

む、ちょっと理解がおいつかない…

基本的にはこれらのフックはあくまでもRe:VIEW都合で、cls側には何も手を入れない前提ですが、それでも問題ないでしょうか。

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

Successfully merging this pull request may close these issues.

None yet

3 participants