How can I display a short chapter name in the header and a long chapter name in the ToC?long title in table...
How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?
Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)
How can I make my BBEG immortal short of making them a Lich or Vampire?
The use of multiple foreign keys on same column in SQL Server
Do I have a twin with permutated remainders?
What do you call a Matrix-like slowdown and camera movement effect?
How can bays and straits be determined in a procedurally generated map?
strToHex ( string to its hex representation as string)
What does it mean to describe someone as a butt steak?
TGV timetables / schedules?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
What typically incentivizes a professor to change jobs to a lower ranking university?
Why does Kotter return in Welcome Back Kotter?
What is the word for reserving something for yourself before others do?
To string or not to string
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
Maximum likelihood parameters deviate from posterior distributions
Theorem, big Paralist and Amsart
Why are electrically insulating heatsinks so rare? Is it just cost?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"
Can I ask the recruiters in my resume to put the reason why I am rejected?
How to format long polynomial?
Have astronauts in space suits ever taken selfies? If so, how?
How can I display a short chapter name in the header and a long chapter name in the ToC?
long title in table of contentsHow to wrap text in toc?Don't use alternative section title in tableofcontentsOverflow in LaTeX scrbook Headerchapter title on two lines in the TOCModify the header in a document - Header out of marginsChapter names in headersChange the text size and type in a page header especially if the text is longHow to change the title of a section in the table of contentsChapter title in header too longProper way to section a textIs it possible to use both long name and short name of the section in headers?TOC and header versions of section titles (titlesec interferes with fancyhdr)Header and footer for a book using: part on even page and chapter on odd pageHow to change the first page (layout + geometry) of each chapter in a report?Force text between part and chapter to be on the next page after the part titleParagraph title in ConTeXt (similar to LaTeX paragraph{})Design chapter*, toc and shorttoc {memoir}Header with Section short title and Chapter short title using KOMA-scriptBold chapter numbers
I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the
chapter[short title]{long title}
command. But then, "short title" appears in the table of contents instead of the original/true/long one.
How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?
For reference, here is the code I use:
documentclass[11pt,a4paper]{book}
begin{document}
tableofcontents
chapter[Short title]{Very vey very very very very very very long title
i can't display in the header}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
end{document}
sectioning table-of-contents header-footer chapters
add a comment |
I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the
chapter[short title]{long title}
command. But then, "short title" appears in the table of contents instead of the original/true/long one.
How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?
For reference, here is the code I use:
documentclass[11pt,a4paper]{book}
begin{document}
tableofcontents
chapter[Short title]{Very vey very very very very very very long title
i can't display in the header}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
end{document}
sectioning table-of-contents header-footer chapters
add a comment |
I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the
chapter[short title]{long title}
command. But then, "short title" appears in the table of contents instead of the original/true/long one.
How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?
For reference, here is the code I use:
documentclass[11pt,a4paper]{book}
begin{document}
tableofcontents
chapter[Short title]{Very vey very very very very very very long title
i can't display in the header}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
end{document}
sectioning table-of-contents header-footer chapters
I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the
chapter[short title]{long title}
command. But then, "short title" appears in the table of contents instead of the original/true/long one.
How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?
For reference, here is the code I use:
documentclass[11pt,a4paper]{book}
begin{document}
tableofcontents
chapter[Short title]{Very vey very very very very very very long title
i can't display in the header}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
end{document}
sectioning table-of-contents header-footer chapters
sectioning table-of-contents header-footer chapters
edited 11 hours ago
Mico
285k32388778
285k32388778
asked Dec 10 '10 at 13:03
Thomas ABBALLE
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
chapter[toc version]{doc version}
chaptermark{version for header}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig
1
you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?
– lockstep
Dec 10 '10 at 13:39
Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the[toctitles]
package option if you're using the{titlesec}
package.
– phfaist
Feb 25 '16 at 19:28
Extra points should be given for such short answers =)
– loved.by.Jesus
Sep 1 '17 at 19:27
Aren't you life saver!
– imsrgadich
Sep 21 '18 at 13:00
add a comment |
The sectioning commands of the memoir
class feature a second optional argument:
documentclass[11pt,a4paper]{memoir}
begin{document}
tableofcontents*% Starred form for not including the ToC in the ToC
chapter[Title displayed in ToC][Title displayed in header]{Title}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
EDIT: Since v3.10, the KOMA-Script
classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead
, headings=optiontotoc
, and headings=optiontoheadandtoc
.
documentclass[headings=optiontohead]{scrbook}
begin{document}
tableofcontents
chapter[Title displayed in header]{Title; also displayed in ToC}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
add a comment |
Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:
usepackage[fit]{truncate}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
fancyfoot[C]{thepage}
add a comment |
the ams document classes behave this way by default -- the optional argument is used
only for the running head, and the long form is used in the toc.
because adjustments such as line breaks must sometimes be applied to the long form,
the ams classes provide an "in-title" modification mechanism to allow different
changes to apply to the header itself vs. what goes into the toc.
two commands are provided:
for{toc}{...}
includes the specified material in the toc entry;except{toc}{...}
uses the material in the header itself, but excludes it from the toc.
this mechanism works also for lof
and lot
entries. additional commentary can be
found in the ams author faq.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f6862%2fhow-can-i-display-a-short-chapter-name-in-the-header-and-a-long-chapter-name-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
chapter[toc version]{doc version}
chaptermark{version for header}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig
1
you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?
– lockstep
Dec 10 '10 at 13:39
Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the[toctitles]
package option if you're using the{titlesec}
package.
– phfaist
Feb 25 '16 at 19:28
Extra points should be given for such short answers =)
– loved.by.Jesus
Sep 1 '17 at 19:27
Aren't you life saver!
– imsrgadich
Sep 21 '18 at 13:00
add a comment |
chapter[toc version]{doc version}
chaptermark{version for header}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig
1
you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?
– lockstep
Dec 10 '10 at 13:39
Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the[toctitles]
package option if you're using the{titlesec}
package.
– phfaist
Feb 25 '16 at 19:28
Extra points should be given for such short answers =)
– loved.by.Jesus
Sep 1 '17 at 19:27
Aren't you life saver!
– imsrgadich
Sep 21 '18 at 13:00
add a comment |
chapter[toc version]{doc version}
chaptermark{version for header}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig
chapter[toc version]{doc version}
chaptermark{version for header}
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig
answered Dec 10 '10 at 13:29
Ulrike FischerUlrike Fischer
198k9306692
198k9306692
1
you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?
– lockstep
Dec 10 '10 at 13:39
Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the[toctitles]
package option if you're using the{titlesec}
package.
– phfaist
Feb 25 '16 at 19:28
Extra points should be given for such short answers =)
– loved.by.Jesus
Sep 1 '17 at 19:27
Aren't you life saver!
– imsrgadich
Sep 21 '18 at 13:00
add a comment |
1
you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?
– lockstep
Dec 10 '10 at 13:39
Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the[toctitles]
package option if you're using the{titlesec}
package.
– phfaist
Feb 25 '16 at 19:28
Extra points should be given for such short answers =)
– loved.by.Jesus
Sep 1 '17 at 19:27
Aren't you life saver!
– imsrgadich
Sep 21 '18 at 13:00
1
1
you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?
– lockstep
Dec 10 '10 at 13:39
you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?
– lockstep
Dec 10 '10 at 13:39
Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the
[toctitles]
package option if you're using the {titlesec}
package.– phfaist
Feb 25 '16 at 19:28
Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the
[toctitles]
package option if you're using the {titlesec}
package.– phfaist
Feb 25 '16 at 19:28
Extra points should be given for such short answers =)
– loved.by.Jesus
Sep 1 '17 at 19:27
Extra points should be given for such short answers =)
– loved.by.Jesus
Sep 1 '17 at 19:27
Aren't you life saver!
– imsrgadich
Sep 21 '18 at 13:00
Aren't you life saver!
– imsrgadich
Sep 21 '18 at 13:00
add a comment |
The sectioning commands of the memoir
class feature a second optional argument:
documentclass[11pt,a4paper]{memoir}
begin{document}
tableofcontents*% Starred form for not including the ToC in the ToC
chapter[Title displayed in ToC][Title displayed in header]{Title}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
EDIT: Since v3.10, the KOMA-Script
classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead
, headings=optiontotoc
, and headings=optiontoheadandtoc
.
documentclass[headings=optiontohead]{scrbook}
begin{document}
tableofcontents
chapter[Title displayed in header]{Title; also displayed in ToC}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
add a comment |
The sectioning commands of the memoir
class feature a second optional argument:
documentclass[11pt,a4paper]{memoir}
begin{document}
tableofcontents*% Starred form for not including the ToC in the ToC
chapter[Title displayed in ToC][Title displayed in header]{Title}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
EDIT: Since v3.10, the KOMA-Script
classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead
, headings=optiontotoc
, and headings=optiontoheadandtoc
.
documentclass[headings=optiontohead]{scrbook}
begin{document}
tableofcontents
chapter[Title displayed in header]{Title; also displayed in ToC}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
add a comment |
The sectioning commands of the memoir
class feature a second optional argument:
documentclass[11pt,a4paper]{memoir}
begin{document}
tableofcontents*% Starred form for not including the ToC in the ToC
chapter[Title displayed in ToC][Title displayed in header]{Title}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
EDIT: Since v3.10, the KOMA-Script
classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead
, headings=optiontotoc
, and headings=optiontoheadandtoc
.
documentclass[headings=optiontohead]{scrbook}
begin{document}
tableofcontents
chapter[Title displayed in header]{Title; also displayed in ToC}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
The sectioning commands of the memoir
class feature a second optional argument:
documentclass[11pt,a4paper]{memoir}
begin{document}
tableofcontents*% Starred form for not including the ToC in the ToC
chapter[Title displayed in ToC][Title displayed in header]{Title}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
EDIT: Since v3.10, the KOMA-Script
classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead
, headings=optiontotoc
, and headings=optiontoheadandtoc
.
documentclass[headings=optiontohead]{scrbook}
begin{document}
tableofcontents
chapter[Title displayed in header]{Title; also displayed in ToC}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
clearpagenull
end{document}
edited Mar 15 '12 at 16:06
answered Dec 10 '10 at 15:35
locksteplockstep
193k53593723
193k53593723
add a comment |
add a comment |
Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:
usepackage[fit]{truncate}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
fancyfoot[C]{thepage}
add a comment |
Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:
usepackage[fit]{truncate}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
fancyfoot[C]{thepage}
add a comment |
Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:
usepackage[fit]{truncate}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
fancyfoot[C]{thepage}
Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:
usepackage[fit]{truncate}
usepackage{fancyhdr}
pagestyle{fancy}
fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
fancyfoot[C]{thepage}
answered Jan 12 '11 at 15:48
count0count0
1811
1811
add a comment |
add a comment |
the ams document classes behave this way by default -- the optional argument is used
only for the running head, and the long form is used in the toc.
because adjustments such as line breaks must sometimes be applied to the long form,
the ams classes provide an "in-title" modification mechanism to allow different
changes to apply to the header itself vs. what goes into the toc.
two commands are provided:
for{toc}{...}
includes the specified material in the toc entry;except{toc}{...}
uses the material in the header itself, but excludes it from the toc.
this mechanism works also for lof
and lot
entries. additional commentary can be
found in the ams author faq.
add a comment |
the ams document classes behave this way by default -- the optional argument is used
only for the running head, and the long form is used in the toc.
because adjustments such as line breaks must sometimes be applied to the long form,
the ams classes provide an "in-title" modification mechanism to allow different
changes to apply to the header itself vs. what goes into the toc.
two commands are provided:
for{toc}{...}
includes the specified material in the toc entry;except{toc}{...}
uses the material in the header itself, but excludes it from the toc.
this mechanism works also for lof
and lot
entries. additional commentary can be
found in the ams author faq.
add a comment |
the ams document classes behave this way by default -- the optional argument is used
only for the running head, and the long form is used in the toc.
because adjustments such as line breaks must sometimes be applied to the long form,
the ams classes provide an "in-title" modification mechanism to allow different
changes to apply to the header itself vs. what goes into the toc.
two commands are provided:
for{toc}{...}
includes the specified material in the toc entry;except{toc}{...}
uses the material in the header itself, but excludes it from the toc.
this mechanism works also for lof
and lot
entries. additional commentary can be
found in the ams author faq.
the ams document classes behave this way by default -- the optional argument is used
only for the running head, and the long form is used in the toc.
because adjustments such as line breaks must sometimes be applied to the long form,
the ams classes provide an "in-title" modification mechanism to allow different
changes to apply to the header itself vs. what goes into the toc.
two commands are provided:
for{toc}{...}
includes the specified material in the toc entry;except{toc}{...}
uses the material in the header itself, but excludes it from the toc.
this mechanism works also for lof
and lot
entries. additional commentary can be
found in the ams author faq.
answered Jul 24 '14 at 18:07
barbara beetonbarbara beeton
70.1k9159380
70.1k9159380
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f6862%2fhow-can-i-display-a-short-chapter-name-in-the-header-and-a-long-chapter-name-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown