Print Chapter name in TOC but not where chapter startsChange chapter name in ToCChapter Name not...
Today is the Center
How could indestructible materials be used in power generation?
Were any external disk drives stacked vertically?
Why do bosons tend to occupy the same state?
Did Shadowfax go to Valinor?
Do I have a twin with permutated remainders?
Modeling an IP Address
What is a clear way to write a bar that has an extra beat?
Has there ever been an airliner design involving reducing generator load by installing solar panels?
How can saying a song's name be a copyright violation?
What is the most common color to indicate the input-field is disabled?
I'm flying to France today and my passport expires in less than 2 months
AES: Why is it a good practice to use only the first 16bytes of a hash for encryption?
Is it inappropriate for a student to attend their mentor's dissertation defense?
1960's book about a plague that kills all white people
Would Slavery Reparations be considered Bills of Attainder and hence Illegal?
How many spell slots should my level 1 wizard/level 1 fighter have?
Can one be a co-translator of a book, if he does not know the language that the book is translated into?
Anagram holiday
How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?
Brothers & sisters
How do conventional missiles fly?
Can a virus destroy the BIOS of a modern computer?
What do you call someone who asks many questions?
Print Chapter name in TOC but not where chapter starts
Change chapter name in ToCChapter Name not appearingPage number on the left with book classChapter numbers not showing on page, but showing in TOCRemove both number and chapter but keep in TOCHow to show Mini table only sections in a chapter not other chapter?Roman number in chapter header but not in TOCChapter number before Chapter name in LaTeXAdding Word “CHAPTER” above each chapter name in tocDifferentiate Chapter Headings in ToC and Body
I want to use an image (in which chapter name is written) in place of where the chapter name is. But chapter name is required in TOC as text.
Following code give a blank page before the chapter title image.
Thanks for all the help :)
MWE
documentclass[12pt,a4paper,fleqn,openany,twoside]{book}
%
usepackage{subfiles}
usepackage{TB_bookstyle}
%%%%%
%
begin{document}
%
newgeometry{textwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar}
chapter*{tiny{color{white}{Messages}}}
addcontentsline{toc}{chapter}{Messages}
%addtocounter{chapter}{1}
begin{figure}[h]
centering
includegraphics[width=1.0textwidth]{./images/Chap_Msgs}
end{figure}
end{document}
Self Made style file:
ProvidesPackage{TB_bookstyle}
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackage{geometry} % to change the page dimensions
geometry{a4paper} % or letterpaper (US) or a5paper or....
%geometry{margin=1.5in} % for example, change the margins to 2 inches all round
geometry{top=0.8in, bottom=0.8in, left=1.0in, right=1.0in}
% geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
%
%%%%GRAPHICS, FLOATS, SYMBOLS AND MATHS
% support the includegraphics command and options
usepackage{graphicx}
%usepackage{booktabs} % for much better looking tables
usepackage{floatrow}%for side captions
usepackage[utf8]{inputenc}%for proper characters
% for rotating floats
usepackage{lscape}
%for subfigures and tables
usepackage[font=small,labelfont=bf]{caption}
%usepackage{subcaption}
usepackage[font=footnotesize]{subfig}
usepackage[para,online,flushleft]{threeparttable}
usepackage{array}
usepackage{tabularx}
usepackage{booktabs}
newcolumntype{b}{X}
newcolumntype{s}{>{hsize=.5hsize}X}
usepackage{longtable}%for long tables
%%%
usepackage{amsmath,amssymb}
%%
usepackage[allcolors=black,colorlinks=true]{hyperref}%no boxes for links
usepackage[noabbrev,capitalize]{cleveref}%automatic table /figure before refs
creflabelformat{equation}{#2textup{#1}#3}%remove brackets around eq nos
%%%
usepackage[osf,sc]{mathpazo} %for upright math
usepackage{eulervm}
usepackage{gensymb}
usepackage{textcomp}
usepackage{wasysym} %for per mil sign
usepackage{array} % for better arrays (eg matrices) in maths
usepackage{paralist}
usepackage{enumitem}% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]{mhchem} % for upright CO2 etc
usepackage{wrapfig}%text wrapped figures/tables
%%
usepackage{calligra}%For cursive font
usepackage[T1]{fontenc}
usepackage{blindtext, color}
definecolor{brown}{rgb}{0.5, 0.2, 0.0}
definecolor{cornellred}{rgb}{0.7, 0.11, 0.11}
definecolor{brown_w}{rgb}{0.65, 0.16, 0.16}
usepackage{titlesec}
%titleformat{chapter*}[hang]{tinybfseries}{thechapterhsptextcolor{white}{|}hsp}{0pt}{tinybfseries}
%titleformat{chapter}[hang]{normalfontLargebfseries}{chaptertitlename thechapter:}{1em}{}
titlespacing{chapter}{-20pt}{-20pt}{-20pt}
titlespacing{section}{0pt}{0pt}{5pt}
titlespacing{subsection}{0pt}{0pt}{5pt}
titlespacing{subsubsection}{0pt}{0pt}{5pt}
%to stop starting new chapter in new page
usepackage{atbegshi,etoolbox}
%%
%%% HEADERS & FOOTERS
usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
%setlength{headheight}{50pt}
pagestyle{empty} % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
%%%%
%renewcommand{cftsecfont}{rmfamilymdseriesupshape}
%renewcommand{cftsecpagefont}{rmfamilymdseriesupshape} % No bold!
%usepackage{tocloft} % Alter the style of the Table of Contents
setcounter{tocdepth}{4}
renewcommand{bibname}{References}
%usepackage{bibentry}%for no ref list
%made command
%makeatletter
%newcommand*{toccontents}{@starttoc{toc}}
%makeatother
%renewcommand{contentsname}{}
%%%%%%%
%
%usepackage[colon,authoryear]{natbib}
%
%mytilde
newcommand{mytilde}{raise.17exhbox{$scriptstylemathtt{sim}$}}
%%%
table-of-contents chapters titlesec
add a comment |
I want to use an image (in which chapter name is written) in place of where the chapter name is. But chapter name is required in TOC as text.
Following code give a blank page before the chapter title image.
Thanks for all the help :)
MWE
documentclass[12pt,a4paper,fleqn,openany,twoside]{book}
%
usepackage{subfiles}
usepackage{TB_bookstyle}
%%%%%
%
begin{document}
%
newgeometry{textwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar}
chapter*{tiny{color{white}{Messages}}}
addcontentsline{toc}{chapter}{Messages}
%addtocounter{chapter}{1}
begin{figure}[h]
centering
includegraphics[width=1.0textwidth]{./images/Chap_Msgs}
end{figure}
end{document}
Self Made style file:
ProvidesPackage{TB_bookstyle}
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackage{geometry} % to change the page dimensions
geometry{a4paper} % or letterpaper (US) or a5paper or....
%geometry{margin=1.5in} % for example, change the margins to 2 inches all round
geometry{top=0.8in, bottom=0.8in, left=1.0in, right=1.0in}
% geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
%
%%%%GRAPHICS, FLOATS, SYMBOLS AND MATHS
% support the includegraphics command and options
usepackage{graphicx}
%usepackage{booktabs} % for much better looking tables
usepackage{floatrow}%for side captions
usepackage[utf8]{inputenc}%for proper characters
% for rotating floats
usepackage{lscape}
%for subfigures and tables
usepackage[font=small,labelfont=bf]{caption}
%usepackage{subcaption}
usepackage[font=footnotesize]{subfig}
usepackage[para,online,flushleft]{threeparttable}
usepackage{array}
usepackage{tabularx}
usepackage{booktabs}
newcolumntype{b}{X}
newcolumntype{s}{>{hsize=.5hsize}X}
usepackage{longtable}%for long tables
%%%
usepackage{amsmath,amssymb}
%%
usepackage[allcolors=black,colorlinks=true]{hyperref}%no boxes for links
usepackage[noabbrev,capitalize]{cleveref}%automatic table /figure before refs
creflabelformat{equation}{#2textup{#1}#3}%remove brackets around eq nos
%%%
usepackage[osf,sc]{mathpazo} %for upright math
usepackage{eulervm}
usepackage{gensymb}
usepackage{textcomp}
usepackage{wasysym} %for per mil sign
usepackage{array} % for better arrays (eg matrices) in maths
usepackage{paralist}
usepackage{enumitem}% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]{mhchem} % for upright CO2 etc
usepackage{wrapfig}%text wrapped figures/tables
%%
usepackage{calligra}%For cursive font
usepackage[T1]{fontenc}
usepackage{blindtext, color}
definecolor{brown}{rgb}{0.5, 0.2, 0.0}
definecolor{cornellred}{rgb}{0.7, 0.11, 0.11}
definecolor{brown_w}{rgb}{0.65, 0.16, 0.16}
usepackage{titlesec}
%titleformat{chapter*}[hang]{tinybfseries}{thechapterhsptextcolor{white}{|}hsp}{0pt}{tinybfseries}
%titleformat{chapter}[hang]{normalfontLargebfseries}{chaptertitlename thechapter:}{1em}{}
titlespacing{chapter}{-20pt}{-20pt}{-20pt}
titlespacing{section}{0pt}{0pt}{5pt}
titlespacing{subsection}{0pt}{0pt}{5pt}
titlespacing{subsubsection}{0pt}{0pt}{5pt}
%to stop starting new chapter in new page
usepackage{atbegshi,etoolbox}
%%
%%% HEADERS & FOOTERS
usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
%setlength{headheight}{50pt}
pagestyle{empty} % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
%%%%
%renewcommand{cftsecfont}{rmfamilymdseriesupshape}
%renewcommand{cftsecpagefont}{rmfamilymdseriesupshape} % No bold!
%usepackage{tocloft} % Alter the style of the Table of Contents
setcounter{tocdepth}{4}
renewcommand{bibname}{References}
%usepackage{bibentry}%for no ref list
%made command
%makeatletter
%newcommand*{toccontents}{@starttoc{toc}}
%makeatother
%renewcommand{contentsname}{}
%%%%%%%
%
%usepackage[colon,authoryear]{natbib}
%
%mytilde
newcommand{mytilde}{raise.17exhbox{$scriptstylemathtt{sim}$}}
%%%
table-of-contents chapters titlesec
Using your code, I only get a single page with an image on it, nothing more. I think the code doesn't really reproduce your problem.
– JouleV
10 mins ago
Well, I ran this MWE again and every time I am getting two pages. One blank one not
– Trina
2 mins ago
add a comment |
I want to use an image (in which chapter name is written) in place of where the chapter name is. But chapter name is required in TOC as text.
Following code give a blank page before the chapter title image.
Thanks for all the help :)
MWE
documentclass[12pt,a4paper,fleqn,openany,twoside]{book}
%
usepackage{subfiles}
usepackage{TB_bookstyle}
%%%%%
%
begin{document}
%
newgeometry{textwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar}
chapter*{tiny{color{white}{Messages}}}
addcontentsline{toc}{chapter}{Messages}
%addtocounter{chapter}{1}
begin{figure}[h]
centering
includegraphics[width=1.0textwidth]{./images/Chap_Msgs}
end{figure}
end{document}
Self Made style file:
ProvidesPackage{TB_bookstyle}
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackage{geometry} % to change the page dimensions
geometry{a4paper} % or letterpaper (US) or a5paper or....
%geometry{margin=1.5in} % for example, change the margins to 2 inches all round
geometry{top=0.8in, bottom=0.8in, left=1.0in, right=1.0in}
% geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
%
%%%%GRAPHICS, FLOATS, SYMBOLS AND MATHS
% support the includegraphics command and options
usepackage{graphicx}
%usepackage{booktabs} % for much better looking tables
usepackage{floatrow}%for side captions
usepackage[utf8]{inputenc}%for proper characters
% for rotating floats
usepackage{lscape}
%for subfigures and tables
usepackage[font=small,labelfont=bf]{caption}
%usepackage{subcaption}
usepackage[font=footnotesize]{subfig}
usepackage[para,online,flushleft]{threeparttable}
usepackage{array}
usepackage{tabularx}
usepackage{booktabs}
newcolumntype{b}{X}
newcolumntype{s}{>{hsize=.5hsize}X}
usepackage{longtable}%for long tables
%%%
usepackage{amsmath,amssymb}
%%
usepackage[allcolors=black,colorlinks=true]{hyperref}%no boxes for links
usepackage[noabbrev,capitalize]{cleveref}%automatic table /figure before refs
creflabelformat{equation}{#2textup{#1}#3}%remove brackets around eq nos
%%%
usepackage[osf,sc]{mathpazo} %for upright math
usepackage{eulervm}
usepackage{gensymb}
usepackage{textcomp}
usepackage{wasysym} %for per mil sign
usepackage{array} % for better arrays (eg matrices) in maths
usepackage{paralist}
usepackage{enumitem}% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]{mhchem} % for upright CO2 etc
usepackage{wrapfig}%text wrapped figures/tables
%%
usepackage{calligra}%For cursive font
usepackage[T1]{fontenc}
usepackage{blindtext, color}
definecolor{brown}{rgb}{0.5, 0.2, 0.0}
definecolor{cornellred}{rgb}{0.7, 0.11, 0.11}
definecolor{brown_w}{rgb}{0.65, 0.16, 0.16}
usepackage{titlesec}
%titleformat{chapter*}[hang]{tinybfseries}{thechapterhsptextcolor{white}{|}hsp}{0pt}{tinybfseries}
%titleformat{chapter}[hang]{normalfontLargebfseries}{chaptertitlename thechapter:}{1em}{}
titlespacing{chapter}{-20pt}{-20pt}{-20pt}
titlespacing{section}{0pt}{0pt}{5pt}
titlespacing{subsection}{0pt}{0pt}{5pt}
titlespacing{subsubsection}{0pt}{0pt}{5pt}
%to stop starting new chapter in new page
usepackage{atbegshi,etoolbox}
%%
%%% HEADERS & FOOTERS
usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
%setlength{headheight}{50pt}
pagestyle{empty} % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
%%%%
%renewcommand{cftsecfont}{rmfamilymdseriesupshape}
%renewcommand{cftsecpagefont}{rmfamilymdseriesupshape} % No bold!
%usepackage{tocloft} % Alter the style of the Table of Contents
setcounter{tocdepth}{4}
renewcommand{bibname}{References}
%usepackage{bibentry}%for no ref list
%made command
%makeatletter
%newcommand*{toccontents}{@starttoc{toc}}
%makeatother
%renewcommand{contentsname}{}
%%%%%%%
%
%usepackage[colon,authoryear]{natbib}
%
%mytilde
newcommand{mytilde}{raise.17exhbox{$scriptstylemathtt{sim}$}}
%%%
table-of-contents chapters titlesec
I want to use an image (in which chapter name is written) in place of where the chapter name is. But chapter name is required in TOC as text.
Following code give a blank page before the chapter title image.
Thanks for all the help :)
MWE
documentclass[12pt,a4paper,fleqn,openany,twoside]{book}
%
usepackage{subfiles}
usepackage{TB_bookstyle}
%%%%%
%
begin{document}
%
newgeometry{textwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar}
chapter*{tiny{color{white}{Messages}}}
addcontentsline{toc}{chapter}{Messages}
%addtocounter{chapter}{1}
begin{figure}[h]
centering
includegraphics[width=1.0textwidth]{./images/Chap_Msgs}
end{figure}
end{document}
Self Made style file:
ProvidesPackage{TB_bookstyle}
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackage{geometry} % to change the page dimensions
geometry{a4paper} % or letterpaper (US) or a5paper or....
%geometry{margin=1.5in} % for example, change the margins to 2 inches all round
geometry{top=0.8in, bottom=0.8in, left=1.0in, right=1.0in}
% geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
%
%%%%GRAPHICS, FLOATS, SYMBOLS AND MATHS
% support the includegraphics command and options
usepackage{graphicx}
%usepackage{booktabs} % for much better looking tables
usepackage{floatrow}%for side captions
usepackage[utf8]{inputenc}%for proper characters
% for rotating floats
usepackage{lscape}
%for subfigures and tables
usepackage[font=small,labelfont=bf]{caption}
%usepackage{subcaption}
usepackage[font=footnotesize]{subfig}
usepackage[para,online,flushleft]{threeparttable}
usepackage{array}
usepackage{tabularx}
usepackage{booktabs}
newcolumntype{b}{X}
newcolumntype{s}{>{hsize=.5hsize}X}
usepackage{longtable}%for long tables
%%%
usepackage{amsmath,amssymb}
%%
usepackage[allcolors=black,colorlinks=true]{hyperref}%no boxes for links
usepackage[noabbrev,capitalize]{cleveref}%automatic table /figure before refs
creflabelformat{equation}{#2textup{#1}#3}%remove brackets around eq nos
%%%
usepackage[osf,sc]{mathpazo} %for upright math
usepackage{eulervm}
usepackage{gensymb}
usepackage{textcomp}
usepackage{wasysym} %for per mil sign
usepackage{array} % for better arrays (eg matrices) in maths
usepackage{paralist}
usepackage{enumitem}% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]{mhchem} % for upright CO2 etc
usepackage{wrapfig}%text wrapped figures/tables
%%
usepackage{calligra}%For cursive font
usepackage[T1]{fontenc}
usepackage{blindtext, color}
definecolor{brown}{rgb}{0.5, 0.2, 0.0}
definecolor{cornellred}{rgb}{0.7, 0.11, 0.11}
definecolor{brown_w}{rgb}{0.65, 0.16, 0.16}
usepackage{titlesec}
%titleformat{chapter*}[hang]{tinybfseries}{thechapterhsptextcolor{white}{|}hsp}{0pt}{tinybfseries}
%titleformat{chapter}[hang]{normalfontLargebfseries}{chaptertitlename thechapter:}{1em}{}
titlespacing{chapter}{-20pt}{-20pt}{-20pt}
titlespacing{section}{0pt}{0pt}{5pt}
titlespacing{subsection}{0pt}{0pt}{5pt}
titlespacing{subsubsection}{0pt}{0pt}{5pt}
%to stop starting new chapter in new page
usepackage{atbegshi,etoolbox}
%%
%%% HEADERS & FOOTERS
usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
%setlength{headheight}{50pt}
pagestyle{empty} % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
%%%%
%renewcommand{cftsecfont}{rmfamilymdseriesupshape}
%renewcommand{cftsecpagefont}{rmfamilymdseriesupshape} % No bold!
%usepackage{tocloft} % Alter the style of the Table of Contents
setcounter{tocdepth}{4}
renewcommand{bibname}{References}
%usepackage{bibentry}%for no ref list
%made command
%makeatletter
%newcommand*{toccontents}{@starttoc{toc}}
%makeatother
%renewcommand{contentsname}{}
%%%%%%%
%
%usepackage[colon,authoryear]{natbib}
%
%mytilde
newcommand{mytilde}{raise.17exhbox{$scriptstylemathtt{sim}$}}
%%%
table-of-contents chapters titlesec
table-of-contents chapters titlesec
asked 11 mins ago
TrinaTrina
204
204
Using your code, I only get a single page with an image on it, nothing more. I think the code doesn't really reproduce your problem.
– JouleV
10 mins ago
Well, I ran this MWE again and every time I am getting two pages. One blank one not
– Trina
2 mins ago
add a comment |
Using your code, I only get a single page with an image on it, nothing more. I think the code doesn't really reproduce your problem.
– JouleV
10 mins ago
Well, I ran this MWE again and every time I am getting two pages. One blank one not
– Trina
2 mins ago
Using your code, I only get a single page with an image on it, nothing more. I think the code doesn't really reproduce your problem.
– JouleV
10 mins ago
Using your code, I only get a single page with an image on it, nothing more. I think the code doesn't really reproduce your problem.
– JouleV
10 mins ago
Well, I ran this MWE again and every time I am getting two pages. One blank one not
– Trina
2 mins ago
Well, I ran this MWE again and every time I am getting two pages. One blank one not
– Trina
2 mins ago
add a comment |
0
active
oldest
votes
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%2f483288%2fprint-chapter-name-in-toc-but-not-where-chapter-starts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f483288%2fprint-chapter-name-in-toc-but-not-where-chapter-starts%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
Using your code, I only get a single page with an image on it, nothing more. I think the code doesn't really reproduce your problem.
– JouleV
10 mins ago
Well, I ran this MWE again and every time I am getting two pages. One blank one not
– Trina
2 mins ago