Questions tagged [parshape]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
220 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,811
1 vote
0 answers
34 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 ...
0 votes
1 answer
112 views

**\noteworthy** code snippet conflict with **lettrine** package

Charles Clayton introduced a snippet of code in 2017 for the \noteworthy command (with a followup comment on Sep 23 '20,) at: Table of equations like list of figures to facilitate a separate listing ...
2 votes
6 answers
203 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 ...
  • 37
0 votes
1 answer
83 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 ...
  • 417
3 votes
1 answer
71 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 ...
  • 4,416
2 votes
1 answer
73 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} \...
  • 2,031
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 ...
  • 243
0 votes
0 answers
216 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 ...
  • 31
4 votes
1 answer
239 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 ...
  • 365
3 votes
1 answer
245 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,686
3 votes
1 answer
50 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,686
6 votes
1 answer
176 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 ...
  • 3,686
5 votes
2 answers
180 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 ...
  • 3,686
5 votes
2 answers
379 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/...
  • 357
3 votes
1 answer
57 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}{...
3 votes
3 answers
367 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 ...
2 votes
1 answer
84 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* ...
11 votes
2 answers
274 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 ...
0 votes
1 answer
69 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 ...
  • 1,828
7 votes
1 answer
158 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 ...
  • 1,005
1 vote
0 answers
267 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 ...
  • 451
1 vote
2 answers
244 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
1 answer
171 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\...
6 votes
1 answer
599 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{...
  • 81
1 vote
0 answers
263 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: (...
1 vote
1 answer
162 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
1 answer
128 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?
  • 5,250
1 vote
1 answer
449 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\...
  • 8,433
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. ...
14 votes
1 answer
496 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 ...
  • 9,679
4 votes
1 answer
142 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 ...
  • 16.6k
6 votes
1 answer
924 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....
  • 16.6k