[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Macro for inclusion of OOP code in Octave documentation?
From: |
John W. Eaton |
Subject: |
Macro for inclusion of OOP code in Octave documentation? |
Date: |
Mon, 13 Oct 2008 10:45:57 -0400 |
On 13-Oct-2008, David Bateman wrote:
| I'm trying to create a macro like
|
| @macro quaternionfile{file}
| @example
| @group
| @verbatiminclude @value{abs_top_srcdir}/examples/@@quaternion/\file\
| @end group
| @end example
| @end macro
|
| for the documentation of the OOP code and inclusion of examples. However
| the "@" in the class directory is causing me much pain and nothing I
| seem to try in the above macro seems to help. I've tried replacing the
| "@@" with "@" and "\@" or even "@@@@" with no luck. and changing the
| macro to
|
|
| @macro quaternionfile{file}
| @example
| @group
| @verbatiminclude @value{abs_top_srcdir}/examples/\file\
| @end group
| @end example
| @end macro
|
| and then invoking it as any one of
|
| @address@hidden/quaternion.m}
| @quaternionfile{@@quaternion/quaternion.m}
| @address@hidden/quaternion.m}
|
| doesn't work either... Does anyone have an idea of how to get such a
| macro with an embedded @verbatiminclude with a "@" in the filename to work?
I don't see an obvious way to do it. I think ou should ask the
address@hidden list.
jwe