I am writing a document which needs to have tables and figures.
Normally for formatting the caption of figures/tables I use
But it affects both tables and figures captions.
Is there any way to define different formatting for captions, e.g. bold captions for tables and italic captions for figures? I'd like to do this without using packages.