Marp - cunhapaulo/ReferenceCard GitHub Wiki

Important Notes for Development

My Marpstyle Github repository

Font Embeding

Read this page to gain some insight on how to embed fonts in a site ou presentation:

Embed Fonts

Special example in GitHub.

This is an full fledged example of MARP, created by its creator, to ilustrate its use within the GitHub web environement.

Click here

Special commands

One special example

image

<!----------------- [ SLIDE ] ------------------->

![bg left:40% vertical saturate:1.2](https://a-z-animals.com/media/2023/01/iStock-509311994-1024x683.jpg)
![bg  saturate:1.2](https://d1csarkz8obe9u.cloudfront.net/posterpreviews/usa-flag-poster-template-design-f2805e015229a0455fb32b3331291440_screen.jpg?ts=1587406538)

# Mecanismos de Controle Social

* **China**: Reforço comportamental pela bonificação social

* **EUA**: Monitoramento radical da internet (Snowden)
---

Image Filters

Image filters You can apply CSS filters to image through markdown image syntax. Include (:(,...)) to the alternate text of image.

Filters can use in the inline image and the advanced backgrounds.

Markdown w/ arguments
![blur]() ![blur:3px]()
![brightness]() ![brightness:1.3]()
![contrast]() ![contrast:120%]()
![drop-shadow]() ![drop-shadow:0,5px,10px,rgba(0,0,0,.4)]()
![grayscale]() ![grayscale:1]()
![hue-rotate]() ![hue-rotate:180deg]()
![invert]() ![invert:100%]()
![opacity]() ![opacity:.5]()
![saturate]() ![saturate:1.2]()
![sepia]() ![sepia:1.0]()

Local Directives

Name Description
paginate Show page number on the slide if you set true.
header Specify the content of slide header.
footer Specify the content of slide footer.
class Specify HTML class of slide’s  element.
backgroundColor Setting background-color style of slide.
backgroundImage Setting background-image style of slide.
backgroundPosition Setting background-position style of slide.
backgroundRepeat Setting background-repeat style of slide.
backgroundSize Setting background-size style of slide.
color Setting color style of slide.

Directives

Stretch text across the line.

## <!-- fit --> TEXT TO BE STRETCHED

image

Background

![bg contain](https://example.com/background.jpg)
Keyword Description Example
cover Scale image to fill the slide. (Default) ![bg cover](image.jpg)
contain Scale image to fit the slide. ![bg contain](image.jpg)
fit Alias to contain, compatible with Deckset. ![bg fit](image.jpg)
auto Not scale image, and use the original size. ![bg auto](image.jpg)
x% Specify the scaling factor by percentage value. ![bg 150%](image.jpg)
---

<!-- _backgroundImage: "linear-gradient(to bottom, #000010, #00b8f3)" -->

### <!--fit--> :ok_hand:

---

Divisor de Slides

<!-- headingDivider: 2 -->

# 1st page

The content of 1st page

## 2nd page

### The content of 2nd page

Hello, world!

# 3rd page

Listas fragmentadas sem marcadores (bullets)

<div data-marpit-fragment>

![h:400](https://www.freebsdnews.com/wp-content/uploads/bsdbike-768x890.jpg)

</div>

Colunas

---
<!-- 
---- [ ] ----------------------- [ SLIDE ] ------------------------- [ ] ----
-->

# 

<div class="columns">
<div>


</div>
<div>



</div>
</div>

DOIS SLIDES COM LEGENDA

image

<!-- _footer: "" -->

<center>
<div class="columns">
<div>

![h:570 drop-shadow:0,5px,10px,rgba(0,0,0,.4) ](./img/italia_etnica.png) 

<figcaption>
<b>Figura 1</b>: Grupos étnicos da Itália em 400 a.C.
</figcaption>

</div>
<div>

![h:570 drop-shadow:0,5px,10px,rgba(0,0,0,.4)](./img/mapa_italia-1494.webp)

<figcaption>
<b>Figura 2</b>: Itália em 1494.
</figcaption>

</div>
</div>

</center>

SLIDES TRANSITIONS

Example presentation with transitions

Example slide

How to use transitions in slides:

Template

<!-- transition: cover -->

---
transition: fade
---

# Fade transition

---

<!-- transition: cover -->

Changed the kind of transition to `cover`.

---

<!-- _transition: none -->

Disabled transition for this slide.

---

Got back cover transition.

Buit-in types of transitions

  • clockwise
  • counterclockwise
  • cover
  • coverflow
  • cube
  • cylinder
  • diamond
  • drop
  • explode
  • fade
  • fade-out
  • fall
  • flip
  • glow
  • implode
  • in-out
  • iris-in
  • iris-out
  • melt
  • overlap
  • pivot
  • pull
  • push
  • reveal
  • rotate
  • slide
  • star
  • swap
  • swipe
  • swoosh
  • wipe
  • wiper
  • zoom

Custom transitions

How to make custom transitions

All transition effects

All Transition effects

Slides showcase

⚠️ **GitHub.com Fallback** ⚠️