public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Error using pandoc-tablenos and pandoc-fignos
@ 2016-11-15  3:05 Vikas Rawal
       [not found] ` <176C3C0D-F024-4DB0-9D3E-0766F4439C57-gY6uWiqvZ+vta4EC/59zMGD2FQJk+8+b@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Vikas Rawal @ 2016-11-15  3:05 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I have pandoc 1.18 installed using homebrew. I installed pandoc-tablenos and pandoc-fignos using pip3 since these are not available via homebrew.

But I get these errors when I try to use them. They look similar. Could someone point to what may be the problem?

Vikas

pandoc --filter pandoc-tablenos outline.tex -o outline.docx
Traceback (most recent call last):
  File "/usr/local/bin/pandoc-tablenos", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/site-packages/pandoc_tablenos.py", line 356, in main
    altered)
  File "/usr/local/lib/python3.5/site-packages/pandoc_tablenos.py", line 354, in <lambda>
    altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),
  File "/usr/local/lib/python3.5/site-packages/pandocfilters.py", line 111, in walk
    item['c'] if 'c' in item else None, format, meta)
  File "/usr/local/lib/python3.5/site-packages/pandocxnos/core.py", line 615, in process_refs
    _process_refs(value, labels)
  File "/usr/local/lib/python3.5/site-packages/pandocxnos/core.py", line 119, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/pandocxnos/core.py", line 570, in _process_refs
    _get_label(v['t'], v['c']) in labels:
TypeError: unhashable type: 'list'
pandoc: Error running filter pandoc-tablenos
Filter returned error status 1


pandoc --filter pandoc-fignos outline.tex -o outline.docx
Traceback (most recent call last):
  File "/usr/local/bin/pandoc-fignos", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/site-packages/pandoc_fignos.py", line 377, in main
    altered)
  File "/usr/local/lib/python3.5/site-packages/pandoc_fignos.py", line 375, in <lambda>
    altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),
  File "/usr/local/lib/python3.5/site-packages/pandocfilters.py", line 111, in walk
    item['c'] if 'c' in item else None, format, meta)
  File "/usr/local/lib/python3.5/site-packages/pandocxnos/core.py", line 615, in process_refs
    _process_refs(value, labels)
  File "/usr/local/lib/python3.5/site-packages/pandocxnos/core.py", line 119, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/pandocxnos/core.py", line 570, in _process_refs
    _get_label(v['t'], v['c']) in labels:
TypeError: unhashable type: 'list'
pandoc: Error running filter pandoc-fignos
Filter returned error status 1


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

* Re: Error using pandoc-tablenos and pandoc-fignos
       [not found] ` <176C3C0D-F024-4DB0-9D3E-0766F4439C57-gY6uWiqvZ+vta4EC/59zMGD2FQJk+8+b@public.gmane.org>
@ 2016-11-15  3:14   ` Vikas Rawal
       [not found]     ` <94AA884F-300B-4E7E-85B8-8FDFFA9A5047-gY6uWiqvZ+vta4EC/59zMGD2FQJk+8+b@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Vikas Rawal @ 2016-11-15  3:14 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


> On 15-Nov-2016, at 8:35 am, Vikas Rawal <vikaslists-gY6uWiqvZ+vta4EC/59zMGD2FQJk+8+b@public.gmane.org> wrote:
> 
> I have pandoc 1.18 installed using homebrew. I installed pandoc-tablenos and pandoc-fignos using pip3 since these are not available via homebrew.
> 
> But I get these errors when I try to use them. They look similar. Could someone point to what may be the problem?
> 
> Vikas

Tom just explained that these filters are meant to work only with markdown input :(

Anything like this for TeX documents?

Vikas



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

* Re: Error using pandoc-tablenos and pandoc-fignos
       [not found]     ` <94AA884F-300B-4E7E-85B8-8FDFFA9A5047-gY6uWiqvZ+vta4EC/59zMGD2FQJk+8+b@public.gmane.org>
@ 2016-11-15 10:29       ` Kolen Cheung
  0 siblings, 0 replies; 3+ messages in thread
From: Kolen Cheung @ 2016-11-15 10:29 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]

Probably not. If you convert from tex to docx, you will be limited to what the internal of pandoc offers. The filters you are looking for add functionality usually by additional syntax defined and processed by the intermediate filter. So if you throw in a general tex, it won't work.

May be you can talk more what's the expectation and needs from tex to docx. Chances are either you need to lower the expectation or looking for other tools.

-- 
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/8d8a00da-a6c3-4d73-8b64-f0ec1e893d6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

end of thread, other threads:[~2016-11-15 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-15  3:05 Error using pandoc-tablenos and pandoc-fignos Vikas Rawal
     [not found] ` <176C3C0D-F024-4DB0-9D3E-0766F4439C57-gY6uWiqvZ+vta4EC/59zMGD2FQJk+8+b@public.gmane.org>
2016-11-15  3:14   ` Vikas Rawal
     [not found]     ` <94AA884F-300B-4E7E-85B8-8FDFFA9A5047-gY6uWiqvZ+vta4EC/59zMGD2FQJk+8+b@public.gmane.org>
2016-11-15 10:29       ` Kolen Cheung

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