my problem is best illustrated in the picture below: the text won't center between the paper marge. I've used some commands from related problems on this website but nothing happens when I run it. The text remains as such:  \documentclass[11pt]{article} \usepackage[a4paper]{geometry} \usepackage[none]{hyphenat}  \begin{document}  \begin{center}   { \textbf{\underline{Random text to show that the right side of the text goes beyond the paper marge and don't know how to fix this} }} \end{center}   \end{document}
124172
I have a simple itemized list like the following MWE:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{hyperref} \usepackage{lmodern} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage{lipsum} \begin{document} \begin{itemize} \item \href{http://google.com}{[ID1]: \underline{\lipsum[1]}} \end{itemize} \end{document}   This unfortunately doesn't break the block of text as expected, as shown below:    How can I fix this item so it will line break properly?
121098
I am suprised that in the code below no hyphenation is done. And I can not find something about that on the web. Maybe I used the wrong words for searching.  \documentclass{scrartcl} \usepackage{xltxtra} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german} \usepackage{tabu}  \begin{document} \begin{ttfamily} \begin{tabu} spread \textwidth {X[l]|X[l]|X[l]|X[l]}     A&amp;     B&amp;     Sichtweise, Haltung, Akzeptanz, useability, Anwenderfreundlichkeit&amp;     D\\ \end{tabu} \end{ttfamily} \end{document}
50282
If I want to insert a math formula, usually just a math symbol, in text paragraph, LaTeX put the formula to the next line and put it in the middle of the line?   How can I just insert between text?
4175
I have equations inside an environment which has a larger left-margin than the main text (analogous to an enumerate/itemize environment, implemented with the changepage package's adjustwidth environment). Just as equations in enumerate/itemize behave, the equations are centered with respect to the entire text, rather than just the width of the container environment. I want the latter behavior.  I'm trying to accomplish this by wrapping all display-math in minipages. Namely, I'm modifying the mathdisplay environment in amsmath.sty as follows:  \makeatletter \let\oldmd\mathdisplay \def\mathdisplay#1{%   \newline   \begin{minipage}{\textwidth-\@totalleftmargin}%     \oldmd{#1}% } \let\oldendmd\endmathdisplay \def\endmathdisplay#1{%   \oldendmd{#1}%   \end{minipage} } \makeatother   This is almost working, but there are some issues with spacing which I don't understand how to fix. Here's how the the normal \[ ... \] and numbered \begin{equation} ... \end{equation} look with the above modification:      My main confusion is why the numbered version is behaving so differently from the unnumbered. But all in all I want to fix this so that the spacing above and below is even as it usually is. Any help is appreciated, thanks.  Edit: Here's a compilable example:  \documentclass{amsart}  \usepackage{lipsum} \usepackage{calc} \usepackage{changepage}  \makeatletter \let\oldmd\mathdisplay \def\mathdisplay#1{%   \newline   \begin{minipage}{\textwidth-\@totalleftmargin}%     \oldmd{#1}% } \let\oldendmd\endmathdisplay \def\endmathdisplay#1{%   \oldendmd{#1}%   \end{minipage} } \makeatother  \setlength{\parindent}{0pt}  \begin{document}  \lipsum[1]  \begin{adjustwidth}{20pt}{} \lipsum[2] \[ x \mapsto \hom(-,x) \]  \lipsum[3] \begin{equation}   y \mapsto \hom(y,-) \end{equation} \lipsum[4] \end{adjustwidth}  \lipsum[5]  \end{document}
9699
I have a problem. I have several large equations within the text. And when LaTeX does not manage to put the equation on the same page and moves it to the next one, he spreads the paragraphs of the text in the first page. How could I prevent this? I know about \pagebreak and \newpage, but I do not want to force the \newpage, as the text may move (if I add something later or so on) and the pagebreaks may not be valid. I would like to make LaTeX not to spread the paragraphs over a page automatically. Is it possible?  I tried to make an example:  \documentclass[a4paper,12pt,twoside]{book} \usepackage{amsmath} \begin{document}  LaLaLa\\\  LaLaLa\\\  LaLaLa\\\  LaLaLa\\\  \begin{eqnarray} 123&amp;+&amp;123 \\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ \end{eqnarray}  LaLaLa\\\  LaLaLa\\\  \begin{eqnarray} 123&amp;+&amp;123 \\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ 123&amp;+&amp;123 \nonumber\\\ \end{eqnarray}  \end{document}
80205
The following MWE :  \documentclass[10pt]{article} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}   \usepackage{color} \usepackage{array,float}  \begin{document}     \begin{tabular}{|*{3}{&gt;{\centering}p{1cm}|}}         \hline \color{red}A&amp;B&amp;C\tabularnewline \hline     \end{tabular}      \begin{tabular}{|*{3}{&gt;{\centering}m{1cm}|}}         \hline \color{blue}A&amp;B&amp;C\tabularnewline \hline     \end{tabular}      Some blablah... \end{document}   gives me :    The blue color continues after the cell, and even after the tabular !  I know that I can basically solve the problem with braces around  \color{blue}A   but I want to understand why, if I use "m" parameter instead of "p" in tabular, \color has this strange behaviour... (Otherwise, why, in the first tabular, cells are higher and A in the bottom of his cell ?)
19548
I have a simple problem but I didn't manage to find any answer for it. In my title page, I just used  \title{Name of the title}   then  \hrule height 0,1cm \leavevmode \\[0,5cm]     {\Huge{\textbf{\@title}}}\\[0,5cm] \hrule height 0,1cm \leavevmode \\[0,5cm]   to print the title of my document. But it takes more than 3 lines on the PDF file, and I have a different spacing between the 1st and 2nd line compared to the 2nd and 3rd, which is a bit frustrating.   Anyone got an idea of why ?
76061
I'm working with booktabs package. My goal is to get the same space between each word.   For example: LaTeX TikZ, tabular myframed titleps. \ Not like this one: LaTeX~~~~~TikZ,~~~~~tabular~~myframed~~~titleps .  Code sample:  \documentclass[twoside]{article} \usepackage[utf8]{inputenc} \usepackage[MeX]{polski}  \usepackage{array}% http://ctan.org/pkg/array \usepackage{booktabs}  \usepackage{tabularx} \usepackage{longtable}  \usepackage{xcolor}  \usepackage[left=4.50cm, right=4.50cm, top=3.50cm, bottom=3.50cm]{geometry} \frenchspacing  \makeatletter     \renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad}     \renewcommand\numberline[1]{#1.\hskip0.7em}     \renewcommand\quote{\list{}{\leftmargin=10pt\rightmargin=0pt}\item[]}  {\endlist}         \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}     \newcommand{\rr}{\raggedright}      \newcommand{\tn}{\tabularnewline} \makeatother  \begin{document}   \begin{table}[!ht]  \ra{2}  \setlength\tabcolsep{3pt}  \ignorespaces  {\setlength{\extrarowheight}{5pt}%  \begin{tabular}{m{\dimexpr.25\textwidth-2\tabcolsep-0.8pt}                 m{\dimexpr.35\textwidth-2\tabcolsep-0.4pt}                 m{\dimexpr.35\textwidth-2\tabcolsep-0.4pt}}\toprule    \textbf{Item 1} &amp;\textbf{Item2}&amp; \textbf{Item3 someLongerWord}\\ \midrule  \textbf{SubItem1 some text someLongerWord}\rr  &amp; Lorem Ipsum jest tekstem  stosowanym jako przykładowy wypełniacz w przemyśle poligraficznym. Został po raz    pierwszy użyty w XV w. przez nieznanego drukarza do wypełnienia tekstem próbnej książki. &amp; Lorem Ipsum jest tekstem stosowanym jako przykładowy wypełniacz w przemyśle poligraficznym. Został po raz pierwszy użyty w XV w. przez nieznanego drukarza do wypełnienia tekstem próbnej książki. Pięć wieków później zaczął być używany przemyśle elektronicznym, pozostając praktycznie niezmienionym.          \\  \addlinespace[4pt] \midrule   \textbf{SubItem2 some text} &amp; Przeciwstawne wyobrażenia i~pojęcia występują razem i~mogą wzajemnie siebie zastępować. &amp; Pogardzany nauczyciel wychowania fizycznego reprezentuje w~pamięci uwielbianego nauczyciela sztuki.\\   \addlinespace[4pt] \midrule    \textbf{Reprezentacja przez analogię bądź aluzję}\rr&amp; Części obiektu bądź pamięci reprezentują całość. Podobne wyobrażenia są~wzajemnie swobodnie wymienianie. &amp; Wyobrażenie huśtawki reprezentuje czas spędzony w dzieciństwie na zabawie z~ojcem.  \\\addlinespace[14pt] \midrule   \textbf{Płynność form}\rr&amp; Wyobrażenia wrażeń zmysłowych odpowiadają słowom czy pojęciom. &amp; Uczucie dreszczy z zimna reprezentuje gniew mężczyzny, który umówił się na randkę w ciemno i~czeka w padającym śniegu na~kobietę, która nie przychodzi.  \\ \addlinespace[4pt]\midrule   \textbf{No Time At All someLongerWord}\rr&amp; Brak logicznego czy czasowego następstwa. Przeszłość, teraźniejszość a~nawet przyszłość stanowią jedną całość. &amp; Obecny mąż pojawia się we~śnie odnoszącym się do~wcześniejszego etapu życia żony.  \\  \bottomrule  \addlinespace[10pt] %  \end{tabular}}  \small\caption{\small Charakterystyczne cechy poznawcze procesu pierwotnego}  \end{table} \end{document}
71738
Hi I am wondering what code is used to get text above the $\rightarrow$   have tried $ \xrightarrow{P}$ but not running on my LaTeX as I do not know which package to install or how to install it.   currently using \usepackage{mathtools} but it wants to load from a random directory and then LaTeX stops working.
7162
Is there a word-wrap or any other attribute that stops text from wrapping?  I have a height, and overflow:hidden, and the text still breaks.  Needs to work in all browsers, before CSS3.
39576
How do I temporarily increase line spacing? I have some text on my title page:  \begin{center} { \Large \textbf{The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines Or So} } \end{center}   I'm finding that the line spacing here is too small, but it's fine elsewhere in the document. How can I make the spacing bigger for just this piece of text?
103577
In my LaTeX document words are cut automatically whenever a new line is due. It is not able to wrap/justify in normal sentences. Here is an example:    This is happening throughout the document. Is there any way to fix it? I googled a lot for hours and concluded that it is normal by default for all users. I am using the following packages:  \usepackage{amsmath} \usepackage{amsfonts} \usepackage{booktabs} \usepackage{siunitx} \usepackage{multirow} \usepackage{graphicx} \usepackage{ragged2e} \usepackage{hyperref}   Overleaf example:   Is there a way to have new words on a new line only?
64017
I'm trying out the calligra package for a wedding order of service. Just trying to make the titles look a little nicer. When I use the \centering command, however, it doesn't seem to work:  \centering Test1\\ \calligra{Test}   Produces calligraphic text that doesn't seem to be centered. Is this fixable?    Thanks all,  James
74072
In a document, I would like to vertically align cell text. The only problem is that my array is contained in a begin {circuitikz} so the few tests I was able to do (with begin {center} in particular) don't work. Can you help me ? \documentclass[border=2mm]{standalone}  usepackage{multirow} \usepackage[utf8]{inputenc} \usepackage[siunitx, european, straightvoltages, RPvoltages]{circuitikz} \begin {document}  \begin{circuitikz} \node at (0,0)  {\begin{tabular}{|c|c|c|c|} \hline Type &amp; Composant &amp; Code &amp; Image résultant\\ \hline \multirow{7}{*}{Alimentation} &amp; pile &amp; to[battery1] &amp; \begin{circuitikz} \draw (0,0) to[battery1] (2,0);\end{circuitikz} \\ \cline{2-4}  &amp; source de courant &amp; to[isource] &amp; \begin{circuitikz} \draw (0,0) to[isource] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source de tension &amp; to[vsource] &amp; \begin{circuitikz} \draw (0,0) to[vsource] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source sinusoidale &amp; to[sV] ou to[vsourcesin] &amp; \begin{circuitikz} \draw (0,0) to[sV] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source sinusoidale &amp; to[sV] ou to[vsourcesin] &amp; \begin{circuitikz} \draw (0,0) to[sV] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source créneau &amp; to[sqV] ou to[vsourcesquare] &amp; \begin{circuitikz} \draw (0,0) to[sqV] (2,0);\end{circuitikz} \\  \cline{2-4}  &amp; source triangulaire &amp; to[tV] ou to[vsourcetri] &amp; \begin{circuitikz} \draw (0,0) to[tV] (2,0);\end{circuitikz} \\  \hline \end{tabular} }; \end{document}
25578
The following produces error! The error is solved if no space exists between text= and {5in,8in}. This is really weird! Why is this happening with LaTeX?  \documentclass[a4paper,10pt,onecolumn,oneside, portrait]{article}  \usepackage[text= {5in,8in},centering]{geometry}  \begin{document}      \section{What Endogenous uncertainty is:}  yes  \subsection{Type as it is : Stochastic and determ! } on  \subsubsection{Well there is more than it} Yes    \end{document}
75194
I'm somewhat of a LaTeX noob, and this is driving me completely nuts.  When I type  \documentclass{article} \usepackage{enumitem}  \begin{document}     Some text     \begin{itemize}[noitemsep]         \item Item 1         \item Item 2         \item Item 3     \end{itemize} \end{document}   I don't want the space which appears in between the text "Some text" and the itemization to be there:    When I search around on Google all I see is tons of long, complicated advice on this site, StackOverflow, forums, etc. on how to not fix the problem ("parskip is evil", etc.), or tons of vague/confusing answers on what package to look at, with no actual example for me to learn from.  So while this question is already asked many times, I have never found a single concrete answer to this question.    The question couldn't be simpler: How do I "properly" get rid of this extra space?
4521
When I compile my document in LaTeX, some formulas in the document in math mode, between $ $, go into the right margin area beyond all the text.  Is there a way to fix this aesthetic problem?