# Re: It is possible to get rid of these two lines of code automatically put in the preamble by LyX?

```If it doesn't give an error, I would not bother :-)-O

And, why don't you set the geometry in LyX and save it as Document Default?```
```
el

On 2016-08-30 10:58, CarLaTeX wrote:
>
>
> 2016-08-30 11:52 GMT+02:00 Dr Eberhard Lisse <nos...@lisse.na
> <mailto:nos...@lisse.na>>:
>
>     Carla,
>
>     why is this an issue?
>
>     el
>
>     On 2016-08-30 08:03, CarLaTeX wrote:
>     > I like LyX and find it very convenient but I would like to have more
>     > freedom when I set my preamble.
>     >
>     > I’ve managed to move all the packages that I need in a
>     preamble.tex file
>     > (then inputed in LyX preamble), so I can easily edit it inserting all
>     > the options that I like and put them in the order that I want.
>     >
>     > However, I can’t avoid LyX from putting these two lines of code,
>     in the
>     > automatic preamble:
>     >
>     > \pdfpageheight\paperheight
>     >
>     > \pdfpagewidth\paperwidth
>     >
>     > There’s a way to do it or is it impossible? (I'm using LyX 2.2.1).
>     >
>     > Attached the .lyx file and the .tex file optained when I export it in
>     > LaTeX (pdflateX).
>     >
>     > Thank you!
>     >
>     > Best regards,
>     >
>     > Carla
>
> I would like to put them after loading geometry (I hope to have
> understood what you're asking me). It gives to error, it's just to keep
> the code clear.
>
> Thank you!
>

--
Dr. Eberhard W. Lisse  \        / Obstetrician & Gynaecologist (Saar)
e...@lisse.na            / *     |   Telephone: +264 81 124 6733 (cell)
PO Box 8421             \     /
Bachbrecht, Namibia     ;____/
```