As stated, I need to change the spacing between the top of the page, the chapter name and title. I'm currently using \allsectionfont{\centering \fontsize{15}{15}\selectfont} to control the size and where they are placed. There is still a huge gap between where it says "Chapter 1" and the top of the page, as well as a gap between "Chapter 1" and the name of the chapter. How can I make this gap vanish?
2193
I am using LaTeX to write my dissertation, and I have realised that on the table of contents and on every chapter page, LaTeX leaves a lot of empty space.  What I mean is that lets say in the page where chapter 1 begins, from the top of the page until the chapter title there is much more vertical space than on any other page. The same goes with chapter 2 etc... and for contents page as well.   Can anybody help me to remove that space? Is there any mistake in my code or something like that? Is this a default of LaTeX?  the preamble is  \documentclass[12pt,twoside]{report} \pagestyle{plain} \usepackage{a4paper} \usepackage{setspace} \doublespacing  \usepackage{amssymb} \usepackage{amsmath}    I've tried the methods below, but none of them work properly.
103363
Currently I'm creating a pocketwatch, but im having a difficulty in spacing out the text evenly, as can see here:    If I tried to space it out by scaling with x, this happens:   Is there any way I could evenly space out the text without deforming the text or adding spaces for every text?
102224
I have found that for only one page (so far) the spacing between the header and content is different from the spacing on all the other pages. You can see this behavior in the images below (from pages 2 and 3 of the document):     My .tex file contents are shown below.  \documentclass[a4paper]{report} \usepackage{fullpage} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\headsep}{0.5cm}  \begin{document} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}} \fancyhead[L]{\bfseries \leftmark} \fancyhead[R]{\bfseries \rightmark}  \chapter{Version Control} \lipsum \lipsum \lipsum \lipsum  \end{document}
114202
I'm trying to change the background color of the chapter headings. I'd like the full top part of the page, including top and right margins to turn gray until the titlerule.  Currently they look like this:  \documentclass[10pt,twoside,openright]{book} \usepackage{titlesec} \titleformat{\chapter}[display]{\LARGE\sffamily\bfseries\raggedright}   {\leftskip2cm {\Large\textmd{\chaptertitlename~\thechapter}}} {0cm}{\leftskip2cm}[\vspace{4mm} {\color{dgray}\titlerule[.6mm]} \enlargethispage{-\parskip}]   The \enlargethispage is used to make some extra space for the title number, which appears at the bottom of the page only at the first page of the chapter. My attempts with using the framed environment or colorbox have so far not been successful.
105350
I'm writing a paragraph mix with Chinese characters and English characters, I found space between them. The space is especially huge when use \ttfamily. How can I remove those space?  Chinese中文english  Chinese中文{\ttfamily english}中文  \ \ \ remove this ↑   The pdf file looks like this:
37128
In a book, with the book documentclass, I'm typesetting I want to include a figure above the \chapter title. This however has turned out to be hard. With the following code:  \chapter{Uppväxt}  \begin{figure}[ht] \includegraphics[width=\textwidth]{bilder/hus.jpg} \end{figure}  \noindent \lipsum   Produces the following result:   Placing \figure above \chapter results in the image being put on the previous page due to the \clearduble command of \chapter, which is desirable for the rest of the book. Changing the options of \figure to [t] results in the figure being included on the next page. It seems like no other combination of positioning options seems to help either.  Can anyone think up a way of placing the figure above the chapter?
116083
I tried to use a header and footer layout I found here on this website. But I have some problems with changing the code to what I want. I want the pagenumbering to be like page x of y in the footer. It would be nice with this layout (just with page x of y instead of just page x):  \cfoot{\parbox{\textwidth}{\hrulefill\kern-0.6ex\raisebox{-0.5ex}{$\Bigl[$\makebox[2em][c]{\thepage}$\Bigr]$}\kern-0.5ex\hrulefill}}   But the pagenumbering is in the header and there aren't a space between the letters and the numbers as you can see in my minimal work example:  \documentclass[12pt,a4paper]{book}%generelt \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} % clear all headers and footers \renewcommand{\headrulewidth}{0pt} % remove rule between header and text \fancyhead[LE, RO]{\thepage of \pageref{LastPage}} % put page number in left header on even pages,                             % right header on odd pages \fancyhead[RE]{\nouppercase{\leftmark}} % remove uppercase on chapter title \renewcommand{\chaptermark}[1]{\markboth{#1}{}} % remove "Chapter N." prefi \usepackage{lastpage}   Another problem is that I would like to have a chapter numbering in the header. The design is really nice, but I would like to have the chapter number too, just like "CHAnumber| name of the chapter".  Is it possible to make this two changes? And how? Thank you very much for help!
82321
In January, some additional whitespace  below h1, h2 and h3 headings,  more whitespace below the headers than above them.  Could we have the whitespace above the headings be more than the whitespace below them?  I find some posts a bit hard to read, like the current rendering on the left:   &nbsp; &nbsp; &nbsp;
15794
My problem is that there exists an overlap between the symbol to introduce and the section title; it is manifest with two \heartsuits  \documentclass{article} \usepackage{tocloft} \usepackage{lipsum} %\contentslabel{3em}   \renewcommand\tableofcontents{% \section*{\contentsname\@mkboth{}{}}% \thispagestyle{empty}% %\small% \@starttoc{toc}% \thispagestyle{empty}% \clearpage% } \makeatother    \makeatletter \renewcommand{\@dotsep}{2} %%\renewcommand{\cftdot}{\ensuremath{\ast}} \renewcommand{\cftpnumalign}{r} %\renewcommand{\cftsecpresnum}{SOMETHING } \renewcommand{\cftsecfont}{\bfseries} \renewcommand{\cftsecleader}{\bfseries\cftdotfill{\cftsecdotsep}} \renewcommand{\cftsecpagefont}{\bfseries} %\renewcommand{\cftsecpresnum}{SOMETHING } \renewcommand{\cftsecaftersnum}{$\heartsuit$}     \renewcommand{\cftsecaftersnumb}{$\heartsuit$}     %\renewcommand{\cftsecaftersnumb}{\\} %   \newlength{\mylen} % a "scratch" length %   \settowidth{\mylen}{\bfseries\cftsecpresnum\cftsecaftersnum} % extra space %   \addtolength{\cftsecnumwidth}{\mylen} % add the extra space     %\makeatother   \begin{document} \tableofcontents  \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11] \section{1}\lipsum[4-11]  \end{document}   The modifying commands come straight from the manual of tocloft.  My goal is to have {the section number}\heartsuit{the section title} with no space in-between the characters.  I think the solution is to make the section numbers ragged on the right, just like all the page numbers are. The package does not seem to offer a manner to control the box controlling the section number. Is this possible with titletoc? (its readme is very succinct and I do not understand half of what is written)  EDITion:  @Werner: I have a snag with the code. I want to use the same pattern for the subsections and subsubsections as the one of the sections. So I use  \renewcommand{\cftsecaftersnum}{$\bullet$} %\renewcommand{\cftsecnumwidth}{2em}  \renewcommand{\cftsubsecaftersnum}{$\bullet$} %\renewcommand{\cftsubsecnumwidth}{0em}  \renewcommand{\cftsubsubsecaftersnum}{$\bullet$} \renewcommand{\numberline}[1]{\makebox[\@tempdima][r]{\@cftbsnum #1\@cftasnum}\@cftasnumb}    but the beginnings of the subsections and subsubsections is not adequate: (I use roman numbers for my sections and sub(sub)sections) Ideally, the number subsection (and subsubsection) must be aglin with the first letter of the sections it belongs to  so  II$\bullet$Title            II.1$\bullet$subtitle                         II.1.1$\bullet$subtitle   But it is not the case with the above code.
56754
my chapter title is too long and I have the necessity to cut it in two different lines. well which could be the best way to cut it?I tried using \newline but unfortunately this modification affects also title page in every page.
9513
I want my chapter titles to look like as asked in this . I have followed the method suggested by "lockstep", that is, using package titlesec. It works perfectly fine but here is the question: I want this format for main chapters only and for the rest, that is Contents, Declaration, Index, Bibliography etc I want them centered with normal vertical spaces before and after the title. Pasting the code at the start of Chapter 1 solves the problem partially; it leaves the starting ones (contents, declaration) totally unchanged and applies the same format to Index and Bibliography. Please help.
83994
I noticed an unexpected different line spacing of the titlepage what drives me crazy. The left page is the MWE, the right page without the \\ in front of Name.  \documentclass{scrartcl}  \begin{document}  \centering \Huge \textbf{UUUUUUUU UUUUUUUUU UUUUUUUUUUUUU UUUUUUUUUUUUU} \vspace{\baselineskip}\\ \textbf{UUUUUUUU UUUUUUUUU UUUUUUUUUUUUU UUUUUUUUUUUUU} {\rmfamily\Large \vspace{5\baselineskip}\\Name}  \end{document}     Any idea what causes this? Thanks alot!  Cheers, Stephan
22003
I have a problem that I can't seem to solve. Basically, I want my chapter headings to be at the same position relative to top of the page as the rest of the text. I've looked at numerous resources online, but the problem is still not solved... :(  I tried using the titlesec package, but no results:  \usepackage{titlesec} \titleformat{\chapter}[hang] {\normalfont\Large\bfseries}{\thechapter}{1em}{\Large} \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{} \titlespacing*{\chapter} {0pt}{\baselineskip}{0pt} \titlespacing*{\section} {0pt}{\baselineskip}{0pt}   Here is what I get in the output:  Chapter Heading:    Other text (sections):    Also, the headings of TOC LoF and LoT are a little off from normal Chapter heading spacing...  Please help!
61614
Good afternoon  I would like to change gap between two rows (the picture below) in longtable because it doesn't look very nice and I want to save a place. I don't know how to do it.   Thanks for help.   \documentclass[10pt,a6paper]{book}  \usepackage[utf8]{inputenc} \usepackage[main=english,slovak]{babel} \usepackage[cm]{fullpage} \usepackage[a6paper, top=10mm, left=10mm, right=10mm,     bottom=10mm,foot=5mm,marginparsep=0mm,showframe]{geometry} %showframe \usepackage{tipa} \usepackage{tabularx,booktabs} \usepackage{multirow} \usepackage{rotating} \usepackage{graphicx} \usepackage{array} \usepackage{color} \usepackage[dvipsnames]{xcolor} \usepackage{longtable} \usepackage{lscape}  \usepackage{enumitem} \usepackage{tabularx,booktabs} \usepackage{enumitem} \usepackage{mathtools}  \begin{document} \catcode`\-=12 \sloppy  {\small  \begin{longtable}{llp{5cm}}   \toprule   {\sffamily some text}   &amp; \textsl{some text}  &amp;                                             \setlist{nosep,topsep=0sp,label=--}                             \vspace{-\baselineskip}                             \begin{itemize}                               \item[-] some text                               \item[-] some text                               \item[-] some text                             \end{itemize}\\ {\sffamily some text}   &amp; \textsl{some text}  &amp;                                             \setlist{nosep,topsep=0sp,label=--}                             \vspace{-\baselineskip}                             \begin{itemize}                               \item[-] some text                               \item[-] some text                               \item[-] some text                             \end{itemize}\\   \toprule \end{longtable}} \end{document}
5072
this is my first time here, and I have this question:  I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space between the end of float's caption and the next paragraph. This works fine, but when I forced to stay when I tiped (with [h]), this space (between caption and next paragraph) is bigger. Of course, one of the items that will be evaluated, is the spaces (they all must be the same).  So, my question is: How can I solve this?  There is an example of the code I'm using: (TexShop —Mac Os 10.6.8)  \documentclass[letterpaper,12pt,oneside]{book} \usepackage[spanish,es-lcroman]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[font=small,format=hang,parskip=1pt]{caption} \usepackage{ctable} \usepackage{float} \raggedbottom \begin{document} \setlength{\textfloatsep}{10pt}  \setlength{\abovecaptionskip}{10pt} \setlength{\belowcaptionskip}{5pt} ... \end{document}
64712
I have:  \documentclass[a4paper,11pt]{report}   with no special customisation.  In one page, at the end of a section, I have a big figure with two paragraphs of text below it, and these two paragraphs are not enough to fill up the rest of the page.  When I use the \documentclass as above I get some extra white space at the end of the page, which is fine: the vertical spacing from the figure caption and between the two paragraphs is standard and correct.  But if I switch to:  \documentclass[a4paper,11pt,twoside]{report}   I get extra blank space between the figure caption and the 1st paragraph and also between the 1st and 2nd paragraph.  I want to use twoside to set the headings with fancyhdr. How can I get rid of these ugly white spaces?
60995
I am using the book documentclass and have a list of figures. After  I noticed that there is a blank line to separate figures that are in different chapters, but not if they are within the same chapter. Since I changed the numbering of my figures to be {1, 2, 3, etc.} instead of {2.1, 2.2, 3.1, etc.} this looks silly and I'd rather have a blank line between each figure, no matter what.  How do I do that?  Similar: