I am writing a thesis in LaTeX with predefined styles which works fine. However, sometimes, when I finish a sub-section and start writing the new sub-section, LaTeX automatically stretches the text and adds more space (between paragraphs) in order to put the new title on the next page. Once I use \clearpage at the end of the current sub-section, it removes the spaces in between and makes it fine, but again starts the new part in the next page while there is still some space left at the last page before the new sub-section.
11450
I'm writing my bachelor-thesis and have a couple of small sub-sub-sections explaining conversions, like in the following  \subsubsection*{Assignment}  This document only explains non-compound assignments. The other kind, i.e \texttt{a += b}, is supported by the language too, but is not yet implemented.   \begin{itemize} \item If the first is an \texttt{auto} variable, no conversion takes place when assigning       the right hand side to the variable designated by the left hand side.  \item Otherwise, an assignment conversion takes place converting the given value to the type       of the designated variable.  \item Assignment requires an lvalue as the left hand side, and yields an lvalue result.  \end{itemize}  \subsubsection*{Multiplication} % ...   But latex renders it quite ugly with much space in between the items. I think it does so to fit the whole page. How can I tell it not to do so? Is what I'm doing right at all?
92241
My problem is that I would like to write something like in LaTeX:   But I can't seem to do it wihtout reading like:   Which is pretty anoying to do all the time, in the middle of writting. Is there a code to do it for a whole paragraph without written \hspace*{1,5 cm} in middle of a sentence
7598
I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*).   At some point, the text ends in the beginning of the first column of a new page. I would like to include my table on this page since it has a lot of free space below the text, but when I insert the table* right after the text, it goes to the top of the next page instead:    Do you know a way of obtaining the desired behavior?  Minimal working example :  \documentclass{article} \usepackage{lipsum}  \begin{document} \twocolumn  \paragraph{} \lipsum[1]  \begin{table*} \centering \begin{tabular}{|c|c|c|c|} \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline \end{tabular} \end{table*}%   \end{document}
2873
I am a newbie in Latex. I know there are many manuals where I can learn how to use Latex but I am facing a problem I can't manage to solve simply. The structure of my document is this:   title page abstract table of contents   The problem is that I don't want that the abstract page to have the page number at the bottom. To do this in the title page I simply used the command \pagestyle{empty} . Now if I try to do the same with the abstract page it doesn't work. Here it is the code of my document:  \begin{document}  \pagestyle{empty}  \begin{figure}[t] \centering \includegraphics[scale=.40]{Sapienza.png} \vspace{3em} \end{figure}  \begin{center} %%%% here there are many sentences \end{center}  \clearpage{\pagestyle{empty}\cleardoublepage}  \pagestyle{empty} %%in order to delete the number at the bottom of the page  \chapter*{Abstract} %%sentences  \pagestyle{plain}%%to insert again the number of the page  \tableofcontents   The problem is that the abstract page keeps showing the page number and I can't manage to delete it. Can you please help me?
86330
I've noticed a significant issue with the \input command, it seems.  For some reason, I can't seem to prevent it from adding a space after it reads its input.  Even if there is no newlines or spaces at the end of the file, LaTeX seems to be just driven to add a space.  Minimal working example is this:  \documentclass{article} \begin{document} A\input{TestInput.out}B \end{document}   Where TestInput.out contains only the text "SomeText" and no special characters  This provides the output:  ASomeText B   Does anybody know how to prevent this?  For a typesetting program, it's kind of weird to just arbitrarily add spaces IMO.  I'd like to think there's an easy fix, but I'll take any portable, robust fix if it works.
42768
I just started to learn LaTeX after seeing some amazing examples of scientific articles produced using it; I was also told that, unlike some other other text programs, LaTeX automatically produces articles respecting some publication standards. Well, after playing around with it for a while, I have to say my PDFs are anything but pretty, particularly when compared to those examples I mentioned before! My margins are really too large, my font size seem to be too small, my default paper is not A4 (and even when I set it manually to A4, the top margin then take an even more ridiculous amount of space). After reading a bit, I obviously found out how to control these elements, but the whole point for me to start learning LaTeX was not to fool around with such things. So here is (are) my question(s): am I doing something wrong? Is all this a matter of configuration? Or am I being delusional and my output PDFs actually ARE all in the expected standards? (I am using MiKTeX, and I tried three editors so far: TeXworks, LyX and WinEdt8)  Here are some examples I found on the internet of what I am talking about. The first seems to me as a simple article without any extra layout commands. Notice the size of the margins, fonts, etc. This is how my PDFs look like.   Now compare that previous PDF with this one here:  Unfortunately this one is written in two column format but I couldn't find another example online with just one column. Note how everything is balanced, how the margins are small, how the font is smaller as well, etc.  As a final note, I just would like to say that I really don't mind learning LaTex and that I am not expecting to produce amazing documents from day one; I just think that, in case my problems here are really sound, then I might have came to LaTeX with the wrong set of mind.  Thanks a lot!
32484
I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command \titlespacing{\section}...  This is my code. Can anybody help?  \documentclass[10pt]{book} \usepackage[utf8]{inputenc} \usepackage{fullpage} \usepackage[compact]{titlesec} \usepackage{setspace} \usepackage{sectsty} \chapterfont{\huge} \sectionfont{\Huge} \begin{document} \chapter*{Kapitel 1} \section*{Einleitung} \begin{large} \subsection*{1.1 Motivation}
49844
I use \documentclass{book}.   If I use \flushbottom, I get messages of the sort Underfull \vbox (badness 10000) has occurred while \output is active []. See . These messages disappear when I use \raggedbottom but then of course the height of page content varies form page to page.   So there seems to be no optimal solution but a trade off between to "evils" ... What is the point of view of LaTeX pros on this matter? Which option should be chosen in this situation?
86874
I wrote my diploma in LaTeX using Lyx, but now I have big problem to fit the output to universities' standards.  I need to remove Part/Section... title from header, I found that using:   \pagestyle{empty}   does the job, but it also removes page numbers, and I spent more than an hour trying to fit them together, especially that in some pages I need no page numbers, while in others has to start from some number, so I'm using:  \setcounter{page}{3}   which also conflicts with the first command.  Any help will be highly appreciated, because I need to print it today, thank you in advance.
25166
Consider this example:  \documentclass[a4paper]{article} \usepackage{listings} \lstnewenvironment{shell}{}{} %\usepackage{verbatim} %\let\shell\verbatim %\let\endshell\endverbatim \begin{document}  \subsubsection{Test1}  \begin{shell} test \end{shell} Some text  \subsubsection{Test2}  More text, Test2 has no spacing above  \subsubsection{Test3}  Looks ok \end{document}   When I compile this I get    where did the space above section Test2 go? If I don't use listings, say the commented stuff, things are ok.  Any ideas?  Versions listed below.   article.cls    2007/10/19 v1.4h Standard LaTeX document class   size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option) listings.sty    2013/08/26 1.5b (Carsten Heinz)   keyval.sty    1999/03/16 v1.13 key=value parser (DPC)  lstmisc.sty    2013/08/26 1.5b (Carsten Heinz) listings.cfg    2013/08/26 1.5b listings configuration
122544
I want to add a landscape page between 2 pages, But the problem is that latex make a space before landscape, how to remove the section (which circled on red ) to the page 1. the code is like that Text   \afterpage{ \begin{landscape}  a  \end{landscape} }  \Section  Another text
95966
When compiling my latex file, the space between the ending of theorem body and the word proof appears to be a bit much. I know how to individual manage this using \vspace, but I want to change the settings in the preamble so that even propositions, lemmas and corollaries have the same vertical distance between the starting of the proof. I have included my latex file . Any help will be much appreciated.   \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[left=3.50cm, right=3.0cm, top=3.0cm, bottom=3.0cm]{geometry} \usepackage{enumitem} \usepackage{amsthm} \usepackage{amsmath} \linespread{1.6} \setlength{\parskip}{5mm} \setlength{\parindent}{0mm} \setlength{\skip\footins}{1.6cm} \setlength{\footnotesep}{0.5cm} \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{proposition}[thm]{Proposition} \newtheorem{cor}[thm]{Corollary} \theoremstyle{definition} \newtheorem{defn}[thm]{Definition} \newtheorem{exmp}[thm]{Example} \newtheorem{remark}[thm]{Remark} \newcommand{\prn}{\mathrel{\mathrm{prn}}} \begin{document} \begin{thm} Let $G$ be a group with subgroups $H$ and $K$. Then $[H,K] \unlhd \langle H, K\rangle$ \end{thm} \begin{proof}  Every element in $[H,K]$ belongs to $\langle H, K \rangle$ because of the way in which the elements of $\langle H, K \rangle$ are defined. \end{proof} \end{document}
24643
My LaTeX document is acting strangely. Here is a simplified version of it:  \documentclass{article}  \begin{document}  \tableofcontents \newpage  \addcontentsline{toc}{part}{A Part of My Document} \include{includedfile}  \end{document}   And in includedfile.tex:  \section{My Section Title} Quack.   Clearly, in the table of contents, the heading for the part should precede the one for the section, but it doesn't! What's wrong?
50000
Do you know a TeX editor where one can increase the line spacing/change the line spacing in preferences?  LibreOffice Writer could do the trick provided it did not prepend 0xfeff to files encoded in UTF-8, which prevents LaTeX engines from working.  I'm happy with VIm. It's just that I like writing prose in a double-spaced environment.
81779
I'm using minipages to keep related questions together on a test that I'm writing. When I make a 2-sided document some of my spacing gets messed up before the section break. It works fine if I leave out the twoside option. What's going on here?  \documentclass[12pt,twoside]{article}   \begin{document}  \section{test} asdf  \section{More test}  \begin{minipage}{\textwidth} text \vspace{7in} \end{minipage}  \end{document}
8024
Forgive the stupid simplicity of this question, and please feel free to refer me to an older answer. I'm not quite familiar enough with LaTeX terminology to have found it.  All I want to do is set a different default format for my section titles. Instead of just being bolded and slightly larger than the main text, I'd like them to be of normal weight, the same size as the main text, and all caps.   I'm using the article class.
44989
If a document has very long footnotes close to each other in the main text, LaTeX start to compensate for this by breaking the page (see the first picture below).  I am grateful that TeX makes an effort to put footnotes close to the corresponding mark, but no thank you, TeX, this is too much. No matter what, it should not break the page, nor make the paragraph skips longer (which is almost as ugly) or use any of its other usual, dirty tricks; I prefer having the footnote five pages after the mark if that is what it takes. Can someone find a way to make TeX stop breaking the page like this?  I tried experimenting with both bigfoot and interfootnotelinepenalty=0, which changed the input, but did not remove the problem. Furthermore, bigfoot caused the nightmare shown on the second picture below. Notice that the footnotes run out of the page itself.  Note that memoir is not the problem either; change to article and load geometry, and exactly the same happens. Also, the A5 format is not the issue either; it just makes the problem even worse than when using A4.  A MWE:  \documentclass[a5paper]{memoir}  \usepackage{lipsum} %\usepackage{bigfoot} %\interfootnotelinepenalty=0  \begin{document}     \lipsum[1]\footnote{\lipsum[1-10]}     \lipsum[1]\footnote{\lipsum[1-15]}     \lipsum[1]\footnote{\lipsum[1-10]}     This needs a footnote\footnote{\lipsum[1-10]}, and it is very necessary in order not to cause confusion. \end{document}   The output:    The output with bigfoot: