* pandoc markdown inside latex environment
@ 2019-01-04 3:43 jdh246-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <04f37530-2688-4a0d-b092-7d18f90d3631-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: jdh246-Re5JQEeQqe8AvxtiuMwx3w @ 2019-01-04 3:43 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1361 bytes --]
I'm using pandoc to be converted to LaTeX and in a few cases I enter raw
latex code, which is great, since pandoc just passes it through.
However, it seems that when it comes across a \begin macro, starting an
environment, pandoc thinks everything in the environment is raw LaTeX and
stops converting.
Some *italics* text.
\begin{center}
Some centered *italics* text.
\end{center}
Becomes in the LaTeX output:
Some \emph{italics} text.
\begin{center}
Some centered *italics* text.
\end{center}
When I'm hoping for is to convert the markdown inside the center
environment too, like so:
Some \emph{italics} text.
\begin{center}
Some centered \emph{italics} text.
\end{center}
Any help, suggestions for a workaround, or alternative solutions would be
highly appreciated.
- Jan
--
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/04f37530-2688-4a0d-b092-7d18f90d3631%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2093 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pandoc markdown inside latex environment
[not found] ` <04f37530-2688-4a0d-b092-7d18f90d3631-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-01-04 6:14 ` John MacFarlane
2019-01-04 6:57 ` jdh246-Re5JQEeQqe8AvxtiuMwx3w
1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2019-01-04 6:14 UTC (permalink / raw)
To: jdh246-Re5JQEeQqe8AvxtiuMwx3w, pandoc-discuss
There's an old trick here:
https://github.com/jgm/pandoc/issues/3145#issuecomment-302787889
But now that we have raw blocks, you can also do this:
```{=latex}
\begin{center}
```
*Hi* centered.
```{=latex}
\end{center}
```
jdh246-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org writes:
> I'm using pandoc to be converted to LaTeX and in a few cases I enter raw
> latex code, which is great, since pandoc just passes it through.
> However, it seems that when it comes across a \begin macro, starting an
> environment, pandoc thinks everything in the environment is raw LaTeX and
> stops converting.
>
> Some *italics* text.
> \begin{center}
> Some centered *italics* text.
> \end{center}
>
> Becomes in the LaTeX output:
>
> Some \emph{italics} text.
> \begin{center}
> Some centered *italics* text.
> \end{center}
>
> When I'm hoping for is to convert the markdown inside the center
> environment too, like so:
>
> Some \emph{italics} text.
> \begin{center}
> Some centered \emph{italics} text.
> \end{center}
>
> Any help, suggestions for a workaround, or alternative solutions would be
> highly appreciated.
>
> - Jan
>
> --
> 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/04f37530-2688-4a0d-b092-7d18f90d3631%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pandoc markdown inside latex environment
[not found] ` <04f37530-2688-4a0d-b092-7d18f90d3631-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-01-04 6:14 ` John MacFarlane
@ 2019-01-04 6:57 ` jdh246-Re5JQEeQqe8AvxtiuMwx3w
1 sibling, 0 replies; 3+ messages in thread
From: jdh246-Re5JQEeQqe8AvxtiuMwx3w @ 2019-01-04 6:57 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1570 bytes --]
Perfect, that works!
Thank you very much!
On Thursday, January 3, 2019 at 7:43:31 PM UTC-8, jdh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>
> I'm using pandoc to be converted to LaTeX and in a few cases I enter raw
> latex code, which is great, since pandoc just passes it through.
> However, it seems that when it comes across a \begin macro, starting an
> environment, pandoc thinks everything in the environment is raw LaTeX and
> stops converting.
>
> Some *italics* text.
> \begin{center}
> Some centered *italics* text.
> \end{center}
>
> Becomes in the LaTeX output:
>
> Some \emph{italics} text.
> \begin{center}
> Some centered *italics* text.
> \end{center}
>
> When I'm hoping for is to convert the markdown inside the center
> environment too, like so:
>
> Some \emph{italics} text.
> \begin{center}
> Some centered \emph{italics} text.
> \end{center}
>
> Any help, suggestions for a workaround, or alternative solutions would be
> highly appreciated.
>
> - Jan
>
--
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/1f718f07-3b7d-41d9-9826-c31aae39b72a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2448 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-01-04 6:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-04 3:43 pandoc markdown inside latex environment jdh246-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <04f37530-2688-4a0d-b092-7d18f90d3631-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-01-04 6:14 ` John MacFarlane
2019-01-04 6:57 ` jdh246-Re5JQEeQqe8AvxtiuMwx3w
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).