Thanks for addressing this. It is a slightly different question from my other post, so I will ask more about the headings aspect here.
Notice in the above headings definitions there is a couple of slight differences between the subsection and section headings, namely:
- 1) subsection is bold and slanted, section is just bold;
2) The font size (12pt vs. 14pt); and
3) the spacing above and below.
I've got the spacing figured out, I think. But the other two I don't seem to be able to change the way I want them. I've altered your code and put it below.
Code: Select all
\documentclass[11pt,letterpaper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{txfonts}
\usepackage[raggedright,bf,sf]{titlesec}
\usepackage{blindtext}
\parindent0em
% ----- Change format of subsection to be slanted, bold, sans serif -----
%\titleformat*{command}{format}
%\titleformat*{\subsection}{\sl} % attempt 1 ... gives sl but back in serif
%\titleformat*{\subsection}{\sf,\bf,\sl} % attempt 2 ... gives error
% --- try the non-* format command ---
%\titleformat{command}[shape]{format}{label}{sep}{before}[after]
%\titleformat{\subsection}[\sl]{} % attempt 3 ... gives error
%\titleformat{\subsection}[sl]{} % attempt 4 ... gives error
% ----- Change spacing above and below the headings -----
%\titlespacing*{command}{left}{beforesep}{aftersep}[right]
\titlespacing*{\section}{0pt}{6pt}{3pt}
\titlespacing*{\subsection}{0pt}{6pt}{6pt}
% ----- Change fontsizes of headings -----
% need to change \section to 14pt
% need to change \subsection to 12pt
\begin{document}
\Blinddocument
\end{document}
It should typeset as is (the offending commands have been commented out). What is it that I'm doing wrong? I've tried to follow the documentation for titlesec, but I'm not having any luck. I don't even see how to explicitly specify the fontsize to be 12 or 14 pt.
Thanks,
TJ