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
0answers
15 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 ...
0
votes
0answers
32 views

Customize the section title

Good morning everybody. Fisrt of all I'm a beginner in Latex and I searched a lot my answer but i did not find something working so here I am... I'm trying to customize my sections, subsections and ...
1
vote
2answers
53 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{...
0
votes
1answer
62 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 ...
2
votes
0answers
401 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 ...
0
votes
2answers
80 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 ...
0
votes
2answers
68 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 ...
0
votes
0answers
55 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 ...
1
vote
1answer
66 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{\...
1
vote
1answer
95 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 ...
0
votes
1answer
90 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 ...
0
votes
1answer
141 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
217 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
0answers
202 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
58 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 ...
1
vote
1answer
386 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
185 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
146 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
2k 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
1k 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
635 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 ...
2
votes
2answers
898 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
744 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
3k 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
1k 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
654 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
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 ...
0
votes
1answer
878 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
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 ?
2
votes
1answer
795 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
501 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
512 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 ...
7
votes
3answers
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 ...
1
vote
1answer
888 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. ...
4
votes
1answer
3k 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
1k 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 ...
3
votes
2answers
4k 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
2k 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
695 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
155 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
930 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
400 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
452 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
194 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
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*{...
5
votes
0answers
452 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
625 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 ...
5
votes
1answer
2k 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)