Freigeben über


Linear Format Version 3

Unicode Nearly Plain-Text Encoding of Mathematics, Version 3 (Unicode Technical Note #28) is now posted. The differences between Version 1 and 2 of that paper are largely cosmetic, but there were enough changes in Version 2 to merit a new number. Version 2 is mostly implemented in Microsoft Word 2007, where it is referred to as the “linear format”. Typing the linear format into a Word 2007 math zone results in “formula autobuildup”, that is, automatic conversion to the built-up format of expressions as their syntax becomes unambiguous.

The new features added in Version 3 are identified as such. They are mostly implemented in the Microsoft Office 2010 applications Word, PowerPoint, Excel, and OneNote. Typically the new features offer convenience over ways defined in Version 2, and the Version 2 syntax remains valid in Version 3. The additions were often inspired by [La]TeX. Examples of simplified input are \choose for binomial coefficients, \cases for alternative definitions, \pmatrix for parenthesized matrices, \middle to define a custom character as a bracket separator, a simpler prescript notation, \root n\of x notation for nth roots, equation alignment, size overrides, and simple negated operator input. The section Version Differences has hyperlinks to where these additions are documented. There are also numerous cosmetic changes along with lots of internal links to facilitate navigation.

If you use Microsoft Office math zones, please read Section 2. It’s a quick read. The knowledge so gained makes it easy to enter simple mathematical expressions into Word 2007/2010, PowerPoint 2010, OneNote 2010 and Excel 2010. Section 3 discusses how to enter more complicated expressions.

Comments

  • Anonymous
    March 13, 2010
    I didn't know you could use U+2146 for the letter "d" in integrals. From looking at the math auto-correct tables it appears to have the shortcut "dd". Might be worth mentioning.

  • Anonymous
    March 13, 2010
    Thank you very much for the new version of the Liner format paper.  There are many new interesting and useful additions. It seems that some new features are undocumented (or not mention), e.g.  rm,  mathrm,  mathnor,  hbox,  it,  mathit,  mit,  mathbf,  bit,  mathbit,  mathsf,  mathtt,  mathscr,  cal,  mathcal,  mathfrak,  mathbb,  vmatrix,  Vmatrix,  stackrel,  char,  displaystyle,  textstyle  scriptstyle,  scriptscriptstyle,  text, strut,  Biggr,  Biggl,  biggr,  biggl,  Bigl,  Bigr,  bigl,  bigr,  biggm,  Biggm,  bigm,  Bigm,  binom,  cr,  quad,  qquad,  break,  frac,  smile,  etc....  -  all this commands work in math zone of Office 2010 Beta.  Some of them are very important.  But I couldn't  find them in the Linear format paper :-( I know how they work (some of them), but a description of these commands (keywords) could be interesting and useful for another people :-)

  • Anonymous
    March 13, 2010
    These control words aren't documented in the linear format paper V3 because they aren't ready to use in Office 2010. Some of them did work, sort of, in the Office 2010 betas, but they needed more work so they aren't available in the released version. I hope to get them running in Office 15 (the version after 2010).

  • Anonymous
    March 13, 2010
    dd, ee, etc. are defined in Appendix D, but they should be mentioned in Sec. 3.11 3.11 Differential, Exponential, and Imaginary Symbols as well. Thanks for the feedback.

  • Anonymous
    March 13, 2010
    Thank you for your reply. I have problems with "Unicode Subscripts" (U+2080 - U+208F) in math zone. When I insert the "Unicode superscripts" into the math zone, they are converted (built up) to the superscripts (e.g. U+2075 is converted to "^5") - that is correct. But "Unicode Subscripts" (U+2080 - U+208F) aren't converted to subscripts, but they are converted to superscript (e.g. U+2082 is converted to"^2", but I think that it should be converted to "_2"). Please, is it correct? I still use Office 2010 Beta (and the same behavior of math zone is in Word 2007). I have also problems with differentials, natural exponent, and imaginary units i and j (dd,  Dd, ee,  ii,  jj) in Powerpoint and Excel 2010 Beta. They are rendered as math italic, but I cannot change them to upright (unslanted) style. In Word 2007/2010 it works without problems. In Europe we use differentials, natural exponent, and imaginary units in upright style, sometimes even in "typewriter/Monospace symbol" style (not roman/serif style) :-) Please, is there any way how to change differentials, natural exponent, and imaginary units from italic to upright/unslanted style in Powerpoint/Excel? Thank you.

  • Anonymous
    March 14, 2010
    Argg! You're right about the Unicode subscripts turning into superscripts and not being able to unitalicize the dd, etc., in PowerPoint and Excel. We did fix it so that you can bold the dd (select it and type ctrl+b), but the much more important case of making it upright was left to a default document setting that isn't used in Office 2010. I've published physics papers in European journals and know about the need to have upright letters for the dd, ee, ii, etc. The work around is to use the ordinary letters rather than 2145..2149, but then you have to insert a thin space manually in various cases involving dd. Sorry. I'll fix these bugs for Office 15.

  • Anonymous
    March 16, 2010
    I am still learning more refined techniques with the 2010 beta equation facility. It takes a little getting used to but the more I work with it the more I like it, especially coming from Word 2003/MathType. I have another suggestion. Some of the backslash keywords could have shorter aliases that are faster to type. For example, "rarrow" being equivalent to "rightarrow." It would also be neat if the user could just type an unambiguous  substring instead of the entire string. For example:  "matr" or "mat" instead of "matrix." It would not be confused with "pmatrix" if the string is matched starting at the first character. It would have to check for all cases where the sub-string matches. If there is more than one then it would be rejected. Alternately, the string list being checked against could have a minimum-sized alias with no ambiguity. I have used sub-string parsing technique like these in some programs. It can save a lot of time typing frequently-used keywords.

  • Anonymous
    March 16, 2010
    Users can define shorter keywords using the AutoCorrect dialog. Good idea to allow for autocompletion. It could be offered as an option that displays the possible result in a tooltip with the instruction (Press Enter to Insert) as often done for names of the month in Word.

  • Anonymous
    March 17, 2010
    Thanks for replying. I was thinking about building the short names right into the code--not as a user option. The user can type in the full name if they want or any reduced name all the down to the minimum title. For example: "mat" matr" and "matri" would all have the same result because they all contain the minimum keyword "mat". The code would only need to store two strings: the minimum name for string searches and the full name for auto-correct. I was thinking about unprompted auto-complete. For example: a user types:  "mat("  which is instantly converted to "matrix(" on the "(" key. Something like "alp" for "alpha" would be converted after a space or an operator. The minimum keyword could be as small as three characters for many cases. But something like rightharpoondown would not be shortened much. beta and beth would have minimum string = full name string. BTW  Please do not take any of these suggestions to be anything more than ideas to consider--not any sort of criticism of the product. It is quite efficient to use as is.

  • Anonymous
    March 25, 2010
    I can't express how happy I was when my office upgraded to Word 2007 and I began using the new equation interface. Such a step in the right direction. Now if we could just import and export LaTeX. (I'm sure no one else has mentioned that.) You should know that for some reason this blog (and your awesome new paper) is very hard to find without knowing your name. Without finding it I would have been extremely frustrated with the available documentation. Again, thank you.

  • Anonymous
    May 05, 2010
    The comment has been removed

  • Anonymous
    May 06, 2010
    The comment has been removed

  • Anonymous
    May 06, 2010
    Hello, That worked brilliantly; thanks! Cheers, Jeff

  • Anonymous
    May 07, 2010
    Jeffrey: In OneNote and PowerPoint, it is possible to add the equation number into equation manually (as described in Linear format): Your equation must be in "Display" mode. In "displayed" equation, you must create an "Equation array" (keyword eqarray), and inside the array, type your equation (e.q. E=mc^2) - so you have eqarray(E=mc^2). After buildup the array and equation, you must return the cursor back into the equation array (behind your equation, e.q. E=mc^2, but "inside" the equation array) and type #   (keyword eqno<space> does not work). After that, cursor moves automatically to the right side of math paragraph, and you can type there some text or manual number for your equation  -  so your equation is centered and the equation number is on the right side of paragraph. It works in PowerPoint, Excel, and OneNote, but it does not work in Word.

  • Anonymous
    May 07, 2010
    Hello, I found another issue in OneNote. OneNote creates all equation variables in upright (unslanted) face by default, but they should by in italics. I always must switch them to italics manually. Please, is there any way to set the italics as the default font for variables? Thanks.

  • Anonymous
    May 09, 2010
    The comment has been removed

  • Anonymous
    May 11, 2010
    I don't know how is it possible, but in Office 2010 RTM 64bit (build 14.0.4760.1000) except Word, I can display the equation number using the equation-array method of displaying equation numbers. Maybe it is caused by the fact that on the computer, where I try it, Office 2010 Beta (32bit) was install before, and some settings wasn't deleted during reinstallatio(?) - I don't know, but it is surprise for me too. Probably, after reinstalling Windows and clean installation of Office, situation would change (but I cannot check it). Please sorry for misunderstanding, and sorry for this and previous post, but I write only what I found out.

  • Anonymous
    May 11, 2010
    Correction: Not "post" but "my comment". Sorry again :-(

  • Anonymous
    May 26, 2010
    What about importing LaTeX? What is the progress with that?

  • Anonymous
    May 26, 2010
    We're thinking about importing/exporting LaTeX in math zones. Kind of handy when you want to copy an equation from Wikipedia, among other sources. Or maybe LaTeX is in your fingers. Hopefully we'll have the resources to add this functionality.

  • Anonymous
    February 06, 2011
    There is basically no documentation on the /eqarray command so I'll post a quick example that I had to figure out from trial and error: eqarray(Z-3x_1&-5&x_2&-6&x_3&&&&=&0 @ 2x_1&+&x_2&+&x_3&+x_4&&&=&4 @ x_1&+2&x_2&+&x_3&+&x_5&&=&4 @ x_1&+&x_2&+2&x_3&+&&x_6&=&4 @ x_1&+&x_2&+&x_3&+&&&x_7=&3) Basically it aligns each sequential ampersand in the equations. That's why the first one need four extras (corresponding to the gaps caused by the lack of x_4-7). Hope this gets added into Google's search results for "eqarray" because I had a heck of a time finding information about the command.

  • Anonymous
    September 07, 2014
    The comment has been removed