emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to handle strings with commas in macros?
@ 2022-04-07 16:29 William Denton
  2022-04-07 16:42 ` Kaushal Modi
  2022-04-07 16:55 ` Eric S Fraga
  0 siblings, 2 replies; 4+ messages in thread
From: William Denton @ 2022-04-07 16:29 UTC (permalink / raw)
  To: emacs-orgmode

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


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

end of thread, other threads:[~2022-04-07 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 16:29 How to handle strings with commas in macros? William Denton
2022-04-07 16:42 ` Kaushal Modi
2022-04-07 19:46   ` William Denton
2022-04-07 16:55 ` 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).