* Re: help with calc (TeX-language-mode) [not found] <mailman.2182.1108439562.2841.help-gnu-emacs@gnu.org> @ 2005-02-15 5:53 ` Jay Belanger 2005-02-15 8:21 ` Adam Duck 0 siblings, 1 reply; 3+ messages in thread From: Jay Belanger @ 2005-02-15 5:53 UTC (permalink / raw) > In TeX I deffed an '\aidmatrix' which is essentially like '\matrix' > but sets '\left(' and '\right)' around it. Anyways, to use it, I > inserted the following code into `TeX-Mode Syntax Table': > > "\\aidmatrix{" # ")" := #1 > > But this doesn't work; You want the # to match more than one item. If you want it to work with different sized matrices, try "\\aidmatrix{" { { # }*, }*; ) := #1 Jay ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with calc (TeX-language-mode) 2005-02-15 5:53 ` help with calc (TeX-language-mode) Jay Belanger @ 2005-02-15 8:21 ` Adam Duck 0 siblings, 0 replies; 3+ messages in thread From: Adam Duck @ 2005-02-15 8:21 UTC (permalink / raw) Jay Belanger <belanger@truman.edu> writes: > You want the # to match more than one item. If you want it to work > with different sized matrices, try > > "\\aidmatrix{" { { # }*, }*; ) := #1 That's perfect, thanks! Why didn't _I_ think of that? :( bye, Adam. ^ permalink raw reply [flat|nested] 3+ messages in thread
* help with calc (TeX-language-mode) @ 2005-02-15 1:38 Adam Duck 0 siblings, 0 replies; 3+ messages in thread From: Adam Duck @ 2005-02-15 1:38 UTC (permalink / raw) Hi all, I don't know where to ask, so I start here. In TeX I deffed an '\aidmatrix' which is essentially like '\matrix' but sets '\left(' and '\right)' around it. Anyways, to use it, I inserted the following code into `TeX-Mode Syntax Table': "\\aidmatrix{" # ")" := #1 But this doesn't work; it tells me: "Expected a number" and my cursor stops after "\a". So, what now? If I mark only the # - i.e. "\aidmatrix{ | 0.1 & 0.2 | }" between the two bars - everything works as expected. bye, Adam. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-15 8:21 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <mailman.2182.1108439562.2841.help-gnu-emacs@gnu.org> 2005-02-15 5:53 ` help with calc (TeX-language-mode) Jay Belanger 2005-02-15 8:21 ` Adam Duck 2005-02-15 1:38 Adam Duck
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).