[Ipe-discuss] Curved text

Philipp Glira philipp.glira at gmail.com
Mon Jan 25 16:58:37 CET 2021


Thank you very much Soeren, I will try it this way!

Am Mo., 25. Jan. 2021 um 14:13 Uhr schrieb Soeren Nickel via Ipe-discuss <
ipe-discuss at lists.science.uu.nl>:

> Hi Phillip,
>
> So I have tried this before, and with Fabiens answer I did manage to get
> stretchable and rotatable text. However I could not figure out how to bend
> it, with this method. My solution was to use tikz inside of ipe. I am not
> sure if it is fine to attach files here, so I will just include my solution
> as a snippet below:
>
> These two lines need to go into the Latex preamble under Edit-> Document
> properties:
>
> \usepackage{tikz}
>
> \usetikzlibrary{decorations.text}
>
> And inside the document I added a minipage text object with the following
> content:
>
> \begin{tikzpicture}
>
> \node (One) at (-3,0) {};
>
> \node (Two) at (3,0) {};
>
> \def\myshift#1{\raisebox{-2ex}}
>
> \path [->,thick,postaction={decorate,decoration={text along path,text
> align=center,text={|\myshift|Parameterized Algorithms}}}] (One) to [bend
> left=45] (Two);
>
> \def\myshift#1{\raisebox{-4ex}}
>
> \path [->,thick,postaction={decorate,decoration={text along path,text
> align=center,text={|\myshift|in various Settings}}}] (One) to [bend
> left=45] (Two);
>
> \end{tikzpicture}
>
> Some comments:
>
>    - I am not very familiar with tikz and copied most of this code from
>    an example of bent text in tikz
>    - The text does not adhere to its bounding box anymore and might get
>    cut off, which is why I sometimes added a couple of lines with just a white
>    dot (invisible on white background) as padding to the top.
>    - The method basically defines two points and draws a bent path
>    between them which has some text on it
>    - To avoid overlap between multiple lined text, the lines are shifted
>    down by 2ex and 4ex
>
> I hope this helps and best regards, Soeren
>
> On 25.01.21 13:53, Fabien Lafont via Ipe-discuss wrote:
>
> You can click on your text, then Properties, transformable text yes. After
> that you can modify your text shape at will
>
> On Mon, Jan 25, 2021 at 2:51 PM Philipp Glira via Ipe-discuss <
> ipe-discuss at lists.science.uu.nl> wrote:
>
>> Hi,
>>
>> is it possible to generate in IPE a curved text? More specifically: I
>> have a spline and want the text to follow its shape. Can this be done?
>>
>> Cheers,
>> Philipp
>> _______________________________________________
>> Ipe-discuss mailing list
>> Ipe-discuss at lists.science.uu.nl
>> https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/ipe-discuss/attachments/20210125/35c781fd/attachment.html>


More information about the Ipe-discuss mailing list