1

I have the following document. I would like that all formula in the title of the sections and the chapters becomes bold (that is ${2\neq}$ and $\nu\geqslant 1$). How to make this possible?

\documentclass{book}

\usepackage{titlesec}
\titlespacing*{\section}{0pt}{1\baselineskip}{0\baselineskip}
\titleformat*{\section}{\large\bfseries}


\usepackage{amssymb}

\usepackage{xepersian}
\settextfont{Arial} 
\setdigitfont{Arial}

\usepackage{bm, amsbsy}
\usepackage{relsize}
\DeclareRobustCommand{\centersmaller}[1]{%
  \raisebox{.5\dimexpr\fontcharht\font`T-\height}{\smaller[3]#1}}



\begin{document}

\chapter{\centersmaller{(${2\neq}$)}}



\section{$\nu\geqslant 1$}

$\bm{\geqslant}$\\
$\pmb{\geqslant}$
\end{document}

I tried to use the suggestions in the link provided in the comment below. The only working solution from there was to use \pmb from bm packages. Unfortunately using this gives undesirable output for \gesqlant as shown in the below image:

enter image description here

Name
  • 2,816

1 Answers1

1

Please try this

$\bm{formula}$

This seems to be working for me, but with pdflatex

\documentclass{book}

\usepackage{titlesec}
\titlespacing*{\section}{0pt}{1\baselineskip}{0\baselineskip}
\titleformat*{\section}{\large\bfseries}


\usepackage{amssymb}


\usepackage{bm, amsbsy}
\usepackage{relsize}
\DeclareRobustCommand{\centersmaller}[1]{%
    \raisebox{.5\dimexpr\fontcharht\font`T-\height}{\smaller[3]#1}}



\begin{document}

    \chapter{\centersmaller{(${2\neq}$)}}



    \section{$\nu\geqslant 1$}

    $\bm{\geqslant}$\\
    $\pmb{\geqslant}$


    \chapter{\centersmaller{($\bm{2\neq 2}$)}}


    \section{$\nu\geqslant 1$}

    $\bm{\geqslant}$\\
    $\pmb{\geqslant}$

\end{document}
  • For the particularity of my document, I should compile with xelatex. But even with pdfkatex, If you zoom in you see that the shape of \geqslants' is the same as the image I have attached. So the issue is still there. – Name Oct 26 '16 at 15:04