Figured out a solution for it using titlesec -- had to make sure the titleformat was set to block.
\titleformat{\section}[block]{\centering\large\bfseries}{\thetitle}{.5em}{}[\vspace{-2em}\rule{\titlewidth}{1pt}]
To make \titlewidth work, don't be like me -- remember to load the package with ...
Search found 9 matches
- Wed May 05, 2010 2:47 pm
- Forum: Page Layout
- Topic: Underlining Section Titles
- Replies: 3
- Views: 11670
- Wed May 05, 2010 2:42 pm
- Forum: Page Layout
- Topic: Calculating the Width of a Section Title
- Replies: 4
- Views: 4363
Re: Calculating the Width of a Section Title
Works like a charm. Thanks!
- Wed May 05, 2010 5:19 am
- Forum: Page Layout
- Topic: Calculating the Width of a Section Title
- Replies: 4
- Views: 4363
Re: Calculating the Width of a Section Title
\titlewidth is one of the first things I tried, but it seems to return 0 -- the \rule ends up not drawing at all.
- Tue May 04, 2010 7:55 pm
- Forum: Page Layout
- Topic: Calculating the Width of a Section Title
- Replies: 4
- Views: 4363
Calculating the Width of a Section Title
Hello,
This is perhaps a simple question -- I'm trying to calculate the width of a section title so that I can make a \rule of the appropriate width. I'm using titlesec, and tried doing:
\newlength{\secwid}
\settowidth{\secwid}{\sectiontitle}
But the width ends up as 0. I can use \thesection ...
This is perhaps a simple question -- I'm trying to calculate the width of a section title so that I can make a \rule of the appropriate width. I'm using titlesec, and tried doing:
\newlength{\secwid}
\settowidth{\secwid}{\sectiontitle}
But the width ends up as 0. I can use \thesection ...
- Tue May 04, 2010 6:43 pm
- Forum: Text Formatting
- Topic: Prepending Figure/Table to LoF/LoT
- Replies: 3
- Views: 2068
Prepending Figure/Table to LoF/LoT
Managed to figure out my problem using titletoc. It's a little hacky, as I've used inflexible widths to accommodate the word 'Figure', but maybe someone with the same problem will find this useful.
\usepackage{titletoc}
\titlecontents{figure} [3.8em]
{}
{Figure \hspace{3em} \contentslabel{2 ...
\usepackage{titletoc}
\titlecontents{figure} [3.8em]
{}
{Figure \hspace{3em} \contentslabel{2 ...
- Fri Apr 30, 2010 2:28 pm
- Forum: Page Layout
- Topic: Underlining Section Titles
- Replies: 3
- Views: 11670
Re: Underlining Section Titles
I've tried using titlesec, but it fusses about horizontal mode whenever a \section is called. Been trying to find out what that means. I'll see if I can work up a working example.
- Fri Apr 30, 2010 3:31 am
- Forum: Text Formatting
- Topic: Prepending Figure/Table to LoF/LoT
- Replies: 3
- Views: 2068
Prepending Figure/Table to LoF/LoT
Sadly, the template is no longer being maintained. The University hasn't posted an official one, because they decided that not enough students attempted to use LaTeX. Chicken/Egg Scenario?
It's available at http://ivan.research.ucf.edu/UCF_thesis ... hesis.html
It's available at http://ivan.research.ucf.edu/UCF_thesis ... hesis.html
- Fri Apr 30, 2010 1:53 am
- Forum: Page Layout
- Topic: Underlining Section Titles
- Replies: 3
- Views: 11670
Underlining Section Titles
Hello,
I'm trying to put an underline on a section title. The university's template uses the following section of code to change the headers, but also requires them to be underlined:
\def\section{\@startsection {section}{1}{\z@}{-7ex }
{ 3.5ex }{\centering\large\bfseries\TitleHyphenation ...
I'm trying to put an underline on a section title. The university's template uses the following section of code to change the headers, but also requires them to be underlined:
\def\section{\@startsection {section}{1}{\z@}{-7ex }
{ 3.5ex }{\centering\large\bfseries\TitleHyphenation ...
- Fri Apr 30, 2010 12:48 am
- Forum: Text Formatting
- Topic: Prepending Figure/Table to LoF/LoT
- Replies: 3
- Views: 2068
Prepending Figure/Table to LoF/LoT
Hello,
Is there a relatively newbie-friendly way of prepending a word such as "Figure" or "Table" to the label provided in LoF or LoT? Caveat: I can't use tocloft, as it dorks up the university template I'm using.
Is there a relatively newbie-friendly way of prepending a word such as "Figure" or "Table" to the label provided in LoF or LoT? Caveat: I can't use tocloft, as it dorks up the university template I'm using.