To use Computer Modern for bold Greek letters, you can put the following into the preamble of your document:
\usepackage{amsmath}
\SetSymbolFont{letters}{bold}{OML}{cmm}{b}{it}
\SetSymbolFont{operators}{bold}{OT1}{cmr}{bx}{n}
To typeset a bold \Gamma
, you can then write \boldsymbol{\Gamma}
. That said, the result looks mixed because the regular weight of Times already looks pretty heavy compared to Computer Modern.
Here's a LuaLaTeX-based solution. It sets up a Lua function called nabla_f
that does most of the work, and it assigns this function to the process_input_buffer
callback, making it operate on all inputs before TeX starts is usual processing.
% !TEX TS-program = lualatex
\documentclass{article}
\usepackage{times,mtpro2} % text and math fonts
\usepackage{luacode}
\begin{luacode}
function nabla_f ( s )
return ( s:gsub ( "\\nabla%s*f" , "\\nabla\\mkern-4mu f" ) )
end
\end{luacode}
\directlua{luatexbase.add_to_callback("process_input_buffer", nabla_f , "nablaf" )}
\begin{document}
$\nabla{}f$ $\nabla f$ $\nabla h$ $\nabla k$
\end{document}
Addendum: If you also want to change the amount of whitespace between \partial
and f
, while keeping the instruction to change the distance between \nabla
and f
, I suggest you replace
return ( s:gsub ( "\\nabla%s*f" , "\\nabla\\mkern-4mu f" ) )
with
s = s:gsub ( "\\nabla%s*f" , "\\nabla\\mkern-4mu f" )
s = s:gsub ( "\\partial%s*f", "\\partial\\mkern-4mu f" )
return s
Of course, you can (and should) change the new instance of -4mu
to whatever the optimal adjustment amount may be.
Best Answer
Yes, there are quite a few advantages.
Most important: Math italics are available at several optical sizes -- extremely nice for typesetting material in TeX's script- and scriptscript-sizes.
Beautifully styled, "real" curly braces at all sizes. With
mathptmx
andtxfonts
, as with the regularCM
andLM
fonts, most of the tall curly braces are really straight with only the very top and bottom parts being "curly";Beautifully styled radicals (square roots);
Good-looking sum and integral symbols;
Upright and slanted uppercase Greek letters;
Easy to typeset entire formulas in bold (as opposed to only the letters);
Better positioning of subscripts; and ...
If you get the "full" version of the package (the "lite" version is free of charge, by the way), you also get specially styled fraktur, script, and blackboard-bold math alphabets.
A longer and more-detailed listing may be found in the User Guide of the MathTime Pro package.
Do note, though, that
mtpro2
provides only math fonts and no text fonts. Thus, if you do use and load themtpro2
package, you'll still need to issue a command such asin the preamble in order to get Times-style text fonts.