4
votes
0answers
73 views

ConTeXt: How to prevent new paragraph after \hrule in section heading?

I'm using ConTeXt, and trying to setup my document's subsection headings to start with a colored rule. However, any way I've tried doing this results in a rule placed a line higher than the heading ...
2
votes
1answer
35 views

Horizontal margin over each section?

How can I draw a horizontal margin over each section? This is what I want to achieve (horizontal line respecting margins) Cheers
5
votes
1answer
207 views

Flexible rule length in titlesec

I'm trying to get a rule just after the label of a chapter. (i.e., between "chapter 1" and "This is the chapter 1 title"). So far, I've managed to do this: \titleformat{\chapter}[display]% ...
8
votes
1answer
698 views

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: ...
2
votes
1answer
1k views

Two horizontal lines above and under chapter-entry [duplicate]

Possible Duplicate: Title between lines Can anybody please tell me how to get horizontal lines above and under the \chapter{MyChapter}? Here is an example:
1
vote
2answers
146 views

Add a hrule to only chapter not numbered

I am thinking of adding a hrule to only chapters that are not numbered, in other words the chapters created using chapter*{}. I thought of using the titlesec package- My problem is that I cannot find ...
1
vote
0answers
86 views

Ruler below chapter heading [duplicate]

I am writing my thesis work using Lyx. Could anyone please help me with the code for positioning a ruler below the chapter title? The code I have doesn't display any ruler below the chapter title. ...
6
votes
1answer
597 views

Title between lines

So I want to have one line above and one under the title of a chapter in scrreprt, like: _________________________________________________ 1. Introduction ...
6
votes
2answers
238 views

How to place a center aligned rule on the left of a section title?

How can I achieve this effect? I have tried the following code: \parbox[c]{3.5cm}{\color{NavyBlue}{\rule{90px}{7px}}} \parbox[c]{6cm}{\section*{Section Title}} But the rule is not center ...
17
votes
1answer
2k views

How can I make a bold horizontal rule under each section title?

I want to place a long bold \hrule-type line under the \section to make it more distinctive. How can I do that?
4
votes
1answer
2k views

Add a rule after chapter title using titlesec

I've been experimenting with chapter title formatting using titlesec but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that \titleline ...
3
votes
2answers
200 views

How can set \rule after \section if \section is renew?

How can I set \rule after \section if \section is renewed? This doesn't work: \let\oldsection\section \renewcommand{\section}{% \newpage% \oldsection% ...
6
votes
2answers
562 views

Fancy style section titles for a resume

I'm wondering if exists a way in LaTeX to create a section title style (for a resume) like this: --------------------Education------------------- There's for sure a wrong way, simply adding - sign ...
10
votes
1answer
422 views

Specific section format

I'd like to use titlesec to typeset a section header that would look like this: --------- Name of Section ------------ (the ---- would be a rule, and the entire section header would be centered) ...
7
votes
2answers
1k views

How to make horizontal lines thicker?

I am customizing the section module following the tutorial here http://blog.scribtex.com/how-to-write-a-latex-class-file-and-design-yo How do I make the [\titlerule] % Inserts a ...
6
votes
2answers
767 views

How to add a line between chapter number and chapter title

I was wondering if there was a way to add a line between chapter number and chapter title. As in, what I am getting now is this: What I want is a horizontal line as shown: of the same color ...
4
votes
1answer
516 views

Formatting chapter in memoir

I'm trying to reproduce this chapter heading (Styling my section/chapter) in memoir. This is more or less working with the following code: \documentclass[11pt,oneside]{memoir} \usepackage{blindtext} ...
7
votes
1answer
666 views

How to prevent a page break between section title and colored rule?

I use \usepackage[explicit]{titlesec} to customize the design of my sections, subsections... In particular, i have : \titleformat{\section}% {\large\sffamily\bfseries}% {My Section \arabic{section} ...
7
votes
4answers
354 views

Rule before one new section

I use rule so as to separate the differents sections. I would like to automate this so as to use the following syntax : \section*{One day} \noindent\lipsum[1] \section*{Another day} ...
6
votes
1answer
913 views

Section heading, text embedded in horizontal rule

I would like to create section headings that look like this: -------------------- Some title -------------------- So a horizontal rule with text embedded in the middle. Should I use titlesec or ...
10
votes
2answers
270 views

Can I make some vertical material disappear if it occurs next to a page break?

I'd like to place a horizontal rule above each section title, to separate the new section from the text before it. But I don't want the rule to appear if the section begins on a new page, since that ...
2
votes
1answer
189 views

Problem with putting an hrule in an subsubsection-like environment, when inside item environment?

I have made this command: \newcommand*{\example}[1]{% \needspace{3\baselineskip} \subsubsection{{\bf Example #1}{{\color{lightgray}\hrule width 22mm height 1.5pt}\hfill}}% } and it's working fine, ...
15
votes
3answers
2k views

How can I put a line above a section heading and prevent a page break between?

We have designed a class for some journal. We wanted our section titles to be separated by a horizontal line from the previous line. Here is the code: \def\section{% \vskip 1.2\@bls% \hrule ...