Questions tagged [parshape]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
14
votes
2answers
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 ...
14
votes
1answer
441 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 ...
11
votes
2answers
214 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 ...
7
votes
1answer
146 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 ...
7
votes
0answers
1k 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. ...
6
votes
1answer
810 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....
6
votes
1answer
119 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 ...
6
votes
1answer
437 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{...
5
votes
2answers
132 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 ...
5
votes
2answers
236 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/...
4
votes
1answer
108 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 ...
4
votes
1answer
124 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 ...
3
votes
3answers
173 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 ...
3
votes
1answer
120 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 ...
3
votes
1answer
42 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]{...
3
votes
1answer
26 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 ...
3
votes
1answer
50 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}{...
2
votes
1answer
60 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* ...
2
votes
1answer
42 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} \...
1
vote
1answer
118 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?
1
vote
1answer
368 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\...
1
vote
1answer
122 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 \...
1
vote
1answer
134 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\...
1
vote
1answer
156 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 ...
1
vote
0answers
191 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 ...
1
vote
0answers
239 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: (...
0
votes
1answer
56 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 ...
0
votes
1answer
51 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 ...
0
votes
0answers
104 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 ...