我尝试创建一个模拟笔记本的表格图表,但无法让它继续下一页
\documentclass[letterpaper,12pt,oneside]{book}%
\usepackage{mathpazo}
\usepackage[spanish,es-tabla]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{tikz}
\usepackage{tcolorbox}
\usetikzlibrary {shapes.symbols}
\tcbuselibrary{skins,breakable}
\usepackage[showframe=true, left=1.5cm, right=1.5cm, bindingoffset=1.5cm]{geometry}%
\begin{document}
\begin{tcolorbox}[breakable]
\begin{tikzpicture}
\node [signal,draw,signal to=nowhere,text=white,fill=blue!50, signal from=east] at (8,24.3) {Write book};
\draw[help lines,step=0.5cm] (0,0) grid +(16,24);
%\draw[->, decorate, decoration={snake}] (0,0) -- (0,16);
%\draw[help lines] (2,0) grid +(2,6);
\end{tikzpicture}
\end{tcolorbox}
\end{document}
另外,我还没能给你像 tikzpicture 上的蛇这样的装饰品
答案1
另外,你可以将网格定义为底层选项,并使用tcbclipinterior
环境进行裁剪。这样,框和网格就可以被破坏
\documentclass[letterpaper,12pt,oneside]{book}%
\usepackage{mathpazo}
\usepackage[spanish,es-tabla]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}%
\usepackage{amsfonts}%
\usepackage{amssymb}%
\usepackage{tikz}
\usepackage{tcolorbox}
\usetikzlibrary {shapes.symbols}
\tcbuselibrary{skins,breakable}
\usepackage[showframe=true, left=1.5cm, right=1.5cm, bindingoffset=1.5cm]{geometry}%
\usepackage{lipsum}
\begin{document}
\begin{tcolorbox}[%
enhanced,
% height fill,
breakable,
colback=white,
underlay={\begin{tcbclipinterior}
\draw[help lines,step=0.5cm, shift={(interior.north west)}] (interior.north west) grid (interior.south east);
\node [signal,draw,signal to=nowhere,text=white,fill=blue!50, signal from=east, anchor=north] (signal) at (interior.north) {Write book};
\end{tcbclipinterior}}]
\lipsum[1-8]
\end{tcolorbox}
\end{document}
答案2
TikZ 生成的图形不可破坏。为了正确放置信号,我使用了(current bounding box.north)
而不是坐标,这解决了这个问题。
\documentclass[letterpaper,12pt,oneside]{book}%
%\usepackage{mathpazo}
%\usepackage[spanish,es-tabla]{babel}
%\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
%\usepackage{amsmath}%
%\usepackage{amsfonts}%
%\usepackage{amssymb}%
\usepackage{tikz}
\usepackage{tcolorbox}
\usetikzlibrary {shapes.symbols}
\tcbuselibrary{skins,breakable}
\usepackage[showframe=true, left=1.5cm, right=1.5cm, bindingoffset=1.5cm]{geometry}%
\begin{document}
\begin{tcolorbox}[breakable]
\begin{tikzpicture}
\draw[help lines,step=0.5cm](0,0) grid (16,18.5);
\node [signal,draw,signal to=nowhere,text=white,fill=blue!50, signal from=east] at (current bounding box.north) {Write book};
%\draw[->, decorate, decoration={snake}] (0,0) -- (0,16);
%\draw[help lines] (2,0) grid +(2,6);
\end{tikzpicture}
\end{tcolorbox}
\end{document}