emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: Robert Klein <roklein@roklein.de>
Cc: Eric S Fraga <esflists@gmail.com>,
	org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: exporting to latex and docx not honouring carriage returns to tabbing
Date: Tue, 09 Oct 2018 12:06:23 +0100	[thread overview]
Message-ID: <87r2gz751s.fsf@skimble.plus.com> (raw)
In-Reply-To: <20181009082023.057dcc0b@lt70.mpip-mainz.mpg.de> (Robert Klein's message of "Tue, 9 Oct 2018 08:20:28 +0200")

[-- Attachment #1: Type: text/plain, Size: 2650 bytes --]

Robert Klein <roklein@roklein.de> writes:

> On Mon, 08 Oct 2018 16:54:39 +0100
> Eric S Fraga <esflists@gmail.com> wrote:
>
>> On Monday,  8 Oct 2018 at 10:56, Sharon Kimble wrote:
>> > My finished output in the pdf will have every line indented/tabbed
>> > to 4 spaces and have a carriage-return at the end of each
>> > paragraph, with no spacings in between paragraphs.
>> >
>> > I can get it how I want in org-mode, but when its exported to latex
>> > and converted into a pdf file, the whole section comes out in one
>> > block of text!  
>> 
>> Both LaTeX and org define new paragraphs by a blank line.   Spaces at
>> the start of a line only have meaning, in org, if the lines are part
>> of a list (and never mean anything in LaTeX).
>> 
>> I am not sure exactly what you want to achieve so it is difficult to
>> suggest anything.  Try separating your paragraphs with empty lines to
>> see how much closer this gets you to what you want.
>> 
>
> What Eric says.
>
> Then try to add to the org-file a line
>
> #+LaTeX_Header: \parskip=0pt
>
> so the spacing between paragraphs is 0.  Then add
>
> #+LaTeX_Header: \parindent=0pt
>
> so the first line of a paragraph isn't indented.
>
> If you want to get /all/ the text indented by “4 spaces”, put a line
>
> #+LaTeX: \setlength{\leftskip}{2em}
>
> at the top of your document.
>
>
> If you want only parts indented, put the line before the beginning of
> the part to be indented and put this line after it:
>
> #+LaTeX: \setlength{\leftskip}{0em}
>
> Does this help?

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 -

--8<---------------cut here---------------start------------->8---
#+LaTeX_Header: \parskip=0pt
#+LaTeX_Header: \parindent=2em
--8<---------------cut here---------------end--------------->8---

and I've found that having that parindent of 2em gives a very close
approximation of each paragraph beginning with four spaces, except for
the first paragraph in a new chapter. Weird, but true! Just part of what
my finished document has to look like, open any fiction book and you see
what its supposed to look like. When it works right, its beautiful, but
when its wrong, its a right mare!

Thank you very much, and now I've learnt how to do it, it'll make the
whole thing much easier.

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.4, fluxbox 1.3.7, emacs 25.3.4, org 9.1.14

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2018-10-09 11:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-08  9:56 exporting to latex and docx not honouring carriage returns to tabbing Sharon Kimble
2018-10-08 15:54 ` Eric S Fraga
2018-10-09  6:20   ` Robert Klein
2018-10-09 11:06     ` Sharon Kimble [this message]
2018-10-09 13:11       ` Eric S Fraga
2018-10-09 16:53         ` Sharon Kimble
2018-10-09 21:31           ` Tim Cross
2018-10-10 12:47             ` Eric S Fraga
2018-10-10 21:06               ` Tim Cross
2018-10-11 13:24             ` Sharon Kimble
2018-10-11 21:29               ` Tim Cross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r2gz751s.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=esflists@gmail.com \
    --cc=roklein@roklein.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).