In my part of document (and also beamer slides), I would like to write something like this in the figure caption,

Figure. X: A lazy old fox.

instead of,

Figure. X: A lazy old fox.

I couldn't typeset it when I use this,

\caption{A lazy \textbf{old} fox}

Can someone point out my mistake and also provide a solution for this. Moreover, I am using pdflatex for preparing the documents.

  • 2
    We'll need a minimal working example (MWE) to help you further, since this one is working perfectly (i.e. old is bold) for me: \documentclass{scrartcl} \usepackage{graphicx} \begin{document} \begin{figure} \includegraphics{example-image} \caption{A lazy \textbf{old} fox} \end{figure} \end{document} – ebosi Sep 14 '16 at 11:29
  • @ebo I am using several .sty files and many packages, can you suggest me how to create a minimal working example out of that. – Raaja Sep 14 '16 at 11:38
  • 1
    I could not do better than this! (-; Creating a MWE is tedious, but most of the time, it's the easiest way to solve your issue (even easier than to post on TeX.SE!) – ebosi Sep 14 '16 at 11:44
  • @ebo I shall try to create one as soon as possible :p – Raaja Sep 14 '16 at 11:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.