<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hi Alain,<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 19 Dec 2020, at 6:34 am, Alain Schremmer <<a href="mailto:schremmer.alain@freemathtexts.org" class="">schremmer.alain@freemathtexts.org</a>> wrote:</div>
<div class="">
<meta content="text/html; charset=utf-8" class="">
</div>
</blockquote>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">>>>> $\xrightarrow{5}$ and \boldsymbol{$5$} both compile but \boldsymbol{$\xrightarrow{5}$} does not.<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>I’m surprised that  \boldsymbol{$5$}  works at all.</div>
<div>It should be  $ \boldsymbol{5} $   *within* a math environment.</div>
<div>Or  \( \boldsymbol{5} \) .</div>
<div>Otherwise you may not be getting the correct math spacing around the symbol.</div>
<div><br class="">
</div>
<div>Note that $ … $  is *not* a font-switch indicator.</div>
<div>It means “ what is enclosed is a piece of mathematics”, and will be typeset using rules and conventions</div>
<div>appropriate for mathematical expressions;  i.e.,  even if enclosed letters look like they form words, </div>
<div>that is *not* the intention. Each letter is a *separate* mathematical symbol.</div>
<div><br class="">
</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">>>>> <br class="">
>>>> The error is:<br class="">
>>>> <br class="">
>>>> 2.tex:1309: Improper alphabetic constant.<br class="">
>>>> <to be read again> <br class="">
>>>> \reserved@d <br class="">
>>>> l.1309 \boldsymbol{$\xrightarrow{5}$}<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Of course this fails, because you are trying to apply  \boldsymbol  to a whole</div>
<div>environment, rather than to a single symbol.</div>
<div><br class="">
</div>
<div>Is    \xrightarrow{5}  the *complete contents of the mathematical expression,</div>
<div>or only part of it ?</div>
<div><br class="">
</div>
<div>If it is the *entire* math-expression, then have you tried the following ?</div>
<div><br class="">
</div>
<div>      {\mathversion{bold}\( \xrightarrow{5} \)}</div>
<div><br class="">
</div>
<div>The surrounding  { … }   are to delimit the usage of bold mathematical symbols to just this piece.</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>
<div>If it is *part of a larger* math-expression, then try this:</div>
<div><br class="">
</div>
<div>  $ … \boldsymbol{\xrightarrow{\boldsymbol{5}}} … $</div>
<div><br class="">
</div>
<div>Of course you don’t want you document source to contain all those long macro names.</div>
<div>So instead you should probably be defining a home-grown macro:</div>
<div><br class="">
</div>
<div>  \newcommand{\boldto}[1]{\boldsymbol{\xrightarrow{\boldsymbol{#1}}}}</div>
<div><br class="">
</div>
<div>and just type;    $ … \boldto{5} … $</div>
</div>
<div><br class="">
</div>
</div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<meta content="text/html; charset=utf-8">
<div></div>
<div><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">>>>> <br class="">
</div>
</div>
</blockquote>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">>>>> Any way around it?<br class="">
>> <br class="">
>>> Howdy,<br class="">
>> <br class="">
>>> Are you sure \boldsymbol{$5$} compiles? I believe the \boldsymbol needs to be in math mode so $\boldsymbol{5}$ and $\boldsymbol{\xrightarrow{5}}$ work fine.<br class="">
>> <br class="">
>> Both $\boldsymbol{5}$ and \boldsymbol{$\rightarrow$} compile which is one more thing I don’t get---but which does not make me lose any sleep.
<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>\boldsymbol is changing the math fonts for its argument.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">>> <br class="">
>> But $\boldsymbol{\xrightarrow{5}}$ definitely produces the error I mentioned. At least for me.<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>It didn’t for me.</div>
<div>What is the date of your LaTeX version?</div>
<div><br class="">
</div>
<div>Mine is as follows:</div>
<div><br class="">
</div>
<div>
<div></div>
<blockquote type="cite" class="">
<div></div>
</blockquote>
<blockquote type="cite" class="">
<blockquote type="cite" class="">
<div></div>
</blockquote>
</blockquote>
<blockquote type="cite" class="">
<blockquote type="cite" class="">
<blockquote type="cite" class="">
<div>LaTeX2e <2018-12-01></div>
<div>(/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls</div>
</blockquote>
</blockquote>
</blockquote>
<div class=""><br class="">
</div>
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">>> <br class="">
>> On the other hand, I just found out that $\pmb{\xrightarrow{5}}$ does work. So, I am ok.<br class="">
> <br class="">
> Howdy,<br class="">
> <br class="">
> <test.tex><br class="">
> <br class="">
> <test.pdf><br class="">
> <br class="">
> seems to work fine.<br class="">
<br class="">
Sure do but not here. I tried to put my preamble on your example but I got other errors so I quit: \pmb will do here as, in fact, \boldsymbol does work for everything ELSE.<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Do you understand what  \pmb  is really doing?</div>
<div><br class="">
</div>
<div>Try Copy/Paste of the result from \pmb  – Everything is tripled-up.</div>
<div><br class="">
</div>
<div>The same piece of mathematics is typeset 3 times, slightly shifted.</div>
<div>It’s like creating an artificial bold on a golfball typewriter, without having the proper golfball for bold symbols.</div>
<div>You overstrike the symbols with tiny offsets of the head. A very ugly hack!</div>
<div><br class="">
</div>
<div>It’s like buying a Gucci handbag from a street stall in an Asian city.</div>
<div>It may look like Gucci, using their attractive design; but the quality and workmanship is vastly inferior.</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class=""><br class="">
>>> As a side note you should get used to \(...\) instead of $...$ for inline math (and \[...\] instead of $$...$$ if you use that for display math).<br class="">
>> <br class="">
>> When I was writing some of my stuff on the web, I did but didn’t like it so stopped using them as soon as I stopped writing web pages.
<br class="">
>> <br class="">
>> But, I am curious, are there other reasons?<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>The beginning and end delimiters are clearly specified, without the need to count how many $s have been used.</div>
<div><br class="">
</div>
<div>This allows you to more easily program selection of a whole math-expression,</div>
<div>to do any special processing required for your particular circumstances.</div>
<div>e.g., processing for web-pages, rather than for the printed page.</div>
<div><br class="">
</div>
<div>That is, it allows for better ways to capture the structure of your document.</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>If you think in terms of document structure, rather than just what you want to see on the page,</div>
<div>then you’ll find using LaTeX correctly becomes an awful lot easier.</div>
<div>Also use of well-named user-defined macros can make your document source a lot easier to read.</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="">>> <br class="">
>> Best<br class="">
>> —s <br class="">
> <br class="">
> They are macros that default to $...$ and $$...$$ but packages like amsmath can change things like spacing.<br class="">
<br class="">
Thanks but I am way too old to change my habits—unless forced to.<br class="">
<br class="">
Speaking of habits:<br class="">
<br class="">
Since my atheist parents always had Christmas presents under a Christmas tree, and even though this may not be a new year for everybody, I wish everybody<br class="">
<br class="">
A Merry Christmas and a Happy New Year<br class="">
<br class="">
because "C’est l’intention qui compte."<br class="">
<br class="">
—schremmer<br class="">
<br class="">
----------- Please Consult the Following Before Posting -----------<br class="">
TeX FAQ: <a href="https://protect-au.mimecast.com/s/E7AeCyoj8Pu9grrNcPB2dE?domain=tex.ac.uk" class="">
http://www.tex.ac.uk/faq</a><br class="">
List Reminders and Etiquette: <a href="https://protect-au.mimecast.com/s/sweJCzvkmpfJ3MMRiMi51S?domain=sites.esm.psu.edu" class="">
https://sites.esm.psu.edu/~gray/tex/</a><br class="">
List Archives: <a href="https://protect-au.mimecast.com/s/nI-xCANpnDC7gNN9sBfWqK?domain=dir.gmane.org" class="">
http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">
<a href="https://protect-au.mimecast.com/s/Y-HUCBNqgBCE177VsQPoEf?domain=email.esm.psu.edu" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">
TeX on Mac OS X Website: <a href="https://protect-au.mimecast.com/s/Ffr8CD1vRkCg155BFvb1Vf?domain=mactex-wiki.tug.org" class="">
http://mactex-wiki.tug.org/</a><br class="">
List Info: <a href="https://protect-au.mimecast.com/s/vjocCE8wlRCRm33WckCJ9c?domain=email.esm.psu.edu" class="">
https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class=""><br class="">
Dr Ross Moore<br class="">
Department of Mathematics and Statistics 
<div class="">12 Wally’s Walk, Level 7, Room 734<br class="">
Macquarie University, NSW 2109, Australia<br class="">
T: +61 2 9850 8955  |  F: +61 2 9850 8114<br class="">
M:+61 407 288 255  |  E: <a href="mailto:ross.moore@mq.edu.au" class="">ross.moore@mq.edu.au</a><br class="">
<a href="http://www.maths.mq.edu.au" class="">http://www.maths.mq.edu.au</a><span style="font-size:12px; line-height:normal"><a href="http://mq.edu.au/" target="_blank" class="" style="font-size:12px; line-height:normal"><span><br class="x_Apple-interchange-newline" style="color:rgb(0,105,217); font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Arial,sans-serif; orphans:2; widows:2">
<span style="color:rgb(0,105,217); font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Arial,sans-serif; orphans:2; widows:2"><span><span><span><span></span></span></span></span></span></span></a></span></div>
</div>
</div>
<div><img src="cid:49a8d64c-cd19-4e2e-b858-ed632f5c0265@ausprd01.prod.outlook.com">
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">
<div class=""><span style="font-size:12px; line-height:normal"><a href="http://mq.edu.au/" target="_blank" class="" style="font-size:12px; line-height:normal"><span><span style="color:rgb(0,105,217); font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Arial,sans-serif; orphans:2; widows:2"><span><span><span><span></span><br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">CRICOS
 Provider Number 00002J. Think before you</span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important"> </span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">print. </span><br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">Please
 consider the environment before printing this</span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important"> </span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">email.</span><br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">This
 message is intended for the addressee named</span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important"> </span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">and
 may </span><br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">contain
 confidential information. If you are not the</span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important"> </span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">intended </span><br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">recipient,
 please delete it and notify the sender. Views</span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important"> </span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">expressed </span><br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">in
 this message are those of the individual sender, and</span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important"> </span><span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">are
 not </span><br class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none">
<span class="" style="font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:2; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; color:rgb(0,0,0); font-family:Helvetica; text-decoration:none; float:none; display:inline!important">necessarily
 the views of Macquarie University.</span> </span></span></span></span></span></a></span></div>
<a href="http://mq.edu.au/" target="_blank" class="" style="font-size:12px; line-height:normal"></a></div>
<br class="">
</div>
</body>
</html>