Text FormattingAPA6 and centered captions

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

APA6 and centered captions

Post by cgnieder »

This is because the standard font loaded by LaTeX does not have sans serif small caps. Hence you're example issues the warning
LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size <10.95> not available
(Font) Font shape `T1/lmr/m/sc' tried instead on input line 20.
It works if you use a font that does have it, like Linux Libertine for example:

Code: Select all

\documentclass[doc, natbib]{apa6}
\usepackage{libertine}% <= loads the libertine and biolinum fonts
\usepackage{graphicx}
\usepackage{dcolumn}
\newcommand{\thickhline}{\noalign{\hrule height 1.5pt}}
\captionsetup{justification=centering, labelfont={sf,sc}, labelsep=newline}
\usepackage[figuresright]{rotating}

\title{Sustaining Agendas: Assessing The Media's Role In the Regulation of Bisphenol A In The US States}
\shorttitle{Sustaining Agendas}
\affiliation{Journalism Program\\Wilfrid Laurier University}
\author{Simon J. Kiss}

\begin{document}

This is my document
\begin{table}
\centering

\caption{Exposure Estimates To BPA}
\begin{tabular*}{0.9\textwidth}{lc}
\thickhline
Age Category & micrograms/kg/bw per day\\
\hline
0-4 month-old infant & 1.6 \\
6-12 month-old infant  & 0.8\\
4-6 year old child  & 1.2 \\
60 kg adult & 0.37 \\
\thickhline
\multicolumn{2}{l}{\emph{Source:} European Commission. Scientific Committee on Food. (2002)}\\
\end{tabular*}
\end{table}

\end{document}
BTW: you might want to have a look at the siunitx package for typographicly correct formatted numbers, number ranges and units.

Regards
site moderator & package author

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

sjkiss
Posts: 30
Joined: Tue Nov 15, 2011 12:23 am

Re: APA6 and centered captions

Post by sjkiss »

Thanks very much for all this, Clemens. Just a question: where's a good reference document that might have pointed to the libertine fonts? Where might I have looked to solve the question on my own?
Thanks!
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

APA6 and centered captions

Post by cgnieder »

I myself kind of picked some font related stuff on the fly, but here are some pointers:
Regards
site moderator & package author
Post Reply