![]() example: aabaaabab : require 4 swap to get aaaaabbba. For the ~ paragraph, the only optimal breaking point was ve-nenatis, but that still overflowed into the margin. I am looking for a solution better than n-square for this problem : minimum adjacent swap required to bring all 'b' character together. That's what happened in the example, as the \mbox paragraph could spread out the inter-word space wide enough to make pharetra. In both cases you may run into the problem of an overfull (or underfull) line, as you're prohibiting some form of natural breaking. venenatis (blue) was allowed to break mid-word when using ~, but \mbox strictly avoided this. Also, it couldn't be shrunk enough (if that was a possibility) to make it fit on the same line. ![]() The inter-word spacing couldn't be expanded to make something roll over to the next line. caravan wrecked - You were all traveling by land in a great company and some sort of enemy has attacked and destroyed the great company and now you are alone together in hostile territory far from civilization. (Just select entire table and use the paragraph settings to cause your rows to be much less tall.) By the way, in my Tutorial I explain the method of manipulating the height of rows. shipwrecked - You were all traveling by sea (or air) on a great ship and you have all been shipwrecked together. nec (green) altered the paragraph layout, making it "more optimal" to break some-thing. Another way would be to use a small character size for your table, and make the table cells of a considerably less height than usual. However, in the \mbox paragraph, the spacing of convallis. Something (red) is unbroken (not hyphenated) in the case of the default and ~ paragraph, as the line-breaking algorithm felt it was optimal to do so. ![]() Lorem ipsum dolor sit amet, consectetur adipiscing elit. Segments of the texts have been colour-coded to highlight any changes: Let's look at some examples (surely extreme, but still). If you use ~, the inter-word spacing is unaltered and flexible, and words may break at hyphenation points, just not at the inter-word space. If you're using it for a single word, then there is no difference in the spacing, but using multiple words, then there might be (may not be visible, but still). If you use \mbox, hyphenation is prohibited and the inter-word spacing is fixed and might be different from the surrounding text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |