横長の余白とページヘッダー

横長の余白とページヘッダー

私はページ ヘッダーで scrreprt クラスを使用します。また、余白のメモも使用します。縦向きモードでは見栄えがよいです。 ここに画像の説明を入力してください ただし、一部のページは回転している可能性があります。その場合、見た目が悪くなります。 ここに画像の説明を入力してください MWE は次のとおりです。

\documentclass[a4paper]{scrreprt}

\usepackage{lipsum}
\usepackage{pdflscape}
\usepackage[headsepline]{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearscrheadings
\ohead{\pagemark{}}

\newcommand{\examplepage}{
  \lipsum[1]
  \marginpar{This is a marginal note.}
  \lipsum[2-4]
}

\begin{document}
\examplepage{}

\begin{landscape}
\examplepage{}
\end{landscape}

\end{document}

横向きのページレイアウトを改善するにはどうすればいいでしょうか?

答え1

\reversemarginpar環境内では以下を使用できますlandscape:

\documentclass[a4paper]{scrreprt}

\usepackage{lipsum}
\usepackage{pdflscape}
\usepackage[headsepline]{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearscrheadings
\ohead{\pagemark{}}

\newcommand{\examplepage}{
  \lipsum[1]
  \marginpar{This is a marginal note.}
  \lipsum[2-4]
}

\begin{document}
\examplepage{}

\begin{landscape}
\reversemarginpar
\examplepage{}
\end{landscape}

\end{document} 

ここに画像の説明を入力してください

関連情報