Releases: jkuczm/mmacells
0.3.2
0.3.1
0.3.0
Backward incompatible changes
- #26 All formatting commands now process all arguments in text mode.
So first argument of\mmaSup,\mmaSub,\mmaSubSup,\mmaUnder,\mmaOver,\mmaUnderOver,\mmaSqrt,\mmaRadicalare no longer processed in math mode.
If math mode is required use it explicitly, so change e.g.\mmaSup{\alpha}{2}to\mmaSup{\(\alpha\)}{2}.
If sub- or super-script is required to be right next to first argument, use corresponding\...Mcommands, e.g.\mmaSubSupM{\int}{r}{∞} - #23
#is now considered a letter character, so it can be used in identifier names. - #27 Default formatting is no longer set using
listingsbasicstyle, instead it's set usingfancyvrbformatcomand default color is set usingformatline. - #27 Commands given in
formatlineoption are now used also in inline cells. - #24
\mmacells_define_annotation_keys:nnnnnncommand was removed.
New features
-
#25
uselistingskeyIf set to
falsecells will not uselistingsinterface, just purefancyvrb.listingsinterface tofancyvrbis buggy andlistingssupport for Unicode is very limited.With
listingsswitched off, syntax highlighting, based purely on annotations, can be used, and auto-generated by Mathematica. -
#24 New annotations
\mmaStrand\mmaCmtfor annotating strings and comments respectively.
stringstyleandcommentstylekeys for setting apropriate styles. -
#26 New formatting commands
\mmaSupM,\mmaSubM,\mmaSupSubMthat process their first argument in math mode. -
#24
\mmacells_define_idlistless_annotation:nnnnmacro defining annotation without accompanying keys setting identifier lists.
0.2.0
Backward incompatible changes
Renamed key:
messagecolorchangeliterate->messagecolorchange
Changed key usage:
messagelinkliterateandmessagelinkliterate=true->messagelinktype=builtinmessagelinkliterate=false->messagelinktype=none
Removed macro:
\mmacells_lst_set_literate:n
New features
Inline cells
\mmaInlineCellcommand that allows putting cells inline with surrounding text.\mmaInlineCellNonVerbnon-verbatim variant, for use inside arguments of other macros.
messagelinktype key
It accepts: builtin, local and none values.
- With
messagelinktype=builtin,>>is replaced by link to Mathematica built-in documentation, it supersedesmessagelinkliterate=true. - With
messagelinktype=local,>>is replaced by link to local target, inside document. - With
messagelinktype=none,>>is not replaced, it supersedesmessagelinkliterate=false.
uselist key
It enables switching off list wrappers, that provide labels and consistent spacing for cells.
Bugs fixed
patternvariables, with defaultpatternstyle, used inside math mode, no longer cause warnings.
0.1.1
0.1.0
Backward incompatible changes
Renamed keys:
xleftmargin->leftmargin,graphics->ig,dynamic->functionlocal,lexical->local,argument->pattern,error->excessargument,...*->more....
Changed key usage:
mathreplacements->mathreplacements=light,mathreplacementsbold->mathreplacements=bold.
Renamed commands:
\mmaDyn->\mmaFnc,\mmaLex->\mmaLoc,\mmaArg->\mmaPat,\mmaErr->\mmaExc,\mmaLinkTarget->\mmaLnT,\mmaLinkLocal->\mmaLnL,\mmaLinkBuiltin->\mmaLnB.
Renamed colors:
mmaDynamic->mmaFunctionLocal,mmaLexical->mmaLocal.
New features
Graphics support
\mmaGraphicscommand to include inline graphics inside code.igkey passing key values to\includegraphicscommand.pole1,pole2,xoffsetandyoffsetkeys used as arguments for typesetting coffins containing graphics.cellgraphicsandgraphicskeys storing default key values for corresponding commands
addtoindex key
Takes integer that will be added to current cell index.
Using addtoindex should be preferred to using index when purpose of manual index tweaking is compensation of Null returning line (i.e. situation in which cell index in FronEnd is incremented, but no output cell is produced).
verbatimenv key
Takes name of verbatim environment to be used by mmaCell.
Can accept any verbatim environment from fancyvrb package, or custom environment based on one of fancyvrbs environments.
Can also be empty, then no verbatim environment is used and contents of mmaCell environment are used in ordinary text mode.
postwidelabel key
Takes arbitrary tokens that will be expanded after cell label, when it's too wide.
formatline key
Takes arbitrary command that will be called for each line, with argument being result of calling \FancyVerbFormatLine on line contents.
mathreplacements changed to choice key
It accepts: light, bold and none values.
New supported syntax elements
| Mathematica name | command | key |
|---|---|---|
| LocalScopeConflict | \mmaLCn | localconflict |
| GlobalToLocalScopeConflict | \mmaGCn | globalconflict |
| UnknownOption | \mmaOpt | unknownoption |
| UnwantedAssignment | \mmaAsg | unwantedassignment |
| SymbolShadowing | \mmaShd | shadowing |
| SyntaxError | \mmaSnt | syntaxerror |
| EmphasizedSyntaxError | \mmaEmp | emphasizedsyntaxerror |
| FormattingError | \mmaFmt | formattingerror |
All elements have accompanying more..., delete... and ...style keys.
New colors
mmaSyntaxError,mmaEmphasizedError,mmaEmphasizedErrorBackground,mmaFormattingError,mmaFormattingErrorBackground.
Boolean keys
formatted, annotations, messagelinkliterate, messagecolorchangeliterate are now boolean keys, so can be easily unset with e.g. formatted=false, which was impossible before.
delete... keys
...* keys (now renamed to more... keys) acquired corresponding delete... keys.
Custom annotation definitions
\mmaDefineAnnotation command defining command and key allowing marking of code fragments, together with corresponding more..., delete... and ...style keys.
\mmaDefineFrontEndInStyle command automatically taking into account annotations defined with \mmaDefineAnnotation command.
\mmaHl command
"Verbatim-safe" highlighting.
Bugs fixed
- Fixed spacing after
Messagecell. - Added
graphicxto required packages.