Issue: Giving my file the name markdown.tex will not compile with (to most users) cryptic error code.
Expected: User should be able to name his file anything he would like (at the very least a hint that file should not be names markdown.tex should be hinted to in the error msg or in the pkg docs)
Reproduce:
Make markdown.tex with the following content and compile (with lualatex):
%%% markdown.tex %%%
\documentclass{article}
\usepackage{markdown}
\begin{document}
test
\end{document}
Error: I read this like the user file is now referencing itself instead to the proper markdown.tex as defined by package.
> > lualatex -synctex=1 -interaction=nonstopmode -file-line-error --shell-escape markdown
>
> This is LuaHBTeX, Version 1.13.0 (MiKTeX 21.1 Portable)
> system commands enabled.
> (./markdown.tex
> LaTeX2e <2020-10-01> patch level 4
> L3 programming layer <2021-01-09> xparse <2020-03-03>
> (C:/Users/######/MikTex/texmfs/install/tex/latex/base/article.cls
> Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
[...]
> (C:/Users/######/MikTex/texmfs/install/tex/generic/gobble/gobble.tex))
> (./markdown.tex
>
> ./markdown.tex:2: LaTeX Error: Two \documentclass or \documentstyle commands.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.2 \documentclass{
> article}
>
> ./markdown.tex:4: LaTeX Error: \RequirePackage or \LoadClass in Options Section
> .
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.4
>
>
> (C:/Users/######/MikTex/texmfs/install/tex/latex/l3backend/l3backend-luatex.def
> ) (./markdown.aux)
> (C:/Users/######/MikTex/texmfs/install/tex/latex/base/ts1cmr.fd)
> (C:/Users/######/MikTex/texmfs/install/tex/context/base/mkii/supp-pdf.mkii
> [Loading MPS to PDF converter (version 2006.09.02).]
> )
>
> ./markdown.tex:5: LaTeX Error: \RequirePackage or \LoadClass in Options Section
> .
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.5 \begin{document}
>
> [1{C:/Users/######/MikTex/texmfs/data/pdftex/config/pdftex.map}]
>
> ./markdown.tex:7: Package hooks Error: Missing \PopDefaultHookLabel.
> (hooks) The label `markdown' was pushed but never popped.
> (hooks) Something is wrong.
>
> Type <return> to continue.
> ...
>
> l.7 \end{document}
>
> (./markdown.aux))))
> (\end occurred when \ifx on line 4 was incomplete)
> (see the transcript file for additional information)
> 418 words of node memory still in use:
> 3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 5 attribute, 49 glue_spec
> , 5 attribute_list, 2 write nodes
> avail lists: 2:23,3:3,4:1,5:21,6:2,7:42,9:22
> <//?/c:/users/######/miktex/texmfs/install/fonts/opentype/public/lm/lmroman10-r
> egular.otf>
> Output written on markdown.pdf (1 page, 3340 bytes).
> SyncTeX written on markdown.synctex.gz.
> Transcript written on markdown.log.
The text was updated successfully, but these errors were encountered:
This is on Miktex portable, win10:
Issue: Giving my file the name
markdown.texwill not compile with (to most users) cryptic error code.Expected: User should be able to name his file anything he would like (at the very least a hint that file should not be names
markdown.texshould be hinted to in the error msg or in the pkg docs)Reproduce:
Make
markdown.texwith the following content and compile (with lualatex):Error: I read this like the user file is now referencing itself instead to the proper
markdown.texas defined by package.The text was updated successfully, but these errors were encountered: