Is it possible in LYX to change the margins for one page or one paragraph only ? I am trying to insert logos that need to be closer to the sides of page.
Thanks !
[Tex/LaTex] Lyx – change margins for one page or one paragraph
lyxmargins
lyxmargins
Is it possible in LYX to change the margins for one page or one paragraph only ? I am trying to insert logos that need to be closer to the sides of page.
Thanks !
Best Answer
This may or may not be suitable for your specific case. If it misses the mark, please describe in more detail what you want to achieve.
Document --> Settings --> LaTeX Preamble, add
Where you want the narrower margins to start, add an ERT with Ctrl + L, and write
in it. The first length extends the inside margin, the second extends the outside margin. If you use the unstarred version, i.e.
\begin{adjustwidth}{-2cm}{-2cm}
, they are the left and right margins, respectively.Step outside the ERT, add the logos, and whatever else should be there. In the screenshot below, I added the first image, then Insert --> Formatting --> Horizontal space --> Horizontal fill, then the second image.
Close the environment with a new ERT, containing