2022 Developer Survey is open! Take survey.

Questions tagged [sectsty]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

How deep Is it possible to control colour font in subsections?

I am using this suggestion How to add an extra level of sections with headings below \subsubsection to use more level of sections and I would like to control the font colour as well. I tried this so ...
user avatar
  • 409
1 vote
1 answer
14 views

Changing section colors: Undefined control sequence. \sectionfont

I know there are several questions with answers out there, but none of them worked for me. Trying to change the color of all sections of my document with the xcolor package creates an error statement: ...
user avatar
  • 119
0 votes
0 answers
34 views

How do I use cleveref within section titles whose formatting is in uppercase?

In my text, section titles should be in capital letters, so I used the sectsty package for this. However, when I want to put a cleveref inside the section title (which is in uppercase), the output is ...
user avatar
1 vote
1 answer
67 views

\usepackage{sectsty} and LaTeX Error: Command \sectionrule already defined

I am new to LATEX. I was using latex to build my resume but encountered errors when using \usepackage{sectsty} with "moderncv" document class:\ LaTeX Error: Command \sectionrule already ...
user avatar
  • 11
2 votes
0 answers
227 views

issue related to undefined control sequence [closed]

My first post on here. If I fail to abide by the rule, apologies beforehand :) My code run months ago without error. When I try it this time, after updating my MikTex, it sows me the following error ...
user avatar
  • 21
0 votes
0 answers
31 views

problem with sectsty + eso-pic/background + \section on new page

The .cls file I am using uses the sectsty package to style the section headers. It also uses the eso-pic package to add a background picture. (It used to use the background package but I changed it to ...
user avatar
1 vote
2 answers
90 views

Section formatting with boxed numbering and horizontal line

I want to format my (sub)section numbering in a colored box and a horizontal line below the title. I need something like this: I tried sectsty but could not get the line to work. \documentclass{...
user avatar
  • 11
0 votes
1 answer
118 views

Section Styles: Spacing, Font and Paragraph-Indentation

I am using sectsty to configure my section styles. I have read that perhaps titlesec is more powerful. A solution to my question below using titlesec is completely satisfactory. Currently I am setting ...
user avatar
  • 1,147
2 votes
0 answers
787 views

How to suppress warnings "Command \underbar has changed." and "It is better to use one of the extsizes classes, if you can."?

I would like to use an Overleaf template (https://www.overleaf.com/latex/templates/tagged/rsc), but it gives a warning for the \underline command of sectsty. Do you have any idea how to suppress all ...
user avatar
  • 512
0 votes
2 answers
146 views

Font family name for Josefin Sans

What is the font family name for Josefin sans? I know that the font can be set by adding \usepackage{josefin} in the preamble. However, I am trying to change the chapter heading style using the ...
user avatar
0 votes
2 answers
117 views

ToC bibliography section hyperref doesn't work with sectsty and biblatex

I need section titles to be uppercase. I've done this with sectsty, but have recently discovered an issue that it causes. In the table of contents, clicking on "References" does not bring me ...
user avatar
0 votes
0 answers
108 views

Getting xetex to identify specific styles of system fonts?

I'm trying to change a latex template to use the Cooper Hewitt font for section headings. (I'm using pandoc to convert markdown to pdf, by tweaking the built-in pandoc template, and using the xelatex ...
user avatar
1 vote
1 answer
135 views

Single Space Title in Article Class

I am writing a paper in the article class with a very long title. Here is an MWE: \documentclass[12pt]{article} \usepackage{fullpage} \usepackage{setspace} \newcommand\e{\emph} \newcommand\tb{\...
user avatar
  • 459
2 votes
1 answer
185 views

Spacing of Chapter Name and Chapter Number when using package sectsty

Hello my dear fellow latex users! I've been trying to fancy my thesis by setting a color to the chapter names and in order to do so, I used the package sectsty, because I am using a template where if ...
user avatar
  • 23
0 votes
1 answer
144 views

Changing the subsection color modify page header

Here is my problem: I'm trying to recreate my university template. I created an article document where the first page has a different header and footer than the other pages. It's a little bit dirty ...
user avatar
  • 3
0 votes
1 answer
179 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{...
user avatar
  • 331
0 votes
1 answer
362 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}\...
user avatar
  • 145
0 votes
0 answers
302 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 ...
user avatar
0 votes
1 answer
80 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 ...
user avatar
1 vote
1 answer
526 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 ...
user avatar
  • 113
1 vote
1 answer
253 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,...
user avatar
  • 199
1 vote
0 answers
177 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
4 votes
2 answers
2k 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 ...
user avatar
  • 711
1 vote
1 answer
822 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 ...
user avatar
  • 509
2 votes
2 answers
1k 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} \...
user avatar
  • 133
1 vote
1 answer
902 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 ...
user avatar
2 votes
1 answer
4k 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[...
user avatar
  • 349
2 votes
1 answer
2k 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 ...
user avatar
1 vote
1 answer
816 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 ...
user avatar
-1 votes
1 answer
2k 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 ...
user avatar
  • 905
0 votes
1 answer
1k 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 ...
user avatar
  • 308
1 vote
1 answer
2k 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 ?
user avatar
  • 13
2 votes
1 answer
1k 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 ...
user avatar
  • 433
3 votes
1 answer
615 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 ...
user avatar
0 votes
1 answer
599 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 ...
user avatar
  • 5
7 votes
3 answers
2k 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 ...
user avatar
  • 83
1 vote
1 answer
1k 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. ...
user avatar
  • 13
4 votes
1 answer
4k 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}...
user avatar
  • 2,604
2 votes
1 answer
2k 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 ...
user avatar
  • 365
4 votes
2 answers
5k 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.
user avatar
2 votes
1 answer
3k 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 ...
user avatar
  • 107
3 votes
1 answer
924 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 ...
user avatar
  • 33
3 votes
1 answer
221 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. ...
user avatar
  • 33
4 votes
2 answers
1k 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 ...
user avatar
  • 173
3 votes
1 answer
450 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 @...
user avatar
  • 1,837
3 votes
1 answer
4k 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 ...
user avatar
  • 13.9k
4 votes
2 answers
459 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 ...
user avatar
  • 1,837
2 votes
1 answer
206 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 ...
user avatar
  • 1,837
5 votes
1 answer
2k 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*{...
user avatar
  • 308