1

Actually, this is a markdown question. But I can't find a markdown community.

I want the letter "w" to be bold in the expression y(x, w). $y(x, \boldsymbol{w})$ works. But the following parentheses become bold also. How can I fix it?

  • Could you please provide a complete example that starts with \documentclass and ends with \end{document}? Under normal circumstances the parentheses do not become bold. Or does markdown mean you are using something like MathJax? –  Dec 31 '19 at 04:17
  • @Schrödinger'scat You guess it right. He can’t provide a MWE because he is not using LaTeX, but some math libraries like MathJax. – fractal Dec 31 '19 at 06:18
  • @Fractal Thanks! This is what I thought. Probably this question is off-topic then, right? –  Dec 31 '19 at 06:26
  • @Schrödinger'scat Not really, it only asks about math mode commands, no Markdown knowledge required. MadyYuvi’s answer is the correct answer, IMHO. – fractal Dec 31 '19 at 06:29
  • @Schrödinger'scat Ah, oh, sorry. My bad. I’m clearly wrong. – fractal Dec 31 '19 at 07:08

2 Answers2

0

Happy New Year...

The tag \mathbf{W} may helps you

MadyYuvi
  • 13,693
-2
\documentclass[12pt,a4paper]{article}
\begin{document}
This program helps:

The equation is $y(x,\text{\textbf{w}})$
\end{document}

I think this also will work, but this considers 'w' as a text letter.

Shehin
  • 17
  • 4
  • 1
    This does NOT work! What if I use a different font family for text mode (which is not uncommon)? There are many problems other than that! Please don’t confuse text mode and math mode! – fractal Dec 31 '19 at 06:15
  • By the way, I think your code is not even compilable. You need amsmath to use \text. (Not 100% sure if I am right, I’m not with my computer right now.) – fractal Dec 31 '19 at 07:13
  • I got it compiled. And amsmath is a common package that comes with Quickstart too right? – Shehin Dec 31 '19 at 08:33
  • That depends on your editor. You may load it automatically, but not everyone does so. I just tested your code on my machine, it is not compilable. Error: \text is undefined. – fractal Dec 31 '19 at 08:34