LyXNew Chapter of a Thesis in Lyx

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
hooman
Posts: 41
Joined: Tue Jul 06, 2010 3:03 pm

New Chapter of a Thesis in Lyx

Post by hooman »

Hi,
I'm using the report template in Lyx to write my thesis, but I don't want the name of the chapter 'Chapter 1' to go on a separate page and I don't want the chapters, sections , subsections numbers to start with a 0 , for example 0.1.1 for section 1 of chapter 1. I want it to be '1.1' . I know that if you use an article documanet class the sections,etc would appear the way I want them i.e. without the zero, but then I wouldn't be able to start the chapters on new pages. ... Please help!
I know there are messy ways of using specific document classes in Lyx but I don't really have much time left and am looking for a quick solution.
Thanks you very mcuh in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

New Chapter of a Thesis in Lyx

Post by meho_r »

A quick example (put this code into the preamble; for more details take a look at titlesec documentation):

Code: Select all

\usepackage{titlesec}
\titleformat{\chapter}[hang]{\Huge\bfseries}{Chapter~\thechapter}{.5em}{}
As for numbers starting with 0, I don't know what you did, but all sectioning units start with 1, not 0 when using report document class. It may be a good idea to attach an example .lyx file in your next post so we can inspect it.
hooman
Posts: 41
Joined: Tue Jul 06, 2010 3:03 pm

Re: New Chapter of a Thesis in Lyx

Post by hooman »

Thank you for your reply. Please find a sample of my lyx file attached.
I look forward to hearing from you.
Attachments
newfile1.zip
(1.06 KiB) Downloaded 449 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

New Chapter of a Thesis in Lyx

Post by meho_r »

OK, I've attached your example file with the following assumptions and corrections:

1. I expect you want that chapters contain only Chapter 1, Chapter 2... text, without any additional text.

2. All your sectioning units should be numbered and appear in TOC (including Chapter 1, Chapter 2...).

3. In your example file you used \part* command for Chapter 1, which, naturally, caused that following lower sectioning units like \section and \subsection start with 0, because \chapter command is missing.

4. I'd suggest, if 1. is true, that you use "normal" \chapter command for chapters, without any text, but with an optional title (Insert > Short Title) which will appear in headers and TOC.

5. Another solution may be to redefine \chapter command (as I suggested in my previous post) and enter Chapter 1, Chapter 2... text manually, but, in case of any structural changes you'll have to do a lot of manual corrections. So, I wouldn't recommended this.
Attachments
newfile1.lyx.zip
(1.2 KiB) Downloaded 618 times
hooman
Posts: 41
Joined: Tue Jul 06, 2010 3:03 pm

Re: New Chapter of a Thesis in Lyx

Post by hooman »

Thank you very much! Exactly what I wanted! :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

New Chapter of a Thesis in Lyx

Post by localghost »

Now that the problem is solved, please mark the topic exactly as described in Section 3 of the Board Rules. Since you are not completely new to the board, you should know that in the meantime.


Best regards
Thorsten
hooman
Posts: 41
Joined: Tue Jul 06, 2010 3:03 pm

Re: New Chapter of a Thesis in Lyx

Post by hooman »

I will do as soon as possible. Thanx!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

New Chapter of a Thesis in Lyx

Post by localghost »

hooman wrote:I will do as soon as possible. […]
Shall be done immediately. Now time for editing has run out. So I will do.
Post Reply