emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Hannon <jm_hannon@yahoo.com>
To: Michael Gauland <mikelygee@no8wireless.co.nz>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: monospace (=) and quotes not getting along
Date: Thu, 25 Aug 2011 20:53:45 -0700 (PDT)	[thread overview]
Message-ID: <1314330825.88981.YahooMailNeo@web161908.mail.bf1.yahoo.com> (raw)
In-Reply-To: <loom.20110826T013328-862@post.gmane.org>

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

Michael Gauland <mikelygee@no8wireless.co.nz> wrote:

> Michael Hannon <jm_hannon <at> yahoo.com> writes:
> 
> > To define =my_frabbitz= in this model, we issue the command:
> >    => my_frabbitz = "someRandomWord"=
> > The "my_frabbitz" in the sentence comes out in monospace, but the
> > R codedoesn't.  It seems that the quotation marks are killing the process.
> 
> I don't remember why this happens, but I've dealt with it by inserting a null
> between the quote and the equals. I use export hooks to remove the null from
> the
> exported HTML and LaTeX files:
> 
> 
> (add-hook 'org-export-latex-final-hook
>       (lambda ()
>         (goto-char (point-min))
>         (while (re-search-forward "^@" nil t)
>           (replace-match "")
>           )
>         )
>       )
> (add-hook 'org-export-html-final-hook
>       (lambda ()
>         (goto-char (point-min))
>         (while (re-search-forward "^@" nil t)
>           (replace-match "")
>           )
>         )
>       )

Hi, Mike.  I was going to object that this was a dangerous approach in my
situation, as I intend to pass the .org file on to someone else after I've
revised it, and there'd be no way to guarantee that "future generations" would
have the same hooks defined.

Nevertheless, I tried inserting ^@ as you suggested and then exporting to
HTML, WITHOUT defining the hooks, just to see what would happen.  The answer
is that the HTML document looked just fine!  (This is with Org-mode version
7.7 on Emacs 23.2.1 on 64-bit linux.)

I don't know if this matters, but I placed the LHS and RHS of the R expression
on different, consecutive lines, as:

    => someVar ==
    =^@"someString"^@=

In HTML these are glommed together anyway.

I really appreciate your suggestion.  And, if anybody asks me, I'll be
recommending you for a MacArthur award.

-- Mike

[-- Attachment #2: Type: text/html, Size: 2920 bytes --]

      reply	other threads:[~2011-08-26  3:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 22:02 monospace (=) and quotes not getting along Michael Hannon
2011-08-25 23:45 ` Michael Gauland
2011-08-26  3:53   ` Michael Hannon [this message]

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=1314330825.88981.YahooMailNeo@web161908.mail.bf1.yahoo.com \
    --to=jm_hannon@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mikelygee@no8wireless.co.nz \
    /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).