From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: export to latex but *not* export the citations Date: Fri, 19 Jan 2018 16:45:19 +0000 Message-ID: <878tctx0f4.fsf@skimble.plus.com> References: <87a7x9ylcr.fsf@skimble.plus.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]:49550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecZnI-000727-EF for emacs-orgmode@gnu.org; Fri, 19 Jan 2018 11:45:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecZnF-0004Dc-9d for emacs-orgmode@gnu.org; Fri, 19 Jan 2018 11:45:32 -0500 Received: from avasout03.plus.net ([84.93.230.244]:43452) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ecZnE-0004Ck-Rm for emacs-orgmode@gnu.org; Fri, 19 Jan 2018 11:45:29 -0500 In-Reply-To: (John Kitchin's message of "Fri, 19 Jan 2018 07:19:56 -0800") 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: John Kitchin Cc: org-mode-email --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable John Kitchin writes: > You can try this: > > * Build :noexport: > > Put this heading in your file, and run this block. > > #+BEGIN_SRC emacs-lisp > (flet ((org-ref-format-cite (keyword desc format) "")) > (org-latex-export-to-latex)) > #+END_SRC > > It will temporarily redefine the cite export function. It appears it > replaces them with a space, but this should be a problem for latex. > Sorry list, I inadvertently sent this direct to John. Thanks John for this, its not quite working as I'd like, so I'll explain it= with examples. * Case 1 - original setup =2D-8<---------------cut here---------------start------------->8--- Source =3D The remaining 'other place' deaths include over 150 described as 'psychiatric hospitals', 'psychiatric = hospitals (security)' or 'psychiatric unit' (cite:0113). Pdf =3D The remaining =E2=80=99other place=E2=80=99 deaths include over 150 described as =E2=80= =99psychiatric hospitals=E2=80=99, =E2=80=99psychiatric hospitals (security)=E2=80=99 or =E2=80=99psychiatric unit=E2=80=99 (WILSON , 2015). =2D-8<---------------cut here---------------end--------------->8--- * Case 2 - brackets removed round citation =2D-8<---------------cut here---------------start------------->8--- Source =3D The remaining 'other place' deaths include over 150 described as 'psychiatric hospitals', 'psychiatric = hospitals (security)' or 'psychiatric unit' cite:0113. Pdf =3D The remaining =E2=80=99other place=E2=80=99 deaths include over 150 described as =E2=80= =99psychiatric hospitals=E2=80=99, =E2=80=99psychiatric hospitals (security)=E2=80=99 or =E2=80=99psychiatric unit=E2=80=99 WILSON , 2015. =2D-8<---------------cut here---------------end--------------->8--- * Case 3 - with John's coding =2D-8<---------------cut here---------------start------------->8--- Source =3D The remaining 'other place' deaths include over 150 described as 'psychiatric hospitals', 'psychiatric = hospitals (security)' or 'psychiatric unit' (cite:0113). And with your coding and built as pdf =3D The remaining =E2=80=99other place=E2=80=99 deaths include over 150 described as =E2=80= =99psychiatric hospitals=E2=80=99, =E2=80=99psychiatric hospitals (security)=E2=80=99 or =E2=80=99psychiatric unit=E2=80=99 (). =2D-8<---------------cut here---------------end--------------->8--- * Case 4 - with John's coding =2D-8<---------------cut here---------------start------------->8--- Source =3D The remaining 'other place' deaths include over 150 described as 'psychiatric hospitals', 'psychiatric = hospitals (security)' or 'psychiatric unit' cite:0113. And with your coding and built as pdf =3D The remaining =E2=80=99other place=E2=80=99 deaths include over 150 described as =E2=80= =99psychiatric hospitals=E2=80=99, =E2=80=99psychiatric hospitals (security)=E2=80=99 or =E2=80=99psychiatric unit=E2=80=99 . =2D-8<---------------cut here---------------end--------------->8--- =2D Case 1 is the start point and as it currently is. =2D Case 2 is an interim stage, with the circular brackets round the citation removed. When its exported the sentence looks ugly with out any differentiation between the text and the citation. =2D Case 3 is with John's coding snippet being applied and the whole exported, and it leaves the circular brackets round the citation behind but no citation. =2D Case 4 is with John's coding snippet applied after the circular brackets have been removed, and is nirvana! :) But it would be a mammoth undertaking going through and removing all the circular brackets round the citations, and there's 381 references in the bibliography, so is it possible for your code snippet to temporarily remove the circular brackets as part of its building the tex file please? Thanks John, I do appreciate it Sharon. > Sharon Kimble writes: > >> I'm writing a document which currently has 408 pages and over a 1,000 >> footnotes, and with a size of 1.1 mbs. >> >> I'm exporting it to latex using 'org-latex-export-to-latex' and am now >> wondering is it possible to export it *and* omit the citations? The >> citations currently are showing in the org-mode source file as >> '(cite:xxxx)'. >> >> So to clarify - the org-mode document is exported to latex and then >> built into a pdf file in a separate process. The org-mode document has >> citations, showing in the org-mode document as '(cite:xxxx)', where the >> 'xxxx' is any one of four figures which don't have any impact on reality >> in org-mode, though org-ref allows them to be seen as a quasi-bibtex >> display in the mini-buffer. When the pdf file is built they are >> converted into authoryear citations, and its these citations that I'm >> looking to *not* display in the pdf file. I would like the citations to >> still show in the org-mode source document but not to show in the final >> built pdf file. >> >> The file, or program, that is building the pdf can be seen at [fn:1]. >> >> So how can I do it please? >> >> Thanks >> Sharon. >> >> [fn:1] 'pdfbuild' - from tex to PDF - version 2 =3D http://www.sharons.o= rg.uk/pdfbuild2.html =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=20=20 Debian 9.3, fluxbox 1.3.7, emacs 25.3.2, org-mode 9.1.6-10-g0c9329-elpaplus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAlpiIJ8ACgkQNoGAGQr4 g1v60A//a4bmsfIrfcCY9Xdbv2A2YiNRgZoL9sEY9yEn6ftwY0/zR338Fl0M4yw9 PUc+iFbqe3Wt+2Nm6BMr2yyzl5zvXQZoduMIGQ01WUqdykoALc7xEUCkumjp7QpY xEJRtbfR0SdqFjHlefYR4m5+y0SyWS67Mgpv2Px/V7v4oExIiQQat1zyNG2DxaEN Ugh7bjjCnJDs2PWlaWDE0mh+EsrnlHMGjHC1RdG5Hc9soW7B+7nXqnYAbbbr5aU0 rBj2iUE5tzVD6Ulsbh1DHcUOFy5g/o2kbs6Rat6TA0in01Rf+aZJBCMmPBmSIo+y 0V6HG/BqQIxkXguGNguYuyLSwAZQzQY19dPqq+9SR2xsnidzD4V+PccYFSeOcoT3 8TqynUwStzGr6JJL+WI6wGDE+j/MSEbQ0ZaNcsOvea/NeJiBFxfO8YUoAZUz9I52 oj1eVxcQEkjwgbKu1SHxNEmjFPan5s8vUVCzXM52TUECk4uobwPNn3zmmkhmxDEM +hLtBR+jJX4RCqQ4f1Nows8OfxA0gzC2yysW6UxwT+LhSMWw1eZoCGhAgtOZi4zY OtTF8mc7i8Jdr4IdxD0/tJ/mifqwwQTg4z1I5q2tELAM7cqdk+2RbJ4aeKZmdWOq qCbjsLx0p5uxvK6JoaoUxbGDS33In0UvW4bbom9hmo8P05K74vE= =ldDk -----END PGP SIGNATURE----- --=-=-=--