public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* `xparse` instructions and `enumitem` formatting appear to be lost on `pandoc` (cross post)
@ 2021-05-12 19:45 erw1
  0 siblings, 0 replies; only message in thread
From: erw1 @ 2021-05-12 19:45 UTC (permalink / raw)
  To: pandoc-discuss


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

In cased this post at tex.stackechange 
<https://tex.stackexchange.com/questions/596425/xparse-instructions-and-enumitem-formatting-appear-to-be-lost-on-pandoc> 
was missed, cross-post:

`xparse` instructions and `enumitem` formatting appear to be lost on pandoc. 
It's been pointed out conversion from LaTeX to TeX is not possible 
<https://tex.stackexchange.com/questions/3174/latex-macro-expander>, so 
what are the options?

```
\documentclass{article} 
\usepackage{enumitem} 
\usepackage{xparse} 
\newlist{foo}{enumerate*}{1} 
\setlist[foo]{label=\arabic*), itemjoin={{; }}} 
\ExplSyntaxOn 
\tl_set:Nn\g__erw_foo_tl{\item \textbf{a}\item b}
\NewDocumentCommand\Foo{}{\tl_use:N\g__erw_foo_tl} 
\NewDocumentCommand\Bar{}{\item \textbf{c}\item d} 
\def\Qux{\item \textbf{e}\item f} 
\ExplSyntaxOff 
\begin{document} 
\begin{foo} \Foo\Bar\Qux \end{foo} 
\end{document}
```
which produces:
[image: Screenshot from 2021-05-10 00-57-35.png]
Whereas,
```
$ pandoc -f latex -t plain jobname.tex 
E 
f
```
fails to render the "inline list" and `{{; }}` features. It's been 
suggested to do :
```
make4ht LaTeX-292.tex && html2text jobname.html
```

but that comes at a price: `\textbf` ignored, and `Â` inserted at the 
beginning of each item. 


-- 
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/28c205b8-5f80-4e79-bb56-3f96d2844c6dn%40googlegroups.com.

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

[-- Attachment #2: Screenshot from 2021-05-10 00-57-35.png --]
[-- Type: image/png, Size: 3349 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-12 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 19:45 `xparse` instructions and `enumitem` formatting appear to be lost on `pandoc` (cross post) erw1

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