5

I'm writing a book chapter for publication and the publisher accepts Latex. I like to use equation macros

\newcommand{\funof}[1]{\ensuremath\left(#1\right)}

that I can then use in an equation

$i\funof{t}$

I assume the publisher is not going to want to have to deal with these macros. Is there a way to unroll equations so that I can give the publisher the final expression with my macros substituted?

Edit: This is a Springer-Verlag publication, so if anyone has experience with a similar issue. Please let me know.

Juan
  • 151
  • 3
  • 1
    If you and the publisher are happy with the way the macro functions (no pun intended), I don't know why a publisher would forbid you from placing macros in your document. – Steven B. Segletes Aug 01 '13 at 14:02
  • Welcome to TeX-SX! Have a look at our starter page for a quick intro if you wish to familiarize yourself with our format. – Claudio Fiandrino Aug 01 '13 at 14:11
  • The problem with sed and bash is that there is not a regular expression for matching brackets. – Juan Aug 01 '13 at 15:10
  • Discussion on nested brackets here: http://stackoverflow.com/questions/546433/regular-expression-to-match-outer-brackets – Juan Aug 01 '13 at 15:20
  • Note that \ensuremath\left(#1\right) is wrong under several respects: \ensuremath takes an argument, so it should be \ensuremath{\left(#1\right)}; but since you're using \funof in math mode, the \ensuremath is redundant. Also \left and \right add a wrong space: compare $i(t)$ and $i\left(t\right)$. – egreg Aug 01 '13 at 20:40
  • Thanks for finding the issue with ensuremath. This is a brief example, but there are times in my macros where \ensuremath is needed. I am ok with the space between the name and the parentheses, and it looks like my equation macro can be fixed here http://tex.stackexchange.com/questions/2607/spacing-around-left-and-right. My concern is how to unroll the equations for an arbitrary equation macro. – Juan Aug 01 '13 at 20:59
  • Why do you think the journal will not accept the macro? – David Carlisle Aug 01 '13 at 22:01
  • @TorbjørnT, it looks like it may be a duplicate. That question, unfortunately doesn't have an acceptable answer. – Juan Aug 02 '13 at 14:26
  • @DavidCarlisle I haven't dealt with Springer before, and I've emailed their author support and I am awaiting an answer. They do have restrictions on the math environments you can use, so I assume they have other restrictions as well. They also apparently will convert the MS Word and Latex chapters they receive and convert the to XML. – Juan Aug 02 '13 at 14:28
  • Even if there is no accepted answer, there are several suggestions. And if you agree that it is a duplicate, we'll close this one. – Torbjørn T. Aug 02 '13 at 14:37
  • I'm waiting to here back from Springer. It is possible this question is not a duplicate. – Juan Aug 04 '13 at 19:49

0 Answers0