public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: About using dash line in markdown file
Date: Fri, 1 Dec 2023 10:11:22 -0800	[thread overview]
Message-ID: <F91B77AC-E695-49EE-9566-929886E26039@gmail.com> (raw)
In-Reply-To: <7c6d18bf-100f-4305-9cce-2371f7639937n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

TeX math is parsed by the texmath library (jgm/texmath on GitHub)

You could submit an issue there. Currently there is no support for lines in matrices.

Actually, there's an open PR that may give you what you need.
https://github.com/jgm/texmath/pull/168
Unfortunately it was never completed, even though the changes needed are minor.


> On Nov 26, 2023, at 10:58 PM, user107 <s794115478-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 
> I'm using LaTeX in a markdown file, and I try to use dash line in a martix, but it seems pandoc 3.1.9 can not recognize `:` and `\hdashline`
> 
> the Pandoc command is like this: `pandoc --mathml test.md -o test.html`
> 
> and the LaTeX code is:
> 
> $$
> \begin{array}{c|ccc:c}
> X/Y & -1    & 0     & 1     &       \\ \hline
> -1  & 0.125 & 0.125 & 0.125 & 0.375 \\
> 0   & 0.125 & 0     & 0.125 & 0.25  \\
> 1   & 0.125 & 0.125 & 0.125 & 0.375 \\ \hdashline
>     & 0.375 & 0.25  & 0.375 & \rho_{XY}
> \end{array}
> $$
> 
> and the error is:
> 
> ```
>   unexpected ":"
>   expecting letter, "|", "*", white space or "}"
>   
>   unexpected control sequence \hdashline
>   expecting "%", "\\label", "\\tag", "\\nonumber", whitespace or "\\allowbreak"
> ```
> my expected output is:
> 
> <screenshot145728.jpg>
> 
> what can I do to fix that?
> 
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7c6d18bf-100f-4305-9cce-2371f7639937n%40googlegroups.com.
> <screenshot145728.jpg>


      parent reply	other threads:[~2023-12-01 18:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27  6:58 user107
     [not found] ` <7c6d18bf-100f-4305-9cce-2371f7639937n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-12-01 18:11   ` John MacFarlane [this message]

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

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

  git send-email \
    --in-reply-to=F91B77AC-E695-49EE-9566-929886E26039@gmail.com \
    --to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /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.
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 NNTP newsgroup(s).