Questions tagged [wrap]
{wrap} is about formatting an object (e.g. images) so that it is surrounded by text
361
questions
2
votes
1
answer
41
views
How to Wrap the Text of Customized Enumerate Items Directly Underneath the Item Number
This question is an extension of How to Imitate This Enumerate Display
Consider the code
\documentclass[10pt,openany]{book}
\usepackage{enumitem,xcolor}
\usepackage{xparse}
\definecolor{granite}{...
0
votes
0
answers
36
views
changes-package: can highlighted text wrap into the next line?
In using the \highlight command in the changes-package on text that spans multiple lines, the text runs off the page rather than wrapping into the next line, as shown in the MWE. Is there a way around ...
0
votes
0
answers
45
views
How to wrap equations around a figure?
I use LaTeX for taking notes in my math classes. I find that in classes with more plots, the document becomes far too spaced out having these plots on their own seperate line each time. For my plots I ...
0
votes
2
answers
42
views
Why is text wrapping not available in 3 out of 4 longfbox configurations?
The longfbox package is proving very useful as a way to break long verses across pages, something I have been searching for for years. With 3 out of 4 of the longfbox configurations, however, text ...
0
votes
4
answers
48
views
How to wrap cell text
Could someone help me wrap the text in the first line of this table, it keeps exceeding the line width of the page and the \\ command doesn't work. Mainly the end three columns first row.
\begin{table}...
0
votes
1
answer
39
views
Automatic line break on any character?
I'm generating some latex from some information in a database. I am putting all this information in a table, but some of the data in the cells are very long and have no obvious break points. As a ...
2
votes
2
answers
130
views
help with wrapping text in a table, and making a solid line at the far right corner
I am trying to wrap text in a longtable to achieve the below:
however, when using the code below, I get this:
May I please ask how to wap the text in the headings to appear over two rows, and also ...
0
votes
0
answers
28
views
Longtable and wrapping text around it
How could I arrange a longtable, which spans through multiple pages, to be also wrapped by text around it?
The longtable looses the benefits if put inside the wraptable environment.
0
votes
0
answers
58
views
How to wrap all numbers in a file in dollar signs?
For example, I have a text:
bla 1 bla-bla 12 bla-bla-bla 123 end.
I want to get from it:
bla $1$ bla-bla $12$ bla-bla-bla $123$ end.
How do I do this automatically?
0
votes
2
answers
69
views
text wrap in tabularx environment, multirow
I spent too much time on this already, please check:
\documentclass{article}
\usepackage{geometry}
\geometry{
a4paper,
left=25.4mm,
top=25.4mm,
}
\usepackage{ragged2e}
\usepackage{tabularx}
\...
0
votes
0
answers
151
views
How to not wrap equations?
While writing a paragraph of proof containing some (inline) short equations, some of them often wrap: half of the equation stays on the line 1 and the second part of the equation comes to line 2.
Is ...
4
votes
2
answers
153
views
ConTeXt: Text wrapping around images with complex outline
I'm a very beginner on ConTeXt, coming from Scribus and InDesign. I would like to know if is it possible to get a text flowing around an image with complex/winding border on ConTeXt as in the images ...
0
votes
2
answers
230
views
Wrap text in SVG images when importing them in latex using inkscape=true
I make graph using draw.io that I export in SVG to include in my LaTeX document. However some texts are too long and don't fit well when using the inkscape=true option of \includesvg
<path d="...
0
votes
0
answers
28
views
Long Figure Wrap
May I ask how to auto-wrap a too-long figure as shown below(sleepy channel protocol), so that the overflow part of the figure can be shown in the next page automatically? Thanks.
Note: The paper is ...
0
votes
0
answers
35
views
How to make the underline lengths of all lines same produced by command \uline{}?
could anyone tell me how to make the underline lengths of all lines same produced by command \uline{} , since I noticed that the underline length of the last line varies according to the content of ...
2
votes
1
answer
74
views
How to underline a given title and make it wrap automatically according to the fixed width?
How to unline a given title and make the title wrap automatically according to the fixed width, I
know I need to use the packages
\usepackage{ulem}
\usepackage{CJKulem}
and use it like this
\uline{...
0
votes
1
answer
72
views
Longtable paragraph cells doesn't wrap properly
I'm creating a table with the following packages
longtable for tables with lots of rows
booktabs for pretty book styled tables
xcolor with [table] option to add zebra style colors
However text in ...
1
vote
1
answer
41
views
How to achieve full-column-length coloured background for a single line?
I'm trying to recreate a template that is currently available in MS word format. It requires me to set the journal name on top of the title. Since I'm no expert, instead of trying to write a class ...
1
vote
1
answer
48
views
How can I wrap the text of a long sentence within table sub-headings?
I am struggling to make the subheadings of my table fit within the designated margins of the table. It all works and formats well when the sentences are not too long. Any suggestions are welcome. ...
0
votes
1
answer
74
views
Is it possible to have a drop capital in a tcolorbox? [closed]
Tried lettrine and did not work. Dropping seems not to be in texlive anymore.
0
votes
1
answer
37
views
Auto-replacing words with shorter variants to prevent hanging words
Is there a way to tell latex that certain words can be replaced by a shorter variant if it will prevent a hanging word:
eg:
this line wraps to a second
line.
change "second" to "2nd&...
1
vote
1
answer
83
views
How can I detect line wraps in XeLaTeX and change letter spacing accordingly?
I need to typeset a lot of short "phrases" (consisting of several words) strictly in one-line format (i.e., one "phrase" per line). I am also using fontspec under XeLaTeX to extend ...
3
votes
2
answers
100
views
Two wrapfigures above each other with multiple paragraphs
I have this following MWE:
\documentclass[]{scrbook}
\usepackage{wrapfig}
\usepackage{graphicx}
\begin{document}
\begin{wrapfigure}[15]{r}{0.35\textwidth}
%\vspace{\baselineskip}
\centering
\...
4
votes
3
answers
266
views
Wrap text around rotated table and caption
I try to rotate a large table and also the corresponding caption. Around this rotated figure I want to wrap text. I have this MWE, but in this MWE the caption is not rotated and therefore needs a lot ...
0
votes
0
answers
458
views
jupyter-notebook - Wrap text inside align-environment
The following is a snippet from a jupyter-notebooks' markdown cell.
$$
\begin{aligned}
\mathrm{d}J & = \mathrm{tr}(\frac{\mathrm{d}J}{\mathrm{d}\mathbf{A}^{[3]}} \frac{\mathrm{d}\mathbf{A}^{[3]}}{\...
0
votes
1
answer
102
views
Wrap text for .bib files in WinEdt
I tried using some of the solutions posted on this forum for wrapping text in WinEdt for my .bib files, but what I tried so far does not work.
I tried selecting the "Wrap" option at the ...
0
votes
2
answers
90
views
Position text boxes on the right or left of the main body text
I frequently need to position a text box containing a small amount of text on either the right or left of the page, and wrap text around it. In this example I attempted to use wrapfig (though i have ...
1
vote
1
answer
239
views
How to wrap text around a box without using any packages?
This question has been edited since the original problems due to errors in my code were fixed.
I tried to use wrapfig to wrap text around a box at the right margin, but the package behaves ...
1
vote
0
answers
21
views
Wrap text around a centered table in a two-column document [duplicate]
I desire to wrap text around a table in a two-column document like the following:
column 1 column 2
--------------------- ---------------------
--------------------- ------...
1
vote
1
answer
38
views
Sometimes wrapping is not working as expected
I am using TeXworks and the documentclass article but sometimes the word wrapping is not as expected.
How can I fix this?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\...
1
vote
1
answer
101
views
Wrapped text around figure being formated into a new column (using TexStudio)
I'm just learning LaTeX, and I am having a problem with wrapping an image. When I use the try to use wrapfigure in TexStudio, I get a second column generated in my document, with the wrapped text ...
0
votes
1
answer
62
views
wrapping text around an image on top of the page
For my university report, i have to create this in latex.
I tried it on latex using wragfig with this code
\documentclass[10pt,a4paper]{report}
\usepackage[a4paper,vmargin={25mm,25mm},hmargin={25mm,...
0
votes
1
answer
101
views
tikz picture inside wrapfigure overlapping with normal text
I have in my document several tikz pictures wraped with wrapfigure, only one of them is having overllaping with text,
As you can see, the math equation is centered as if no wrap figure was present, ...
2
votes
1
answer
110
views
Move single enumerate element to the right to wrap image
I'm trying to put a picture on the left of an enumerate to exploits the space on the left. However, as you can see the result is quite dirty because of the dot appearing just on top of my picture. Is ...
2
votes
2
answers
107
views
Strange behavior with `insbox`. What is wrong?
Old question
see update at the bottom
When the package insbox is used with the package geometry (but not only, see at the end), the wrapping of text is weird.
Here is an example.
\documentclass[11pt]{...
1
vote
1
answer
96
views
tabu package table out of page
thank you for your help.
When I have the following code the table created goes out of the page. How can I keep the table in the page using tabu?
Also I would like the first column to not exceed a ...
1
vote
1
answer
107
views
Text wrap in the table cell
I have the following code:
\documentclass[parskip=half-]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[]{microtype}
\usepackage{hyperref}
\usepackage{geometry}
\usepackage{...
1
vote
0
answers
53
views
Inserting a Centered Title in a Tikzpicture without Adversely Affecting Text Wrapping
I am producing a somewhat syntactically complex tikzpicture, which thanks to the help of David Carlisle, looks like this:
The code which generates that picture is as follows.
\documentclass[border=...
0
votes
1
answer
98
views
Long table headings not wrapping
The table headings are long, and at the same time, we need to have each heading for two years: that results into two columns under each heading. In this case, heading text is not wrapping. Guidance ...
1
vote
1
answer
127
views
Looking to Insert a Figure and Wrap It Within a Customized Tikzpicture
This question inquires as to an extension of Daniel N.'s answer found in How to enhance the background of a Tikzpicture or a Tcolorbox
Consider the slightly modified code:
\documentclass[border=1cm]{...
0
votes
1
answer
25
views
Add space after period when underfull hboxes occur?
Consider this MWE:
\documentclass[10pt,journal,compsoc]{IEEEtran}
\hyphenation{veryverylongword}
\begin{document}
\textbf{The word word word word word.} The word-veryverylongword word word word word.
\...
2
votes
2
answers
424
views
How to resize the longtable in latex? [closed]
I'm trying fit a longtable in latex, I've searched but all the examples was didn't worked for me because of the \begin{longtable}`[c]`{|l|l|l|l|l|}, the output is the following:
The code is the ...
1
vote
1
answer
71
views
Is there a way to wrap text around subfloats within a custom float?
I am a fairly proficient latex user, but have stumbled across a formatting challenge outside my experience.
I am trying to create a custom "box" float - similar to what one might see in ...
0
votes
1
answer
104
views
Error using the wrapfigure package
I have a problem using wrapfigure. I am trying to use the following code:
%\begin{figure*}[h!]
\begin{wrapfigure}[r]{0.5\textwidth}
%\centering
\begin{center}
\includegraphics[width=0.5\textwidth]{...
1
vote
3
answers
252
views
Shift a tikz-cd diagram up when wrapping text around it
I want to include a tikz-cd diagram alongside text, wrapped around it. To do this, I am using the package wrapfig. The code looks like this:
\documentclass[psamsfonts]{amsart}
\usepackage{quiver}
\...
1
vote
1
answer
487
views
Text in svg is not wrapping around a box
I am trying to include an sag image in Latex like the following.
\begin{figure}[H]
\centering
\includesvg[inkscapelatex=false, width=0.7\pdfpagewidth]{figure.svg}
\end{figure}
<?xml version=&...
2
votes
0
answers
221
views
\uline cannot wrap the line after texlive2021
I need to underline some text and hope the text automatically wrap at then end of the line.
see Why does underlined text not get wrapped once it hits the end of a line ?
The \uline works with ...
2
votes
1
answer
167
views
Figure interrupts sentences
While writing a paper I tried to include relatively large figures into my document. Since they are so big I don't want them to be placed inside sentences.
The first part of the Text.
\begin{figure}[ht]...
2
votes
1
answer
76
views
Consecutive colorbox items does not line break in a table
I want to create a table with the long text content. Each word in the text is color boxed. But when this is done, the text does not wrap and there is no line break. Below is sample code:
\begin{table}[...
0
votes
1
answer
433
views
Wrapfigure and Wraptable next to eachother
I have probably a stupid question and how do I get rid of the extra space in this extra space on top of my table.
This is what I wrote in latex.
\documentclass[11pt]{scrartcl}
\usepackage[utf8]{...