3

I've just reviewed at least three questions by new users and all of them just pasted a code excerpt that wasn't compilable, or worse, included uses of macros that aren't in the LaTeX base.

This is of course not the first time I see such incomplete code examples, it seems like 80% or more of all new users think it would be fine to paste only some small code snippets.

For someone wanting to help, this behavior is incredibly annoying, because you always have to wrap extra code around to make the document compile or even have to search for what packages the user might have used and add them to the import list.

Isn't there a way to make new users, i.e. at least people who ask their first question here, aware that all code examples should be complete documents but only include the parts that are relevant to the problem? And it shouldn't just be a link to an FAQ thread or such, but something that really makes them stumble and pay attention.

Ideally, an automatic trigger would pop up a big red box with a warning if the user used a code block in their question to make sure it really is an MWE, perhaps with a link to I've just been asked to write a minimal example, what is that? I guess it's not possible to add such custom hooks to only parts of the network?

You must log in to answer this question.

Browse other questions tagged .