General ⇒ An author and a title on chapter page
An author and a title on chapter page
Hi!
I need to prepare to print the first book in my life. I've chosen LaTeX and need some help. It will be conference proceedings and I don't know how to change default \chapter command. I need to write an author's name, a name of city and a title on every chapter page. When use \chapter I get only the number of chapter and the title (as you know, of course). I tried to use fncychap, but it gave only different style. I found an information about substr and titlesec, but I really don't know how to use it (I'm still really new in LaTeX).
Thanks for any help.
Krz
I need to prepare to print the first book in my life. I've chosen LaTeX and need some help. It will be conference proceedings and I don't know how to change default \chapter command. I need to write an author's name, a name of city and a title on every chapter page. When use \chapter I get only the number of chapter and the title (as you know, of course). I tried to use fncychap, but it gave only different style. I found an information about substr and titlesec, but I really don't know how to use it (I'm still really new in LaTeX).
Thanks for any help.
Krz
Last edited by krz on Tue Dec 28, 2010 8:59 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

An author and a title on chapter page
I can't find the beginner's section on here right now, but I suggest you read "Chapter 1 Things You Need To Know" from the lshort-guide!
(I'm referring to the English version.)
It'll help you a lot for future issues with LaTeX.
Concerning the customization of the first page of a chapter, you could usefrom the titlesec-package.

It'll help you a lot for future issues with LaTeX.
Concerning the customization of the first page of a chapter, you could use
Code: Select all
\titleformat{...}
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
An author and a title on chapter page
Right on top of every forum among the »Announcements«.Montag wrote:I can't find the beginner's section on here right now, […]
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: An author and a title on chapter page
Well, not the main page where I looked and I entered this thread by clicking on "View new posts". Yes, I could have looked into a forum.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Re: An author and a title on chapter page
Montag, thanks for answer. I started to study LaTeX from lshort. It's good instruction and I still study it.
I was sure that titlesec didn't reslove my problems, but maybe I was wrong. I'm studying it today and let you know if it works (or not).
I was sure that titlesec didn't reslove my problems, but maybe I was wrong. I'm studying it today and let you know if it works (or not).
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
An author and a title on chapter page
The confproc package might be your friend.krz wrote:[…] I need to prepare to print the first book in my life. I've chosen LaTeX and need some help. It will be conference proceedings and I don't know how to change default \chapter command. I need to write an author's name, a name of city and a title on every chapter page. […]
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: An author and a title on chapter page
Thanks, Thorsten,
I didn't have time to study titlesec. So, I've just read the short description and now I'm going to start from confproc. It looks really nice.
krz
I didn't have time to study titlesec. So, I've just read the short description and now I'm going to start from confproc. It looks really nice.
krz
An author and a title on chapter page
Hi,
Unfortunately I still can't resolve my problem. Telling the truth I gave up with confproc manual. My knowledge about LaTeX and generally programming is not enough to understand all this command. So, I decided to use \titlesec and \substr by useing this
but I still don't know how to add another line (for city name). I tried all \substr options but it still doesn't work.
Another problem appeared. When use \chapter the header dissapears (and it's ok), but the page number appears in the center of footer. I used \thispagestyle{clear} and \clearpage, but it doesn't work.
Thanks for any help.
krz
Update.
I've just resolved problem with pagenumber. It was the problem in \fancyhdr. Unfortunately I still don't know how to put another line in the example above.
Unfortunately I still can't resolve my problem. Telling the truth I gave up with confproc manual. My knowledge about LaTeX and generally programming is not enough to understand all this command. So, I decided to use \titlesec and \substr by useing this
Code: Select all
\titleformat{\chapter}[hang]{}{%
\Huge \thechapter.
}{1cm}{%
\LARGE \scshape \BeforeSubString{. }{#1}\\
{\Large \itshape ---\BehindSubString{. }{#1}---}%
}
Another problem appeared. When use \chapter the header dissapears (and it's ok), but the page number appears in the center of footer. I used \thispagestyle{clear} and \clearpage, but it doesn't work.
Thanks for any help.
krz
Update.
I've just resolved problem with pagenumber. It was the problem in \fancyhdr. Unfortunately I still don't know how to put another line in the example above.
An author and a title on chapter page
You should be able to create newlines inside a \titleformat command using \\ -- but I don't really understand what you're doing with substr, nor how "#1" can be legitimate there. If the hint about \\ isn't enough, could you provide a self-contained minimal working example showing exactly what's going on there?
Re: An author and a title on chapter page
frabjous, I don't know what I really do. I just copy what I find in internet just like a monkey. 
I'm not good at programming. LaTeX is my first programming environment and it is why I still can't understand a lot of things.
Yes, I've just found I can use \newline inside {title} and it works. The method that I showed you above is good, because I can use different font size to the title and to the author. How can I change the size if I use \newline? How to make different size behind and after \newline?

I'm not good at programming. LaTeX is my first programming environment and it is why I still can't understand a lot of things.
Yes, I've just found I can use \newline inside {title} and it works. The method that I showed you above is good, because I can use different font size to the title and to the author. How can I change the size if I use \newline? How to make different size behind and after \newline?