emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inline source does not evaluate when inserted insie a minipage environment
@ 2017-09-22 19:56 Charles Millar
  2017-09-22 21:22 ` Nicolas Goaziou
  2017-09-23 14:02 ` Eric S Fraga
  0 siblings, 2 replies; 7+ messages in thread
From: Charles Millar @ 2017-09-22 19:56 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

This problem may not be limited to just \begin{minipage}, etc., but to 
other latex commands which may precede text which contains inline source 
code

The following inline code evaluates as expected to 1

This is some text.
Some more test with an inline  src_sh[:results raw]{echo 1}
a bit more

However, when I C-c C-c the same code when inside a minipage, I get the 
message " 'C-c C-c' can do nothing useful here"
\begin{minipage}[t]{4.0in} This is some text.
Some more test with an inline  src_sh[:results raw]{echo 1}
a bit more
\end{minipage}

Org mode version 9.1.1 (release_9.1.1-62-g6e7d15.dirty @ 
/usr/local/share/emacs/site-lisp/org-mode/lisp/)
GNU Emacs 25.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 
2016-07-21

I admit that I did only a cursory search in the list, so if the issue 
has been addressed before this, please point me in right direction.

Charlie Millar

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

* Re: Inline source does not evaluate when inserted insie a minipage environment
  2017-09-22 19:56 Inline source does not evaluate when inserted insie a minipage environment Charles Millar
@ 2017-09-22 21:22 ` Nicolas Goaziou
  2017-09-23  0:44   ` Charles Millar
  2017-09-23 14:02 ` Eric S Fraga
  1 sibling, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2017-09-22 21:22 UTC (permalink / raw)
  To: Charles Millar; +Cc: emacs-orgmode@gnu.org

Hello,

Charles Millar <millarc@verizon.net> writes:

> This problem may not be limited to just \begin{minipage}, etc., but to
> other latex commands which may precede text which contains inline
> source code
>
> The following inline code evaluates as expected to 1
>
> This is some text.
> Some more test with an inline  src_sh[:results raw]{echo 1}
> a bit more
>
> However, when I C-c C-c the same code when inside a minipage, I get
> the message " 'C-c C-c' can do nothing useful here"
> \begin{minipage}[t]{4.0in} This is some text.
> Some more test with an inline  src_sh[:results raw]{echo 1}
> a bit more
> \end{minipage}

This is not a bug.

  \begin{minipage}
  ...
  \end{minipage}

defines a LaTeX environment, i.e., pure LaTeX code, and Org doesn't look
into this. This is like $...$ or \(...\), but as block element.

Regards,

-- 
Nicolas Goaziou

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

* Re: Inline source does not evaluate when inserted insie a minipage environment
  2017-09-22 21:22 ` Nicolas Goaziou
@ 2017-09-23  0:44   ` Charles Millar
  0 siblings, 0 replies; 7+ messages in thread
From: Charles Millar @ 2017-09-23  0:44 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

On 09/22/17 17:22, Nicolas Goaziou wrote:
> Hello,
>
> Charles Millar <millarc@verizon.net> writes:
>
>> This problem may not be limited to just \begin{minipage}, etc., but to
>> other latex commands which may precede text which contains inline
>> source code
>>
>> The following inline code evaluates as expected to 1
>>
>> This is some text.
>> Some more test with an inline  src_sh[:results raw]{echo 1}
>> a bit more
>>
>> However, when I C-c C-c the same code when inside a minipage, I get
>> the message " 'C-c C-c' can do nothing useful here"
>> \begin{minipage}[t]{4.0in} This is some text.
>> Some more test with an inline  src_sh[:results raw]{echo 1}
>> a bit more
>> \end{minipage}
> This is not a bug.
>
>    \begin{minipage}
>    ...
>    \end{minipage}
>
> defines a LaTeX environment, i.e., pure LaTeX code, and Org doesn't look
> into this. This is like $...$ or \(...\), but as block element.
Thank you.

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

* Re: Inline source does not evaluate when inserted insie a minipage environment
  2017-09-22 19:56 Inline source does not evaluate when inserted insie a minipage environment Charles Millar
  2017-09-22 21:22 ` Nicolas Goaziou
@ 2017-09-23 14:02 ` Eric S Fraga
  2017-09-24 20:59   ` Charles Millar
  1 sibling, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2017-09-23 14:02 UTC (permalink / raw)
  To: Charles Millar; +Cc: emacs-orgmode@gnu.org

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

On Friday, 22 Sep 2017 at 15:56, Charles Millar wrote:

[...]

> However, when I C-c C-c the same code when inside a minipage, I get
> the message " 'C-c C-c' can do nothing useful here"
> \begin{minipage}[t]{4.0in} This is some text.
> Some more test with an inline  src_sh[:results raw]{echo 1}
> a bit more
> \end{minipage}

I solve this aspect, and more generally allow the use of org formatting
directives within the text by doing:

#+latex: \begin{minipage}[t]{4.0in}
This is some text. Some more test with an inline src_sh[:results raw]{echo 1}
a bit more
#+latex: \end{minipage}

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612

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

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

* Re: Inline source does not evaluate when inserted insie a minipage environment
  2017-09-23 14:02 ` Eric S Fraga
@ 2017-09-24 20:59   ` Charles Millar
  2017-09-25  7:32     ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Charles Millar @ 2017-09-24 20:59 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

On 09/23/2017 10:02, Eric S Fraga wrote:
> On Friday, 22 Sep 2017 at 15:56, Charles Millar wrote:
>
> [...]
>
>> However, when I C-c C-c the same code when inside a minipage, I get
>> the message " 'C-c C-c' can do nothing useful here"
>> \begin{minipage}[t]{4.0in} This is some text.
>> Some more test with an inline  src_sh[:results raw]{echo 1}
>> a bit more
>> \end{minipage}
> I solve this aspect, and more generally allow the use of org formatting
> directives within the text by doing:
>
> #+latex: \begin{minipage}[t]{4.0in}
> This is some text. Some more test with an inline src_sh[:results raw]{echo 1}
> a bit more
> #+latex: \end{minipage}
>
Thank you.

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

* Re: Inline source does not evaluate when inserted insie a minipage environment
  2017-09-24 20:59   ` Charles Millar
@ 2017-09-25  7:32     ` Eric S Fraga
  2017-09-26 23:19       ` Charles Millar
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2017-09-25  7:32 UTC (permalink / raw)
  To: Charles Millar; +Cc: emacs-orgmode@gnu.org

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

On Sunday, 24 Sep 2017 at 16:59, Charles Millar wrote:
> Thank you.

You're welcome.

You might also want to consider using special blocks which could be a
more general solution:

#+attr_latex: :options [t]{4.0in} 
#+begin_minipage
This is some text.
Some more test with an inline src_sh[:results raw]{echo 1} a bit more
#+end_minipage

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.1-64-g657302

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

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

* Re: Inline source does not evaluate when inserted insie a minipage environment
  2017-09-25  7:32     ` Eric S Fraga
@ 2017-09-26 23:19       ` Charles Millar
  0 siblings, 0 replies; 7+ messages in thread
From: Charles Millar @ 2017-09-26 23:19 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org



On 09/25/17 03:32, Eric S Fraga wrote:
> On Sunday, 24 Sep 2017 at 16:59, Charles Millar wrote:
>
>
> You might also want to consider using special blocks which could be a
> more general solution:
>
> #+attr_latex: :options [t]{4.0in}
> #+begin_minipage
> This is some text.
> Some more test with an inline src_sh[:results raw]{echo 1} a bit more
> #+end_minipage
>
Thanks again, I am using this suggestion.

Charlie Millar

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

end of thread, other threads:[~2017-09-26 23:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-22 19:56 Inline source does not evaluate when inserted insie a minipage environment Charles Millar
2017-09-22 21:22 ` Nicolas Goaziou
2017-09-23  0:44   ` Charles Millar
2017-09-23 14:02 ` Eric S Fraga
2017-09-24 20:59   ` Charles Millar
2017-09-25  7:32     ` Eric S Fraga
2017-09-26 23:19       ` Charles Millar

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