{"id":5,"date":"2022-02-16T20:00:00","date_gmt":"2022-02-16T20:00:00","guid":{"rendered":"https:\/\/integrations.pressbooks.network\/testlatex\/?p=5"},"modified":"2022-08-30T14:50:05","modified_gmt":"2022-08-30T14:50:05","slug":"chapter-1","status":"web-only","type":"chapter","link":"https:\/\/integrations.pressbooks.network\/testlatex\/chapter\/chapter-1\/","title":{"raw":"Chapter 1","rendered":"Chapter 1"},"content":{"raw":"Here's a regular in-line equation [latex]\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} [\/latex]\r\n\r\nHere's the way they had a centred equation (not using HTML) on its own line. This is ideal, but it isn't supported in PDF exports:\r\n\\begin{equation}\r\n\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb1}\r\n\\end{equation}\r\n\r\nHere's the same equation centred with HTML in a styled <code>&lt;p&gt;<\/code> tag with font-size 110% (PDF-compatible):\r\n<p style=\"text-align: center; font-size: 110%;\">[latex]\r\n\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb2}\r\n[\/latex]<\/p>\r\n\r\nHere's the same equation centred with HTML in a styled <code>&lt;p&gt;<\/code> tag with font-size 113% (PDF-compatible):\r\n<p style=\"text-align: center; font-size: 113%;\">[latex]\r\n\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb3}\r\n[\/latex]<\/p>\r\n\r\nNow in a styled <code>&lt;p&gt;<\/code> tag with \\large LaTeX command (PDF-compatible):\r\n<p style=\"text-align: center;\">[latex]\\large \\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb4}[\/latex]<\/p>\r\n\r\nFor reference, here's an equation that is centred with HTML, PDF-compatible, but not specifying size -- it was coming out smaller:\r\n<p style=\"text-align: center;\">[latex]\r\n\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb5}\r\n[\/latex]<\/p>","rendered":"<p>Here&#8217;s a regular in-line equation [latex]\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12}[\/latex]<\/p>\n<p>Here&#8217;s the way they had a centred equation (not using HTML) on its own line. This is ideal, but it isn&#8217;t supported in PDF exports:<br \/>\n\\begin{equation}<br \/>\n\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb1}<br \/>\n\\end{equation}<\/p>\n<p>Here&#8217;s the same equation centred with HTML in a styled <code>&lt;p&gt;<\/code> tag with font-size 110% (PDF-compatible):<\/p>\n<p style=\"text-align: center; font-size: 110%;\">[latex]\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb2}[\/latex]<\/p>\n<p>Here&#8217;s the same equation centred with HTML in a styled <code>&lt;p&gt;<\/code> tag with font-size 113% (PDF-compatible):<\/p>\n<p style=\"text-align: center; font-size: 113%;\">[latex]\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb3}[\/latex]<\/p>\n<p>Now in a styled <code>&lt;p&gt;<\/code> tag with \\large LaTeX command (PDF-compatible):<\/p>\n<p style=\"text-align: center;\">[latex]\\large \\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb4}[\/latex]<\/p>\n<p>For reference, here&#8217;s an equation that is centred with HTML, PDF-compatible, but not specifying size &#8212; it was coming out smaller:<\/p>\n<p style=\"text-align: center;\">[latex]\\vec F_{12} = \\frac{1}{{4\\pi \\varepsilon _0 }}\\frac{{q_1 q_2}}{{r_{12}^2 }}\\hat r_{12} \\label{Coulomb5}[\/latex]<\/p>\n","protected":false},"author":291,"menu_order":1,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[48],"contributor":[],"license":[],"class_list":["post-5","chapter","type-chapter","status-web-only","hentry","chapter-type-standard"],"part":3,"_links":{"self":[{"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/pressbooks\/v2\/chapters\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/wp\/v2\/users\/291"}],"version-history":[{"count":32,"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/pressbooks\/v2\/chapters\/5\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/pressbooks\/v2\/chapters\/5\/revisions\/77"}],"part":[{"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/pressbooks\/v2\/chapters\/5\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/pressbooks\/v2\/chapter-type?post=5"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/wp\/v2\/contributor?post=5"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/integrations.pressbooks.network\/testlatex\/wp-json\/wp\/v2\/license?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}