Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [code-example]

The tag has no usage guidance.

4
votes
1answer
113 views

Feature request: Better support for copying code from question or answers

Often I'd like to compile code from tex.stackexchange or other sites to my machine and play around a bit with it. There are so many great answers here; there is so much great code in stack overflow, ...
6
votes
3answers
293 views

Why can't TeX.SE compile my TeX code?

(This might have been asked before, but I could not find it.) A lot of questions and answers on this site have some piece of code (to be compiled with one of the standard engines) and a screenshot. ...
10
votes
1answer
191 views

Is TeXample site still alive? [closed]

I hope this is the right place to ask this. Does anyone know what happened to TeXample? I submitted a TikZ example one year ago, and it still hasn't appeared. The last examples were added in ...
2
votes
1answer
229 views

How Ethical is it to Use Actual Institution or Commercial Brand Names in Examples?

In some examples in the main forum, I have seen code examples which contain the following scenarios. Using names of actual institutions, where the institution is no way a known-to-everyone one. Using ...
64
votes
0answers
767 views

New support package for MWEs

I often saw that MWEs which include images can be a little bit of a problem. There are no common images in the TEXMF tree which could be used. Even the famous PS tiger is not directly accessible. ...
15
votes
3answers
381 views

List of commonly available example images

Often one or more images are required in minimal working examples or as part of some example code of and answer to make it compile successful and/or give some nice visual result. One problem is that ...
6
votes
4answers
124 views

Should minimal examples be completed for the submitter if they only provide a code excerpt?

We had a situation today regarding this question. (See also the timeline). What happened: The submitter asked a question with a code excerpt only, without making a compileable minimum working ...
22
votes
1answer
6k views

How do I mark inline code?

How do I mark my inline code in questions and answers, and how can I mark code in comments?
38
votes
5answers
92k views

Usage of the lipsum package in answers

I've notices several times people have been using \usepackage{lipsum} in answers as a space filler. While this is great for demonstration purposes when the document is going to be immediately ...
3
votes
4answers
186 views

Should minimal examples be required, or just encouraged, for questions to be answered?

I just asked a question in which I included a small excerpt of my code that wasn't a standalone example, but enough to see the context (at least I thought so). In a comment*, I was asked to provide a "...