* Strings inside code blocks
@ 2014-04-16 11:37 Rustom Mody
2014-04-16 12:38 ` Thorsten Jolitz
2014-04-16 16:08 ` Rustom Mody
0 siblings, 2 replies; 4+ messages in thread
From: Rustom Mody @ 2014-04-16 11:37 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 221 bytes --]
I want to put a string-literal inside an inline code-block
Neither
~"Hello World"~
nor ="Hello World"= seem to work
If it cant be done then I need an html specific solution; I'd prefer a
generic one though.
Thanks
Rusi
[-- Attachment #2: Type: text/html, Size: 357 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Strings inside code blocks
2014-04-16 11:37 Strings inside code blocks Rustom Mody
@ 2014-04-16 12:38 ` Thorsten Jolitz
2014-04-16 16:08 ` Rustom Mody
1 sibling, 0 replies; 4+ messages in thread
From: Thorsten Jolitz @ 2014-04-16 12:38 UTC (permalink / raw)
To: emacs-orgmode
Rustom Mody <rustompmody@gmail.com> writes:
> I want to put a string-literal inside an inline code-block
> Neither
> ~"Hello World"~
> nor ="Hello World"= seem to work
>
> If it cant be done then I need an html specific solution; I'd prefer a
> generic one though.
This
,------------------------------
| * 1st Level
| src_emacs-lisp{"Hello World"}
`------------------------------
renders this
,----------------------------------------------------------------------
| [...]
| <li><a href="#sec-1">1. 1st Level</a></li>
| </ul>
| </div>
| </div>
| <div id="outline-container-sec-1" class="outline-2">
| <h2 id="sec-1"><span class="section-number-2">1</span> 1st Level</h2>
| <div class="outline-text-2" id="text-1">
| <p>
| <code>Hello World</code></p>
| [...]
`----------------------------------------------------------------------
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Strings inside code blocks
2014-04-16 11:37 Strings inside code blocks Rustom Mody
2014-04-16 12:38 ` Thorsten Jolitz
@ 2014-04-16 16:08 ` Rustom Mody
2014-04-16 17:22 ` Thorsten Jolitz
1 sibling, 1 reply; 4+ messages in thread
From: Rustom Mody @ 2014-04-16 16:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 262 bytes --]
Thorsten Jolitz wrote:
> This
>
> ,------------------------------
> | * 1st Level
> | src_emacs-lisp{"Hello World"}
> `------------------------------
>
> renders this...
does not seem to work for me.
Some requirements I need python code inline inside tables.
[-- Attachment #2: Type: text/html, Size: 627 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Strings inside code blocks
2014-04-16 16:08 ` Rustom Mody
@ 2014-04-16 17:22 ` Thorsten Jolitz
0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Jolitz @ 2014-04-16 17:22 UTC (permalink / raw)
To: emacs-orgmode
Rustom Mody <rustompmody@gmail.com> writes:
> Thorsten Jolitz wrote:
>
> This
>
> ,------------------------------
> | * 1st Level
> | src_emacs-lisp{"Hello World"}
> `------------------------------
>
> renders this...
>
> does not seem to work for me.
> Some requirements I need python code inline inside tables.
this does not work for me either:
| label | code |
|-----------+----------------------------------------------------------|
| greetings | src_emacs-lisp{"Hello World"} |
| arithm | src_emacs-lisp[:results value :exports results]{(+ 2 2)} |
#+begin_src emacs-lisp :results value replace
(let ((org-export-with-toc nil))
(org-export-as 'ascii))
#+end_src
#+results:
_________________
725
Thorsten Jolitz
_________________
1 --text follows this line--
============================
Rustom Mody <rustompmody@gmail.com> writes:
> Thorsten Jolitz wrote: This ,------------------------------ | * 1st
>Level | `Hello World' `------------------------------ renders this...
>does not seem to work for me. Some requirements I need python code
>inline inside tables.
label code
---------------------------------------------------------------------
greetings src_emacs-lisp{"Hello World"}
arithm src_emacs-lisp[:results value :exports results]{(+ 2 2)}
,----
| (let ((org-export-with-toc nil))
| (org-export-as 'ascii))
`----
-- cheers, Thorsten
but did you read:
[[http://orgmode.org/worg/org-contrib/babel/intro.html][Code Block in Tables]]
?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-16 17:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 11:37 Strings inside code blocks Rustom Mody
2014-04-16 12:38 ` Thorsten Jolitz
2014-04-16 16:08 ` Rustom Mody
2014-04-16 17:22 ` Thorsten Jolitz
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).