From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: exporting to latex and docx not honouring carriage returns to tabbing Date: Thu, 11 Oct 2018 14:24:29 +0100 Message-ID: <87r2gw4nw2.fsf@skimble.plus.com> References: <875zycyd5z.fsf@skimble.plus.com> <20181009082023.057dcc0b@lt70.mpip-mainz.mpg.de> <87r2gz751s.fsf@skimble.plus.com> <87murn6z8o.fsf@gmail.com> <87d0sj6oyj.fsf@skimble.plus.com> <87va6a4xjq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAaxR-0003jx-4W for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 09:24:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAaxM-0005io-3Z for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 09:24:53 -0400 Received: from avasout05.plus.net ([84.93.230.250]:52063) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gAaxL-0005Ny-P6 for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 09:24:48 -0400 In-Reply-To: <87va6a4xjq.fsf@gmail.com> (Tim Cross's message of "Wed, 10 Oct 2018 08:31:21 +1100") 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: Tim Cross Cc: org-mode-email , Robert Klein --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Tim Cross writes: > Sharon Kimble writes: > >> Eric S Fraga writes: >> >>> On Tuesday, 9 Oct 2018 at 12:06, Sharon Kimble wrote: >>>> Brilliant, thanks very much Robert, you've saved the project as I didn= 't >>>> fancy having to work with the document in LibreOffice. These are the >>>> settings that I've finally gone with - >>>> >>>> #+LaTeX_Header: \parskip=3D0pt >>>> #+LaTeX_Header: \parindent=3D2em >>> >>> This is close to the default behaviour for the LaTeX article class. Di= d you have something setting these to different values? >> >> Yes, I have a custom class called 'my-report' which has no packages >> outlined in it, here it is. >> >> --8<---------------cut here---------------start------------->8--- >> #+begin_src emacs-lisp >> (with-eval-after-load 'ox-latex >> (add-to-list 'org-latex-classes >> '("my-report" "\\documentclass{report} >> [NO-DEFAULT-PACKAGES]" >> ;;[EXTRA]" >> ;;("\\part{%s}" . "\\part*{%s}") >> ("\\chapter{%s}" . "\\chapter*{%s}") >> ("\\section{%s}" . "\\section*{%s}") >> ("\\subsection{%s}" . "\\subsection*{%s}") >> ("\\subsubsection{%s}" . "\\subsubsection*{%s}") >> ("\\paragraph{%s}" . "\\paragraph*{%s}") >> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) >> (custom-set-variables '(org-export-allow-bind-keywords t)) >> #+end_src >> [2016-04-14 Thu 08:47] >> [2016-09-09 Fri 00:54] >> [2017-01-17 Tue 13:17] >> http://orgmode.org/worg/org-tutorials/org-latex-export.html >> --8<---------------cut here---------------end--------------->8--- >> >> >>>> except for the first paragraph in a new chapter. >>> >>> Yes, the first paragraph after any heading will not be indented. That = is also default and is actually what most books use. >> >> Yes, I'm learning, and checking with the book that I'm currently reading= :) >> >> Thanks >> Sharon. > > While Eric and Robert have provided some really useful tips on some > ad-hoc tweaks you can make to latex/pdf output, I would also encourage > you to look at the many other document styles. As Eric points out, the > tweaks look to be changing the 'report' class to be more like the > 'article' class. Have you tried just using the article class instead of > report? Note also there is a 'book' class as well, which may well > produce something more in line with what your after if you are wanting > output which looks more like a published book. Then there are all the > other 'publishers' styles to consider as well as other style packages > like KomaScript, HiTec etc.=20 > > While these tweaks are often very useful, they really should be used > sparingly as they can have unforeseen consequences, especially when you > begin to use other packages. It is important to remember that some org > features rely on some of these additional packages to produce good > export results. Once you start 'tweaking' the output, it can quickly > spiral out of control. You fix one thing only to create two new issues. > > One of the most common mistakes I see when people start using latex as > the basis for document generation is ad hoc tweaking of the style. This > is an unfortunate consequence of most of us being exposed to traditional > word processors such as MS Word or Libre Office. Producing good quality > documents is a very complex topic and Donald Knuth spent a lot of time > researching all the aspects of type setting and layout to produce a > consistently good and reliable system with TeX. Things have evolved and > we have new requirements (such as on-line documents which are read > electronically and not printed in hard copy). Additional packages have > been added to address these types of enhancements.=20 > > The real trick with TeX/LaTeX is to work with the system and not against > it. If you find it necessary to constantly tweak indent, paragraph > spacing, line height, line breaks, etc, then you are probably using the > wrong document style. Try other styles and look for one which meets the > majority of your requirements and only then consider tweaking it. As you > will probably need more than one, you will likely end up with a number > of custom definitions in addition to 'my-report'. I have around 5 base > ones as well as a handful of ones specific to particular jobs/clients > (e.g. include logos, custom headers/footers, title pages etc). > > The bad news is that this will probably be somewhat time consuming > initially (there is a huge number of document styles and packages out > there). The good news is that once you have the basic definitions, you > probably won't have to think about this again for ages (my definitions > have been in place for years now). > > good luck > > Tim Thanks Tim, but I've been using Linux since sometime in 2003, and have moved on from writing various things in 'pure' latex (meaning that it wasn't exported into latex as it was already there!) to my current state of writing in org-mode and exporting to latex. I've used my 'my-report' class for the last 2 years at least with minimal problems, and am now achieving layouts comparable with any fiction book you care to read off the bookshop shelf now. I also install and use Tex-live into my \home every year as it is released, and use a home-based mediawiki to develop articles and layouts for mediawiki on the web. So to summarise, I have a lot of history in linux and its available programs. With regard to 'korma' that you and Eric both mentioned, it is something that I've looked at, but only a very quick glance and play with, so I don't know much about it. When, and if, I get time it is on my list of things to try and investigate and learn more about. I may end up using it in a book, I don't know yet. The first distro that I used was Red Hat, and I bought a copy as that was the only way in which you could get hold of it, and a couple of days before I was going to install it, Red Hat made it free to download and use! And that did not help my mood at all! But I've been trying to find what year that was, can anyone tell me please, as I can't find a date for it? Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk Debian 9.4, fluxbox 1.3.7, emacs 25.3.4, org 9.1.14 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlu/Tw4ACgkQNoGAGQr4 g1v/dRAAvsAT5qoiCkZ22uiq9KSVBO+/ZENA7FyxC8FyclbP3mnmevjoTCMYZc3O oNxuoVrER7Iy4yBq7U5NuEIzmW+fqbrn+xP4VftuxOlSsR9hoJAtMD4kFb12lF59 4AU0o+xk47SWaZW2dW9AziiIU3G/RzdWPtTIzF76w7Y8gyHNF0ZUp1+mL1AGI7Dq /lBKVS0nNnN7uUXH6Hy7m2dp1FpbPE0goPF7XN/fCf0OVS/kz8eJ9CPAoOtEdxnu TK9g8zCsWaqvOUodVttI4GWE0MYWXW5EIsVWCUfDkKzfA0eniJGD7sHDObU9/GNK scV1JfE96i4gtHBji1XaqgZcsVl13e5mIW3WnKI+bQ4Egptli9wsMlidV1YwcEBU xDR7y8oMNDDKHWeNTiqOE2phzh9gDgK/T4P0kaIul5OYKU34KCUE8Y7OyLSt5xqn e8605WWvO+0MKmzdDBrwhJpG9SLLJ0BTtZ2VakZPKXSXgQUVuTSy+VUByaYSTNBL D6Rpz0NTASiqkG6hf095cQJ2b8G93C0WO9uc9EdJTTtiA294teaxDVKfQuryBdDB Ta114PbDfXMc583tJZR507zi6DatB2Sy0IvmOhbUkIwZ4w4InObpL88UK7tOzlbf jGso2EceBd9QJXAiIp4uHRB7+YeifFCOp4Cc9H6L0c+Bee7ktVQ= =liG5 -----END PGP SIGNATURE----- --=-=-=--