LaTeX Graphics with TikZ by Stefan Kottwitz
Author:Stefan Kottwitz
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2023-05-29T00:00:00+00:00
Figure 8.13 – Text along a curvy path
We can even let the text follow a path over multiple segments:
\draw[decorate, decoration = {text along path, text = {This is a long text along a path}}] (0,0) -- (1,0) arc(150:30:1.4) -- (5,0);
The text now runs like this:
Figure 8.14 – Text along a path with multiple segments
As you can see, the path itself is not drawn; it’s completely ignored. If we want, we can draw it with preaction or postaction.
Adding markings
We can annotate paths with markings, such as in Figure 8.3, where we added arrows. We can use
any available TikZ arrow in the same way. First, we must load the library by using \usetikz
library{decorations.markings}.
Then, for example, this code draws triangle arrows along a path:
\draw[decorate, decoration = {markings, mark = between positions 0 and 1 step 0.1 with {\arrow{Triangle}}}] (0,0) arc(120:60:1) arc(-120:-60:1);
You can choose any arrow you saw in Chapter 4 as the \arrow parameter. Here is how it looks:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Automotive | Engineering |
Transportation |
Whiskies Galore by Ian Buxton(41501)
Introduction to Aircraft Design (Cambridge Aerospace Series) by John P. Fielding(32869)
Small Unmanned Fixed-wing Aircraft Design by Andrew J. Keane Andras Sobester James P. Scanlan & András Sóbester & James P. Scanlan(32543)
Craft Beer for the Homebrewer by Michael Agnew(17910)
Turbulence by E. J. Noyes(7672)
The Complete Stick Figure Physics Tutorials by Allen Sarah(7109)
Kaplan MCAT General Chemistry Review by Kaplan(6556)
The Thirst by Nesbo Jo(6417)
Bad Blood by John Carreyrou(6251)
Modelling of Convective Heat and Mass Transfer in Rotating Flows by Igor V. Shevchuk(6213)
Learning SQL by Alan Beaulieu(6004)
Weapons of Math Destruction by Cathy O'Neil(5795)
Man-made Catastrophes and Risk Information Concealment by Dmitry Chernov & Didier Sornette(5606)
Digital Minimalism by Cal Newport;(5341)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5156)
iGen by Jean M. Twenge(5134)
Secrets of Antigravity Propulsion: Tesla, UFOs, and Classified Aerospace Technology by Ph.D. Paul A. Laviolette(4883)
Design of Trajectory Optimization Approach for Space Maneuver Vehicle Skip Entry Problems by Runqi Chai & Al Savvaris & Antonios Tsourdos & Senchun Chai(4820)
Electronic Devices & Circuits by Jacob Millman & Christos C. Halkias(4711)
