BooksHTML / mathbook-assets

Styles and scripts for the Mathbook platform.
0 stars 3 forks source link

CSS for TeX/LaTeX logos #72

Closed rbeezer closed 8 years ago

rbeezer commented 8 years ago

Dear David,

I've got a small side project to not load MathJaX if we don't have to. Removing the two logos as math elements will help. Can you put this CSS in the add-on.css for now? Making an issue so it is here for later. Works amazingly well. Rename the "A" and "E" classes if you think they are a bad idea.

/* Adapted from William Hammond (attributed to David Carlisle) */
/* "mathjax-users" Google Group, 2015-12-27 */

.latex-logo {font-family: "PT Serif", "Times New Roman", Times, serif;}

.latex-logo .A {font-size: 75%; text-transform: uppercase; vertical-align: .5ex;
         margin-left: -.48em; margin-right: -.2em;}

.latex-logo .E {vertical-align:-.5ex; text-transform: uppercase;
         margin-left: -.18em; margin-right: -.12em}

Usage:

<span class="latex-logo">L<span class="A">a</span>T<span class="E">e</span>X</span>
davidfarmer commented 8 years ago

Done, but I added a .mathbook-content selector in front of each.

On Fri, 10 Jun 2016, Rob Beezer wrote:

Dear David,

I've got a small side project to not load MathJaX if we don't have to. Removing the two logos as math elements will help. Can you put this CSS in the add-on.css for now? Making an issue so it is here for later. Works amazingly well. Rename the "A" and "E" classes if you think they are a bad idea.

/* Adapted from William Hammond (attributed to David Carlisle) / / "mathjax-users" Google Group, 2015-12-27 */

.latex-logo {font-family: "PT Serif", "Times New Roman", Times, serif;}

.latex-logo .A {font-size: 75%; text-transform: uppercase; vertical-align: .5ex; margin-left: -.48em; margin-right: -.2em;}

.latex-logo .E {vertical-align:-.5ex; text-transform: uppercase; margin-left: -.18em; margin-right: -.12em}

Usage:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LPh03PnNy2WHunbZ5HrOcaidEDzbks5qKaCEgaJpZM4IzKgJ.gif]

rbeezer commented 8 years ago

Perfect. Thanks.

Yes, tidy up any CSS things I forget or get wrong.

On 06/10/2016 10:53 AM, davidfarmer wrote:

Done, but I added a .mathbook-content selector in front of each.

On Fri, 10 Jun 2016, Rob Beezer wrote:

Dear David,

I've got a small side project to not load MathJaX if we don't have to. Removing the two logos as math elements will help. Can you put this CSS in the add-on.css for now? Making an issue so it is here for later. Works amazingly well. Rename the "A" and "E" classes if you think they are a bad idea.

/* Adapted from William Hammond (attributed to David Carlisle) / / "mathjax-users" Google Group, 2015-12-27 */

.latex-logo {font-family: "PT Serif", "Times New Roman", Times, serif;}

.latex-logo .A {font-size: 75%; text-transform: uppercase; vertical-align: .5ex; margin-left: -.48em; margin-right: -.2em;}

.latex-logo .E {vertical-align:-.5ex; text-transform: uppercase; margin-left: -.18em; margin-right: -.12em}

Usage:

X

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LPh03PnNy2WHunbZ5HrOcaidEDzbks5qKaCEgaJpZM4IzKgJ.gif]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BooksHTML/mathbook-assets/issues/72#issuecomment-225250697, or mute the thread https://github.com/notifications/unsubscribe/ABy2cgNuWc1EwhjKOINLUyM_mg92j9Wrks5qKaSRgaJpZM4IzKgJ.

davidfarmer commented 8 years ago

Apparently this was fixed in June.