Comments (2)
#let mycontent(show-image: true) = cetz.canvas(
{
if show-image {
content((0, 0), [#image("assets/decision-tree_1.png")]) // Draw a circle and place its "west" anchor at the origin.
};
circle((0, 0), anchor: "west")
},
)
//First way
#slide[
#alternatives[#mycontent(show-image: true)][#mycontent(show-image: false)]
]
//Second way that might be too clever
#range(2).map(i =>slide[#mycontent(show-image: i == 0)]).join()
Touying allows you to insert pauses in CetZ diagrams
https://github.com/touying-typ/touying
from polylux.
Oh, very cool, thanks for the idea! I bet I could adapt that with a for loop to add a list of images...
And thanks for the link to touying - I see that it's also got pinit support, which I'm very keen on!
from polylux.
Related Issues (20)
- Order of code-lines affects content with given subslide-numbers HOT 5
- Higher-level functions for sequential reveal of lists with multiple levels fail HOT 5
- Add a way to hide the slide number? And an option to making some slides unnumbered (including section slides)? HOT 4
- Dynamic slides and footnotes HOT 1
- Decouple introspection and update
- polylux2pdfpc output format wrong
- Adding subsection in the outline ?
- Overlay images or absolute positioning? HOT 4
- [FR] A unified way to adjust colors HOT 2
- Hannover-like sidebar
- [BUG] line-by-line breaks list numbering HOT 1
- [Feature Request] Speaker notes on the right side of the slide
- Footnote numbering increments with subslides HOT 10
- How do I display `side-by-side` content top-aligned?
- Speaker notes for title page.
- Produce speaker notes PDF like Beamer
- University theme ignores section name if title is not set
- Two typos in `demo.typ`
- [Bug] `metropolis` theme doesn't allow us to align slide body
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polylux.