3

How to make bold the TABLE: ?

I tried:

\documentclass{article}
\usepackage{fontspec}
\usepackage{lipsum}%to generate dummy data
\setmainfont{Segoe UI Symbol}  
\usepackage{caption} 
\renewcommand{\tablename}{\textbf {TABLE}}
\begin{document}

\begin{table}

\caption[]{Electronic \v{r}}
\begin{center}
\begin{tabular}{cr}
\hline\hline\noalign{\smallskip}
a&a\\
\end{tabular}
\end{center}
\end{table}
\end{document}

and nothing has happend. It is not bold.

9
  • \textbf takes an argument. You need braces: \textbf{TABLE}. That or \bfseries TABLE. Aug 30, 2019 at 15:37
  • 2
    You shouldn't normally put the formatting in such a command. If you want to change it in a caption use e.g. the caption package - but without complete example this is only guessing (and the title of your question is bewildering anyway) Aug 30, 2019 at 15:45
  • I editted my question Aug 30, 2019 at 16:01
  • Your font has no bold version, you could only fake it. Aug 30, 2019 at 16:05
  • 1
    Loas xcolor and type something like \renewcommand{\tablename}{\textcolor{red}{TABLE}}`.
    – Bernard
    Aug 30, 2019 at 16:46

1 Answer 1

4
\documentclass{article}
\usepackage{fontspec}
\usepackage{lipsum}%to generate dummy data
\setmainfont{Segoe UI Symbol}%
  [BoldFont=Segoe UI Bold]  
\usepackage[tablename=TABLE]{caption} 
\captionsetup{labelfont=bf}
\begin{document}

\begin{table}
\caption[]{Electronic \v{r}}
\centering
\begin{tabular}{cr}
    \hline\hline\noalign{\smallskip}
    a&a\\
\end{tabular}
\end{table}
\end{document}

If I use \setmainfont{Segoe UI} instead of the Symbol font I get the following output:

enter image description here

The symbol font has no \v{r}

1
  • Thank you for your solution Aug 30, 2019 at 20:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .