public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: user107 <s794115478-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: About using dash line in markdown file
Date: Sun, 26 Nov 2023 22:58:14 -0800 (PST)	[thread overview]
Message-ID: <7c6d18bf-100f-4305-9cce-2371f7639937n@googlegroups.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1207 bytes --]

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:

[image: 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.

[-- Attachment #1.2: Type: text/html, Size: 2606 bytes --]

[-- Attachment #2: screenshot145728.jpg --]
[-- Type: image/jpeg, Size: 19841 bytes --]

             reply	other threads:[~2023-11-27  6:58 UTC|newest]

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

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=7c6d18bf-100f-4305-9cce-2371f7639937n@googlegroups.com \
    --to=s794115478-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).