Warning: Constant MULTISITE already defined in /home/pbmalartu/public_html/wp-config.php on line 107

Warning: Constant SUBDOMAIN_INSTALL already defined in /home/pbmalartu/public_html/wp-config.php on line 108

Warning: Constant DOMAIN_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 109

Warning: Constant PATH_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 110

Warning: Constant SITE_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 111

Warning: Constant BLOG_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 112

Warning: The magic method Pressbooks\Book::__wakeup() must have public visibility in /home/pbmalartu/public_html/wp-content/plugins/pressbooks/inc/class-book.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758

Warning: Cannot modify header information - headers already sent by (output started at /home/pbmalartu/public_html/wp-config.php:107) in /home/pbmalartu/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1758
{"id":236,"date":"2015-11-16T22:02:32","date_gmt":"2015-11-16T22:02:32","guid":{"rendered":"https:\/\/pb.malartu.org\/pbuserguide\/chapter\/changing-page-margins-in-pdf-exports\/"},"modified":"2018-09-20T17:11:06","modified_gmt":"2018-09-20T17:11:06","slug":"changing-page-margins-in-pdf-exports","status":"publish","type":"chapter","link":"https:\/\/pb.malartu.org\/pbuserguide\/chapter\/changing-page-margins-in-pdf-exports\/","title":{"rendered":"Changing Page Margins in PDF Exports"},"content":{"raw":"You might want the page margins in your book to be smaller, or larger. You can adjust this using the Custom CSS feature.<\/a>\u00a0(Please read this first!).\n

Changing Margins (Left & Right Pages are the Same)<\/h2>\nIn your Custom CSS,\u00a0PDF version, add the following to define your page margins. For instance, if you want to make your top and bottom margins 2in, and your side margins 1.5in, you would add the following code:\n
\n
\n@page {\n  margin-top: 2in !important;\n  margin-bottom: 2in !important;\n  margin-left: 1.5in !important;\n  margin-right: 1.5in !important; \n}<\/code><\/pre>\n<\/div>\nNOTE: the !important<\/code> is ... important. It makes sure your settings override what Pressbooks sets as page size.\n

Changing Margins (Left & Right Pages are Different)<\/h2>\nYou may want your left and right pages (recto\/verso) to have different margins, so that for instance the outside margins<\/strong> are wide, and the inside margins<\/strong> are tighter. In this case you would add the following:\n
\n
\n@page:left {\n  margin-top: 2in !important;\n  margin-bottom: 2in !important;\n  margin-left: 3.5in !important;\n  margin-right: 1.5in !important; \n}\n\n@page:right {\n  margin-top: 2in !important;\n  margin-bottom: 2in !important;\n  margin-left: 1.5in !important;\n  margin-right: 3.5in !important; \n}\n\n<\/code><\/pre>\n<\/div>\n
NOTE: We have recently introduced a new method for setting custom margins\u00a0in select themes. For more, see our guide chapter<\/a> on the changes.<\/div>","rendered":"

You might want the page margins in your book to be smaller, or larger. You can adjust this using the Custom CSS feature.<\/a>\u00a0(Please read this first!).<\/p>\n

Changing Margins (Left & Right Pages are the Same)<\/h2>\n

In your Custom CSS,\u00a0PDF version, add the following to define your page margins. For instance, if you want to make your top and bottom margins 2in, and your side margins 1.5in, you would add the following code:<\/p>\n

\n
\n@page {\n  margin-top: 2in !important;\n  margin-bottom: 2in !important;\n  margin-left: 1.5in !important;\n  margin-right: 1.5in !important; \n}<\/code><\/pre>\n<\/div>\n

NOTE: the !important<\/code> is … important. It makes sure your settings override what Pressbooks sets as page size.<\/p>\n

Changing Margins (Left & Right Pages are Different)<\/h2>\n

You may want your left and right pages (recto\/verso) to have different margins, so that for instance the outside margins<\/strong> are wide, and the inside margins<\/strong> are tighter. In this case you would add the following:<\/p>\n

\n
\n@page:left {\n  margin-top: 2in !important;\n  margin-bottom: 2in !important;\n  margin-left: 3.5in !important;\n  margin-right: 1.5in !important; \n}\n\n@page:right {\n  margin-top: 2in !important;\n  margin-bottom: 2in !important;\n  margin-left: 1.5in !important;\n  margin-right: 3.5in !important; \n}\n\n<\/code><\/pre>\n<\/div>\n
NOTE: We have recently introduced a new method for setting custom margins\u00a0in select themes. For more, see our guide chapter<\/a> on the changes.<\/div>\n","protected":false},"author":1,"menu_order":11,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":"cc-by"},"chapter-type":[],"contributor":[],"license":[50],"part":208,"_links":{"self":[{"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/pressbooks\/v2\/chapters\/236"}],"collection":[{"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/pressbooks\/v2\/chapters\/236\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/pressbooks\/v2\/chapters\/236\/revisions\/237"}],"part":[{"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/pressbooks\/v2\/parts\/208"}],"metadata":[{"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/pressbooks\/v2\/chapters\/236\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/pressbooks\/v2\/chapter-type?post=236"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/wp\/v2\/contributor?post=236"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pb.malartu.org\/pbuserguide\/wp-json\/wp\/v2\/license?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}