Skip to content

page margin breaking or overlapping if figure is too big #8

@PatrickGraef

Description

@PatrickGraef

When i try to wrap text arround a figure that is wider than 200pt it breaks the margins of the page.

#import "@preview/wrap-it:0.1.1": *

#set page(
  paper: "a4",
  margin: (left: 3cm, right: 2cm, top: 2.5cm, bottom: 2.5cm),
)
#set par(justify: true, leading: 14pt)

#let test = rect(
  fill: blue, 
  width: 250pt,
  height: 200pt
  )

#wrap-content(
  test, 
  [
  #lorem(90)
  ],
  align: top + right,
  )

When i align the figure to the left it overlapps with the text.

Image

#wrap-content(
  test, 
  [
  #lorem(90)
  ],
  align: top + right,
  )

And when i add columns it also breaks the margins of the page.

Image

#wrap-content(
  test, 
  [
  #lorem(90)
  ],
  align: top + right,
  columns: (50%, 50%)
  )

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions