emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] non-numeric arg for body-only latex export
Date: Fri, 9 Apr 2010 13:44:37 +0200	[thread overview]
Message-ID: <74CBF936-1D04-40AC-9BCB-6FD6DCE21786@gmail.com> (raw)
In-Reply-To: <87eiip9oww.fsf@gmail.com>

Hi Eric, no objections, please go ahead.

Do you know about `org-replace-region-by-latex'.

- Carsten

On Apr 9, 2010, at 7:26 AM, Eric Schulte wrote:

> Hi,
>
> This small patch changes the behavior of `org-export-as-latex' so that
> when a simple (non-numeric) prefix arg is provided the body-only  
> option
> is set to true.
>
> I find this very useful as I often only want to export a small active
> region (often a table) to latex for pasting into an existing latex
> buffer.  This patch makes that use case very easy.
>
> Thanks -- Eric
>
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index ff4ae62..bbee957 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el
> @@ -584,6 +584,7 @@ simply return the content of \begin{document}... 
> \end{document},
> without even the \begin{document} and \end{document} commands.
> when PUB-DIR is set, use this as the publishing directory."
>  (interactive "P")
> +  (when (and (not body-only) (listp arg)) (setq body-only t))
>  (run-hooks 'org-export-first-hook)
>
>  ;; Make sure we have a file name when we need it.
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2010-04-09 11:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-09  5:26 [PATCH] non-numeric arg for body-only latex export Eric Schulte
2010-04-09 11:44 ` Carsten Dominik [this message]
2010-04-09 15:15   ` Eric Schulte

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=74CBF936-1D04-40AC-9BCB-6FD6DCE21786@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).