Skip to content

Commit 9701eee

Browse files
committed
same cell
1 parent 4493898 commit 9701eee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/src/01-example.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
by default the Figure is created to be A3 format 420x297 px
66

7-
```@example
7+
```@example main
88
using ThesisArt
99
using CairoMakie
1010
1111
nothing #hide
1212
```
1313

14-
```@example
14+
```@example main
1515
1616
backgroundcolor = "#333"
1717
f,ax_main = ThesisArt.newfigure(;backgroundcolor)
@@ -22,15 +22,15 @@ nothing #hide
2222

2323
I cant share the pdf right now, so we'll use a dummy text
2424

25-
```@example
25+
```@example main
2626
# t_text = import_pdf("file.pdf",pages=[2 4:24...]);
2727
t_text = text = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
2828
nothing #hide
2929
```
3030

3131
## Create the title
3232

33-
```@example
33+
```@example main
3434
(h_title,h_nameyear),ax_title = add_title!(f,"My Awesome Thesis \n Title","Benedikt Ehinger","August 2024")
3535
nothing #hide
3636
```
@@ -39,21 +39,21 @@ nothing #hide
3939

4040
For this example we'll use a simple BezierPath / Svg String
4141

42-
```@example
42+
```@example main
4343
4444
path_bat = CairoMakie.BezierPath("M96.84 141.998c-4.947-23.457-20.359-32.211-25.862-13.887-11.822-22.963-37.961-16.135-22.041 6.289-3.005-1.295-5.872-2.682-8.538-4.191-8.646-5.318-15.259-11.314-19.774-17.586-3.237-5.07-4.994-10.541-4.994-16.229 0-19.774 21.115-36.758 50.861-43.694.446-.078.909-.154 1.372-.231-22.657 30.039 9.386 50.985 15.258 24.645l2.528-24.367 5.086 6.52H103.205l5.07-6.52 2.543 24.367c5.842 26.278 37.746 5.502 15.414-24.429 29.777 6.951 50.891 23.936 50.891 43.709 0 15.136-12.406 28.651-31.609 37.267 14.842-21.822-10.867-28.266-22.549-5.549-5.502-18.325-21.147-9.341-26.125 13.886")
4545
nothing #hide
4646
```
4747

4848
## Plot the text on path
4949

50-
```@example
50+
```@example main
5151
textpath = ThesisArt.TextOnPath(t_text,path_bat)
5252
text!(ax_main,0.0,0,text=textpath,fontcolor = :white,fontsize=10)
5353
```
5454

5555
## The final thesis art
5656

57-
```@example
57+
```@example main
5858
f
5959
```

0 commit comments

Comments
 (0)