Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX Error: Something's wrong--perhaps a missing \item. #64

Open
SamuelMarks opened this issue Aug 18, 2020 · 4 comments
Open

LaTeX Error: Something's wrong--perhaps a missing \item. #64

SamuelMarks opened this issue Aug 18, 2020 · 4 comments

Comments

@SamuelMarks
Copy link

Snippet that was generated:

\textbf{REFERENCES}\begin{enumerate}[1]


\item[1] Schacknow PN, Samples JR. \textit{The glaucoma book a practical, evidence-based approach to patient care}. New York: Springer, 2010.

\end{enumerate}

(obviously I'm replacing this whole reference list with proper bibtex, but still thought to tell you this bug)

@gimsieke
Copy link
Contributor

Thanks for reporting it. May we see the docx input? You can send it to letexml at le-tex dot de if it contains confidential information.
I haven’t done a thorough analysis but I think that only a generated bibliography will be converted to a latex bibliography. In addition, we support Citavi.
If you send us your input we can see whether it is possible to infer heuristically or by style name convention that a given section is a bibliography.
What worries me a bit is that there’s just \textbf{REFERENCES} instead of a proper section heading in your output.

@LupinoTech
Copy link

The error is caused by some printable material ([1]) between \begin{enumerate} and the first \item . \begin{enumerate} doesn't use an optional argument in its plain definition. However, the enumerate package redefines the enumerate evironment in a way that it does. Please make sure the a \usepackage{enumerate} is written into the latex preamble if you want to utilize the optional argument of \begin{enumerate}.

@mkraetke
Copy link
Member

As an aside, DOCX bibliographies are currently not supported by our docx2hub module. We support only Citavi bibliographies at this time.

@mkraetke
Copy link
Member

mkraetke commented Sep 22, 2020

The error is caused by some printable material ([1]) between \begin{enumerate} and the first \item . \begin{enumerate} doesn't use an optional argument in its plain definition. However, the enumerate package redefines the enumerate evironment in a way that it does. Please make sure the a \usepackage{enumerate} is written into the latex preamble if you want to utilize the optional argument of \begin{enumerate}.

docx2tex use the enumerate package for lists by default. I have to see the original docx file to analyze the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants