Questions tagged [sectsty]

sectsty is a package used to format the style of various section titles in a LaTeX document.

0
votes
1answer
27 views

Chapter Section to the left and Chapter title to the right

In a report document, how can I achieve something like this? The Chapter to the left, and the Chapter's title to the right of the page \documentclass{report} \usepackage{graphicx} \usepackage{...
0
votes
1answer
28 views

Setting multiple styles for sections

I'm trying to style my section headers using sectsty, but I can't seem to apply more than one style. This is my code: \sectionfont{\sectionrule{0ex}{0pt}{-1ex}{0.1pt}} %\sectionfont{\fontsize{30}{40}\...
0
votes
1answer
50 views

My header changes color on pages that start with a section

Im writing a report (in LaTeX) for which a made a header using fancyhdr. The text in my header is suppose to be black and the line is colored. However at some pages my headertext is colored as well, ...
0
votes
0answers
45 views

Section numbering and package “sectsty” together with “titlesec”

I use both packages. However, if I load sectsty before titlesec the section numbering of a subsubsection ends with 1.1, but has to 1.1.1. And if I load titlesec before sectsty, subsubsection ...
0
votes
1answer
27 views

How to partially edit the section headers in the table of contents and the document for selected sections only?

I have a table of contents with several sections, sub-sections, and sub-sub-sections. I want to keep these formatted in the same way throughout the table of contents and the document with the ...
0
votes
0answers
16 views

How to get a skip line after use \paragraph{..} with sectsty package? [duplicate]

sectioning my document I had to use \paragraph{}, but the text appears in the same line. For customizing my section titles I'm using sectsty. How can I get a newline after using \paragraph{}? \...
1
vote
1answer
128 views

Title case for table of contents

I am using sectsty and titlecaps packages to convert my section headings into title case. But, table of content remains unchanged. I want to see my table of contents also in title case. Here is MWE ...
1
vote
1answer
75 views

sectsty interferes with documentclass scrreprt Chapter Titles!

I've created a minimal example that visualizes the problem: \documentclass[chapterprefix = true]{scrreprt} \usepackage{sectsty} \begin{document} \chapter{Hello world!} \end{document} As you'll see,...
1
vote
0answers
85 views

Is there something like an XPath to all the properties of a document in LaTeX

I'm trying to use LaTeX to format a document (I'm a casual user of LaTeX, in that I don't make my own document classes—but I can tweak them). I have set up a document using the standard LaTeX ...
1
vote
1answer
502 views

How to format only one section of RMarkdown pdf output using sectsy

I am creating a pdf using R-markdown. I want ALL section headings to be centered (using sectsty package),except the first one which should be left aligned. How can I do this ? How do I use sectsty ...
4
votes
2answers
302 views

Modify letterspacing in \chapter, \section etc

I try to create a design similar to this one: As you can see, the space between each letter is a bit longer than by default, which is great when typesetting something in capitals. I saw the following ...
1
vote
1answer
252 views

Incompatibility between titlesec and sectsty

I am used to use the package titlesec to change the font of my sections. And now I want all my sections to be in blue, I find an easy way to do it with the sectsty package. This is pretty useful ...
1
vote
2answers
297 views

Small Caps does not Work for Section

I'm writing using \article class and I want to make every section of it centered and small caps with no bold. I use sectstypackage for this. I tried it this way \documentclass{article} \...
1
vote
1answer
289 views

Change the font used by all sectioning commands to Helvetica

I found this line in a template. \allsectionsfont{\usefont{OT1}{phv}{b}{n}} % Change the font of all section commands (Helvetica) This not working with my chars in Polish language. How change this ...
2
votes
1answer
1k views

why is the sectsty package not working (for me) with \paragraph?

I want to retouch the behavior of \paragraph but something is bad in my code, Can anybody help me? \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[pdftex]{graphicx} \usepackage[...
2
votes
1answer
636 views

How to adjust the title spacing using sectsty package

I'm writing a paper with some specifications in the section titles. I know that titlesec package is an excellent alternatve, but becuse some compatibility problems I have to use sectsty. I don't know ...
1
vote
1answer
272 views

Index and Title Page font in book class

I am using the book class. In the preamble I have: \usepackage{sectsty} \allsectionsfont{\sffamily} to change the font of chapters and sections. I would also like the title page where it shows the ...
-1
votes
1answer
1k views

How to change the font size of sections and subsections?

I'm using a customised class file (not written by me, I'm just being kind of forced to use it) and I was asked to change the size of the sections and subsections' title fonts. This class loads as its ...
0
votes
1answer
212 views

How to space the header and footer to sit on the text box, without the white space between the header,footer and text?

Due to the details of my project, I can't have any header/footer text beyond 2.0cm. Since the outer margins reject my geometry code, is there any way to make the headers and footers sit exactly on the ...
1
vote
1answer
1k views

Problem with package in Kile and Ubuntu 16.04

I use Kile and at compilation I get the error message: file sectsty.sty not found I have downloaded the ctan package, but what do I have to do now ?
2
votes
1answer
458 views

Change all section headings' colour while using memoir

I recently converted a document from book to memoir. It turns out that sectsty is incompatible. I used to have this: \usepackage{sectsty} \allsectionsfont{\color{blue}} which very conveniently ...
2
votes
1answer
299 views

Colored sections and subsections with amsart (since amsart doesn't work with sectsty)

I am writing a set of notes for which so far, I had been using the article class, but have recently decided to switch to amsart. I had a bunch of declarations (using the sectsty package) to make ...
0
votes
1answer
347 views

Changing the font of the title and abstract of my article

I am trying to use two different fonts in my article. I used the 'sectsty' package to change the font of all the section titles. I now want to change the font of the title of my article to the font ...
6
votes
3answers
1k views

Why can't sectsty change the chapter font when it's used with babel package?

I'm using Latex to write my thesis in Hungarian, so I include in the preamble the following: \usepackage[magyar]{babel} Once this is loaded, I get "Chapter", "Figure", etc. in Hungarian and with ...
1
vote
1answer
504 views

Vertical space between chapter number and chapter title using sectsty

I am using sectsty to format my chapter titles, but I want the vertical space between Chapter # and Chapter Title gone, and I can't find a way to do it without losing the styles applied by sectsty. ...
3
votes
1answer
2k views

coloring section rule using sectsty package

I would like to change the color of section rule, as it obtained using sectsty package. Here is what I have: \documentclass{article} \usepackage{xcolor,sectsty,lipsum} \sectionfont{\sectionrule{0pt}...
2
votes
1answer
813 views

Centering some chapters in latex

In the following code, I am trying to center the acknowledgement, dedication, and cv chapters. However, when I use \usepackage{sectsty} to reduce the font size of sections in CV, these chapters donot ...
2
votes
2answers
1k views

How to color section number and section name with different colors?

I want to use different colors for section number and section name in \documentclass{book} using sectsty package. The section number must be put in color box. Give me an idea.
2
votes
1answer
1k views

Adding line after section heading

I am trying to add a horizontal line (like \hrule) that starts just after each section's heading, fills the rest of the line, and is vertically aligned with the heading, as shown below. To do so, I ...
3
votes
1answer
297 views

\section coming up as undefined when using sectsty

I have a style requirement for headings. Header 1 = 16pt bold, Header 2 = 14pt bold underline. Font is required to be Palatino Linotype. I got this document shell from a classmate and have only made ...
3
votes
1answer
110 views

Boolean option in style file does not work

a while ago, I learned on StackExchange that I could create a style file to contain my preamble and, in particular, to include Boolean switches so as to select certain parts of the preamble as needed. ...
4
votes
2answers
733 views

Rotate section headings

I'm trying to create a document according some brand guidelines which require the use of angled and coloured section headings. I have the colours working using the xcolor and sectsty packages, but ...
3
votes
1answer
255 views

How do I avoid `sectsty` removing a line break when using `paragraph` as a subsubsubsection

I am trying to use the first bit of code in this answer to use paragraph like a subsubsubsection. The problem is that there is a conflict with sectsty - without this the output is exactly as in @...
3
votes
1answer
3k views

Adjusting spacing before and after subparagraph with sectsty

I am helping a friend that is using sectsty to format the titles in his document. How can I adjust the spacing before and after the titles, in particular the subparagraph one? (I know that titlesec ...
4
votes
2answers
428 views

Removing gap above “Chapter X” introduces problems with the text formatting

I am trying to get the page layout of my thesis sorted out. I am using fancyhdr to give me the page number in the top right and chapter name in the top left with a horizontal rule under, and sectsty ...
2
votes
1answer
150 views

Can I modify the font shape on-the-fly in my chapter headings if I have used sectsty to format?

I am having problems formatting the text in my chapter headings. I used sectsty to modify all my headings to \sffamily, but I have some parts of the heading that should be in italics and I can't work ...
5
votes
1answer
1k views

Remove section numbers only from title

I would like to remove the section number from only the title, but display it in the figures and equations in the section. My document class is scrartcl and I am using sectsty I tried \section*{...
5
votes
0answers
410 views

Follow up to underline subsections - incompatibility between lineno, sectsty, and ulem

In answering the question Underline subsections, I provided an answer which relied on the sectsty package (as compared to @GonzaloMedina's answer, which used the titlesec package). Ultimately, @...
6
votes
3answers
530 views

Special non-standard font sizes for different types

The more I read about fontsizes in LaTeX, the more confused I've become. I don't know how to meet my requirements, which are the following: text = 11pt --> This works. footnotes = 9pt --> This works....
5
votes
1answer
1k views

How to uppercase heavily customised sections (sectsty+fontspec)?

I am trying to customise the aspect of a scrbook to look like a book I have. In my case, sections should be formatted as follows: the font face should be Conques Demi, the font size 26 pt, the font ...
9
votes
2answers
3k views

Can I make all section headings bigger?

I want to make all section headings in LaTeX document bigger by a given scale. For example, I want all of them have 150% of size that they have now. Can I do that somehow? (Ideally using sectsty)
5
votes
1answer
7k views

Make section font all caps

I am using the following code with sectsty to make all sections use small caps: \sectionfont{\sc} However, I want them all typesetted in lowercase, but the following does not work: \sectionfont{\...
5
votes
2answers
2k views

Is there a way to change the font style of the “References” section?

Is there a way to change the font style of the "References" section of a document? I'm using the sectsty package to modify section fonts and my code does not seem to affect the "References" section ...
8
votes
2answers
6k views

Changing the section title style for an article document type

I have just started working on my master's thesis with my universities latex template. It uses the 'article' document class for it. I have tweaked it here and there a bit to make it more to my liking. ...
7
votes
1answer
4k views

Underline a section header the full width of the page

How do I get a full page width underline or bottom-border on a section title? At the moment I'm using \usepackage{sectsty} \sectionfont{\normalfont\sffamily\large\underline\bfseries\color{orange}} ...