GeneralHow to make Table captions bold?

LaTeX specific issues not fitting into one of the other forums of this category.
yusuf
Posts: 9
Joined: Tue Apr 08, 2008 11:02 pm

How to make Table captions bold?

Post by yusuf »

One other question, if I place the package is another directory not in the one I am running LATEX in, how can I point to it?

Such as the example for the caption?

Code: Select all

\usepackage[format=hang,font=small,labelfont=bf]{caption}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Do I invoke the \usepackage in a different manner?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

yusuf
Posts: 9
Joined: Tue Apr 08, 2008 11:02 pm

How to make Table captions bold?

Post by yusuf »

Ok I think I figured how to use my own directory for LATEX to search for new packages etc...

I just did this:

setenv TEXINPUTS= ~/texmf

I got this in my listfiles call:

Code: Select all

*File List*
report.cls 2001/04/21 v1.4e Standard LaTeX document class
size11.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
geometry.sty 2002/07/08 v3.2 Page Geometry
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
geometry.cfg 2001/06/05 v1.0 teTeX (uncustomised setup)
sectsty.sty 2002/02/25 v2.0.2 Commands to change all sectional heading styles
bookman.sty 2002/09/08 PSNFSS-v9.0a (SPQR)
fontenc.sty
t1enc.def 2001/06/05 v1.94 Standard LaTeX file
chancery.sty 2002/09/08 PSNFSS-v9.0a (SPQR)
fancyhdr.sty
longtable.sty 2000/10/22 v4.10 Multi-page Table package (DPC)
placeins.sty 2002/06/27 v 2.0
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2001/08/31 v1.1 graphics configuration of teTeX/TeXLive
pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
color.sty 1999/02/16 v1.0i Standard LaTeX Color (DPC)
color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
hyperref.sty 2008/04/17 v6.77q Hypertext links for LaTeX
hycolor.sty 2007/04/11 v1.1 Code for color options of hyperref/bookmark (HO)
pd1enc.def 2008/04/17 v6.77q Hyperref: PDFDocEncoding definition (HO)
etexcmds.sty 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
infwarerr.sty 2007/09/09 v1.2 Providing info/warning/message (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
kvoptions.sty 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
backref.sty 2006/09/05 v1.28 Bibliographical back referencing
url.sty 1999/03/02 ver 1.4 Verb mode for urls, email addresses, and file names
bitset.sty 2007/09/28 v1.0 Data type bit set (HO)
intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
bigintcalc.sty 2007/11/11 v1.1 Expandable big integer calculations (HO)
pdftexcmds.sty 2007/12/12 v0.3 LuaTeX support for pdfTeX utility functions (HO)
kvsetkeys.sty 2007/09/29 v1.3 Key value parser with default handler support (HO)
atbegshi.sty 2007/09/09 v1.6 At begin shipout hook (HO)
ifpdf.sty 2007/12/12 v1.6 Provides the ifpdf switch (HO)
hpdftex.def 2008/04/17 v6.77q Hyperref driver for pdfTeX
caption.sty 2008/04/01 v3.1h Customizing captions (AR)
caption3.sty 2008/03/20 v3.1h caption3 kernel (AR)
ltcaption.sty 2008/03/28 v1.2 longtable captions (AR)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to make Table captions bold?

Post by Stefan Kottwitz »

Hi yusuf,

I remember that you even may use paths inside \usepackage like \usepackage{./packages/caption} but it may raise a warning if the \ProvidesPackage line inside the package does not fit.
But I would not recommend that, it's better to use it without path, to put it inside the tex directory structure where the compiler can find it. Look here for information.

Stefan
nphaibk
Posts: 23
Joined: Fri Sep 19, 2008 4:34 pm

Re: How to make Table captions bold?

Post by nphaibk »

Hello, have you tried

\renewcommand{\tablename}{\textbf TABLE}
\renewcommand{\figurename}{\textbf Figure}

Caption package is one of the solutions but using packages in you text is not necessary!!! goodluck
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to make Table captions bold?

Post by Stefan Kottwitz »

Hi nphaibk,

welcome to the board!
With the code above just the first letter T or F will be printed with bold font, \textbf has to take is as paramater, like

Code: Select all

\renewcommand{\tablename}{\textbf{TABLE}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
But the table number will not be bold then.

Perhaps you've meant something like

Code: Select all

\renewcommand{\tablename}{\bfseries TABLE}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
nphaibk
Posts: 23
Joined: Fri Sep 19, 2008 4:34 pm

Re: How to make Table captions bold?

Post by nphaibk »

Hi Stefan,

Yeah, you were right. I forgot to add {}, another option is: \renewcommand{\figurename}{\bf Figure}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to make Table captions bold?

Post by Stefan Kottwitz »

Hi nphaibk,
nphaibk wrote:another option is: \renewcommand{\figurename}{\bf Figure}
\bf is obsolete, it's just supported by classes to provide backward compatibility. Citing from article.cls:

Code: Select all

\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Similar for \rm, \sf, \tt, \it, \sl, \sc.

Stefan
LaTeX.org admin
nphaibk
Posts: 23
Joined: Fri Sep 19, 2008 4:34 pm

Re: How to make Table captions bold?

Post by nphaibk »

Hello, I got the problem again :(

\renewcommand{\figurename}{\bf Figure} works perfectly until I installed Miktex 2.8 and winedt5.6, which makes the whole caption bold. I just want to bold 'Figure <number>'.

I tried \renewcommand{\thefigure}{\bf figure} and it makes bold also the figure number in \ref{}

any idea to fix it, tkx in advance
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to make Table captions bold?

Post by localghost »

Forget these dubious redefinitions and let the caption package do the job.

Code: Select all

Code, edit and compile here:
\usepackage[%
font=small,
labelfont=bf,
tableposition=top
]{caption}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Use only LaTeX2e syntax for switching between font styles.



Best regards
Thorsten
nphaibk
Posts: 23
Joined: Fri Sep 19, 2008 4:34 pm

Re: How to make Table captions bold?

Post by nphaibk »

:D it works perfectly
Thank you very much, Thorsten
Post Reply