LaTeX forum ⇒ Graphics, Figures & TablesCustom Shapes

Information and discussion about graphics, figures & tables in LaTeX documents.
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Custom Shapes

Postby ghostanime2001 » Fri Sep 20, 2013 10:30 pm

Is there a way to create your own custom shapes with custom anchors/nodes etc. or sort of like re-creating your own TikZ objects?

Tags:

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sat Sep 21, 2013 9:41 am

You'd have to take a look at the corresponding PGF/TikZ libraries and probably go down to the system or basic layer to program your own shapes. These layers are described in the PGF/TikZ manual.


Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

User avatar
Stefan Kottwitz
Site Admin
Posts: 8536
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Sep 22, 2013 2:59 pm

Perhaps have a look at this rectangle TikZ shape example. The description is in German, a translator (pons.eu, google) could translate it for you. The main part is just code, so understandable.

Defining new shapes is pretty much work, as I see there. As Thorsten said, I would start with reading and copying parts of the pgf shapes libraries as the basis of my own shapes.

If you manage to define a new shape, I would be glad to see it. And if you have specific questions while working on it, let us know.

Stefan
Site admin

ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Postby ghostanime2001 » Fri Nov 08, 2013 9:32 am

Is it possible to create a shape with Adobe Illustrator CC, then customize the shape with anchor points? If so, how?

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Fri Nov 08, 2013 8:04 pm

ghostanime2001 wrote:Is it possible to create a shape with Adobe Illustrator CC, then customize the shape with anchor points? […]

No. The possible approaches have already been pointed out in the former responses.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Postby ghostanime2001 » Fri Nov 08, 2013 9:41 pm

So the only way is to use TikZ to make shapes?

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Fri Nov 08, 2013 9:52 pm

ghostanime2001 wrote:So the only way is to use TikZ to make shapes?

Please tell me, do you actually read what others write here? This question is clearly answered by former replies in this thread. m(
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Postby ghostanime2001 » Fri Nov 08, 2013 10:33 pm

Maybe if it wasn't German.

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Fri Nov 08, 2013 11:35 pm

ghostanime2001 wrote:Maybe if it wasn't German.

As far as I remember the PGF manual is entirely written in English. m(
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Postby ghostanime2001 » Tue Dec 31, 2013 5:39 am

Would latex 3 have better shape anchor integration ?


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Cham and 8 guests