Re: Ask for help : Package titlesec affects the settings of tocloft
Jilong Yin <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <CAEd1eRVSZn8LiK950GmJqo0iJwnb2GkTO8rS_tKriwBp68xHYA@mail.gmail.com> |
Thanks for your help, François.
I will try it.
After I posted the question, I digged Internet more, and found another
package titletoc can also format the TOC and can be used with titlesec
package well.
Thank you .
The following is my code to do this .
\titlecontents{part}% <section-type>
[0pt]% <left>
{\bfseries}% <above-code>
{}% <numbered-entry-format>
{\addvspace{1cm}\\ \Large \partname~}% <numberless-entry-format>
{\hfill\contentspage}% <filler-page-format>
\titleformat{\chapter}% reformat chapter headings
[hang]% like section, with number on same line
{\Huge\bfseries}% formatting applied to whole
{\thechapter}% Chapter number
{0.5em}% space between # and title
{}% formatting applied just to title
2014-04-15 13:28 GMT+09:00 Pétiard François <[email protected]>:
> Le 14/04/2014 10:52, Jilong Yin a écrit :
> > Hello, everyone.
> >
> > I am facing a problem when formatting my report edited by Latex.
> >
> > I wanto to do the following two formatting
> >
> > 1. to supress the line break after chapter title, for example
> > Chapter 1 Exercise A
> > to replace the default one
> > Chapter 1
> > Exercise A
> >
> > 2. to append "Appendix x........#"' to TOC, replacing default
> "x........#"
> >
> >
> > I use package titlesec to do format 1 and use package tocloft to do
> format
> > 2.
> > But I found the two package affect each other.
> > I can not get the two format at the same time.
> >
> > Anyone can help me some, thanks in advance.
>
> Hello
>
> Package tocloft tests if titlesec is loaded.
> A solution:
> put after \begin{document} (and before \tableofcontents):
>
> \makeatletter
> \@cfttitlesecfalse
> \makeatother
>
> François
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> MiKTeX-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/miktex-users
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
MiKTeX-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/miktex-users