Print Chapter name in TOC but not where chapter starts

How can I make my BBEG immortal short of making them a Lich or Vampire?

Is it canonical bit space?

What mechanic is there to disable a threat instead of killing it?

How can I tell someone that I want to be his or her friend?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Assassin's bullet with mercury

Emailing HOD to enhance faculty application

How much of data wrangling is a data scientist's job?

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

Can I ask the recruiters in my resume to put the reason why I am rejected?

Took a trip to a parallel universe, need help deciphering

Why is consensus so controversial in Britain?

What's the point of deactivating Num Lock on login screens?

Memorizing the Keyboard

Arrow those variables!

How can saying a song's name be a copyright violation?

When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?

Brothers & sisters

What is the most common color to indicate the input-field is disabled?

What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?

Is it unprofessional to ask if a job posting on GlassDoor is real?

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

CEO ridiculed me with gay jokes and grabbed me and wouldn't let go - now getting pushed out of company

Why is the 'in' operator throwing an error with a string literal instead of logging false?



Print Chapter name in TOC but not where chapter starts














0















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
%
usepackagesubfiles
usepackageTB_bookstyle
%%%%%
%
begindocument
%
newgeometrytextwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar
chapter*tinycolorwhiteMessages
addcontentslinetocchapterMessages
%addtocounterchapter1
beginfigure[h]
centering
includegraphics[width=1.0textwidth]./images/Chap_Msgs
endfigure
enddocument


Self Made style file:



ProvidesPackageTB_bookstyle
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackagegeometry % to change the page dimensions
geometrya4paper % or letterpaper (US) or a5paper or....
%geometrymargin=1.5in % for example, change the margins to 2 inches all round
geometrytop=0.8in, bottom=0.8in, left=1.0in, right=1.0in
% geometrylandscape % 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
usepackagegraphicx
%usepackagebooktabs % for much better looking tables
usepackagefloatrow%for side captions
usepackage[utf8]inputenc%for proper characters
% for rotating floats
usepackagelscape
%for subfigures and tables
usepackage[font=small,labelfont=bf]caption
%usepackagesubcaption
usepackage[font=footnotesize]subfig
usepackage[para,online,flushleft]threeparttable
usepackagearray
usepackagetabularx
usepackagebooktabs
newcolumntypebX
newcolumntypes>hsize=.5hsizeX
usepackagelongtable%for long tables
%%%
usepackageamsmath,amssymb
%%
usepackage[allcolors=black,colorlinks=true]hyperref%no boxes for links
usepackage[noabbrev,capitalize]cleveref%automatic table /figure before refs
creflabelformatequation#2textup#1#3%remove brackets around eq nos
%%%
usepackage[osf,sc]mathpazo %for upright math
usepackageeulervm
usepackagegensymb
usepackagetextcomp
usepackagewasysym %for per mil sign
usepackagearray % for better arrays (eg matrices) in maths
usepackageparalist
usepackageenumitem% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackageverbatim % adds environment for commenting out blocks of text & for better verbatim
usepackagesubfig % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]mhchem % for upright CO2 etc
usepackagewrapfig%text wrapped figures/tables
%%
usepackagecalligra%For cursive font
usepackage[T1]fontenc
usepackageblindtext, color
definecolorbrownrgb0.5, 0.2, 0.0
definecolorcornellredrgb0.7, 0.11, 0.11
definecolorbrown_wrgb0.65, 0.16, 0.16
usepackagetitlesec
%titleformatchapter*[hang]tinybfseriesthechapterhsptextcolorwhitehsp0pttinybfseries
%titleformatchapter[hang]normalfontLargebfserieschaptertitlename thechapter:1em
titlespacingchapter-20pt-20pt-20pt
titlespacingsection0pt0pt5pt
titlespacingsubsection0pt0pt5pt
titlespacingsubsubsection0pt0pt5pt
%to stop starting new chapter in new page
usepackageatbegshi,etoolbox
%%
%%% HEADERS & FOOTERS
usepackagefancyhdr % This should be set AFTER setting up the page geometry
%setlengthheadheight50pt
pagestyleempty % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]tocbibind % Put the bibliography in the ToC
%%%%
%renewcommandcftsecfontrmfamilymdseriesupshape
%renewcommandcftsecpagefontrmfamilymdseriesupshape % No bold!
%usepackagetocloft % Alter the style of the Table of Contents
setcountertocdepth4
renewcommandbibnameReferences
%usepackagebibentry%for no ref list
%made command
%makeatletter
%newcommand*toccontents@starttoctoc
%makeatother
%renewcommandcontentsname
%%%%%%%
%
%usepackage[colon,authoryear]natbib
%
%mytilde
newcommandmytilderaise.17exhbox$scriptstylemathttsim$
%%%








share






















  • 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
    2 mins ago















0















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
%
usepackagesubfiles
usepackageTB_bookstyle
%%%%%
%
begindocument
%
newgeometrytextwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar
chapter*tinycolorwhiteMessages
addcontentslinetocchapterMessages
%addtocounterchapter1
beginfigure[h]
centering
includegraphics[width=1.0textwidth]./images/Chap_Msgs
endfigure
enddocument


Self Made style file:



ProvidesPackageTB_bookstyle
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackagegeometry % to change the page dimensions
geometrya4paper % or letterpaper (US) or a5paper or....
%geometrymargin=1.5in % for example, change the margins to 2 inches all round
geometrytop=0.8in, bottom=0.8in, left=1.0in, right=1.0in
% geometrylandscape % 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
usepackagegraphicx
%usepackagebooktabs % for much better looking tables
usepackagefloatrow%for side captions
usepackage[utf8]inputenc%for proper characters
% for rotating floats
usepackagelscape
%for subfigures and tables
usepackage[font=small,labelfont=bf]caption
%usepackagesubcaption
usepackage[font=footnotesize]subfig
usepackage[para,online,flushleft]threeparttable
usepackagearray
usepackagetabularx
usepackagebooktabs
newcolumntypebX
newcolumntypes>hsize=.5hsizeX
usepackagelongtable%for long tables
%%%
usepackageamsmath,amssymb
%%
usepackage[allcolors=black,colorlinks=true]hyperref%no boxes for links
usepackage[noabbrev,capitalize]cleveref%automatic table /figure before refs
creflabelformatequation#2textup#1#3%remove brackets around eq nos
%%%
usepackage[osf,sc]mathpazo %for upright math
usepackageeulervm
usepackagegensymb
usepackagetextcomp
usepackagewasysym %for per mil sign
usepackagearray % for better arrays (eg matrices) in maths
usepackageparalist
usepackageenumitem% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackageverbatim % adds environment for commenting out blocks of text & for better verbatim
usepackagesubfig % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]mhchem % for upright CO2 etc
usepackagewrapfig%text wrapped figures/tables
%%
usepackagecalligra%For cursive font
usepackage[T1]fontenc
usepackageblindtext, color
definecolorbrownrgb0.5, 0.2, 0.0
definecolorcornellredrgb0.7, 0.11, 0.11
definecolorbrown_wrgb0.65, 0.16, 0.16
usepackagetitlesec
%titleformatchapter*[hang]tinybfseriesthechapterhsptextcolorwhitehsp0pttinybfseries
%titleformatchapter[hang]normalfontLargebfserieschaptertitlename thechapter:1em
titlespacingchapter-20pt-20pt-20pt
titlespacingsection0pt0pt5pt
titlespacingsubsection0pt0pt5pt
titlespacingsubsubsection0pt0pt5pt
%to stop starting new chapter in new page
usepackageatbegshi,etoolbox
%%
%%% HEADERS & FOOTERS
usepackagefancyhdr % This should be set AFTER setting up the page geometry
%setlengthheadheight50pt
pagestyleempty % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]tocbibind % Put the bibliography in the ToC
%%%%
%renewcommandcftsecfontrmfamilymdseriesupshape
%renewcommandcftsecpagefontrmfamilymdseriesupshape % No bold!
%usepackagetocloft % Alter the style of the Table of Contents
setcountertocdepth4
renewcommandbibnameReferences
%usepackagebibentry%for no ref list
%made command
%makeatletter
%newcommand*toccontents@starttoctoc
%makeatother
%renewcommandcontentsname
%%%%%%%
%
%usepackage[colon,authoryear]natbib
%
%mytilde
newcommandmytilderaise.17exhbox$scriptstylemathttsim$
%%%








share






















  • 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
    2 mins ago













0












0








0








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
%
usepackagesubfiles
usepackageTB_bookstyle
%%%%%
%
begindocument
%
newgeometrytextwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar
chapter*tinycolorwhiteMessages
addcontentslinetocchapterMessages
%addtocounterchapter1
beginfigure[h]
centering
includegraphics[width=1.0textwidth]./images/Chap_Msgs
endfigure
enddocument


Self Made style file:



ProvidesPackageTB_bookstyle
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackagegeometry % to change the page dimensions
geometrya4paper % or letterpaper (US) or a5paper or....
%geometrymargin=1.5in % for example, change the margins to 2 inches all round
geometrytop=0.8in, bottom=0.8in, left=1.0in, right=1.0in
% geometrylandscape % 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
usepackagegraphicx
%usepackagebooktabs % for much better looking tables
usepackagefloatrow%for side captions
usepackage[utf8]inputenc%for proper characters
% for rotating floats
usepackagelscape
%for subfigures and tables
usepackage[font=small,labelfont=bf]caption
%usepackagesubcaption
usepackage[font=footnotesize]subfig
usepackage[para,online,flushleft]threeparttable
usepackagearray
usepackagetabularx
usepackagebooktabs
newcolumntypebX
newcolumntypes>hsize=.5hsizeX
usepackagelongtable%for long tables
%%%
usepackageamsmath,amssymb
%%
usepackage[allcolors=black,colorlinks=true]hyperref%no boxes for links
usepackage[noabbrev,capitalize]cleveref%automatic table /figure before refs
creflabelformatequation#2textup#1#3%remove brackets around eq nos
%%%
usepackage[osf,sc]mathpazo %for upright math
usepackageeulervm
usepackagegensymb
usepackagetextcomp
usepackagewasysym %for per mil sign
usepackagearray % for better arrays (eg matrices) in maths
usepackageparalist
usepackageenumitem% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackageverbatim % adds environment for commenting out blocks of text & for better verbatim
usepackagesubfig % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]mhchem % for upright CO2 etc
usepackagewrapfig%text wrapped figures/tables
%%
usepackagecalligra%For cursive font
usepackage[T1]fontenc
usepackageblindtext, color
definecolorbrownrgb0.5, 0.2, 0.0
definecolorcornellredrgb0.7, 0.11, 0.11
definecolorbrown_wrgb0.65, 0.16, 0.16
usepackagetitlesec
%titleformatchapter*[hang]tinybfseriesthechapterhsptextcolorwhitehsp0pttinybfseries
%titleformatchapter[hang]normalfontLargebfserieschaptertitlename thechapter:1em
titlespacingchapter-20pt-20pt-20pt
titlespacingsection0pt0pt5pt
titlespacingsubsection0pt0pt5pt
titlespacingsubsubsection0pt0pt5pt
%to stop starting new chapter in new page
usepackageatbegshi,etoolbox
%%
%%% HEADERS & FOOTERS
usepackagefancyhdr % This should be set AFTER setting up the page geometry
%setlengthheadheight50pt
pagestyleempty % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]tocbibind % Put the bibliography in the ToC
%%%%
%renewcommandcftsecfontrmfamilymdseriesupshape
%renewcommandcftsecpagefontrmfamilymdseriesupshape % No bold!
%usepackagetocloft % Alter the style of the Table of Contents
setcountertocdepth4
renewcommandbibnameReferences
%usepackagebibentry%for no ref list
%made command
%makeatletter
%newcommand*toccontents@starttoctoc
%makeatother
%renewcommandcontentsname
%%%%%%%
%
%usepackage[colon,authoryear]natbib
%
%mytilde
newcommandmytilderaise.17exhbox$scriptstylemathttsim$
%%%








share














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
%
usepackagesubfiles
usepackageTB_bookstyle
%%%%%
%
begindocument
%
newgeometrytextwidth=paperwidth, textheight=paperheight, noheadfoot, nomarginpar
chapter*tinycolorwhiteMessages
addcontentslinetocchapterMessages
%addtocounterchapter1
beginfigure[h]
centering
includegraphics[width=1.0textwidth]./images/Chap_Msgs
endfigure
enddocument


Self Made style file:



ProvidesPackageTB_bookstyle
%
%%% PAGE DIMENSIONS AND SETTINGS
usepackagegeometry % to change the page dimensions
geometrya4paper % or letterpaper (US) or a5paper or....
%geometrymargin=1.5in % for example, change the margins to 2 inches all round
geometrytop=0.8in, bottom=0.8in, left=1.0in, right=1.0in
% geometrylandscape % 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
usepackagegraphicx
%usepackagebooktabs % for much better looking tables
usepackagefloatrow%for side captions
usepackage[utf8]inputenc%for proper characters
% for rotating floats
usepackagelscape
%for subfigures and tables
usepackage[font=small,labelfont=bf]caption
%usepackagesubcaption
usepackage[font=footnotesize]subfig
usepackage[para,online,flushleft]threeparttable
usepackagearray
usepackagetabularx
usepackagebooktabs
newcolumntypebX
newcolumntypes>hsize=.5hsizeX
usepackagelongtable%for long tables
%%%
usepackageamsmath,amssymb
%%
usepackage[allcolors=black,colorlinks=true]hyperref%no boxes for links
usepackage[noabbrev,capitalize]cleveref%automatic table /figure before refs
creflabelformatequation#2textup#1#3%remove brackets around eq nos
%%%
usepackage[osf,sc]mathpazo %for upright math
usepackageeulervm
usepackagegensymb
usepackagetextcomp
usepackagewasysym %for per mil sign
usepackagearray % for better arrays (eg matrices) in maths
usepackageparalist
usepackageenumitem% very flexible & customisable lists (eg. enumerate/itemize, etc.)
usepackageverbatim % adds environment for commenting out blocks of text & for better verbatim
usepackagesubfig % make it possible to include more than one captioned figure/table in a single float
usepackage[version=3]mhchem % for upright CO2 etc
usepackagewrapfig%text wrapped figures/tables
%%
usepackagecalligra%For cursive font
usepackage[T1]fontenc
usepackageblindtext, color
definecolorbrownrgb0.5, 0.2, 0.0
definecolorcornellredrgb0.7, 0.11, 0.11
definecolorbrown_wrgb0.65, 0.16, 0.16
usepackagetitlesec
%titleformatchapter*[hang]tinybfseriesthechapterhsptextcolorwhitehsp0pttinybfseries
%titleformatchapter[hang]normalfontLargebfserieschaptertitlename thechapter:1em
titlespacingchapter-20pt-20pt-20pt
titlespacingsection0pt0pt5pt
titlespacingsubsection0pt0pt5pt
titlespacingsubsubsection0pt0pt5pt
%to stop starting new chapter in new page
usepackageatbegshi,etoolbox
%%
%%% HEADERS & FOOTERS
usepackagefancyhdr % This should be set AFTER setting up the page geometry
%setlengthheadheight50pt
pagestyleempty % options: empty , plain , fancy
%%
%%% ToC (table of contents) APPEARANCE
usepackage[nottoc,notlof,notlot]tocbibind % Put the bibliography in the ToC
%%%%
%renewcommandcftsecfontrmfamilymdseriesupshape
%renewcommandcftsecpagefontrmfamilymdseriesupshape % No bold!
%usepackagetocloft % Alter the style of the Table of Contents
setcountertocdepth4
renewcommandbibnameReferences
%usepackagebibentry%for no ref list
%made command
%makeatletter
%newcommand*toccontents@starttoctoc
%makeatother
%renewcommandcontentsname
%%%%%%%
%
%usepackage[colon,authoryear]natbib
%
%mytilde
newcommandmytilderaise.17exhbox$scriptstylemathttsim$
%%%






table-of-contents chapters titlesec





share












share










share



share










asked 4 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
    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
    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
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
2 mins ago










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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Lioubotyn Sommaire Géographie | Histoire | Population | Notes et références | Liens externes | Menu de navigationlubotin.kharkov.uamodifier« Recensements et estimations de la population depuis 1897 »« Office des statistiques d'Ukraine : population au 1er janvier 2010, 2011 et 2012 »« Office des statistiques d'Ukraine : population au 1er janvier 2011, 2012 et 2013 »Informations officiellesCartes topographiquesCarte routièrem

Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

Mpande kaSenzangakhona Biographie | Références | Menu de navigationmodifierMpande kaSenzangakhonavoir la liste des auteursm