public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Some LaTeX command is escaped while others can pass through. Can you help to suggest the criteria ?
@ 2019-06-17 15:15 J
       [not found] ` <2e436582-e970-4acb-b4d4-af8e47190d2a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: J @ 2019-06-17 15:15 UTC (permalink / raw)
  To: pandoc-discuss


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

---
header-includes:
    - \usepackage{xcolor}
    - \usepackage[framemethod=tikz]{mdframed}
---

\begingroup\color{red}

As shown in [@Tbl:isotope_abundance], 

\endgroup



---
header-includes:
    - \usepackage{xcolor}
    - \usepackage[framemethod=tikz]{mdframed}
---

\begin{mdframed}[hidealllines=true, backgroundcolor=blue!20]

As shown in [@Tbl:isotope_abundance], 

\end{mdframed}


The two minimum .md files shown above, where foreground color and 
background color are applied, are converted to PDF via XeLaTeX. However, 
the first one works, while the second one does not: the \begin command is 
escaped as \textbackslash. .... 

Furthermore, when "[@Tbl:isotope_abundance]" is modified to be "[@Tbl:xx]", 
both files works, which is really puzzling.... 

Could you help to comment how to let \begin{mdframed} pass through no 
matter what is following ? Furthermore, could you help to comment on the 
criteria of parsing LaTeX ?

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2e436582-e970-4acb-b4d4-af8e47190d2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: Some LaTeX command is escaped while others can pass through. Can you help to suggest the criteria ?
       [not found] ` <2e436582-e970-4acb-b4d4-af8e47190d2a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-06-17 15:20   ` J
       [not found]     ` <00211365-f158-4287-9a2a-523d21235ca2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: J @ 2019-06-17 15:20 UTC (permalink / raw)
  To: pandoc-discuss


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

> Furthermore, when "[@Tbl:isotope_abundance]" is modified to be "[@Tbl:xx]", 
both files works, which is really puzzling.... 

Sorry ! This is a false statement !

---
header-includes:
    - \usepackage{xcolor}
    - \usepackage[framemethod=tikz]{mdframed}
---

\begin{mdframed}[hidealllines=true, backgroundcolor=blue!20]

As shown in [@Tbl:xx], 

\end{mdframed}

With the modified version, although the background color is shown, the 
table reference is not recognized.... However, the \begingroup\color file 
works great. Could you help to comment the reason and the workaround ?

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/00211365-f158-4287-9a2a-523d21235ca2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: Some LaTeX command is escaped while others can pass through. Can you help to suggest the criteria ?
       [not found]     ` <00211365-f158-4287-9a2a-523d21235ca2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-06-19 14:55       ` J
  0 siblings, 0 replies; 3+ messages in thread
From: J @ 2019-06-19 14:55 UTC (permalink / raw)
  To: pandoc-discuss


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

The problem is solved based on 
http://pandoc.org/MANUAL.html#extension-raw_attribute :D

---
header-includes:
    - \usepackage{xcolor}
    - \usepackage[framemethod=tikz]{mdframed}
---


```{=latex}
\begin{mdframed}[hidealllines=true, backgroundcolor=blue!20]
```


As shown in [@Tbl:isotope_abundance], 


```{=latex}
\end{mdframed}
```




On Monday, June 17, 2019 at 11:20:52 PM UTC+8, J wrote:
>
> > Furthermore, when "[@Tbl:isotope_abundance]" is modified to be "
> [@Tbl:xx]", both files works, which is really puzzling.... 
>
> Sorry ! This is a false statement !
>
> ---
> header-includes:
>     - \usepackage{xcolor}
>     - \usepackage[framemethod=tikz]{mdframed}
> ---
>
> \begin{mdframed}[hidealllines=true, backgroundcolor=blue!20]
>
> As shown in [@Tbl:xx], 
>
> \end{mdframed}
>
> With the modified version, although the background color is shown, the 
> table reference is not recognized.... However, the \begingroup\color file 
> works great. Could you help to comment the reason and the workaround ?
>
>

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/bfe6c7c9-366d-41de-849a-ceccf4bc1491%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2019-06-19 14:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-17 15:15 Some LaTeX command is escaped while others can pass through. Can you help to suggest the criteria ? J
     [not found] ` <2e436582-e970-4acb-b4d4-af8e47190d2a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-06-17 15:20   ` J
     [not found]     ` <00211365-f158-4287-9a2a-523d21235ca2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-06-19 14:55       ` J

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