Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [parshape]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
86 views

Shaping the text area rather than the paragraph

I would like to be able to define a text area shape for a given page. In effect, the text in the text area (or lists, equations, etc) would be shifted around as if the margins of the page were changed ...
humble_hacker's user avatar
2 votes
2 answers
139 views

Gap inside parshap in one line

General overview I try to put a custom lettrine with \parshape command and I get the following rendering: The problem But, the hand of the goddess Hator fall under the baseline of the N wile the text ...
fauve's user avatar
  • 2,521
0 votes
2 answers
86 views

wrapfig2 inside a list

I know (it is said in the documentation package) that there are problems with wrapfig2 inside a list. Here is a MWE: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{...
Didier's user avatar
  • 1,321
0 votes
1 answer
75 views

Paragraph in the Shape of an Isosceles Trapezoid with Shapepar Package

This post is related to Efficiently Displaying a Paragraph in Trapezoidal Formation in which the shapepar package was suggested in one of the comments. Consider the code \documentclass[10pt]{book} \...
DDS's user avatar
  • 8,986
1 vote
1 answer
451 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 ...
Alexey's user avatar
  • 2,109
1 vote
0 answers
47 views

Align following paragraphs with heading indent

I'm using titlesec to customize the look on sections. I have adjusted these different headings in a nesting manner with lower levels being increasingly indented. The paragraphs below the headings will ...
Ole Aldric's user avatar
2 votes
6 answers
265 views

Plain TeX: Problems when \loop to set parameters for \parshape

I was trying to write a macro for wrapping text around a figure. I aware that it is available in Latex and there is another package, figflow for plainTex. I am just learning to write my own. My first ...
Jun's user avatar
  • 39
0 votes
1 answer
109 views

Apply \parshape from the last line of a paragraph

I would like to format paragraphs as shown in the picture below, i. e. paragraphs such that the last n lines of the paragraph are centered and of linearly decreasing width. (n is constant from ...
Bastien's user avatar
  • 449
3 votes
1 answer
123 views

\hangindent and \hsize

Refer from TeXbyTopic sec 18.3.5 Hanging indentation versus \leftskip shifting Setting \leftskip to some positive value for a paragraph means that the \hsize stays the same, but every line starts ...
ZhiyuanLck's user avatar
  • 4,516
2 votes
1 answer
106 views

Let text body float around marginpar

How do I create a marginpar so that it is indented into the text body and the text body floats around the marginpar? I know how to create a marginpar: \documentclass{article} \usepackage{lipsum} \...
white_gecko's user avatar
  • 2,111
14 votes
2 answers
1k views

Coloring the digits of Pi

I have the following tex command to type \pi with some limited number of digits that take its symbol shape. My question is how to make the digits to be created from different colors and if there is ...
Mutaz 's user avatar
  • 243
0 votes
0 answers
254 views

Lettrine and Wrapfig in an xcookybooky recipe

I have a problem regarding the combination of lettrine and wrapfig inside an xcookybooky recipe. My issue stems from the interaction between the two packages. If I create a recipe such as that shown ...
Patrick's user avatar
  • 31
4 votes
1 answer
400 views

SVG as page layout in Latex

I know we can use parshape and the shapepar package to have customized paragraph shapes, but I wonder if it is possible to read an SVG file and use it as page layout? A possible solution might be to ...
Shahryar's user avatar
  • 365
3 votes
1 answer
317 views

How to prevent \raggedright from removing left-indent of \parshape?

Output with \raggedright looks good when greater indentation is specified for \parshape, but \raggedright eats up smaller indentation. If a word doesn't fit on a line, is there a way to prevent ...
bp2017's user avatar
  • 3,776
3 votes
1 answer
56 views

Why standalone class reverses \parshape indentation (such that it appears on the end of each line, not the beginning) and how to change that?

You can replace \documentclass[varwidth]{standalone} with \documentclass{article} to see the difference. How do I make \parshape work as intended while using standalone? \documentclass[varwidth]{...
bp2017's user avatar
  • 3,776
6 votes
1 answer
206 views

Why is \prevgraf zero at the end of the paragraph (or even in the middle of the paragraph)?

Both \the\prevgraf show zero. I expected it to show current line counter. \documentclass[varwidth]{standalone} \usepackage{expl3} \begin{document} \parbox{40mm} { \parshape 3 0mm 40mm 5mm 35mm ...
bp2017's user avatar
  • 3,776
6 votes
2 answers
233 views

How to make \parshape work inside a tikz node?

Expected output (2nd line has 5mm more indent than 1st, 3rd and following lines have 5mm more indent than 2nd): \documentclass{article} \begin{document} \setlength{\parindent}{0pt} \parshape=3 ...
bp2017's user avatar
  • 3,776
5 votes
2 answers
446 views

Wrong vertical spacing cutwin (clean solution text wrap image)

I noticed package cutwin seems to have issues with linespacing (see above image). After searching, several others also noticed this: Linespacing with cutwin, Misalignment with cutwin, http://tug.org/...
Bart's user avatar
  • 407
3 votes
1 answer
62 views

How to use a macro to specify number of lines in a \parshape

I would like to be able to use a macro to specify the number of lines in a given \parshape. So, instead of \parshape 8 ... for instance, I would like to be able to use \newcommand*{\NumberOfLines}{...
Peter Grill's user avatar
3 votes
3 answers
572 views

Multiple Paragraphs with \parshape

When using a \parshape, I can use \newline\hspace*{0.5\parindent} to produce a new "paragraph" and still continue with the current \parshape. Is it possible to leave a blank line and still ...
Peter Grill's user avatar
2 votes
1 answer
102 views

Box with Semicircular Parshape in a Savebox

This question is related to Box with Semicircular Parshape at Top and Bottom. Here I am trying typesetting the top portion into a \savebox using a semicircular \parshape in the MyRoundedBox* ...
Peter Grill's user avatar
11 votes
2 answers
314 views

Box with Semicircular Parshape at Top and Bottom

I am trying to design a box that has a semicircular parshape at the top and bottom as shown here: If the text is small enough then this is intended to shrink to a circle of the given \Radius (and not ...
Peter Grill's user avatar
0 votes
1 answer
86 views

Centering a line in a \parshape, strange behavior

I was trying to center a line inside a \parshape using \\\hbox{}\hfill...\hfill\hbox{}\\, most of the time it works smoothly but sometimes the centered line is divided into two parts, as you can see ...
yannis's user avatar
  • 2,003
7 votes
1 answer
162 views

Parshape has no effect inside group

In the MWE below the \parshape command behaves as expected. However if you add grouping (by uncommenting the two lines marked with a (*)) then it seems to have no effect! How do I make it behave like ...
banbh's user avatar
  • 1,075
1 vote
0 answers
277 views

Drop caps and parshape in the same paragraph

I have this requirement to have dropped caps and also use a parshape. I'd have liked to use lettrine and something like picinpar or picins, but all of those seem to use \parshape internally and thus ...
takrl's user avatar
  • 501
1 vote
2 answers
300 views

Parshape WITHOUT justified text

My thesis office requires an inverted pyramid for all chapter titles. Here is the code I am using to produce the result: \newcommand{\invpyr}[1]{ \vbox{ \hsize=4.5in \parindent=0pt \...
tomsrobots's user avatar
1 vote
1 answer
185 views

Parshape not working (and optimization)

I am using the command \parshape inside my document and it doesent seem to work. Any ideas why? \documentclass[10p, a4paper, twopage]{book} \usepackage{lipsum} \begin{document} \parshape=10 0.25\...
Redstone Tehnik's user avatar
6 votes
1 answer
627 views

Line width in parshape environment

I would like to get the current line width in a \parshape environment. The following variables return the full page width (345pt), where I would expect 300pt: \documentclass{report} \usepackage{...
Alexed's user avatar
  • 81
1 vote
0 answers
272 views

Wrap text around lettrine in caption

I would like to create a caption style for my figures. Currently, I try to do it using the caption package. The caption should be typeset in the margin paragraph. The caption should look like this: (...
HarveyShepp's user avatar
1 vote
1 answer
202 views

How to minimize occurring text gaps when wrapping around Images?

So I've got this problem. I am using XeTex compiler (but I think the rest give the same result too) I am using a \parshape style-method in order to form a space for a large image, in the middle, of a ...
Jean Mentz's user avatar
1 vote
1 answer
137 views

Adding a caption to graphics in parshape

This question is the continuation of the one posted here. How can I add a caption to the figures as shown below?
shashashamti2008's user avatar
1 vote
1 answer
470 views

Wrapping text around a table in enumeration environment with cutout and parshape

I borrowed the code for my MWE from here. I want to put the table to right side and have difficulty in understanding parshape command. What is the purpose of 15 26pt\linewidth 26pt\linewidth 0.5\...
MYaseen208's user avatar
  • 8,597
7 votes
0 answers
2k views

Shaped paragraph with centred picture (shapepar & cutwin)

I spent much time on this, but could not manage it or find a similar problem. I would like to insert a picture in the center of this heart shaped paragraph, the text should be wrapped around it. ...
Tobias Wille's user avatar
14 votes
1 answer
515 views

Lists (itemize, enumerate) without \parshape

AFAIU (reading ltlists.dtx), lists (itemize, enumerate) in LaTeX rely on \parshape. Is there an other way to get the same result without \parshape. Motivation: wrapfigure and list environments badly ...
cjorssen's user avatar
  • 10k
4 votes
1 answer
159 views

How make \parshape declared inside an environment to apply the next paragraph outside the environment?

I'm trying to do something like the MWE below: \documentclass{article} \usepackage{lipsum} \newenvironment{myenv}{% \parshape = 4 0pt 0.5\textwidth 0pt 0.5\textwidth 0pt 0.5\textwidth ...
gablin's user avatar
  • 17k
6 votes
1 answer
998 views

How to make \parshape take indentation of first line into account?

In the minimal example below, I want to create an empty space to the right of the paragraph using \parshape. However, the first line is indented and spills over into the empty space. I don't want that....
gablin's user avatar
  • 17k