LaTeX 中的漫画书或图画小说风格面板

LaTeX 中的漫画书或图画小说风格面板

我听说 LaTeX 不一定适合制作面板。即使是两列也很难让文本对齐。我想画这样的东西:

---------------------------
|________________|________|
|________|________________|

使用适当尺寸的矩形。这是一个更好的例子。

我正在考虑尝试使用 Tikz 并使用他们的节点...我不知道这是否可行或者是否有更简单的方法。

这是我尝试过的。矩形没有正确对齐。

\begin{tikzpicture}[xshift=-0.5in]

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (0,0){ \begin{minipage} [t][3in]{3in}  $\int$  $\partial$.  \end{minipage}};

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (3.25in,0.25in) { \begin{minipage} [t][3in]{2in}  $\int$  $\partial$.  \end{minipage}};

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (0,3.25in) { \begin{minipage} [t][3in]{3in}  $\int$  $\partial$.  \end{minipage}};

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (3.25in,3.25in) { \begin{minipage} [t][3in]{2in}  $\int$  $\partial$.  \end{minipage}};

\end{tikzpicture}

答案1

以下是一个简单使用 的示例flowfram。该包还支持非矩形框架,但您无法让文本自动流入和流出此类框架。有关详细信息,请参阅文档。

\documentclass[a4paper]{article}
\usepackage{xcolor}
\usepackage{flowfram}
\pagestyle{empty}
\newflowframe{.475\textwidth}{.3\textheight}{0pt}{.7\textheight}[topleftsquare]
\newflowframe{.475\textwidth}{.3\textheight}{.525\textwidth}{.7\textheight}[toprightsquare]
\newflowframe{\textwidth}{.3\textheight}{0pt}{.35\textheight}[middlerect]
\newflowframe{.475\textwidth}{.3\textheight}{0pt}{0pt}[leftsquare]
\newflowframe{.475\textwidth}{.3\textheight}{.525\textwidth}{0pt}[rightsquare]
\setallflowframes{border=plain, bordercolor=blue!50!black, backcolor=blue!25, textcolor=blue!25!black}
\setflowframe*{topleftsquare}{backcolor=green!25, bordercolor=green!50!black, textcolor=green!25!black}
\begin{document}
This will go in the first flow frame.
If I keep typing, I'll eventually get to the next one.
Instead, I could\newpage
break the frame early, moving to the next frame at once.
\end{document}

文本流经 5 个框架

答案2

这是一个使用 TiKZ 节点的相当笨拙的解决方案

\begin{tikzpicture}[xshift=-0.5in]

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (0,0) { \begin{minipage} [t][2.5in]{3in}  $\int$ this is 
a test of the emergency $\partial$.  \end{minipage}};

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (3.25in,0in) { \begin{minipage} [t][2.5in]{2in}  $\int$ this is 
a test of the emergency $\partial$.  \end{minipage}};

\node[draw,thick,rectangle,fill=blue!20, text width=6.25in, align=left] at (1.625in,2.75in) { \begin{minipage} [t][2.5in]{6in}  $\int$ this is 
a test of the emergency $\partial$.  \end{minipage}};

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (0,5.5in) { \begin{minipage} [t][2.5in]{3in}  $\int$ this is 
a test of the emergency $\partial$.  \end{minipage}};

\node[draw,thick,rectangle,fill=blue!20, text width=3in, align=left] at (3.25in,5.5in) { \begin{minipage} [t][2.5in]{2in}  $\int$ this is 
a test of the emergency $\partial$.  \end{minipage}};

\end{tikzpicture}

相关内容