> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ja/shu-shi-she-ding/08-single-sided-and-double-sided-documents.md).

# 片面印刷と両面印刷の文書

## はじめに

LaTeX には、以下を含むさまざまな種類の文書を作成するために使用できるいくつかの「標準」クラスが付属しています: `article`, `book`, `レポート`, `letter`, `スライド` や `proc` (会議論文集用)。LaTeX ではさらに、 `minimal` デバッグ用、または独自のクラスファイルを書くための基礎として使うためのクラスが用意されています。さらに多くの文書クラスが、 [Overleaf テンプレートギャラリー](https://www.overleaf.com/latex/templates)、または [CTAN からダウンロードできます](https://ctan.org/topic/class).

## 両面文書の作成

両面文書を作成するには、 `twoside` オプションを `\documentclass` 宣言に渡します。たとえば:

```latex
\documentclass[twoside]{article}
```

**注**:

* この `book` クラスは既定で両面設定なので、 `twoside` オプションに移動します。
* この `スライド` クラスは `twoside` オプションをサポートしていません。おそらく、プレゼンテーションスライドでそれを行うのは意味がないからでしょう。

### 文書レイアウトを確認するための Overleaf の例

次の例は、 `レイアウト` パッケージを使って、初期の（*既定*）お好みの文書クラスの文書レイアウトを示す図を作成する小さな Overleaf プロジェクトを提供します。これらの既定値は、たとえば `geometry`のようなパッケージを読み込むことで変更できます。これらのパッケージは LaTeX のページレイアウト・パラメータの既定値を変更します。記事を参照してください [ページサイズと余白](/latex/ja/shu-shi-she-ding/07-page-size-and-margins.md) や [LaTeX のページレイアウトパラメータのビジュアルガイド](/latex/ja/xiang-xi-ji-shi/04-a-visual-guide-to-latex-s-page-layout-parameters.md) さらに情報を得ることができます。

両面文書では、 `book` クラスや、他のものでも `twoside` オプションを使用すると、この例では左ページと右ページを別々の図として作成します。プロジェクトを開くと、 `\documentclass[twoside]{article}`.

```latex
% レイアウトを可視化したい文書クラスを選択します: 必要なもののコメントを外し
% 他のものはコメントアウトしてください。
% \documentclass[a4paper]{article} %A4 用紙サイズに基づいて 1 ページを生成します
% \documentclass[a4paper]{report} %A4 用紙サイズに基づいて 1 ページを生成します
% \documentclass[twoside,a4paper]{report} %A4 用紙サイズに基づいて 2 ページを生成します
% \documentclass[a4paper]{book} %A4 用紙サイズに基づいて 2 ページを生成します
% \documentclass[a4paper]{letter} %A4 用紙サイズに基づいて 1 ページを生成します
% \documentclass[twoside, a4paper]{letter} %A4 用紙サイズに基づいて 2 ページを生成します
\documentclass[twoside,a4paper]{article} %A4 用紙サイズに基づいて 2 ページを生成します
\usepackage{layout}
\begin{document}
\layout
\end{document}
```

[このプロジェクトを開いて、標準的な LaTeX 文書クラスのレイアウトを確認してください。](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=document+class+layout\&snip=%25+Choose+the+document+class+whose+layout+you+want+to+visualize%3A+uncomment%0A%25+the+one+you+want%2C+comment+out+the+others.%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Barticle%7D+%25Produces+one+page+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Breport%7D+%25Produces+one+page+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Btwoside%2Ca4paper%5D%7Breport%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Bbook%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Ba4paper%5D%7Bletter%7D+%25Produces+one+page+%28based+on+A4+paper+size%29%0A%25+%5Cdocumentclass%5Btwoside%2C+a4paper%5D%7Bletter%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%5Cdocumentclass%5Btwoside%2Ca4paper%5D%7Barticle%7D+%25Produces+two+pages+%28based+on+A4+paper+size%29%0A%5Cusepackage%7Blayout%7D%0A%5Cbegin%7Bdocument%7D%0A%5Clayout%0A%5Cend%7Bdocument%7D)

この例では、次の画像に示すような図を生成します。下の画像は、この記事での見やすさのために切り抜き／編集されています。

![LaTeX 文書レイアウトを示す画像](/files/01d8ccf62d2326511b6f566ae0eda1ebb0da0e2f)

## さらに読む

* [`geometry` パッケージのドキュメント](https://ctan.org/pkg/geometry?lang=en)
* [LaTeX のページレイアウトパラメータのビジュアルガイド](/latex/ja/xiang-xi-ji-shi/04-a-visual-guide-to-latex-s-page-layout-parameters.md)
* [ページサイズと余白](/latex/ja/shu-shi-she-ding/07-page-size-and-margins.md)
* [脚注](/latex/ja/shu-shi-she-ding/14-footnotes.md)
* [欄外メモ](/latex/ja/shu-shi-she-ding/15-margin-notes.md)
* [ヘッダーとフッター](/latex/ja/shu-shi-she-ding/02-headers-and-footers.md)
* [セクションと章](/latex/ja/wen-shu-gou-zao/01-sections-and-chapters.md)
* [大規模プロジェクトでの管理](/latex/ja/wen-shu-gou-zao/07-management-in-a-large-project.md)
* [複数ファイルの LaTeX プロジェクト](/latex/ja/wen-shu-gou-zao/08-multi-file-latex-projects.md)
* [テキスト配置](/latex/ja/shu-shi-she-ding/06-text-alignment.md)
* [フォントサイズ、ファミリー、スタイル](/latex/ja/fonto/01-font-sizes-families-and-styles.md)
* [画像の挿入](/latex/ja/sononotopikku/27-inserting-images.md)
* [画像と表の配置](/latex/ja/to/02-positioning-images-and-tables.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ja/shu-shi-she-ding/08-single-sided-and-double-sided-documents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
