Skip to main content
Followed CarLaTeX' proposal. Added a second example
Source Link
MS-SPO
  • 16.2k
  • 4
  • 7

Example 1: you can make it compile

result3

Example 2: you can't make it compile at all

This forest-code is used as an example to show, what you can prepare, when compilation continues producing errors.

Y1: as posted

The following code was created somehow and posted, which obviously doesn't pass the syntax check in 3.1. It doesn't compile and complains about "missing forest":

    \begin{forest}
        for tree=draw,
        [Main(), [Level Setup],[Game], [Win_Game()]]
    \end{forest}

errorA

Y2: following the checklist

Though the code starts looking more like a MWE, it still doesn't compile:

\documentclass[10pt,border=3mm,tikz]{standalone}
\usepackage{forest}

\begin{document}
    \begin{forest}
        for tree=draw,
        [Main(), [Level Setup],[Game], [Win_Game()]]
    \end{forest}
\end{document}

errorB

At this point you may decide to post after completing steps 3.3 and 3.4 as good as possible, and ask for help.

As it turns out, the forest code still has some errors in itself. The difference to the code snippet is that you removed almost all guessworking about your code before you post.

To verify, you might e.g. replace the forest-environment by some code from the forest manual. If it compiles, you know the MWE status is fine. You can mention that together with posting the problematic code above.

Example

result3

Example 1: you can make it compile

result3

Example 2: you can't make it compile at all

This forest-code is used as an example to show, what you can prepare, when compilation continues producing errors.

Y1: as posted

The following code was created somehow and posted, which obviously doesn't pass the syntax check in 3.1. It doesn't compile and complains about "missing forest":

    \begin{forest}
        for tree=draw,
        [Main(), [Level Setup],[Game], [Win_Game()]]
    \end{forest}

errorA

Y2: following the checklist

Though the code starts looking more like a MWE, it still doesn't compile:

\documentclass[10pt,border=3mm,tikz]{standalone}
\usepackage{forest}

\begin{document}
    \begin{forest}
        for tree=draw,
        [Main(), [Level Setup],[Game], [Win_Game()]]
    \end{forest}
\end{document}

errorB

At this point you may decide to post after completing steps 3.3 and 3.4 as good as possible, and ask for help.

As it turns out, the forest code still has some errors in itself. The difference to the code snippet is that you removed almost all guessworking about your code before you post.

To verify, you might e.g. replace the forest-environment by some code from the forest manual. If it compiles, you know the MWE status is fine. You can mention that together with posting the problematic code above.

Followed CarLaTeX' proposal
Source Link
MS-SPO
  • 16.2k
  • 4
  • 7
  • [_] the code compiles or reproduces the compilation error, when some member copies it into his/her La/TeX environment
  • [_] it show all, what's needed
  • [_] it removed code, packages etc., which are not needed
  • [_] it shows your problem
  • [_] make sure, it compiles compiles or reproduces the compilation error
  • [_] make sure, you followed syntax from Latex and packages you need to use
  • [_] make sure, it still shows your problem
  • [_] clean-up the code a little (consistent formatting, delete not needed parts etc.)
  • [_] create a screenshot from your codes result, if useful
  • [_] check/rethink what you are going to tell and ask
  • [_] the code compiles, when some member copies it into his/her La/TeX environment
  • [_] it show all, what's needed
  • [_] it removed code, packages etc., which are not needed
  • [_] it shows your problem
  • [_] make sure, it compiles
  • [_] make sure, you followed syntax from Latex and packages you need to use
  • [_] make sure, it still shows your problem
  • [_] clean-up the code a little (consistent formatting, delete not needed parts etc.)
  • [_] create a screenshot from your codes result, if useful
  • [_] check/rethink what you are going to tell and ask
  • [_] the code compiles or reproduces the compilation error, when some member copies it into his/her La/TeX environment
  • [_] it show all, what's needed
  • [_] it removed code, packages etc., which are not needed
  • [_] it shows your problem
  • [_] make sure, it compiles or reproduces the compilation error
  • [_] make sure, you followed syntax from Latex and packages you need to use
  • [_] make sure, it still shows your problem
  • [_] clean-up the code a little (consistent formatting, delete not needed parts etc.)
  • [_] create a screenshot from your codes result, if useful
  • [_] check/rethink what you are going to tell and ask
added 2 characters in body
Source Link
MS-SPO
  • 16.2k
  • 4
  • 7

Besides all the details mentioned in this threadquestion, a few requirements always need to be fulfilled:

If you are experienced enough with the package, which is tikz in this case, try using its features to clean-up code. This is my result, after asking myself: "what does the member wantedwant to show?" Probably he/she wanted:

Besides all the details mentioned in this thread, a few requirements always need to be fulfilled:

If you are experienced enough with the package, which is tikz in this case, try using its features to clean-up code. This is my result, after asking myself: "what does the member wanted to show?" Probably he/she wanted:

Besides all the details mentioned in this question, a few requirements always need to be fulfilled:

If you are experienced enough with the package, which is tikz in this case, try using its features to clean-up code. This is my result, after asking myself: "what does the member want to show?" Probably he/she wanted:

Added example
Source Link
MS-SPO
  • 16.2k
  • 4
  • 7
Loading
Source Link
MS-SPO
  • 16.2k
  • 4
  • 7
Loading
Post Made Community Wiki by MS-SPO