LoginSignup
0
0

はじめに

先日(2023年1月7日),$\LaTeX$で文書を作成していると,tcolorboxでページを跨ぐとその後の文章が消えてしまうという事態が起きました.奥村晴彦先生のQ&Aページなどを参考に,tcolorboxの更新もやってみたのですが上手く行かず、、、
色々調べてみた結果,解決法が見つかったので,もし同じことで困った方がいれば参考にしてみてください.

tcolorboxでのページ跨ぎ

結論:tcolorboxコマンドに[enhanced,breakable=true]を追記(注:プリアンブルに\tcbuselibrary{breakable}と書く必要あり)することで解決します.

tcolorboxコマンド(ページ跨ぎ対応ver.)
\documentclass[dvipdfmx]{お好きな文書クラス}

%プリアンブル
\usepackage{tcolorbox}
\tcbuselibrary{breakable}

\begin{document}

%本文
\begin{tcolorbox}[enhanced,breakable=true]
ページを跨ぐような長い文章
\end{tcolorbox}

\end{document}

tcolorboxについてはこちら

参考文献

  • 奥村晴彦,黒木裕介.[改訂第8版]$\LaTeX2\varepsilon$美文字作成入門.技術評論社,2020.
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0