emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: export to latex but *not* export the citations
Date: Fri, 19 Jan 2018 16:45:19 +0000	[thread overview]
Message-ID: <878tctx0f4.fsf@skimble.plus.com> (raw)
In-Reply-To: <m2zi597u5f.fsf@andrew.cmu.edu> (John Kitchin's message of "Fri, 19 Jan 2018 07:19:56 -0800")

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

John Kitchin <jkitchin@andrew.cmu.edu> 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

--8<---------------cut here---------------start------------->8---
Source =

The remaining 'other place'
deaths include over 150 described as 'psychiatric hospitals', 'psychiatric hospitals (security)' or
'psychiatric unit' (cite:0113).

Pdf =

The remaining
’other place’ deaths include over 150 described as ’psychiatric hospitals’, ’psychiatric hospitals
(security)’ or ’psychiatric unit’ (WILSON , 2015).
--8<---------------cut here---------------end--------------->8---


* Case 2 - brackets removed round citation

--8<---------------cut here---------------start------------->8---
Source =

The remaining 'other place'
deaths include over 150 described as 'psychiatric hospitals', 'psychiatric hospitals (security)' or
'psychiatric unit' cite:0113.

Pdf =

The remaining
’other place’ deaths include over 150 described as ’psychiatric hospitals’, ’psychiatric hospitals
(security)’ or ’psychiatric unit’ WILSON , 2015.
--8<---------------cut here---------------end--------------->8---

* Case 3 - with John's coding

--8<---------------cut here---------------start------------->8---
Source =

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 =

The remaining
’other place’ deaths include over 150 described as ’psychiatric hospitals’, ’psychiatric hospitals
(security)’ or ’psychiatric unit’ ().
--8<---------------cut here---------------end--------------->8---


* Case 4 - with John's coding

--8<---------------cut here---------------start------------->8---
Source =

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 =

The remaining
’other place’ deaths include over 150 described as ’psychiatric hospitals’, ’psychiatric hospitals
(security)’ or ’psychiatric unit’ .
--8<---------------cut here---------------end--------------->8---


- Case 1 is the start point and as it currently is.
- 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.
- 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.
- 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 = http://www.sharons.org.uk/pdfbuild2.html

-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.3, fluxbox 1.3.7, emacs 25.3.2, org-mode 9.1.6-10-g0c9329-elpaplus

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

  reply	other threads:[~2018-01-19 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-19 14:27 export to latex but *not* export the citations Sharon Kimble
2018-01-19 15:19 ` John Kitchin
2018-01-19 16:45   ` Sharon Kimble [this message]
2018-01-19 20:17     ` John Kitchin
2018-01-19 21:22       ` Sharon Kimble

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=878tctx0f4.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /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).