{wrap} is about formatting an object (e.g. images) so that it is surrounded by text

learn more… | top users | synonyms

52
votes
5answers
2k views

How do you create pull quotes?

Does anyone know a package for pull quotes? Failing that, is anyone interested in writing a command to create one? I'm thinking of something that would have optional and configurable separators ...
50
votes
9answers
2k views

What are the pros and cons of using hard wrapping, and why is it so common with LaTeX?

It seems that hard-wrapping - i.e. inserting a newline when the line reaches a certain threshold - is extremely common in the LaTeX source when writing technical papers, either by manually inserting ...
50
votes
2answers
2k views

Two-column text with circular insert

How does one write on the outside of a circle? I am looking for sample files/packages which imitate a magazine lay-out. Specifically a page with two columns having a circular picture between the two ...
16
votes
3answers
2k views

How to wrap text in table cell?

this code: %%%%%%%%%%%%%%%%%%Table: Valence x valence crosstab \begin{table*}[t] \centering \begin{tabular}{c c c c c c c} \toprule \midrule ...
14
votes
3answers
716 views

How do I wrap text that doesn't use SPACE character to segment word

As you know, there are many languages out there that don't use a SPACE character for word segmentation. For such language, special non-printable characters are used, such ZERO WIDTH NON JOINER or ZERO ...
12
votes
2answers
1k views

Text wrap with shapepar (insert image between text)

How do insert image between text and text wrap with shapepar or other package?
11
votes
1answer
3k views

How to wrap text around landscape page

I have from time to time a landscape page. I would like that text around it just normally flows. So something how figure environment works. So that it is not really important where you exactly define ...
11
votes
3answers
2k views

vim LateX-Suite indentation and line breaking

I'm now setting up Vim for use with LaTeX. This is about setting up the indentation. In the picture below, there are many things that need tweaking. Everything between \vskip .5cm and \vskip 1in is ...
8
votes
3answers
7k views

Beamer: How text wrapping around a graphic right aligned?

I want to include a graphic in beamer presentation with right alignment and this graphic should be wrapping by text. I tried three packages but non of them works correct (minimal example below). ...
8
votes
1answer
147 views

How can text wrap around a figure in tikzposter?

While designing a poster with tikzposter I stumbled over a small issue. Usually one can use the wrapfig package to let text wrap around figures but in a box in tikzposter this seems to fail completely ...
8
votes
2answers
177 views

Allow source code to wrap around a figure

I would like to be able to wrap source code around a figure. Here's a MWE that should make it clear what I have in mind: \documentclass{article} \usepackage{wrapfig} \usepackage{listings} ...
7
votes
3answers
703 views

Wrap text around symbol

How is it possible to wrap text around a symbol? This is my code so far: \documentclass{report} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{xcolor} ...
7
votes
3answers
263 views

How can I prevent the next paragraph from overwriting the image of a description label?

LaTeX code generated from MarkDown by Pandoc: \documentclass{article} \usepackage{mwe} \makeatletter \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth \else\Gin@nat@width\fi} \makeatother ...
7
votes
1answer
133 views

Grouping items onto the same line to avoid wrapping

I am authoring a poker-related document and am using the following commands to allow me to display cards: % Suit image adjustments: \newcommand{\suit}[1]{\includegraphics[width=8pt, height=8pt]{#1}} ...
6
votes
1answer
995 views

Wrapping text in enumeration environment around a table

I would like to wrap the text in an enumerate environment around a table, this is my actual situation (sorry for including so much code, but I wanted to give a precise idea of the number of lines in ...
6
votes
1answer
561 views

marginpar infobox

I apologize for not knowing the correct term for this, but I want to put some kind of a infobox at the beginning of each section. What I want to ask about is for example on Wikipedia: you have this ...
6
votes
1answer
202 views

How to circumvent a late \pagetotal reset to 0pt?

Below example demonstrates at the beginning of each paragraph how \pagetotal is not always reset to 0pt at the beginning of the page. This appears to interfere with my attempt to automatically clear a ...
6
votes
1answer
414 views

Margin note over body text

I'm interested in putting marginal notes that seems like a post-it in the margin of a document. No problem at all if they are simply made with \marginpar and playing with margin width and separation. ...
6
votes
1answer
88 views

Is it possible to let captions wrap a bit around includegraphics within figures? [duplicate]

Is it possible to place the caption a bit around includegraphics within the figure (to save some space?). As it may be misunderstood what I want, I try to explain it exemplary: Currently the minimal ...
6
votes
1answer
88 views

seqsplit - keep spaces

Hey im looking to create a text wrap command to be used inside a table for long word wrapping. so far i have this: \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} ...
5
votes
2answers
625 views

How can I get multiline outlined/shaded text in LaTeX?

How can I get multiline text highlighted by means of outlining or shading? I found some solutions (contour, shadowtext, pdf-trans) but none able to wrap multiline text. Some examples of outlined and ...
5
votes
2answers
204 views

How to insert an image inside a paragraph?

I'd like to insert a small image inside a paragraph, aligning it with the text. The following snapshot depicts what I have in mind. Notice the image at the end of the last line.
5
votes
1answer
136 views

Text wrap in multicols

The following LaTex code (credit) features a table within muticols: \usepackage{multicol} ... \begin{multicols}{3} \subsubsection{Another Subsubsection} Lorem ipsum dolor sit amet, consectetur ...
5
votes
1answer
4k views

Wordwrap in Kile?

I can't seem to wrap my words to the size of the window in the IDE Kile. This results in my line of LaTeX being very long and ridiculous and the kile window scrolling to the right. Any suggestions?
5
votes
1answer
1k views

How to autowrap text in latex?

i m writing one paragraph in which i need to wrap text in a paragraph. How can i wrap text "hemorrahagic" to next line or use hyphen two split it into multiline.
5
votes
2answers
242 views

Getting the interlinear spacing correct within a paragraph when using minipages

Let me start by saying that this is very similar to a previously posted question, How to keep a constant baselineskip when using minipages (or \parboxes)?, for which egreg gave a very nice solution. ...
5
votes
1answer
193 views

How to adjust the width of a wrap text sideways column header in tabular [duplicate]

I am trying to create table as below, in Texmaker. here i am facing following issues. To wrap text the column headers from 4 to 6 and align it center. Hspace on paragraph [row 3 last column] is ...
5
votes
1answer
66 views

How to nicely do margin figure that goes into text block and wraps?

I want to create something like this: However, when I look at how I did it I feel dirty all over: \documentclass[10pt]{memoir} \usepackage{wrapfig} \usepackage{lipsum} \usepackage{graphicx} ...
5
votes
1answer
273 views

Misalignment with cutwin

Compiling the code below yields a misalignment of the text when the box is drawn. \documentclass[fleqn,11pt]{book} \usepackage{cutwin} \begin{document} ...
5
votes
1answer
978 views

Text not spanning full page after wraptable

I wonder why latex doesn't go back to full textwidth after a table that was added in a wraptable? The actual code where I experience this problem is here: http://pastebin.com/CRjHMZdT I would ...
5
votes
2answers
266 views

Adjust settings that determine when sections should start on a new page/column

I'm using titlesec in a two column environment, and sometimes my sections start on a new page or the second column, and leave blocks of white space at the bottom of the previous page/column. I am ...
5
votes
1answer
93 views

Possible to wrap multiple rows within a column at one time?

I am producing a document that has "interlinear" qualities. As such, it would be much simpler if I could wrap multiple lines of text at one time. Here is an example of what I want: Let's take these ...
5
votes
0answers
37 views

How can I make a custom environment that wraps listings?

Thanks to this answer, I know it is possible to float and wrap text around a listing. I would like to setup an environment for mini-code snippets that always floats and wraps the same way. I can ...
4
votes
2answers
82 views

Alignment Problem in Table environment

Regarding to the following question Problem with subcaptions in subtables I created the following. There appears three problems: in the header starting from "Mean" to "Max." The alignment seems not to ...
4
votes
1answer
165 views

wrapping a rotated table

I have a rather wide table that doesn't fit to page width, so I rotated it. The fit is nice, but my idea was to have text wrapped around this rotated table. So far I found two choices that are ...
4
votes
1answer
304 views

ConTeXt: Wrapped text misbehaves at page breaks

On this site, a solution for text wrapping based on descriptions in Pandoc-generated ConTeXt documents was previously formulated. Although satisfactory for a one-page minimum working example, the then ...
4
votes
1answer
2k views

Automatically wrap the text in verbatim

In tex environment, when I try to use the verbatim function using verbatim packages, sometimes the longer text in the line tend to be cut off. How can I resize the text to fit into the line or ...
4
votes
1answer
756 views

How to put auto width to floatingfigure?

I'm trying to wrap an generated graphic with text. But I cannot find what I have to put instead of 6cm in \begin{floatingfigure}[l]{6cm} to let LaTeX designate correct width like it does with height. ...
4
votes
1answer
296 views

enumitem line separation within a single item

I have this happening when the item wraps: The code I have so far is: \setlist{leftmargin=!, align=left, font=\large\textsf, itemsep=20pt, labelwidth=10pt, itemindent=-28pt} How can I adjust the ...
4
votes
2answers
439 views

ConTeXt: Figure scaling to width and text wrapping for Pandoc-generated documents

Consider the following Pandoc-generated ConTeXt document: \setuppapersize [A4][A4] \setuplayout [width=middle, backspace=1.5in, cutspace=1.5in, height=middle, topspace=0.75in, ...
4
votes
1answer
736 views

showlabels: wrap labels in marginpar

I use the showlabels package to highlight labels, references and citations. It appears that, by default, showlabels cannot wrap the keys in the marginpar. If I have a series of citations in one line, ...
4
votes
1answer
390 views

Inserting an image on the right

I got a problem in my LaTeX document. I used the codes below: \begin{flushleft} \begin{figure}[tp] \centering \includegraphics{C:/Users/churva/Desktop/wla.jpg} ...
4
votes
1answer
841 views

Table wrapping in tables not working

I am having a problem with text wrapping in a long table. Here is a copy of my table: \begin{longtable}[c]{l|b{2in}b{3in} b{2in}} %\centering %\begin{tabular}{llll} Author and Year ...
4
votes
0answers
239 views

Wrapping Margin Notes [closed]

I'm writing a small list of things and want to insert a small kind of box into the margin on right side of the list. I'd like it to behave more or less like this: If it fits into the margin fine. If ...
3
votes
3answers
268 views

Error shapepar to use the command \circleshape

See my code: With \diamondshape it works but with \circleshape it does not. What is wrong? \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{shapepar} \usepackage{lipsum} ...
3
votes
2answers
4k views

how to text-wrap an image in latex

how to text-wrap an image in LaTeX. Ex: In technical documents, authors names will be text wrapped tights, with their images. can someone help me....its urgent for my paper submission.
3
votes
1answer
330 views

How to wrap text in line by adding spaces

I am writing one text which has some very long words but i don't need to split word in multiline using hyphen. I just want to add spaces to fit in the line as shown below. This is my first ...
3
votes
2answers
508 views

Wrapping text within align

I am writing Flashcards for the upcomming finals. To describe the equations I use the align* environment like this: \begin{align*} x_+ &: \text{ Molenbruch von Enzymen, bei denen ...
3
votes
1answer
901 views

Wrapping text around a displayed equation

I have something like the following in a tex document: some text ... \[ T_y = \left\{ \begin{array}{ll} x + \alpha & \mbox{if $\alpha = \beta$}\\ x^2 + \beta & ...
3
votes
1answer
130 views

Wraptable interferes with the next page

I've got a wrapped table on the right, it reaches the end of the page and stops, and the text next to it finishes its paragraph in line with where the table finishes. The line on the next page stops ...