abenori / jlreq

Other
125 stars 18 forks source link

pagestyle doesn't switch from tate to yoko? #115

Closed glandium closed 1 year ago

glandium commented 1 year ago

I might have missed something, but I can't figure out how to make a specific page switch back to horizontal writing in an otherwise vertical document. Testcase:

\documentclass[uplatex,tate,book,paper=a6,fontsize=9pt,hanging_punctuation]{jlreq}
\usepackage{bxpapersize}
\title{タイトル}
\usepackage{bxjalipsum}

\begin{document}
\maketitle
\tableofcontents

\chapter{いろは}
\jalipsum{iroha}
\jalipsum{iroha}
\jalipsum{iroha}
\jalipsum{iroha}
\jalipsum{iroha}
\jalipsum{iroha}
\chapter{吾輩}
\jalipsum{wagahai}
\chapter{憲法前文}
\jalipsum{preamble}
\chapter{初恋}
\jalipsum{hatsukoi}
\newpage
\NewPageStyle{colophon}{yoko,nombre=}
\pagestyle{colophon}
奥付
\end{document}
abenori commented 1 year ago

I guess you want to change the main texts from tate to yoko, but (as far as I know) there is no formal way to do this with pLaTeX.

glandium commented 1 year ago

Interestingly, \yoko mostly works, except for the fact that the text width ends up overflowing the page, but that can be fixed with e.g. \begin{minipage}.

If \NewPageStyle applies to header/footer only, that should probably be clarified in https://github.com/abenori/jlreq/blob/master/README-ja.md#%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%B9%E3%82%BF%E3%82%A4%E3%83%AB