I'm using LuaTex. If i have a figure and a longtabu on one page, the text after it just doesn't break.  MWE  \documentclass{scrreprt}  \usepackage{ltablex} \usepackage{tabu} \usepackage{lipsum}  \begin{document}     \begin{figure}         \vspace{10cm}     \end{figure}      \begin{longtabu} {XX}         \textbf{Test} &amp; \textbf{Test} \\      \end{longtabu}      \lipsum[1-5] \end{document}   Result    How to make the text break correct?
59302
I have been searching for a while now without any luck, so I hope you can help me. The problem is that when I insert a figure/longtabu on my page, the text below is running out of the page, like this image shows:    Do you know what the problem is here?  I have uploaded some sample code here:
63759
I want to do something like the following in TeX:  \begin{nobreak}    Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page a pagebreak will happen before it and the whole chunk will start on the next page.    \end{nobreak}   Is this possible?
105541
I have an equation that is too long to fit on one line:  x = a + b + c + d + e + f   as an example of what it looks like. What is the correct way to handle this? Do i break it up over multiple lines? Do I decrease the font? I am using LyX as my editor.
2775
How can I word-wrap a text element on an ArcMap layout, when it contains a lot of text?   go into Layout mode choose > Insert > Text paste in a long text block eg    The text block now stretches across the screen, and there's no apparent way to change the width of the text block. Is there a way to set the text block to the desired width, and have ArcMap automatically enter line breaks?  (The way that, um, every other piece of software which handles text does...)  The workaround is to enter line breaks manually, which is great until you decide to change the width, font size, etc.
74810
I have an equation in my document which is unbreakable and does not fit on one line using the twocolumn global option. Am I forced to shrink the text size here? And how do I go about doing it? \resizebox does not function in math mode.    \documentclass[twocolumn]{ltxdoc} \usepackage{amsmath} \begin{document} \begin{equation} \sum_{q_\mathrm{total}=0}^{q_A+N_A+q_B+N_B-2}\left(\sum_{q_A=0}^{q_\mathrm{total}}\left(\binom{q_A+N_A-1}{q_A}\binom{q_B+N_B-1}{q_B}\right)\right)x^{q_\mathrm{total}} \end{equation} \end{document}
39960
I use \listoffigures and \listoftables. Both commands create line breaks for items from different chapters. How can you stop that?  Screenshot:
20313
In LyX I enter a figure/graphic at the end of a paragraph using Insert > Float > Figure.  I assume this is the command that I want since I want to include a graphic with a description (please let me know if there's a better command for this).  However, when it shows up in the PDF, (i) the figure is inside the paragraph and (ii) the spacing between the bottom of the figure and the remainder of the paragraph is abnormally large. I've tried manually editing the vertical space, but LyX either puts no space or too much space for this particular figure (I've never had this issue before).  I have a MWE below. In this case the spacing issue no longer appears but the figure appears above the paragraph instead of below. How can I put the figure below the paragraph (or precisely where I want it to appear?  (I) Source Code for Paragraph:   \noindent \begin{center}  \begin{figure}  \includegraphics[scale=0.6]{\string"Thesis/blank billard 7\string".jpg}\caption{A Billiard table $B_{\alpha}$ with a barrier of length $\alpha$}  \end{figure}   \par\end{center}   (II) Source Code for Entire Source:   \documentclass[oneside,english]{amsart}  \usepackage[T1]{fontenc}  \usepackage[latin9]{inputenc}  \usepackage{amsthm}  \usepackage{graphicx}  \usepackage{setspace}   \makeatletter  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.  \numberwithin{equation}{section}  \numberwithin{figure}{section}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.  \title[Short version]{Long version}  \usepackage{mathtools}   \makeatother   \usepackage{babel}  \begin{document}   \subsection{Veech's Examples and a Billiard Interpretation of these Examples}   \begin{doublespace}  \noindent In {[}8{]}, Veech constructs examples of minimal and not uniquely ergodic dynamical systems as follows (see {[}7{]})....  \end{doublespace}   \noindent \begin{center}  \begin{figure}  \includegraphics[scale=0.6]{\string"Thesis/blank billard 7\string".jpg}\caption{A Billiard table $B_{\alpha}$ with a barrier of length $\alpha$}  \end{figure}   \par\end{center}  \end{document}   UPDATE Here is the figure.  [![enter image description here][2]][2]
65264
How can I format a verbatim paragraph? I.e. break, fill and join input lines to produce globally balanced output with the lengths of each line approaching the target \textwidth as closely as possible.   Using the listings package I can break lines, but I cannot join short lines.. That is, the following   \documentclass{article} \usepackage{listings}  \lstnewenvironment{exampleA}{\lstset{%    language=,   basicstyle=\ttfamily,    breaklines=true,   prebreak=+,   postbreak=-&gt;,   columns=fullflexible,   breakindent=5pt} }{}  \begin{document} \begin{exampleA} Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line  Short Line  Short Line  Short Line  \end{exampleA} \end{document}   produces    What I would like to achieve is similar to what LaTeX does by default with paragraphs.. That is, e.g.  \documentclass{article} \newenvironment{exampleB}{\tt}{} \begin{document} \begin{exampleB} Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line Long line  Short Line  Short Line  Short Line  \end{exampleB} \end{document}   will produce:   The problem with using the latter approach is that I cannot use special symbols like # or % in the verbatim text.. So I need to use a verbatim environment like lstlisting or fancyvrb's Verbatim environment. (As mentioned: in the lstlisting environment, automatic line breaking is possible, however for the Verbatim environment this feature seems also to be missing)    EDIT: (This a comment to Frank's answer below)   Now there seems to be a problem with lines becoming too short.. The following input  \noindent\hrulefill  \begin{myverbatim}   xxxxxxx xxxx xxxxx: 1234567890123456789012345,   123, 1234567890, \end{myverbatim} \noindent\hrulefill\   now produces    (I would now like to have the word "123" at the end of the first line, as there are certainly plenty of space for it there :))  Update   The above problem has now been solved, see comments in Frank's answer below..
85032
With ~ we can enforce that no line break occures between two words.  But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation.  In my document the line breaks between (re- and )creation, which looks a bit ugly.  How can I achieve this?
36722
I have a long string (a DNA sequence). It does not contain any whitespace character.  For example:  ACTGATCGAGCTGAAGCGCAGTGCGATGCTTCGATGATGCTGACGATGCTACGATGCGAGCATCTACGATCAGTCGATGTAGCTAGTAGCATGTAGTGA   What would be the CSS selector to force this text to be wrapped in a html:textarea or in a xul:textbox?
33003
I want to typeset a bilingual text in parallel on facing pages using LuaLaTeX. The existing solutions to automate this task have proven unsatisfactory as they don't allow for footnotes (parallel), don't allow for different font sizes of the two parallel texts (), or generally provide a poor result of aligned text chunks (eledpar).  As the text is not too long, I really came to consider breaking the pages myself. For this to do, I have to solve the following problem(s):  Consider two facing pages with ending paragraphs of different length. The following paragraphs should then begin at the same vertical position such that the beginnings of these following paragraphs face each other. For this to accomplish on has   to determine the position of the end of the longer paragraph on its page to have the means to let the next parallel paragraphs both begin at the identified position.   Is this something which is doable? Are there mechanisms provided by (Lua)LaTeX to determine positions on a page and to begin typesetting at a specific position on a page?  EDIT: The following example illustrates the task. Here the latin paragraph starting with "O tempora, o mores" (third chunk of text in the code) should begin at the facing position of the beginning of the paragraph "Shame on the age..." (fifth chunk).  \documentclass[a6paper]{scrbook} \usepackage{fontspec} \usepackage[latin,english]{babel} \begin{document} \mbox{}\pagebreak  \noindent\selectlanguage{latin}{\large quo usque tandem abutere, Catilina, patientia nostra? quam diu etiam furor iste tuus nos eludet? quem ad finem sese effrenata iactabit audacia? nihilne te nocturnum praesidium Palati, nihil urbis vigiliae, nihil timor populi, nihil concursus bonorum omnium, nihil hic munitissimus habendi senatus locus, nihil horum ora voltusque moverunt? patere tua consilia non sentis, constrictam iam horum omnium scientia teneri coniurationem tuam non vides? quid proxima, quid superiore nocte egeris, ubi fueris, quos convocaveris, quid consili ceperis quem nostrum ignorare arbitraris?\par\newpage}  \noindent\selectlanguage{english}When, O Catiline, do you mean to cease abusing our patience? How long is that madness of yours still to mock us? When is there to be an end of that unbridled audacity of yours, swaggering about as it does now?  Do not the nightly guards placed on the Palatine Hill — do not the watches posted throughout the city — does not the alarm of the people, and the union of all good men — does not the precaution taken of assembling the senate in this most defensible place — do not the looks and countenances of this venerable body here present, have any effect upon you? Do you not feel that your plans are detected? Do you not see that your conspiracy is already arrested and rendered powerless by the knowledge which every one here possesses of it? What is there that you did last night, what the night before — where is it that you were — who was there that you summoned to meet you — what design was there which was adopted by you, with{\parfillskip0pt\relax\par}  \noindent\selectlanguage{latin}{\large O tempora, o mores!\par\newpage}  \noindent\selectlanguage{english}which you think that any one of us is unacquainted?  Shame on the age and on its principles! \end{document}
104404
After last update of TeX Live packages this code won't compile:  \documentclass{article}  \usepackage{longtable,tabu} \usepackage{color}  \begin{document}  \begin{longtabu} to \linewidth {llX}     a &amp; b &amp; c\\ \end{longtabu}  \end{document}   I got an error:     Missing } inserted. \end{longtabu}   if I comment out \usepackage{color} everything works. Another strange thing - if I change last column type from X to say l - it also works (even with color package added).
79635
I know that you can combine tabularx and longtable functionality with either ltxtable or ltablex, but is there something similar for tabulary? My searching has come up dry when looking for any way to get tabulary to work with very long tables.  The table I am working with has large amounts of text that requires line breaking in multiple columns. Some cells have very little, and some have a lot, and I would like to see the column widths juggled to minimize total table length. I realize I could manually do this with the {&gt;{\hsize=.5\hsize}X&gt;{\hsize=1.5\hsize}X} functionality in tabularx, but what I'm making is intended to be a template that should work well with any particular arrangement of data that gets thrown in. Am I doomed to using tabularx and manually adjusting the hsize numbers each time I want to make a table?
41041
I often format path names with \texttt which can be very long. Usually Tex will not break this text. The line will just create a hbox overflow. It looks like this:  ................ ...C:\documents and settings ................ ................ ................ ................ ................ ................ ................   How do I get Tex to create a line break?
92082
How to break VERY long word in latex? For example:  \begin{center} \begin{longtable}{|p{8cm}|p{3cm}|p{3cm}|p{3cm}|} \hline 1 &amp; 2 &amp; 3 \\ \hline 11111111111111111111111111111111111111111111111111111111111 &amp; 2  &amp; 3 \\ \hline \end{longtable} \end{center}   11111111111111111111111111111111111111111111111111111111111 overlaps next table cells in it's row. Thanks in advance.  UPDATE: Turns out that seqsplit doesn't work for me, as it removes existing spaces between words. I forgot to mention that text may contain space and I didn't notice that it eliminates spaces :(
10770
I have the following VF page, but when I render it as pdf the Apex:repeat tables break in the middle to the next page. I'm thinking of limiting the tables displayed in each page to avoid table breaks. Is there any way of doing this or any better ideas ? Any help on this would be appreciated.   &lt;!-- Report Data --&gt;         &lt;apex:outputPanel layout="none" &gt;             &lt;apex:repeat value="{!rsReportRows}" var="reportRow" &gt;                 &lt;!-- Risk Data --&gt;                 &lt;table cellpadding="7" style="border-top:1px solid black;border-left:1px solid black;border-right:1px solid black; border-bottom:1px solid black; width:100%;"&gt;                     &lt;tr&gt;                         &lt;td style="text-align:center;" colspan="{!parentObj.fieldApiNamesList.size}" &gt;&lt;b&gt;Risk&lt;/b&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                         &lt;apex:repeat value="{!parentObj.fieldLabelsList}" var="fieldLabel" &gt;                             &lt;th style="font-size:{!pdfFontSize}pt;" &gt;&lt;apex:outputText value="{!fieldLabel}" /&gt;&lt;/th&gt;                         &lt;/apex:repeat&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                         &lt;apex:repeat value="{!parentObj.fieldApiNamesList}" var="field" &gt;                             &lt;td &gt;                                 &lt;apex:outputField value="{!reportRow.risk[field]}" rendered="{!field != 'risk__residual_score_movement_direction__c'}" /&gt;                                 &lt;apex:outputField value="{!reportRow.risk[field]}" rendered="{!field == 'risk__residual_score_movement_direction__c' &amp;&amp; (CONTAINS(reportRow.risk[field],'Up') || CONTAINS(reportRow.risk[field],'Down') || CONTAINS(reportRow.risk[field],'Right'))}" /&gt;                             &lt;/td&gt;                         &lt;/apex:repeat&gt;                     &lt;/tr&gt;                 &lt;/table&gt;                  &lt;!-- Related List Data --&gt;                 &lt;apex:repeat value="{!relatedList}" var="rList" &gt;                     &lt;apex:outputPanel layout="none" rendered="{!rList.isSelected &amp;&amp; rList.fieldsList.fieldApiNamesList.size &gt; 0}" &gt;                         &lt;table cellpadding="7" style="border-bottom: 1px solid black;border-left:1px solid black;border-right:1px solid black; width:100%;"&gt;                             &lt;tr&gt;                                 &lt;td style="text-align:center;" colspan="{!rList.fieldsList.fieldApiNamesList.size}" &gt;&lt;b&gt;{!rList.relationshipLabel}&lt;/b&gt;&lt;/td&gt;                             &lt;/tr&gt;                             &lt;tr&gt;                                 &lt;apex:repeat value="{!rList.fieldsList.fieldLabelsList}" var="fieldLabel" &gt;                                     &lt;th &gt;&lt;apex:outputText value="{!fieldLabel}" /&gt;&lt;/th&gt;                                 &lt;/apex:repeat&gt;                             &lt;/tr&gt;                              &lt;apex:repeat value="{!reportRow.objRecords[rList.relationshipName]}" var="record" &gt;                                 &lt;tr&gt;                                     &lt;apex:repeat value="{!rList.fieldsList.fieldApiNamesList}" var="field" &gt;                                         &lt;td&gt;                                             &lt;apex:outputField value="{!record[field]}" /&gt;                                         &lt;/td&gt;                                     &lt;/apex:repeat&gt;                                 &lt;/tr&gt;                             &lt;/apex:repeat&gt;                         &lt;/table&gt;                     &lt;/apex:outputPanel&gt;                 &lt;/apex:repeat&gt;                 &lt;div style="clear:both;"&gt;&amp;nbsp;&lt;/div&gt;                 &lt;div style="clear:both;"&gt;&amp;nbsp;&lt;/div&gt;             &lt;/apex:repeat&gt;         &lt;/apex:outputPanel&gt;
3132
For some reason, my figures get pushed to the end of the document. I tried begin{figure}[t], [h] and other options, but none helped. Any ideas how to get the figures to appear much earlier in the document, where they are approximately first mentioned in the .tex file?