Philip-Scott / Notes-up

Markdown notes editor & manager
GNU General Public License v2.0
620 stars 47 forks source link

@page ignored when exporting to pdf #352

Open Bronislas opened 4 years ago

Bronislas commented 4 years ago

Hi, I would like to change the margins of my notes when exported to pdf. I have modified the elementary.css style but I can't find a way to change the margins in all the pages.

If I specify margins for the body element, like this :

body {
   margin: 4cm 2cm;
}

the top and bottom-margins are only specified for the first and the last pages of the pdf document.

I know there is the @page element, but if I do this :

@page {
   margin: 4cm 2cm;
}

It seems to be ignored.

I eventually tried to modify the geometry in a YAML header, but still without success though.