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

縦書きPDF出力時、著者欄が横書きのままになる #695

Open
mt-caret opened this issue Dec 24, 2016 · 5 comments
Open

縦書きPDF出力時、著者欄が横書きのままになる #695

mt-caret opened this issue Dec 24, 2016 · 5 comments

Comments

@mt-caret
Copy link

再現方法

  1. https://hub.docker.com/r/vvakame/review/ で環境構築
  2. https://github.com/kmuto/review/blob/master/doc/writing_vertical.ja.md に沿ってconfig.ymlにてtexdocumentclassにて"utbook"を利用
  3. rake clean pdf

暫定的な直し方

tabularが縦書きになっていないためと思われます。
http://qiita.com/zr_tex8r/items/6f0b88c5838c42241457
に従ってtabularにオプションを渡すとarrayパッケージと衝突してエラーを吐くため、
http://acetaminophen.hatenablog.com/entry/2016/10/17/235850
に従ってplextの代わりにplextarrayを使用したところ無事著者名も縦書きになりました。

@takahashim
Copy link
Collaborator

報告ありがとうございます。
とはいえ現状のplextをplextarrayに書き換えるのはちょっと危険ですよね…。どうしたものか。

@kmuto
Copy link
Owner

kmuto commented Dec 26, 2016

plextarrayがTeXLiveに収録されたといってもあまりに最近なので、今のところは手順をドキュメント化しておくくらいしかなさそうに思います。「著者名」というのは奥付の部分ですかね。

@mt-caret
Copy link
Author

とはいえ現状のplextをplextarrayに書き換えるのはちょっと危険ですよね…。どうしたものか。

\usepackage{plext}
<%- if ["utbook", "tbook"].include?(@documentclass) -%><%- end -%>
で囲まれていることを考えると縦書きにする時にしか使われないわけですし、
plextplextarrayで置き換えて
https://github.com/kmuto/review/blob/master/doc/writing_vertical.ja.md
の方に注意を載せておくのはどうでしょうか。

「著者名」というのは奥付の部分ですかね。

こちらです。
https://github.com/kmuto/review/blob/master/templates/latex/layout.tex.erb#L272-L274

@takahashim
Copy link
Collaborator

上記、中扉の著者名の方はただのセンタリングでもいいような気もしますね…。
とはいえ奥付の方はtabularにしないと難しそうなので、結局plextarrayが必要になりそうではあります。

@kmuto
Copy link
Owner

kmuto commented Sep 21, 2018

「TeXでできないことはないけれどもかなり複雑になるので、奥付を別PDFで作っておいてそれを原寸全面貼り付けで対処していただく」のがよいのではという方針になりそうです。

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