[Tex/LaTex] LyX: set width of image to 100% of page width

graphicshorizontal alignmentlyxmargins

When I insert an image into LyX and set it to 100% page width, its left side is not at the farthest most edge of the left page. Instead it starts where the text margin is, and since it's too large to display, it cuts off on the right. Is there a way to set a different margin for figures than that of the text?

Best Answer

The horizontal image shift is due to the paragraph indent if you don't place the image inside a figure environment. To avoid this without inserting a figure environment, insert an ERT (or Ctrl+L) just before the image that contains \noindent. This removes the paragraph indent so that the image will fit within the text block.