From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/19283 Path: news.gmane.org!.POSTED!not-for-mail From: James AUSTIN Newsgroups: gmane.text.pandoc Subject: Re: Pandoc not maintaining newlines from .txt file to Word file Date: Thu, 18 Jan 2018 20:22:15 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_4915920A-C81D-4551-BB2F-9F1E509A1DF8" X-Trace: blaine.gmane.org 1516306838 3643 195.159.176.226 (18 Jan 2018 20:20:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 20:20:38 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCI47TN25MOBB6UDQTJQKGQEKLMESWI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 18 21:20:33 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-lf0-f60.google.com ([209.85.215.60]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecGfX-00080d-0G for gtp-pandoc-discuss@m.gmane.org; Thu, 18 Jan 2018 21:20:15 +0100 Original-Received: by mail-lf0-f60.google.com with SMTP id r27sf5775747lfi.11 for ; Thu, 18 Jan 2018 12:22:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1516306939; cv=pass; d=google.com; s=arc-20160816; b=YGtiI9Gmmzhk1e8faX85kl8eYwNCuVzLxCppjrCPLffVqk4gcYM9tUnUrBr6pEpcgt fMbqjMgTrwedIyYEcu9djiQlG3eLVlCRLFZ3K6wFsf2Bcs6zCIWLSogRDYmDvgPjxyqX +BfnkUaa0gZ8TUIiq88LhriZ45vPNv4oidFJuTLQtEJ0F9mURDxckgdHPxu4hVQuyqq3 0rEViugIVuobbU3vtfWHs0ErCauzkg0UEYoGTMKC1Fai84VA/L+/78eMKOq2GT0WClX2 hGeM/8GEy6+XPgmVRcU7DBYH5TSkryix+eBT1nNFLgp+XvtxWgl8OnJvPM1BmCIAsovh VK6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:message-id:in-reply-to:to :references:date:subject:mime-version:from :arc-authentication-results:arc-message-signature:sender :dkim-signature:dkim-signature:arc-authentication-results; bh=pD3aSjW/ZGiyQpRtgGRVmWcFdrW4O7qktrCYLt3ThmU=; b=wOTgo7PJgDUnf/Sq3qv8c+6lIOpmNHK8SapUyexsnGzxH1kHaZhzTedPTebAjcz6gA 75qP5pu8xcSjJKdVAZ1xR/ByL3hM8PNKHQ7uE6x6fqdndYZ0yv1z8uEYekigaanVxFEw SFuwZkTfHqAGM9gKwftFR8iCy/d/h5ON3e7ouM9uoeY0+Sivn9Q73cvUWnICi7SJBL1m 0aXW+9vWvkWtpUw3O/HAiF+2FVdkVRDSrLwaCgRchM+wzbi0mO5iXgR5ho7vDxI4XRJ3 C4rkoC42upt11j6JVz6YfjtyhlvjBm0ONIPmRLYMW+tDf1qNaNAbvogqEGLXRUHH6R4W 0XNQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Rmal8LEz; spf=pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c09::22f as permitted sender) smtp.mailfrom=james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:mime-version:subject:date:references:to:in-reply-to :message-id:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=pD3aSjW/ZGiyQpRtgGRVmWcFdrW4O7qktrCYLt3ThmU=; b=o9Ev1x1p0osK9j5qqEaQGoeNxZp0anbdZO1/YF1TQoJmf2AvXCiEs+s2yzoG9qp3D5 kzduh+hHz9IEmFhrHgrRFeloDr9vEeaHQY1wnmjr9wkHFUl7eo1W6rOh/fJMxwON5isP F/odtSffG041L+AtVjWXqx1NRfPK8E1Yz9ZZbZrs9XPhUNSdgsdpGIZ7rHP0jMjsBd12 H22Oekb1ylIO6YwQ3MKfh1CtB0jvYsJFECJ4ufeyARycRv7ps7Gdof2B7BUHVoMJ5761 J3HcvfUBSO/20caLuHDcuLROLZE5HyyC0zHNou2lz2H35Rk0hQ1P6MdgD5BCNMYJj9kY 2OtQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=pD3aSjW/ZGiyQpRtgGRVmWcFdrW4O7qktrCYLt3ThmU=; b=E38Pnwko5Jrpw7Q5zFtpWJ32LWPJVVlBu8nfqMSPbYBdYxKpbtUVY7yYDMo/HDtRW+ HhkdVVT+0B+0t0qvCcXffWSpSpAAoN7JRIrjj3mRPmjYtgQFw+/qTmoNDXUODWokVWoM teVl4P7N+hCnmINFrdVAalK/gwp7rKey+1EDzSUKsgc41e1dP7Q2jEqKRBiSUwtyy7ti HKYivgYh8k03yxJDyDQ+KjO2PBMWZS6lDXomKLk1J1Q01HoZbLYNLuS/hE1U1WTYWuVl ym+XlCSnlgbTNbuE2QOvSn1tXW9W3IsDgAbxn2aKrr+bAoaNQJrw7Ce/GsV4831uJgXf ZuoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:mime-version:subject:date:references :to:in-reply-to:message-id:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=pD3aSjW/ZGiyQpRtgGRVmWcFdrW4O7qktrCYLt3ThmU=; b=HZ+SMKp6x/nrC1CN+GlyyjHV9qnCKHv/NYaA3eOZxbZbTjNillX9VYdlzF9HQUhi/W eNehWBqIOFkXp/uUwvVwRh1FqKfTQJUTSrf/LOTcXuZ+3RKXokcdTwdGXCgBDH+QTIYU 0HZ33TdjUIQosOOLYR2zm0+3smNPAJNbG17BIwb0LZyqtxXGyVSGbec3ynDGyWPHxFhS +WUx62jH61q2CLJbBD3s5hZzi9ws2d4AiNjvxD6zcUhFWISy48zRNV+T8kh8+l0Qix5a QeMxj8uZV7hXqW0dU9jcTZdFW8NCZ2/zCgDYzrt3CpbEmJCB5LnKLEt0sSJM4Doffnx8 aUfg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AKwxytegDUoIZ8Wnv+lZuwJkqKRcmOLbADhNRMX87ycV144tvwXiAeCy t48vy1k2NfyX0yaeYSCsKY8= X-Google-Smtp-Source: ACJfBos6wLA17zeRd5dkcbGCbg22bdFGdikuK0A+jfyAaPmXfSNluNC0Est2HvSUaFgnUxgjw3l1fA== X-Received: by 10.46.112.26 with SMTP id l26mr38715ljc.3.1516306939463; Thu, 18 Jan 2018 12:22:19 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.92.150 with SMTP id u22ls7525lfi.2.gmail; Thu, 18 Jan 2018 12:22:17 -0800 (PST) X-Received: by 10.25.205.202 with SMTP id d193mr1633151lfg.16.1516306937409; Thu, 18 Jan 2018 12:22:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516306937; cv=none; d=google.com; s=arc-20160816; b=LUk48U5wBdmP5fDjVSOhwL+lOKgJrLTfFsq+YMORzMDaw1RON1LDztBseu4kZBp6q3 TMN7hnqerFBtU6eT/+MCioFWisA+uce2/KRgDLwO5x5zrntLcmUYL3E+xx3I1COWR5wz vjSe2qcrZJpMmjbpMPTKokLCzWPn1hEETCnzEZBxeeqUCqr5ubbglPDqma4f02y1fdKW hVv9FThHVIBDAviZ8Ss05+BhghiuyvY1WYGjX/y0JqIniLHdRmCZvcUeZrHmeSGi+s3M qFhNfURtn2j3kvJhx9crYBYWVz8ddhgBwUA45EREUO6Ru34BieHiayLW4hzOQtQw7eXX V9Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :dkim-signature:arc-authentication-results; bh=8ERqlnOslWJvXwflG9pbnxkCrOqwBvGZEeX6RJiEZp0=; b=EsMu3Du7xzJvO6rmCnP5pS6SvJqnEoMfE7FkRPqzEWVJ0xNfxeJ1ycJ6BwV8iQM1tu aa4eqxHXqmkBi3Tn2nRZQsLNGUU3NheidUVhxV90V1fbSdNA29xnPaCsJOCZcBrXpREt OlwqpeeCRqRzUgFH3ZOskPSm4lljbAcA+yYG2P6OIVx1eCtpcrTXUhd0fnuZQxWQSdPt 02PUpYMBR+ss1Sz91LkdcI8QPhwLQWKOVy5OR8aYjz7QZ/rrKNa2kglNUkmQ1RV95p7g BwFVk2vDJBJYSTO9D8ZfeTmPtXafzuZ2GJAwagWLeDoEkRK4KIIdoHTE31rvPLZ87ZQb TrrQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Rmal8LEz; spf=pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c09::22f as permitted sender) smtp.mailfrom=james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Original-Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com. [2a00:1450:400c:c09::22f]) by gmr-mx.google.com with ESMTPS id k24si1162991ljk.5.2018.01.18.12.22.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 12:22:17 -0800 (PST) Received-SPF: pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c09::22f as permitted sender) client-ip=2a00:1450:400c:c09::22f; Original-Received: by mail-wm0-x22f.google.com with SMTP id t74so24512572wme.3 for ; Thu, 18 Jan 2018 12:22:17 -0800 (PST) X-Received: by 10.28.100.215 with SMTP id y206mr6289808wmb.130.1516306936799; Thu, 18 Jan 2018 12:22:16 -0800 (PST) Original-Received: from [192.168.0.19] (cpc1-aztw29-2-0-cust228.18-1.cable.virginm.net. [82.38.57.229]) by smtp.gmail.com with ESMTPSA id h200sm6032029wme.11.2018.01.18.12.22.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 12:22:16 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3445.5.20) X-Original-Sender: james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Rmal8LEz; spf=pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:400c:c09::22f as permitted sender) smtp.mailfrom=james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:19283 Archived-At: --Apple-Mail=_4915920A-C81D-4551-BB2F-9F1E509A1DF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Hi Serena I think you want \n (backslash n) rather than
Take care James=20 > On 18 Jan 2018, at 20:08, Serena De Stefani w= rote: >=20 > I am using Pandoc to integrate Scrivener with Zotero. I write in Scrivene= r adding the Zotero citation keys, compile a .txt file, then use Pandoc to = convert the .txt file into a Word file in which the citation keys are effec= tively translated in my preferred citation style (APA in this case). Follow= ing the instructions on this webpage, I also set up "Marked 2" to show the output of what I = was writing in Scrivener using markdown. >=20 > Here comes the problem: newlines. > If I write in Scrivener: >=20 > I want a newline after this. > This should be a newline. >=20 > then Marked 2 is showing: >=20 > I want a newline after this. This should be a newline. >=20 > So then I wrote in Scrivener: >=20 > I want a newline after this.
> This should be a newline. >=20 > Marked 2: >=20 > I want a newline after this. > This should be a newline. >=20 > Great! Now I compile into a .txt file and I get: >=20 > I want a newline after this.
> This should be a newline. >=20 > OK, now it is time to use Pandoc. >=20 > I type the following command into the terminal: >=20 > pandoc -s -S --normalize --bibliography =20 > ~/Dropbox/_Research/Master_Thesis/Master.bib --csl=20 > ~/Dropbox/_Research/apa.csl=20 > -f markdown -t docx -o trial.docx /Users/S/Desktop/test_st.txt >=20 > I get my .docx file (and when I do this with a full document, all my cita= tions are there, so that works!), but then I read: >=20 > I want a newline after this. This should be a newline. >=20 > Note that the
that was present in the .txt file is gone, but still I= did not get a newline. >=20 > --=20 > You received this message because you are subscribed to the Google Groups= "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/e1d030fa-3ac1-4fb7-b6c8-3f7a29356d9a%40googlegroups.com . > For more options, visit https://groups.google.com/d/optout . --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/A1DEFD5D-5499-4A95-8785-7AF6045D1C89%40gmail.com. For more options, visit https://groups.google.com/d/optout. --Apple-Mail=_4915920A-C81D-4551-BB2F-9F1E509A1DF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" Hi Serena

I think you want \n (backslash n) ra= ther than <br>

Take care
James 

On 18 Jan 2018= , at 20:08, Serena De Stefani <serenadestefani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

I am using Pandoc to integrate Scrivener with Zotero. I write in= Scrivener adding the Zotero citation keys, compile a .txt file, then use P= andoc to convert the .txt file into a Word file in which the citation keys = are effectively translated in my preferred citation style (APA in this case= ). Following the instructions on this webpage, I also set up "= Marked 2" to show the output of what I was writing in Scrivener using markd= own.

Here comes t= he problem: newlines.
If I write in Scrivener:

    I want a n= ewline after this.
    This should be a newl= ine.

then Marked = 2 is showing:

&nb= sp;   I want a newline after this. This should be a newline.

So then I wrote in Scriven= er:

   = I want a newline after this.<br>
    = This should be a newline.

Marked 2:

    I want a newline after this.
  &n= bsp; This should be a newline.

Great! Now I compile into a .txt file and I get:

    I want a newlin= e after this.<br>
    This should be a= newline.

OK, now= it is time to use Pandoc.

I type the following command into the terminal:

    pandoc -s -S --nor= malize --bibliography  
    ~/Dropbox/_= Research/Master_Thesis/Master.bib --csl 
  &= nbsp; ~/Dropbox/_Research/apa.csl 
    = -f markdown -t docx -o trial.docx /Users/S/Desktop/test_st.txt

I get my .docx file (and when= I do this with a full document, all my citations are there, so that works!= ), but then I read:

    I want a newline after this. This should be a newline.

Note that the <br= > that was present in the .txt file is gone, but still I did not get a n= ewline.

<= /div> --
You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/e1d030fa-3ac1-4fb7-b6c8-3f7a29356d9a%40= googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/A1DEFD5D-5499-4A95-8785-7AF6045D1C89%40gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--Apple-Mail=_4915920A-C81D-4551-BB2F-9F1E509A1DF8--