From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: what settings would make original export to pdf as good as pandoc conversion? Date: Mon, 19 Mar 2018 09:52:52 +0000 Message-ID: <87370ws87f.fsf@delle7240.chemeng.ucl.ac.uk> References: <87y3jbara4.fsf@gmail.com> <87h8pxo0xf.fsf@gmail.com> <87fu59u585.fsf@gmail.com> <87tvtox0ag.fsf@gmail.com> <874lllvddn.fsf@ucl.ac.uk> <871sgoo2ya.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exrTQ-0007Ej-MP for emacs-orgmode@gnu.org; Mon, 19 Mar 2018 05:53:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exrTN-00039H-L8 for emacs-orgmode@gnu.org; Mon, 19 Mar 2018 05:53:00 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:45592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exrTN-00038r-D9 for emacs-orgmode@gnu.org; Mon, 19 Mar 2018 05:52:57 -0400 Received: by mail-wr0-x230.google.com with SMTP id h2so17844204wre.12 for ; Mon, 19 Mar 2018 02:52:57 -0700 (PDT) In-Reply-To: (Samuel Wales's message of "Sun, 18 Mar 2018 21:41:29 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Samuel Wales Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sunday, 18 Mar 2018 at 21:41, Samuel Wales wrote: > On 3/13/18, Eric S Fraga wrote: >> Could you post a minimal example that illustrates this? > > here is the minimal example. [btw, it turns out that pandoc erros > now, so i have to either get your direct export code to work, or fix > pandoc's export.] Couple of things: 1. Start your document with a top level heading, i.e. single * heading. 2. Remove any whitespace before the \[...] entries in your org-latex-classes setting. For instance, this seems to work fine for me although obviously with no real content it is difficult to see the settings taking effect: * NEXTKA fixing pdf to have better paragraphs SCHEDULED: <2018-03-21 Wed> #+begin_src emacs-lisp (add-to-list 'org-latex-classes '("article" " \\documentclass{scrartcl} \[DEFAULT-PACKAGES] \[PACKAGES] \[EXTRA] \\setlength{\\parindent}{0pt} \\setlength{\\parskip}{6pt} " =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0("\\section{%s}" . "\\section*{%s}") =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0("\\subsection{%s}" . "\\subsection*{%s}") =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0("\\subsubsection{%s}" . "\\subsubsection*{%s}") =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0("\\paragraph{%s}" . "\\paragraph*{%s}") =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) #+end_src =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.7-475-g3ffc7d --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWq+IdAAKCRDIkZPY//z2 fVe3AKCYMFRtw3XHKqu6P0SdYHRO7RPZGQCfe2/cKGw13ea1xxKEfP9kr9ohX3s= =J4er -----END PGP SIGNATURE----- --=-=-=--