-2

I need the chapter numbers as in center not left and page no. also blue or everything is need black color, is it possible?

I need the chapter numbers as in center not left and page no. also blue or everything is need black color, is it possible?

  • 3
    Queries of the "do this for me" variety are frowned upon at this site. You really need to state what you've tried so far. Looking at the screenshot you've posted, I must confess that it's not even clear what the connection to LaTeX and friends may be. Do edit your posting to indicate what, if anything, you've tried. Do tell us which document class you use, what the page and text block sizes are, which fonts and font sizes are to be used, and (last but not least) if it's true that EVERYTHING HAS TO BE TYPESET IN BOLD AND ALL-UPPERCASE. – Mico Apr 15 '17 at 2:02
  • 4
    We would like you to edit your question to include code for a minimal but complete document showing what you've got and what you've tried. Presumably you have some code e.g. loading the fonts. Create some sample \section{}s and create the table of contents so people have something to format. Right now, this is just a do-it-all-for-me. 'Send me the code' - that's not how this site is supposed to work. – cfr Apr 15 '17 at 2:22
  • 1
    The fact that you use the article document class is significant: Since it doesn't feature a command called \chapter, it is impossible to generate a table of contents that shows chapter-level headers. – Mico Apr 15 '17 at 3:30
  • 1
    Changing the question time after time is not how this community works. – Johannes_B Apr 15 '17 at 12:15
  • 1
    Where can we get the complete specifications? – Johannes_B Apr 15 '17 at 12:21
4

All i take from the image: A centered title, chapter numbers (if any) on the left, then the titles, and the page numbers on the right.

kamalToc

\documentclass{report}
\usepackage[indentunnumbered]{unnumberedtotoc}%https://en.wikibooks.org/wiki/LaTeX/Document_Structure#Section_numbering
\usepackage{etoolbox}
\tracingpatches
\makeatletter
\patchcmd{\@makechapterhead}{\raggedright}{\centering}{}{}
\patchcmd{\@makeschapterhead}{\raggedright}{\centering}{}{}
\makeatother
\begin{document}
\tableofcontents
\chapter{Wombat}
\addchap{Capybara}
\chapter{An insanely long chapter title that nobody will ever
read entirely Duck}
\end{document}
  • etoolbox is not working – kamal Apr 15 '17 at 6:21
  • 1
    etoolbox is not the issue. You'll need the unnumberedtotoc.sty file from github.com/johannesbottcher/unnumberedtotoc – Troy Apr 15 '17 at 6:25
  • yes I downloaded and now its work thank you @Troy. I have one more doubt if i need to remove the chapter no. for the particular chapter, how i can remove the chapter no. for any chapters – kamal Apr 15 '17 at 6:34
  • You mean like capybara in the answer above? Use \addchap that's defined by unnumberedtotoc.sty instead of \chapter – Troy Apr 15 '17 at 6:39
  • Dear @Troy please see my image on top, In abstract there is not chapter no. I need like that... – kamal Apr 15 '17 at 7:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.