emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yuchen Guo <Guoyuc@students.uni-marburg.de>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Faulty SVG width in default HTML export style
Date: Tue, 29 Mar 2022 16:48:05 +0200	[thread overview]
Message-ID: <87sfr0vkzl.fsf@students.uni-marburg.de> (raw)
In-Reply-To: <m2h77h3lvn.fsf@me.com>


Rudolf Adamkovič <salutis@me.com> writes:

> I now wonder if anyone knows how to fix the misaligned baselines of
> inline LaTeX fragments (as shown in the second screenshot).

I think we can solve this issue by looking at how Wikipedia does the
alignment of text and LaTeX snippets.  A cursory look at

  https://en.wikipedia.org/wiki/Normal_distribution

... shows that they use something like this:

  <img src="..." style="vertical-align: -0.838ex; width:5.663ex; height:2.676ex;">

The alignment parameters are also dependent on the snippet itself.

> If we could somehow fix that, MathJax-less export
> could become usable in practice *and* it would also unlock full LaTeX
> power, including TikZ and beyond!  (It would also put Emacs ahead of the
> pack in the world of LaTeX-capable editors because virtually every other
> modern editor, including the proprietary ones, can just use MathJax.)

For me, Emacs using MathJax as default came across as an unpleasant
surprise: any person aware of the free/libre software movement knows
that one should never allow Javascript to run in their browser: (ref
https://www.gnu.org/philosophy/javascript-trap.html ).

MathJax is not even compatible with LibreJS and loads script from
a bunch of 3rd-party servers like Cloudflare.  This enables those 3rd
parties to track visitors to your website.

Also, by loading external scripts, author of an website essentially puts
the website and its visitors under the mercy of the script: the script,
if malicious, can just sabotage the entire website.

Sadly it seems that there aren't enough people using Orgmode with SVG:
this CSS bug is at least present since 2020, according to git logs.
Rendering SVG images is also painfully slow: I can export the document
as PDF much faster than as HTML+SVG.  Then there is the alignment issue.

> @me.com

Unrelated but I think its best to not use Apple dis-services: it has a
record of kowtowing to government requests such as moving email account
to surveillance-friendly regimes:
https://en.wikipedia.org/wiki/ICloud#China

Not to mention its utter contempt of Software Freedom such as forbidding
GNU GPL on their program distribution platform.
-- 
Yuchen Guo


  reply	other threads:[~2022-03-29 15:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-03  8:11 Faulty SVG width in default HTML export style Yuchen Guo
2022-03-28 12:36 ` Bastien
2022-03-28 19:41 ` Rudolf Adamkovič
2022-03-29 14:48   ` Yuchen Guo [this message]
2022-04-03 16:34     ` Rudolf Adamkovič
2022-04-04  2:57       ` Ihor Radchenko
2022-04-04  4:38         ` Yuchen Guo
2022-04-04  5:20           ` Ihor Radchenko
2022-04-04  7:24             ` Ethical problems with MathJax as default - Was: Faulty SVG width Yuchen Guo
2022-04-04  8:00               ` Ihor Radchenko
2022-04-06  4:12                 ` Richard Stallman
2022-04-06  4:12               ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfr0vkzl.fsf@students.uni-marburg.de \
    --to=guoyuc@students.uni-marburg.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=salutis@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).