How can I eliminate whitespace before a landscape page? \afterpage does not work for me. Please find below an example. My code is like that : Text   \afterpage{ \begin{landscape}   Text1 \end{landscape}  a } \Section {head text2 } Another text
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
120953
In normal text, how do I center part of a sentence (it happens to be the end of a sentence) but leave the text in the rest of the paragraph unaltered? Also, no vertical space should be added before or after the centered text.  In a word processor, I would add a new line just before the text to be centered and then "center" the text on the next line.  I tried doing things similar to this with various LaTeX commands, but nothing worked.  This is what I want it to look like:  This is a really long sentence as an example.  The second half of this                                sentence should be centered.
40693
How do I achieve this effect where that small part in "N" is taken out? I can use Sketch, Illustrator, Photoshop.  I can apply divide effect fine...    BUT when i start deleting the white block, this is what i see...      I wonder if that's b/c I added stroke to the text....?  How to fix it???
63520
I was wondering if there is any way to lessen the spaces between figures and text. In my paper I have a lot of figures (graphics) and it is inconvenient for me to have default (large) spaces between text and graphics. Is there any command I could use to change the default settings?
113193
I am writing a book of puzzles in LaTeX, using the book class. The \thispagestyle{empty} command has successfully removed page numbers on all the \chapter pages, but so far no combination of \newpage and \thispagestyle{empty} before and/or after a \part command has been able to remove the page number at the center of the bottom of the \part page.  \newpage \tableofcontents \thispagestyle{empty} \newpage \thispagestyle{empty} \newpage \thispagestyle{empty} \part{} \thispagestyle{empty} \chapter{} \thispagestyle{empty}   The code above produces a table of contents page, then a blank page, then a \part page, then a blank page, then a \chapter page. There are no page numbers except on the \part page, and it appears to be incredibly reluctant to disappear, as you can see from the number of empty page commands surrounding the \part command!  Any help is appreciated.  Thank you.
119260
I LaTeX my homework, and for one problem, I want only white space in the proof environment since I'll be hand-drawing a picture. when I type in    \begin{proof} \vspace{1in} \end{proof}   the outcome is    i.e., the word "proof" goes to the bottom. Is there any way to move the word back to the top?
28603
I'd like to, first thing before writing anything on a page, add some vertical space.  Minimal (non)working example:  \documentclass{article} \begin{document}  \vspace{250px} I want to be further down on the page :(  \vspace{250px} Haha! Sucker :D \end{document}     How can I get the first \vspace to work, just like the second one?
49535
When using the command \Rightarrow is there any way to put text above it? I have tried \overbrace but is there a way to do it without this?
96580
I'm having a bit of trouble with the mdframed environment. I'm using it to enclose Examples in my text in a light gray background box (and control spacing around the text). When the frame splits over a page, it leaves less padding between the top of the box on the next page and the first line of text on the new page; I'd like to increase that amount of space. See the screenshot below.  Is there any way to do this? If an alternative setup is needed, I'm open to such solutions.  My example environment is declared thusly:  \usepackage{mdframed} \newenvironment{example}[1] {\begin{mdframed}[backgroundcolor=vlightgray,linecolor=vlightgray,innerleftmargin=1em,innerrightmargin=1em,innertopmargin=1em,innerbottommargin=1em,skipabove=1em]     \textbf{Example \arabic{chapter}.\arabic{exampleNum}} #1      \vspace{1em}     \noindent \ignorespaces}% {\end{mdframed} \vspace{0.25em}}     Here is a MWE; the spacing problem is demonstrated at the top of the second page.  \documentclass[12pt,openright,twoside]{book}  \usepackage{lipsum}  \usepackage{xcolor} \definecolor{vlightgray}{gray}{0.925}  \newcounter{exampleNum} \setcounter{exampleNum}{1}  \usepackage{mdframed} \newenvironment{example}[1] {\begin{mdframed}[backgroundcolor=vlightgray,linecolor=vlightgray,innerleftmargin=1em,innerrightmargin=1em,innertopmargin=1em,innerbottommargin=1em,skipabove=1em]         \textbf{Example \arabic{chapter}-\arabic{exampleNum}} \normalsize #1          \vspace{1em}         \stepcounter{exampleNum}         \noindent \ignorespaces}%     {\end{mdframed} \vspace{0.25em}}  \begin{document}     \lipsum[1-3]      \begin{example}{Consider this the prompt for the problem. Find $a$.}         \lipsum[1-2]     \end{example} \end{document}
82299
Is there any way to automatically remove any indentation of text right after \includegraphics or a \begin{center} environment is used ? Consider the following MWE pertaining to the use of \begin{center}:  \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \begin{document} Some text... \includegraphics{some_graphic.png} Moar text...  \begin{center} Some centered text... \par\end{center}  Moar text...  \end{document}   I don't want any of the "moar text" to be automatically indented. Using each time a \noindent is not an option.  ( answered question of mine might be of relevance, since there it is explained how to remove indentation of those lines start star with a specific object - in contrast here indentation has to be removed from those lines which are after some specific objects.)  Thanks a lot for any help!
108054
When using a documentclass of book, it seems there is a \newpage inserted after the \tableofcontents and \listoffigures. How can I suppress this? In articles, the following works. How can I get this layout with a book?  \twocolumn \tableofcontents \listoffigures \listoftables \printglossaries \onecolumn
120693
I have a document using subequations and the parskip package. If the paragraph before a subequations environment is completely filled up to the last line, then additional vertical whitespace is introduced between this paragraph and the following subequations. I guess this is a bug, but I'm not sure, nor do I have enough TeX knowledge to try and fix it. How can I fix this whitespace issue?  Below is a MWE which shows the behaviour, at least on LaTeX2e &lt;2003/12/01> with pdfeTeX 3.141592-1.21a-2.2 (unfortunately on this machine only an old tetex distribution is installed).  \documentclass[a4paper,11pt]{article}  \usepackage{parskip} \usepackage{amsmath}  \begin{document}  The subequations environment provides a convenient way to number a foos \begin{subequations}\label{foo}   \begin{align}     x^2 + y^2 &amp;= z^2\\     a &amp;= b + c   \end{align} \end{subequations}  \end{document}
50291
When using pdflscape and fancyhdr, the headers also get rotated. Whilst it's a normal behaviour in most cases (especially when the document has to be printed), I am dealing with a report which will never be printed, so this default behaviour is more annoying.  Here is a MWE of a document dealing with portrait and landscape pages:  \documentclass[a4paper, 10pt]{article} \usepackage{graphicx} \usepackage{pdflscape} \usepackage{fancyhdr} \usepackage{lipsum} \usepackage[left=2cm, right=2cm, bottom=2cm, top=2cm]{geometry} \setlength{\headheight}{32pt}  \lhead{\includegraphics[scale=.5]{tt}\\Foo} \rhead{\includegraphics[scale=.5]{tt}\\\thepage} \cfoot{}  \fancypagestyle{customlandscape}{% \fancyhf{} \newgeometry{left=1cm, right=1cm, bottom=1cm, top=1cm} % ?? }  \pagestyle{fancy} \begin{document}  \lipsum[1-10] \newpage  \pagestyle{customlandscape} \begin{landscape}     Here is the landscaped content, the header of this page should look like the rest... \end{landscape}   \newpage \pagestyle{plain} \lipsum[1-10] \end{document}   Note : you will have to provide 2 images called tt for it to compile, sorry for that. So, if we look a bit closer, the header of the portrait pages look like this :    How can I manage for my landscape pages to look like this ? :   Currently, by compiling my MWE, you'll notice that the header is on the right on the landscape page.   PS : There is another problem in this MWE, after switching back to portrait, it seems I'm not able to restore the default pagestyle (with the images in the header).
89710
How can I control the vertical space before an environment, e.g., tabular or minipage?   Here is an example that reproduces my problem:   \documentclass{article} \begin{document}     \noindent TEXT-A\vspace{5pt}\\   TEXT-B\\TEXT-C     \\[2em]     \noindent TEXT-D\vspace{5pt}\\   \begin{tabular}{@{}l}TEXT-E\\TEXT-F \end{tabular} \end{document}   The spacing between TEXT-A and TEXT-B is different from the spacing between TEXT-D and TEXT-E:    I have learned so far that the space between TEXT-D and TEXT-E is normal if I delete \\TEXT-F:    Any help would be appreciated!
121366
I want to remove every two or more spaces between specific tags and leave just a space instead:  For example:  &lt;p class="text_obisnuit"&gt;  The context of articles,   stories, and conversations helps you     figure out and understand the meaning   of English words in the text that are new to you.   &lt;/p&gt;  My desire output:  &lt;p class="text_obisnuit"&gt;The context of articles, stories, and conversations helps you figure out and understand the meaning of English words in the text that are new to you.&lt;/p&gt;  I tried something but it did not work  (?&lt;=&lt;p class="text_obisnuit"&gt;)\s*|\s*(?=&lt;/p&gt;)
78695
Is there a command which does the same like \clearpage (typesetting all floats which have not been typeset yet) but then does not insert a pagebreak but continues with the following text/graphics on the same page?
113977
I need to remove locally spaces arround (especially before) punctuation signs. This spaces are added by french polyglossia.  \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{french}  \newcommand{\nospace}[1]{\texttt{#1}}  \begin{document} \nospace{a:b} \end{document}     Thanks for help.