Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mathematica's spacing of symbol accents when typesetting mathematical formulas

Mathematica appears to have difficulty horizontally aligning accents (e.g. bars, hats, and tildes) when placed on top of certain mathematical symbols.

Here's a simple example:

enter image description here

Using the AdjustmentBox typesetting construct (or Alt-Left/Right arrow in the frontend), one can manually adjust the relative horizontal position of the hat and the symbol j to produce the more aesthetically pleasing:

enter image description here

There are two problems here:

1). It is inconvenient and time-consuming to make these manual adjustments when this should really be the job of the typesetting engine proper. Indeed, LaTeX is able to position accents correctly over all of the standard symbols (roman and greek letter forms) without the need to manually tweak their relative positioning.

2). The relative re-positioning of the symbols using AdjustmentBox is lost when exporting the Notebook to PDF for printing and re-distribution.

Question:

Does anyone have any suggestions for a more convenient way (preferably automatic) to improve the typeset quality of formulas in Mathematica notebooks that use accents, that preferably will also survive export of the notebook document to PDF format before printing?

like image 694
StackExchanger Avatar asked Dec 20 '11 21:12

StackExchanger


1 Answers

You can select " ĵ " from the Windows character map and paste it in.

Style[ĵ, Italic, 24, Bold, FontFamily -> "Times"]

enter image description here

Also you can assign it to an input alias (borrowing from Andrew Moylan)

n = SelectedNotebook[];
SetOptions[n, 
 InputAliases -> 
  Append[Options[n, InputAliases][[1, 2]], "j^" -> "ĵ"]]

Typing Escj^Esc produces ĵ.

like image 110
Chris Degnen Avatar answered Oct 02 '22 22:10

Chris Degnen