I'd a problem to control the margins with Lyx 1.2.0 some days ago (and a quick and dirty(?)fix for it):
If you do use A4 paper as your default papersize and you decide to make own margin settings in Layout->Document then package geometry will be called in the tex file. But those values you do have set manually will not be used in any output format, i.e. dvi, pdf or ps. They will be used by latex only if package a4 is included before package geometry! Until 1.1.6fix4 the field 'Margin:Specials' was not be reset to 'None' if you've checked geometry. Therefore in case you've tried 'small margins' before then package a4 was included before geometry and layout control was working as expected. In 1.2.0 that field will be reset (that's correct) but package a4 then is missing. I've attached a patch a4.diff for buffer.C which will correct that 'bug'. I hope anyone can check that for other papersize packages! Claus Please do answer directly using my email address because I'm not described in lyx-devel.
a4.diff
Description: Binary data
