[Tex/LaTex] Did anybody manage to use the PhD package

chapterssectioning

I've seen these very nice dicussion about fancy chapters:
Fancy chapter headings

It seems that the packages are now called PhD

https://github.com/yannisl/phd

I can't find any documentation about it. Did somebody managed to use it (I hope so for the creator 🙂 of the package)? If it's the case could show me a simple working example?

Best Answer

As the comments note, I am the only user at the moment and would probably be for some time. Like many package writers the real reason for developing it, was to fulfill a need, in this case to enable me to produce beautiful books with less problems. A full pdf probably 3-4 months old can be found at phd. It is a rather lengthy document, as the document at present is being used as a test document. I am actively adding material to it, but is really still not production ready.

The package, which I intend to offer it both as a class as well as a package, has two aims the first is to act as a package manager resolving conflicts and loading a number of popular as well as obscure but useful packages in order to avoid common pain points of LaTeX2e usage. The current version loads approximately 70-80 packages (still buggy) but is capable of typesetting the Comprehensive List of Symbols, including the index. I have a version (not at github) at the moment that runs happily both in LaTeX2e and XeLaTeX and to a limited extend with LuaTeX.

The second aim is to offer a new style of LaTeX typesetting. The user will have to only load the package or the class and type:

\usepackage{phd}
\cxset{template name}

The templates or styles follow a somewhat CSS type of programming, but in reality they are all keys (using pgf). With the intention to get rid of any macros in the styling or at least to minimize it.

\cxset{style13/.style={
 name=CHAPTER,
 chapter spaceout = none,
 numbering=arabic,
 number font-size= HUGE,
 number font-family= sffamily,
 number font-weight= bfseries,
 number color= gray!50,
 ...
 section color=teal,
 subsection align= ,
 subsection font-family= sffamily,
 subsection font-weight= bfseries,
 subsection color = teal,
 subsection font-size= large,
 subsection font-shape=,
 subparagraph number after=,
 subsubsection align=,
}}

The main command is intended to be \cxset. The intention is if you need to do any customization most of the keys have self-explanatory names and the styles are just text files.

The package at the moment, has keys for sectioning styling, document font management and hopefully soon language management. The test document at present is about 800 pages and is intended to be a free and comprehensive ebook on all things TeX and family. The real user manual will be about 5-10 pages, as the intention is to ease usage.

If the hyperref did not redefine almost the full breadth of LaTeX2e commands and Knuth allowed a few more maths alphabets, I would have finished six months ago. My aim is to get the package to CTAN when I am done with language management. Possibly towards the end of the year. I am also hoping to come up with a method to speed up compilation (currently takes 4-5 minutes to compile 800 pages) without compromising on the main aims of the package.

I shortened the name to conserve keystrokes! I am not too sure if this will be the final name.