emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Fix export of parameterized LaTeX environments to HTML/SVG
@ 2024-06-30  8:22 Rudolf Adamkovič
  2024-06-30 10:58 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Rudolf Adamkovič @ 2024-06-30  8:22 UTC (permalink / raw)
  To: emacs-orgmode

The Org manual states that LaTeX fragments are

  Environments of any kind. The only requirement is that the ‘\begin’
  statement appears on a new line, preceded by only whitespace.

yet, the Org document

  #+OPTIONS: tex:dvisvgm

  \begin{array}{cc|c}
    P & Q & P \iff Q \\
    \hline
    0 & 0 & 1 \\
    0 & 1 & 0 \\
    1 & 0 & 0 \\
    1 & 1 & 1 \\
  \end{array}

exports to HTML with

  cc|c

visible (and a broken array).

More generally, LaTeX environments

  \begin{ENVIRONMENT}{OPTIONS}

that include some

  {OPTIONS}

do not export to HTML well.

Rudy
-- 
“Those who cannot remember the past are condemned to repeat it.”  ---
George Santayana, Life of Reason: Reason in Common Sense, 1905

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fix export of parameterized LaTeX environments to HTML/SVG
  2024-06-30  8:22 Fix export of parameterized LaTeX environments to HTML/SVG Rudolf Adamkovič
@ 2024-06-30 10:58 ` Ihor Radchenko
  2024-06-30 20:19   ` Rudolf Adamkovič
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2024-06-30 10:58 UTC (permalink / raw)
  To: Rudolf Adamkovič; +Cc: emacs-orgmode

Rudolf Adamkovič <rudolf@adamkovic.org> writes:

> The Org manual states that LaTeX fragments are
>
>   Environments of any kind. The only requirement is that the ‘\begin’
>   statement appears on a new line, preceded by only whitespace.
>
> yet, the Org document
>
>   #+OPTIONS: tex:dvisvgm
>
>   \begin{array}{cc|c}
>     P & Q & P \iff Q \\
>     \hline
>     0 & 0 & 1 \\
>     0 & 1 & 0 \\
>     1 & 0 & 0 \\
>     1 & 1 & 1 \\
>   \end{array}
>
> exports to HTML with
>
>   cc|c

Duplicate of https://list.orgmode.org/orgmode/875y46xyr8.fsf@localhost/

Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fix export of parameterized LaTeX environments to HTML/SVG
  2024-06-30 10:58 ` Ihor Radchenko
@ 2024-06-30 20:19   ` Rudolf Adamkovič
  0 siblings, 0 replies; 3+ messages in thread
From: Rudolf Adamkovič @ 2024-06-30 20:19 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Ihor Radchenko <yantar92@posteo.net> writes:

> Duplicate of https://list.orgmode.org/orgmode/875y46xyr8.fsf@localhost/
>
> Canceled.

Well, sort of.  This particular bug is about parameterized environments,
not TikZ per se, but I get where you are coming from, looking at the bug
as a core developer, from below.

Fortunately, unlike with TikZ, a simple workaround this particular bug
exists, namely to wrap the parameterized environment within

  \begin{equation*} and \end{equation*},

so that the outermost environment, the one Org cares about, has no
parameters.  Thus, I will do that in the meantime, until the new LaTeX
subsystem is merged.

Rudy
-- 
"All you have to do is write one true sentence.  Write the truest
sentence that you know."  --- Ernest Miller Hemingway (1899-1961)

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-30 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-30  8:22 Fix export of parameterized LaTeX environments to HTML/SVG Rudolf Adamkovič
2024-06-30 10:58 ` Ihor Radchenko
2024-06-30 20:19   ` Rudolf Adamkovič

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).