emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Ulf Stegemann <ulf-news@zeitform.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Markup for export question
Date: Thu, 09 Jul 2009 17:38:53 +0200	[thread overview]
Message-ID: <87bpntsw6q.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <zf.upnmy7ec7sx.fsf@zeitform.de> (Ulf Stegemann's message of "Thu, 09 Jul 2009 15:19:58 +0200")

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

Ulf Stegemann <ulf-news@zeitform.de> writes:
> When writing documentations I often come across expressions like
>
>   doMagic('myVariable')
>
> In an ideal world the HTML code for this after exporting the org file
> would look like this:
>
>   <code>doMagic('<var>myVariable</var>')</code>


Example:



[-- Attachment #2: Type: text/plain, Size: 123 bytes --]

  #+MACRO: macname (eval (format "Macro says '%s'" $1))
  
  * Some headline
  
    {{{macname("Something to say here")}}}

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




It does _not_ work without the `eval'.



See:

  http://orgmode.org/Changes.html#sec-2.1.1




  Sebastian

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-07-09 15:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-09 13:19 Markup for export question Ulf Stegemann
2009-07-09 15:38 ` Sebastian Rose [this message]
2009-07-09 17:47   ` Sebastian Rose
2009-07-09 15:59 ` Sebastian Rose
  -- strict thread matches above, loose matches on Subject: below --
2009-07-09 15:09 Giovanni Ridolfi
2009-07-10  7:35 ` Ulf Stegemann

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=87bpntsw6q.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=ulf-news@zeitform.de \
    /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).