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

Does not compile if user names own document markdown.tex #74

Closed
mmarras opened this issue Jan 31, 2021 · 1 comment
Closed

Does not compile if user names own document markdown.tex #74

mmarras opened this issue Jan 31, 2021 · 1 comment
Labels
bug plaintex Related to the plain TeX interface and implementation
Milestone

Comments

@mmarras
Copy link

mmarras commented Jan 31, 2021

This is on Miktex portable, win10:

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.
@Witiko
Copy link
Owner

Witiko commented Jan 31, 2021

Sorry for the trouble and thanks for the report. Your issue should be fixed by cb50d48.

@Witiko Witiko closed this as completed Feb 1, 2021
@Witiko Witiko added bug plaintex Related to the plain TeX interface and implementation labels Feb 2, 2021
@Witiko Witiko added this to the 2.10.0 milestone Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug plaintex Related to the plain TeX interface and implementation
Projects
None yet
Development

No branches or pull requests

2 participants