Разрывная рамка с текстом в одну колонку и изображением в углу

Разрывная рамка с текстом в одну колонку и изображением в углу

Я хотел бы создать макет с рамкой, с изображением в левом верхнем углу и текстом справа, в столбце. В настоящее время я использую tcolorbox (для разрываемых рамок) с табу внутри. Использование табу кажется слишком тяжелым для этой задачи, плюс оно делает рамку неразрывной. Как бы вы решили это элегантным способом? Использование таких вещей \llap, как \hangindentи т. д. приемлемо.

введите описание изображения здесь

решение1

Вы можете создать breakabletcolorbox с большим левым полем и использовать его overlayдля добавления рисунка, когда захотите:

\documentclass{article}
\usepackage[most]{tcolorbox}
\usepackage{lmodern}
\usepackage{lipsum}

\begin{document}
\begin{tcolorbox}[enhanced, breakable, left=3cm, notitle, 
         overlay first={\node[anchor=north west, outer sep=2mm] 
               at (frame.north west) {\includegraphics[width=2.5cm]{example-image}};}]
\lipsum[1-5]
\end{tcolorbox}
\end{document}

введите описание изображения здесь

решение2

  \documentclass[a4paper,12pt]{article}

  \pagestyle{empty}                 
  \setlength{\parindent}{0pt}           
  \usepackage{flowfram}                                 % column layout
  \usepackage{tikz}

  % frame setup (flowfram package)
  % left frame
  \newflowframe{0.2\textwidth}{\textheight}{0pt}{0pt}[left]
      \newlength{\LeftMainSep}
      \setlength{\LeftMainSep}{0.2\textwidth}
      \addtolength{\LeftMainSep}{1\columnsep}

  % small static frame for the vertical line
  \newstaticframe{1.5pt}{\textheight}{\LeftMainSep}{0pt}

  % right frame
  \addtolength{\LeftMainSep}{1.5pt}
  \addtolength{\LeftMainSep}{1\columnsep}
  \newflowframe{0.7\textwidth}{\textheight}{\LeftMainSep}{0pt}[main01]


  \begin{document}

  % Left frame
  %%%%%%%%%%%%%%%%%%%%
  \begin{figure}
      \hfill
      \includegraphics[width=0.6\columnwidth]{duck1.jpg}
      \vspace{-7cm}
  \end{figure}

  \vspace*{1mm}
  \framebreak


  % Right frame
  %%%%%%%%%%%%%%%%%%%%
  3 May. Bistritz.-Left Munich at 8:35 P.M., on 1st May, arriving at   Vienna   early next morning; should have arrive at 6:46, but train was an hour late. Buda-Pesth seems a wonderful place, from the glimpse which I got of it from the train and the little I could walk through the streets. I feared to go very far from the station, as we had arrived late and would start as near the correct time as possible. I found my smattering of German very useful here, indeed, I don't know how I should be able to get on without it.
I was not able to light on any map or work giving the exact locality of the Castle Dracula, as there are no maps of this country as yet to compare with our own Ordance Survey Maps; but I found that Bistritz, the post town named by Count Dracula, is fairly well-known place. I shall enter here some of my notes, as they may refresh my memory when I talk over my travels with Mina.
It was on the dark side of twilight when we got to Bistritz, which is very interesting old place.

  \end{document}

введите описание изображения здесь

Связанный контент