Articles of sectioning

Getting the page breaks right for a \beginsection macro

I’ve found this code in the question No indent in the first paragraph in a section in Plain TeX \def\mysection#1{% \goodbreak \vskip2\baselineskip \noindent #1\par \nobreak \vskip\baselineskip \everypar={{\setbox0\lastbox}\everypar={}}} but it doesn’t stretch the bottom of the page when the page breaks on a new paragraph (here the stretching was found in the skips around the section […]

Removing dot after section letter

Right now this I’m getting this for my first subsubsection: G.1.1. I would like for this to be G1.1. Does anybody know if it is possible to remove the first dot and put G and 1 together without a space between? Code below: \documentclass{article} \begin{document} \renewcommand{\thesection}{\Alph{section}} \setcounter{section}{7} \setcounter{subsection}{1} \subsubsection{Hello World} % G.1.1 I want it […]

Numbering of subsections and paragraphs

I have a document style for a report which I’m having to copy to LaTeX format. I’m using pdfLaTeX, for information. In essence, the system is that paragraphs are on the same level as subsections, until the first subsection in a section, wherafter paragraphs are on the level below subsections. It should look like this: […]

How can I add the bibliography in a report with its own section, including number?

I’m writing my thesis as a report document using TeXShop (pdflatex and bibtex) and want the bibliography to get its own section number and appear in the table of contents. Here’s what I’ve tried so far and the problems arising: \addcontentsline{toc}{section}{References} Does not add the section number, not in the toc and naturally not in […]

How to format the references heading when using multiple bibliographies

I have what I hope is a simple question. I finally figured out how to get the multiple bibliographies to work (mostly) like I want it. The one additional formatting thing I would like is to make the “References” heading centered upon the page. What I am getting now is the heading “References” flush left. […]

chapter style latex horizontal line

I want a chapter style like this: 1 ——chapter name————- text text text text tex t text text text text t I have come this far: \documentclass{book} \usepackage{titlesec} \newcommand*{\xdash}[1][3em]{\rule[0.5ex]{#1}{0.55pt}} \titleformat{\chapter}[display] {\Large}{\filleft\Huge\thechapter}{1ex}{\xdash[2em]}[] \begin{document} \chapter {Introduction} Text text text text \end{document} but I can not get it right. I want the horizontal line to be longer then […]

Re-displaying section headings after page-breaks (with titlesec)

This is a follow up question to Re-displaying section headings after page-breaks. The top answer by Werner works, but not when the package titlesec is loaded. Is another solution possible which does not conflict with titlesec?

Nomencl Reference Section Number

I’m writing a PhD thesis that includes many similar symbols. Therefore, I’d like to list in the nomenclature the section number at which each symbol is initially using (and therefore defined in the text). I’m aware you can list the page number, but I’d prefer the section number. Is there a way to do this? […]

Hyperlinks in section name

I am trying to use the memoir class to typeset a document in which the section headings function as hyperlinks to other locations in the document, using the hyperref package. One of the ways that \section and \hyperlink don’t really cooperate is that I can’t call \hyperlink within a \section (\section{\hyperlink{..}{…}} causes an error). To […]

Produce pdf of selected sections

I’m writing a commissioned chapter for a handbook and I want to produce a pdf of three specific sections of my document to send to a colleague who is writing a different chapter for the same handbook (this is because there are some issues that span both chapters and we want to minimize overlap). Obviously, […]