HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

Change css style of only certain cells? #1464

Closed JRChapman1 closed 3 years ago

JRChapman1 commented 3 years ago

I almost exclusively use LaTeX cells. I'd like to be able to give some of my LaTeX cells a border, but not all of them.

Is this possible?

It would be great if I could define my own cell type, say 'LaTeX2', which had slightly different css associated with it.

GastroGeek commented 3 years ago

@JRChapman1

Fire up the 'styles' options for the 'preview' and customize the latex css.

Screenshot 2021-02-07 at 14 42 05
JRChapman1 commented 3 years ago

@JRChapman1

Fire up the 'styles' options for the 'preview' and customize the latex css.

Screenshot 2021-02-07 at 14 42 05

Thanks for the response. However, I was hoping to add a border to only some latex cells, not all latex cells.

GastroGeek commented 3 years ago

@JRChapman1

Seems you can just wrap your latex in markdown with HTML? and then style the preview css as desired...

<div class="awesome">

$\LARGE\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$

</div>
JRChapman1 commented 3 years ago

@JRChapman1

Seems you can just wrap your latex in markdown with HTML? and then style the preview css as desired...

<div class="awesome">

$\LARGE\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$

</div>

Ahh, thanks so much! I never looked at the markdown cells so was unaware that this was an option.