
私は、各図の中央の上下にスペースを配置し、
\documentclass{book}
\usepackage{blindtext}
\usepackage{tikz}
\usepackage{tkz-euclide}
\newenvironment{proposition}
{\begin{center}\em}
{\end{center}}
%\newenvironment{diagram}
%\vspace*{\fill}
%{\begin{center}\em}
%{\end{center}}
%\vspace*{\fill}
\begin{document}
\begin{proposition}
On a given finite right line (AB) to construct an equilateral triangle.
\end{proposition}
%\begin{diagram}
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzDefPoint(1.25,0){B}
\tkzDrawSegment(A,B)
\tkzLabelPoint[left](A){$A$}
\tkzLabelPoint[right](B){$B$}
\end{tikzpicture}
%\end{diagram]
\end{document}
環境なしでも問題なくレンダリングされるため、全体的に間違った方法で作業していると思います。ヒントはありますか? 他に例が見つかりません。コードを台無しにする部分を非表示にしました。
答え1
中央揃えにしtikzpicture
て前後にスペースを追加するには、次のコードを試してください。
\documentclass{book}
\usepackage{blindtext}
\usepackage{tikz}
\usepackage{tkz-euclide}
\newenvironment{proposition}
{\begin{center}\em}
{\end{center}}
\newenvironment{diagram}
{\begin{center}\vspace*{10pt}\begin{tikzpicture}}
{\end{tikzpicture}\vspace*{-5pt}\end{center}}
\begin{document}
\begin{proposition}
On a given finite right line (AB) to construct an equilateral triangle.
\end{proposition}
\begin{diagram}
\tkzDefPoint(0,0){A}
\tkzDefPoint(1.25,0){B}
\tkzDrawSegment(A,B)
\tkzLabelPoint[left](A){$A$}
\tkzLabelPoint[right](B){$B$}
\end{diagram}
Some text.
\end{document}