emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Space after an inline emacs call affects output on export
@ 2016-04-06 12:26 Eric S Fraga
  2016-04-06 12:37 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2016-04-06 12:26 UTC (permalink / raw)
  To: emacs-orgmode

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

Could anybody explain why these two lines give different outputs for the
inline elisp calculation?

First line:

@@latex:\fbox{@@ src_emacs-lisp{(setq var-Q1 (string-to-number (calc-eval "evalv(15.357*(184.2-80))")))} @@latex:}@@

Second line:

@@latex:\fbox{@@ src_emacs-lisp{(setq var-Q1 (string-to-number (calc-eval "evalv(15.357*(184.2-80))")))}@@latex:}@@

The only difference in these two lines is a space before the last LaTeX
directive.

Screen shot attached.


[-- Attachment #2: screendump-20160406132404.png --]
[-- Type: image/png, Size: 4627 bytes --]

[-- Attachment #3: Type: text/plain, Size: 134 bytes --]


The first is what I want, by the way.

thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Space after an inline emacs call affects output on export
  2016-04-06 12:26 Space after an inline emacs call affects output on export Eric S Fraga
@ 2016-04-06 12:37 ` Nicolas Goaziou
  2016-04-06 13:11   ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2016-04-06 12:37 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Could anybody explain why these two lines give different outputs for the
> inline elisp calculation?
>
> First line:
>
> @@latex:\fbox{@@ src_emacs-lisp{(setq var-Q1 (string-to-number (calc-eval "evalv(15.357*(184.2-80))")))} @@latex:}@@
>
> Second line:
>
> @@latex:\fbox{@@ src_emacs-lisp{(setq var-Q1 (string-to-number (calc-eval "evalv(15.357*(184.2-80))")))}@@latex:}@@
>
> The only difference in these two lines is a space before the last LaTeX
> directive.

Wild guess. You forbade ":" after emphasis markers in
`org-emphasis-regexp-components'.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Space after an inline emacs call affects output on export
  2016-04-06 12:37 ` Nicolas Goaziou
@ 2016-04-06 13:11   ` Eric S Fraga
  2016-04-06 13:21     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2016-04-06 13:11 UTC (permalink / raw)
  To: emacs-orgmode

On Wednesday,  6 Apr 2016 at 14:37, Nicolas Goaziou wrote:
> Wild guess. You forbade ":" after emphasis markers in
> `org-emphasis-regexp-components'.

Ummm, I've never touched org-emphasis-regexp-components...

But I have played around with org-emphasis-alist, introducing @ as an
emphasis marker (as I did a long time ago to introduce \alert{} for
beamer per v8).  <blush>  So although @@latex:@@ etc. still works fine,
it has implications elsewhere.  I will remove my change to
org-emphasis-alist.

However, I am curious as to why the output from the inline source
evaluation is different?  I.e. why =xxx= versus xxx?  What is the
rationale for one versus the other?

Thanks,
eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Space after an inline emacs call affects output on export
  2016-04-06 13:11   ` Eric S Fraga
@ 2016-04-06 13:21     ` Nicolas Goaziou
  2016-04-06 14:07       ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2016-04-06 13:21 UTC (permalink / raw)
  To: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> However, I am curious as to why the output from the inline source
> evaluation is different?  I.e. why =xxx= versus xxx?  What is the
> rationale for one versus the other?

The result of the inline source evaluation is =xxx= (I'll ignore the
no-op results macro around it). If =xxx= can be parsed as a verbatim
object, it becomes \textt{xxx} in the output. If it cannot, = signs
appear as-is in the output.

In the second case, something is preventing =xxx= from being parsed as
a verbatim object.


Regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Space after an inline emacs call affects output on export
  2016-04-06 13:21     ` Nicolas Goaziou
@ 2016-04-06 14:07       ` Eric S Fraga
  0 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2016-04-06 14:07 UTC (permalink / raw)
  To: emacs-orgmode

On Wednesday,  6 Apr 2016 at 15:21, Nicolas Goaziou wrote:
> In the second case, something is preventing =xxx= from being parsed as
> a verbatim object.

Ah, I see.  Makes perfect sense.  Thanks.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-06 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-06 12:26 Space after an inline emacs call affects output on export Eric S Fraga
2016-04-06 12:37 ` Nicolas Goaziou
2016-04-06 13:11   ` Eric S Fraga
2016-04-06 13:21     ` Nicolas Goaziou
2016-04-06 14:07       ` Eric S Fraga

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).