emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <wtd@pobox.com>
To: emacs-orgmode@gnu.org
Subject: How to handle strings with commas in macros?
Date: Thu, 7 Apr 2022 12:29:09 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2204071222270.52468@shell3.miskatonic.org> (raw)

I'm using macros to format names in a LaTeX export, like so:

#+latex_header: \newcommand\m[1]{\textsc{#1}}
#+macro: m \m{$1}

Thus

{{{m(William Denton)}}}

becomes

\m{William Denton}

on export and LaTeX will format it.  That works fine.  But in an index of names, 
if I want

{{{m(Denton, William)}}}

then Org takes that as two arguments to the macro, and outputs

\m{Denton}

Is there a way to get around this?

Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada


             reply	other threads:[~2022-04-07 16:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07 16:29 William Denton [this message]
2022-04-07 16:42 ` How to handle strings with commas in macros? Kaushal Modi
2022-04-07 19:46   ` William Denton
2022-04-07 16:55 ` Eric S Fraga

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=alpine.DEB.2.22.394.2204071222270.52468@shell3.miskatonic.org \
    --to=wtd@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    /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).