You can also add the following after \usepackage{titlesec} to only apply
the patch when you're on the specific version of titlesec (which is what
I did on a shared project). Remove the \makeatletter and \makeatother
and change \usepackage to \RequirePackage when you're adding it to your
classfile right after \RequirePackage{titlesec}.
\@ifpackagelater{titlesec}{2016/03/21}{%
% Package titlesec is on version 2.10.2 or higher, nothing to do %
}{%
% Check if package titlesec is on version 2.10.1 %
\@ifpackagelater{titlesec}{2016/03/15}{%
% Package titlesec on version 2.10.1, patch accordingly %
\usepackage{etoolbox}%
\makeatletter
\patchcmd{\ttlh@hang}{\parindent\z@}{\parindent\z@\leavevmode}{}{}%
\patchcmd{\ttlh@hang}{\noindent}{}{}{}%
\makeatother
}{%
% Package titlsecon is on version 2.10.0 or lower, nothing to
do %
}%
}
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to texlive-extra in Ubuntu.
https://bugs.launchpad.net/bugs/1574052
Title:
titlesec does not render section numbers
Status in texlive-extra package in Ubuntu:
Triaged
Bug description:
The titlesec package does not work properly after distribution upgrade
to 16.04LTS.
Steps to reproduce:
1) Create a tex document and include titlesec
2) Create some sections headers via \section{Some section}
3) Run pdflatex/lualatex/xelatex
What should happen
The section should be created with the corresponding number: 1 Some Section
What happens
Only the text is present: Some Section
If the section header format is changed via \titleformat, the entire
formatting disappears from the final pdf.
Might be related to
https://groups.google.com/forum/#!topic/comp.text.tex/MBd3-o2Dzx8
Ubuntu Version: 16.04 LTS
texlive-latex-extra Version: 2015.20160320-1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/texlive-extra/+bug/1574052/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp