UserDefinedCommands and UserDefinedEnvironments.
UserDefinedEnvironment
| Modifier and Type | Field and Description |
|---|---|
| protected final int | argumentCount
Number of arguments |
| protected final String | optionalArgument
Optional argument, which may be blank. |
| protected final String |
| Access | Constructor and Description |
|---|---|
| public | UserDefinedCommandOrEnvironment(final String texName, final String optionalArgument, final int argumentCount)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | getArgumentCount()
Implements uk. Returns the number of mandatory arguments this command expects, which will be zero or greater. |
| public LaTeXMode | getArgumentMode(int argumentIndex)
Implements uk. User-defined commands and environments stay in the same mode when parsing arguments. |
| public String | |
| public String | getTeXName()
Implements uk. Returns the TeX name for this command or environment. |
| public boolean | isAllowingOptionalArgument()
Implements uk. Returns whether this command/environment takes an optional argument. |
| public final String |
| argumentCount | back to summary |
|---|---|
| protected final int argumentCount Number of arguments | |
| optionalArgument | back to summary |
|---|---|
| protected final String optionalArgument Optional argument, which may be blank. null if not supported | |
| texName | back to summary |
|---|---|
| protected final String texName | |
| UserDefinedCommandOrEnvironment | back to summary |
|---|---|
| public UserDefinedCommandOrEnvironment(final String texName, final String optionalArgument, final int argumentCount) | |
| getArgumentCount | back to summary |
|---|---|
| public int getArgumentCount() Implements uk. Doc from uk. Returns the number of mandatory arguments this command expects, which will be zero or greater. | |
| getArgumentMode | back to summary |
|---|---|
| public LaTeXMode getArgumentMode(int argumentIndex) Implements uk. User-defined commands and environments stay in the same mode when parsing arguments. | |
| getOptionalArgument | back to summary |
|---|---|
| public String getOptionalArgument() | |
| getTeXName | back to summary |
|---|---|
| public String getTeXName() Implements uk. Doc from uk. Returns the TeX name for this command or environment. (In the case of commands, this does not include the leading backslash.) | |
| isAllowingOptionalArgument | back to summary |
|---|---|
| public boolean isAllowingOptionalArgument() Implements uk. Doc from uk. Returns whether this command/environment takes an optional argument. As per LaTeX convention, this will only return true if the command/environment takes at least one mandatory argument as well. | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |