You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/bin/pandoc-theoremnos", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/pandoc_theoremnos.py", line 488, in main
altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),
File "/usr/local/lib/python3.8/dist-packages/pandoc_theoremnos.py", line 488, in <lambda>
altered = functools.reduce(lambda x, action: walk(x, action, fmt, meta),
File "/usr/local/lib/python3.8/dist-packages/pandocfilters.py", line 110, in walk
res = action(item['t'],
File "/usr/local/lib/python3.8/dist-packages/pandocxnos/core.py", line 856, in process_refs
_process_refs(value[-5], pattern, labels)
File "/usr/local/lib/python3.8/dist-packages/pandocxnos/core.py", line 92, in wrapper
ret = func(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pandocxnos/core.py", line 758, in _process_refs
if v['t'] == 'Cite' and len(v['c']) == 2:
TypeError: 'NoneType' object is not subscriptable
re.compile('(asum|prop|lemma):[\\w/-]*')
Error running filter pandoc-theoremnos:
Filter returned error status 1
My example markdown is as follows:
---title: "ABC"author: "XYZ"date: \todaygeometry: margin=1infontsize: 12ptfontfamily: timeslink-citations: trueabstract: "Example."header-includes:
- \usepackage{setspace}
- \doublespacing
- \usepackage{floatpag}- \usepackage{cleveref}
- \usepackage[utf8]{inputenc}
- \floatpagestyle{empty}
- \usepackage[small,compact]{titlesec}theoremnos-cleveref: Truetheoremnos-names:
- id: asumname: Assumption
- id: propname: Proposition
- id: lemmaname: Lemma---
a b c
--- --- ---
1 2 3
4 5 6
: Caption {#tbl:label}
[My Theorem]{#lemma:id}
: This is my theorem.
[123]{#lemma:n-derivative}
: In equilibrium, $n^*$ can be expressed as:
$$n^*=\frac{b-\frac{4 (\beta D_H+(1-\beta)D_L)^2}{(\beta D_H^2+(1-\beta)D_L^2)+4/q}}{2 t}$$@lemma:n-derivative@tbl:label@lemma:id
The problem is with the table reference. That seems to be the one that is conflicting with this filter. Removing the table will resolve the issue, but it is currently the only way to reference a table AFAIK: http://lierdakil.github.io/pandoc-crossref/#table-labels
The text was updated successfully, but these errors were encountered:
Got the following error when running:
My example markdown is as follows:
The problem is with the table reference. That seems to be the one that is conflicting with this filter. Removing the table will resolve the issue, but it is currently the only way to reference a table AFAIK: http://lierdakil.github.io/pandoc-crossref/#table-labels
The text was updated successfully, but these errors were encountered: