4
votes
2answers
73 views

Problems with line-break in Chapter Title using a custom Command for Chapter

If you have to force a line break in a chapter title, this would be possible doing so: \chapter[][A Long title that has to be broken,\\ how sad is this!] But in my document I had to define my own ...
2
votes
1answer
81 views

How to wrap section?

I would like to wrap the section. How can I do it? The following code is my MWE. \documentclass[b5paper,10pt,twoside,parskip=half,numbers=noenddot,bibliography=totoc]{scrbook} ...
2
votes
1answer
56 views

Separate sectioning titles for main text, headings, and toc for line breaking purposes

I am using the titlesec package with the toctitles option, which modifies the optional argument of sectioning commands so that this optional argument is used only in headings; the non-optional ...
10
votes
1answer
164 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...
3
votes
1answer
70 views

Weird new line using \cmpd from chemnum in long headingtitles

I have a problem using \cmpd in a heading, that is too long. For some weird reason, the compound number gets put on a new line, even though there is no need. I already have a workaround using ~, but ...
3
votes
1answer
157 views

How to wrap section titles when using wordlike?

I have a template based on the wordlike package. When I have a long section title, it extends beyond the edge of the page instead of wrapping to a newline (like this). Here's the code: ...
4
votes
1answer
141 views

How to keep section titles together with the content in ConTeXt?

I found many places in my document where the subsection titles are places alone at the bottom of the page with the content on the next page, like this: ____________ ____________ | | ...
2
votes
1answer
178 views

Title indentation after linebreak

I have a document with a few long-named sections, which break at two lines, like this: To meet some standards I need to change indentation of these titles (after \linebreak) at the level of normal ...
1
vote
1answer
690 views

How to fit the title into a single line?

I think I am just too new to the LaTeX environment. Do I just change the font size to fit the title into a single line? Then how do one change the font size of the title? Is there any other ...
1
vote
1answer
360 views

overfull hbox in the chapter

What is the preferred way of fixing an overfull hbox problem when it complains about the chapter title. MWE (complains about the \chapter{Chapter title} line): \documentclass[12pt,twoside]{book} ...
1
vote
1answer
1k views

Line break in section name

Is there any easy way to force a line break in a section name manually, without getting the line break in the Table of Contents? It's because I have a rather long section name, and it breaks just only ...
4
votes
1answer
338 views

Manually Break line in custom chapter title

\documentclass[openany, 10pt]{book} \usepackage[utf8]{inputenc} \usepackage[MeX]{polski} \usepackage{titleps} \usepackage{lipsum} \usepackage{tocloft} \renewcommand\cftchapaftersnum{.}% adds dot ...
8
votes
4answers
4k views

Newlines after section headings in amsart

This latex code: \documentclass[9pt]{amsart} \begin{document} \subsubsection*{Animals} Rabbit horse monkey cow \end{document} Generates something that looks approximately like this: ...
2
votes
1answer
172 views

subsubsection description and title not separated

When I have \subsubsection{sub sub section} Some Contents and some description for it. I cannot distinguish between the title and description as they appear in the same line. For instance if I do: ...
1
vote
1answer
1k views

chapter title long and necessity to cut it

my chapter title is too long and I have the necessity to cut it in two different lines. well which could be the best way to cut it?I tried using \newline but unfortunately this modification affects ...
3
votes
1answer
2k views

How to make (force) line-break in Chapter Title (in ToC, Chapter, Header) - if possible?

I've found how to make different text for Title appearing in ToC, Chapter and headers Chapter title in header too long : \chapter[medium-length title for TOC, if wanted]{full title name} ...
6
votes
2answers
7k views

New line and no indent after \paragraph?

I tried to use a \paragraph-environment, but I do want a new line after the title and no indent in the first textline. New line is easy, but the first line is indented even if I use \noindent, ...
10
votes
4answers
2k views

Avoid hyphenation in chapter title

I wonder if there is a way to avoid hyphenation of words in the title of a chapter. I have tried \mbox but that makes the word run over the margin. I've also tried inserting a \\ in front of the ...
7
votes
2answers
1k views

Section titles, hyphenation, manual line breaks - and how to avoid them

I have several section titles in my document that are getting hyphenated, which is quite ugly. I am now looking for some way to avoid the hyphenation, which is is somewhat related to this question, ...
2
votes
1answer
1k views

How to prevent linebreak between subsection header and content?

I want a. to be in the same line with {w | w begins ... Yesterday, I found one solution that uses some commands to set the subsection title but I can't find it today since I did not remember the ...
2
votes
1answer
314 views

Oddly wide spaces in subsection title

I have a problem, this is what it looks like: And this is the code: \subsection{Bakterienst\"amme und Anzuchtbedingungen} Where does the huge whitespace come from?
7
votes
1answer
634 views

How to avoid line breaking after subsection in Memoir?

\documentclass{memoir} \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsthm} \usepackage{bbm} ...
6
votes
1answer
764 views

Control breaking of overlong section titles

I have following code: \section{This is some long text and probably it will be broken} I would like to prevent word division like: This is some long text and pro- bably it will be broken And the ...
7
votes
3answers
610 views

Disallow hyphenated words go into the margin in section heading

I had a long section heading that the last word will hyphenate at the end, which goes into the margin. Minimal working example: \documentclass{article} \usepackage[english]{babel} ...
14
votes
2answers
12k views

How to put a line-break in section heading?

I have some section headings occupying two lines and I'm not satisfied with the way XeLaTeX breaks the heading. If I manually add \\ the output looks fine, but I get the following warning: [hyperref] ...
6
votes
1answer
639 views

Writing in the same line as the section title

I needed to add some text after some of my section title and it certainly needs to be in the same line, and not to be in ToC or bookmarks. Therefore i decided to create my own subsection-type-thingy ...
3
votes
3answers
4k views

How to get new line after \subparagraph title?

Is there a default way to change the style of the \subparagraph title, namely to add a new line after the title? Is there a way to do it without \renewcommand (some style changes of something else) - ...
10
votes
2answers
2k views

paragraph style - how to force line break? \paragraph{} \\ - make paragraph a header?

I want to format paragraph to work as a regular title \paragraph{title} text goes here output of that is: title text goes here how can I change the output to force line break and use the usal ...
11
votes
3answers
7k views

No newline after (sub)section?

I want my text to appear right after the call to \subsection{Name} but I can't find how to do it. I'm using the article class. An example of command: \subsection{a)} Blah blah bla... produces: ...