`statsoc` クラスと pdflatex の問題

`statsoc` クラスと pdflatex の問題

私は、Journal of the Royal Statistical Society (JRSS) が提供する statsoc クラスを使用しようとしています。このクラスは、次の場所にあります。ZIPファイル 非常にシンプルな最小限の動作例を示します。

\documentclass{statsoc}

\usepackage[utf8]{inputenc}
\usepackage{lipsum}

\usepackage{amsmath,amssymb}
\usepackage{natbib}

\title[Short title]{Long title}
\author[author short]{author long}


\begin{document}

\begin{abstract}
\lipsum
\end{abstract}

\keywords{keyword1 \and keyword2}

\end{document}

問題は、この単純な文書を でコンパイルすると、テキストが右にシフトし、右余白を超えてしまう PDF 文書が生成されることです (この投稿に添付されている画像を参照)。の代わりにpdflatexで文書をコンパイルしようとすると、同じ問題が発生します。latexpdflatexここに画像の説明を入力してください

何が間違っているのでしょうか? 「見栄えの良い」文書を作成するにはどうすればいいでしょうか?

TeXstudio 2.11.2を使用しています。

答え1

クラスは異なるページ サイズ、つまり幅 17.3cm と高さ 24.7cm (実際にはそれぞれ 41pc と 58.5pc) を設定しますが、PDF ドライバーにパラメーターを正しく渡しません。

\documentclass{statsoc}

\usepackage{geometry}

\geometry{
  textwidth=33pc,
  textheight=\dimexpr48\baselineskip+\topskip\relax,
  marginparsep=11pt,
  marginparwidth=107pt,
  footnotesep=6.65pt,
  headheight=9pt,
  headsep=9pt,
  footskip=30pt,
}

\usepackage[utf8]{inputenc}
\usepackage{lipsum}

\usepackage{amsmath,amssymb}
\usepackage{natbib}

\title[Short title]{Long title}
\author[author short]{author long}


\begin{document}

\begin{abstract}
\lipsum
\end{abstract}

\keywords{keyword1 \and keyword2}

\end{document}

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

A4用紙に印刷する場合は、

\documentclass{statsoc}

\usepackage[a4paper]{geometry}

\geometry{
  layoutheight=58.5pc,
  layoutwidth=41pc,
  textwidth=33pc,
  textheight=\dimexpr48\baselineskip+\topskip\relax,
  marginparsep=11pt,
  marginparwidth=107pt,
  footnotesep=6.65pt,
  headheight=9pt,
  headsep=9pt,
  footskip=30pt,
}

\usepackage[utf8]{inputenc}
\usepackage{lipsum}

\usepackage{amsmath,amssymb}
\usepackage{natbib}

\title[Short title]{Long title}
\author[author short]{author long}


\begin{document}

\begin{abstract}
\lipsum
\end{abstract}

\keywords{keyword1 \and keyword2}

\end{document}

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

答え2

\usepackage[a4paper]{geometry}ファイルの 2 行目に追加する.texと、ファイルは正しくレンダリングされます。

\documentclass{statsoc}
\usepackage[a4paper]{geometry}

\usepackage[utf8]{inputenc}
\usepackage{lipsum}

\usepackage{amsmath,amssymb}
\usepackage{natbib}

\title[Short title]{Long title}
\author[author short]{author long}


\begin{document}

\begin{abstract}
\lipsum
\end{abstract}

\keywords{keyword1 \and keyword2}

\end{document}

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

関連情報