environment - solution environment for exercises (different than proof environment)Duplicating the amsthm proof environmentDefining a new LaTeX environment for numbered two-column proofsAutomatic indentation/framing of nested theorems/proofshide proof environment for restructuringHow can I create a customized environment?Making boxed “problem” environment and a solution environmentProof environment on LaTeXHow to define a proof environment which can be displayed/hidden? [combining two TeX solutions]Is it possible to make LaTeX check that some environment is in each part of a document?Define a new environment based on “proof”Custom environment with variable indentation and auto-line breaking?

Why doesn't Gödel's incompleteness theorem apply to false statements?

"Oh no!" in Latin

Reasons for having MCU pin-states default to pull-up/down out of reset

1 John in Luther’s Bibel

Pre-Employment Background Check With Consent For Future Checks

Should I warn a new PhD Student?

Showing mass murder in a kid's book

Is this saw blade faulty?

Magnifying glass in hyperbolic space

What should be the ideal length of sentences in a blog post for ease of reading?

Center page as a whole without centering each element individually

Writing in a Christian voice

PTIJ: Which Dr. Seuss books should one obtain?

What do the positive and negative (+/-) transmit and receive pins mean on Ethernet cables?

Air travel with refrigerated insulin

Would this string work as string?

Weird lines in Microsoft Word

Why does the frost depth increase when the surface temperature warms up?

Unfrosted light bulb

Extract substring according to regexp with sed or grep

Is divisi notation needed for brass or woodwind in an orchestra?

Would a primitive species be able to learn English from reading books alone?

Highest stage count that are used one right after the other?

Is there a distance limit for minecart tracks?



environment - solution environment for exercises (different than proof environment)


Duplicating the amsthm proof environmentDefining a new LaTeX environment for numbered two-column proofsAutomatic indentation/framing of nested theorems/proofshide proof environment for restructuringHow can I create a customized environment?Making boxed “problem” environment and a solution environmentProof environment on LaTeXHow to define a proof environment which can be displayed/hidden? [combining two TeX solutions]Is it possible to make LaTeX check that some environment is in each part of a document?Define a new environment based on “proof”Custom environment with variable indentation and auto-line breaking?













3















I am typing up solutions to a variety of problems in a textbook, and I want to use the proof environment for proofs but a similar environment for solutions. The link here



Duplicating the amsthm proof environment



shows how I can make my own solution environment, but I want the indication for the end of a solution to be slightly different than that of a proof. I'd like solutions to end with the QED as blackbox whereas I want the proof environment to stay as it is (white box to indicate QED). Is there an easy way to make this happen?










share|improve this question




























    3















    I am typing up solutions to a variety of problems in a textbook, and I want to use the proof environment for proofs but a similar environment for solutions. The link here



    Duplicating the amsthm proof environment



    shows how I can make my own solution environment, but I want the indication for the end of a solution to be slightly different than that of a proof. I'd like solutions to end with the QED as blackbox whereas I want the proof environment to stay as it is (white box to indicate QED). Is there an easy way to make this happen?










    share|improve this question


























      3












      3








      3


      1






      I am typing up solutions to a variety of problems in a textbook, and I want to use the proof environment for proofs but a similar environment for solutions. The link here



      Duplicating the amsthm proof environment



      shows how I can make my own solution environment, but I want the indication for the end of a solution to be slightly different than that of a proof. I'd like solutions to end with the QED as blackbox whereas I want the proof environment to stay as it is (white box to indicate QED). Is there an easy way to make this happen?










      share|improve this question
















      I am typing up solutions to a variety of problems in a textbook, and I want to use the proof environment for proofs but a similar environment for solutions. The link here



      Duplicating the amsthm proof environment



      shows how I can make my own solution environment, but I want the indication for the end of a solution to be slightly different than that of a proof. I'd like solutions to end with the QED as blackbox whereas I want the proof environment to stay as it is (white box to indicate QED). Is there an easy way to make this happen?







      environments






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:34









      Community

      1




      1










      asked Nov 8 '14 at 12:30









      Daniel W. FarlowDaniel W. Farlow

      4872823




      4872823




















          3 Answers
          3






          active

          oldest

          votes


















          3














          You also can do that very simply with ntheorem. Its advantage is an automatic placement of endmarks even if the environment ends in a display math environment:



          documentclass[leqno]article
          usepackage[utf8]inputenc
          usepackage[T1]fontenc
          usepackagefourier
          usepackageheuristica

          usepackageamsmath
          usepackage[thmmarks, amsmath, thref]ntheorem

          theoremstylenonumberplain
          theoremheaderfontitshape
          theorembodyfontupshape
          theoremseparator.
          theoremsymbolensuremathsquare
          newtheoremproofProof
          theoremsymbolensuremathblacksquare
          newtheoremsolutionSolution
          theoremseparator. ---
          theoremsymbolmboxtexttt;o)
          newtheoremvarsolSolution (variant)

          begindocument

          beginproofSince something is true, we have
          [ A = B. ]
          endproof


          beginsolution[of some exercise]
          This is a very intricate solution.
          beginalign*
          a & = b \ c & = d.
          endalign*
          endsolution

          beginvarsol
          This solution is so very simple that it’s not even worth writing it. Just pure thought:
          beginequationlabelvoid
          endequation
          endvarsol
          enddocument


          enter image description here






          share|improve this answer






























            6














            Gonzalo's answer can be easily modified to do this. Just add renewcommandqedsymbol$blacksquare$ to the definition



            documentclassarticle
            usepackageamsthm,amssymb

            newenvironmentsolution
            renewcommandqedsymbol$blacksquare$beginproof[Solution]
            endproof

            begindocument

            beginproof
            test.
            endproof

            beginsolution
            test.
            endsolution

            beginproof
            test.
            endproof

            enddocument


            enter image description here






            share|improve this answer

























            • What are the dimensions of the regular QED symbol? I'd like my black square to look exactly like that--I know you have 3mm and it looks like 2.5mm fits better, but I'm not sure of the exact size.

              – Daniel W. Farlow
              Nov 8 '14 at 12:48


















            0














            please can anybody help with the brute force knn algorithm in latex






            share|improve this answer








            New contributor




            lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




















            • Welcome to TeX.SE! (1) This is not an answer to the question. IMHO this is not even related to the question and its answers. The answer section is strictly for the answers only. (2) If you have a new question, please ask it. Remember adding a minimal example showing what you have tried, and a sketch of what you really want to have.

              – JouleV
              1 min ago











            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "85"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f211136%2fenvironment-solution-environment-for-exercises-different-than-proof-environme%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            You also can do that very simply with ntheorem. Its advantage is an automatic placement of endmarks even if the environment ends in a display math environment:



            documentclass[leqno]article
            usepackage[utf8]inputenc
            usepackage[T1]fontenc
            usepackagefourier
            usepackageheuristica

            usepackageamsmath
            usepackage[thmmarks, amsmath, thref]ntheorem

            theoremstylenonumberplain
            theoremheaderfontitshape
            theorembodyfontupshape
            theoremseparator.
            theoremsymbolensuremathsquare
            newtheoremproofProof
            theoremsymbolensuremathblacksquare
            newtheoremsolutionSolution
            theoremseparator. ---
            theoremsymbolmboxtexttt;o)
            newtheoremvarsolSolution (variant)

            begindocument

            beginproofSince something is true, we have
            [ A = B. ]
            endproof


            beginsolution[of some exercise]
            This is a very intricate solution.
            beginalign*
            a & = b \ c & = d.
            endalign*
            endsolution

            beginvarsol
            This solution is so very simple that it’s not even worth writing it. Just pure thought:
            beginequationlabelvoid
            endequation
            endvarsol
            enddocument


            enter image description here






            share|improve this answer



























              3














              You also can do that very simply with ntheorem. Its advantage is an automatic placement of endmarks even if the environment ends in a display math environment:



              documentclass[leqno]article
              usepackage[utf8]inputenc
              usepackage[T1]fontenc
              usepackagefourier
              usepackageheuristica

              usepackageamsmath
              usepackage[thmmarks, amsmath, thref]ntheorem

              theoremstylenonumberplain
              theoremheaderfontitshape
              theorembodyfontupshape
              theoremseparator.
              theoremsymbolensuremathsquare
              newtheoremproofProof
              theoremsymbolensuremathblacksquare
              newtheoremsolutionSolution
              theoremseparator. ---
              theoremsymbolmboxtexttt;o)
              newtheoremvarsolSolution (variant)

              begindocument

              beginproofSince something is true, we have
              [ A = B. ]
              endproof


              beginsolution[of some exercise]
              This is a very intricate solution.
              beginalign*
              a & = b \ c & = d.
              endalign*
              endsolution

              beginvarsol
              This solution is so very simple that it’s not even worth writing it. Just pure thought:
              beginequationlabelvoid
              endequation
              endvarsol
              enddocument


              enter image description here






              share|improve this answer

























                3












                3








                3







                You also can do that very simply with ntheorem. Its advantage is an automatic placement of endmarks even if the environment ends in a display math environment:



                documentclass[leqno]article
                usepackage[utf8]inputenc
                usepackage[T1]fontenc
                usepackagefourier
                usepackageheuristica

                usepackageamsmath
                usepackage[thmmarks, amsmath, thref]ntheorem

                theoremstylenonumberplain
                theoremheaderfontitshape
                theorembodyfontupshape
                theoremseparator.
                theoremsymbolensuremathsquare
                newtheoremproofProof
                theoremsymbolensuremathblacksquare
                newtheoremsolutionSolution
                theoremseparator. ---
                theoremsymbolmboxtexttt;o)
                newtheoremvarsolSolution (variant)

                begindocument

                beginproofSince something is true, we have
                [ A = B. ]
                endproof


                beginsolution[of some exercise]
                This is a very intricate solution.
                beginalign*
                a & = b \ c & = d.
                endalign*
                endsolution

                beginvarsol
                This solution is so very simple that it’s not even worth writing it. Just pure thought:
                beginequationlabelvoid
                endequation
                endvarsol
                enddocument


                enter image description here






                share|improve this answer













                You also can do that very simply with ntheorem. Its advantage is an automatic placement of endmarks even if the environment ends in a display math environment:



                documentclass[leqno]article
                usepackage[utf8]inputenc
                usepackage[T1]fontenc
                usepackagefourier
                usepackageheuristica

                usepackageamsmath
                usepackage[thmmarks, amsmath, thref]ntheorem

                theoremstylenonumberplain
                theoremheaderfontitshape
                theorembodyfontupshape
                theoremseparator.
                theoremsymbolensuremathsquare
                newtheoremproofProof
                theoremsymbolensuremathblacksquare
                newtheoremsolutionSolution
                theoremseparator. ---
                theoremsymbolmboxtexttt;o)
                newtheoremvarsolSolution (variant)

                begindocument

                beginproofSince something is true, we have
                [ A = B. ]
                endproof


                beginsolution[of some exercise]
                This is a very intricate solution.
                beginalign*
                a & = b \ c & = d.
                endalign*
                endsolution

                beginvarsol
                This solution is so very simple that it’s not even worth writing it. Just pure thought:
                beginequationlabelvoid
                endequation
                endvarsol
                enddocument


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 8 '14 at 13:40









                BernardBernard

                173k776205




                173k776205





















                    6














                    Gonzalo's answer can be easily modified to do this. Just add renewcommandqedsymbol$blacksquare$ to the definition



                    documentclassarticle
                    usepackageamsthm,amssymb

                    newenvironmentsolution
                    renewcommandqedsymbol$blacksquare$beginproof[Solution]
                    endproof

                    begindocument

                    beginproof
                    test.
                    endproof

                    beginsolution
                    test.
                    endsolution

                    beginproof
                    test.
                    endproof

                    enddocument


                    enter image description here






                    share|improve this answer

























                    • What are the dimensions of the regular QED symbol? I'd like my black square to look exactly like that--I know you have 3mm and it looks like 2.5mm fits better, but I'm not sure of the exact size.

                      – Daniel W. Farlow
                      Nov 8 '14 at 12:48















                    6














                    Gonzalo's answer can be easily modified to do this. Just add renewcommandqedsymbol$blacksquare$ to the definition



                    documentclassarticle
                    usepackageamsthm,amssymb

                    newenvironmentsolution
                    renewcommandqedsymbol$blacksquare$beginproof[Solution]
                    endproof

                    begindocument

                    beginproof
                    test.
                    endproof

                    beginsolution
                    test.
                    endsolution

                    beginproof
                    test.
                    endproof

                    enddocument


                    enter image description here






                    share|improve this answer

























                    • What are the dimensions of the regular QED symbol? I'd like my black square to look exactly like that--I know you have 3mm and it looks like 2.5mm fits better, but I'm not sure of the exact size.

                      – Daniel W. Farlow
                      Nov 8 '14 at 12:48













                    6












                    6








                    6







                    Gonzalo's answer can be easily modified to do this. Just add renewcommandqedsymbol$blacksquare$ to the definition



                    documentclassarticle
                    usepackageamsthm,amssymb

                    newenvironmentsolution
                    renewcommandqedsymbol$blacksquare$beginproof[Solution]
                    endproof

                    begindocument

                    beginproof
                    test.
                    endproof

                    beginsolution
                    test.
                    endsolution

                    beginproof
                    test.
                    endproof

                    enddocument


                    enter image description here






                    share|improve this answer















                    Gonzalo's answer can be easily modified to do this. Just add renewcommandqedsymbol$blacksquare$ to the definition



                    documentclassarticle
                    usepackageamsthm,amssymb

                    newenvironmentsolution
                    renewcommandqedsymbol$blacksquare$beginproof[Solution]
                    endproof

                    begindocument

                    beginproof
                    test.
                    endproof

                    beginsolution
                    test.
                    endsolution

                    beginproof
                    test.
                    endproof

                    enddocument


                    enter image description here







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 8 '14 at 13:13

























                    answered Nov 8 '14 at 12:42







                    user11232



















                    • What are the dimensions of the regular QED symbol? I'd like my black square to look exactly like that--I know you have 3mm and it looks like 2.5mm fits better, but I'm not sure of the exact size.

                      – Daniel W. Farlow
                      Nov 8 '14 at 12:48

















                    • What are the dimensions of the regular QED symbol? I'd like my black square to look exactly like that--I know you have 3mm and it looks like 2.5mm fits better, but I'm not sure of the exact size.

                      – Daniel W. Farlow
                      Nov 8 '14 at 12:48
















                    What are the dimensions of the regular QED symbol? I'd like my black square to look exactly like that--I know you have 3mm and it looks like 2.5mm fits better, but I'm not sure of the exact size.

                    – Daniel W. Farlow
                    Nov 8 '14 at 12:48





                    What are the dimensions of the regular QED symbol? I'd like my black square to look exactly like that--I know you have 3mm and it looks like 2.5mm fits better, but I'm not sure of the exact size.

                    – Daniel W. Farlow
                    Nov 8 '14 at 12:48











                    0














                    please can anybody help with the brute force knn algorithm in latex






                    share|improve this answer








                    New contributor




                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.




















                    • Welcome to TeX.SE! (1) This is not an answer to the question. IMHO this is not even related to the question and its answers. The answer section is strictly for the answers only. (2) If you have a new question, please ask it. Remember adding a minimal example showing what you have tried, and a sketch of what you really want to have.

                      – JouleV
                      1 min ago
















                    0














                    please can anybody help with the brute force knn algorithm in latex






                    share|improve this answer








                    New contributor




                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.




















                    • Welcome to TeX.SE! (1) This is not an answer to the question. IMHO this is not even related to the question and its answers. The answer section is strictly for the answers only. (2) If you have a new question, please ask it. Remember adding a minimal example showing what you have tried, and a sketch of what you really want to have.

                      – JouleV
                      1 min ago














                    0












                    0








                    0







                    please can anybody help with the brute force knn algorithm in latex






                    share|improve this answer








                    New contributor




                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.










                    please can anybody help with the brute force knn algorithm in latex







                    share|improve this answer








                    New contributor




                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    share|improve this answer



                    share|improve this answer






                    New contributor




                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    answered 11 mins ago









                    lawallawal

                    1




                    1




                    New contributor




                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





                    New contributor





                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






                    lawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.












                    • Welcome to TeX.SE! (1) This is not an answer to the question. IMHO this is not even related to the question and its answers. The answer section is strictly for the answers only. (2) If you have a new question, please ask it. Remember adding a minimal example showing what you have tried, and a sketch of what you really want to have.

                      – JouleV
                      1 min ago


















                    • Welcome to TeX.SE! (1) This is not an answer to the question. IMHO this is not even related to the question and its answers. The answer section is strictly for the answers only. (2) If you have a new question, please ask it. Remember adding a minimal example showing what you have tried, and a sketch of what you really want to have.

                      – JouleV
                      1 min ago

















                    Welcome to TeX.SE! (1) This is not an answer to the question. IMHO this is not even related to the question and its answers. The answer section is strictly for the answers only. (2) If you have a new question, please ask it. Remember adding a minimal example showing what you have tried, and a sketch of what you really want to have.

                    – JouleV
                    1 min ago






                    Welcome to TeX.SE! (1) This is not an answer to the question. IMHO this is not even related to the question and its answers. The answer section is strictly for the answers only. (2) If you have a new question, please ask it. Remember adding a minimal example showing what you have tried, and a sketch of what you really want to have.

                    – JouleV
                    1 min ago


















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f211136%2fenvironment-solution-environment-for-exercises-different-than-proof-environme%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

                    Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"

                    inputenc: Unicode character … not set up for use with LaTeX The Next CEO of Stack OverflowEntering Unicode characters in LaTeXHow to solve the `Package inputenc Error: Unicode char not set up for use with LaTeX` problem?solve “Unicode char is not set up for use with LaTeX” without special handling of every new interesting UTF-8 characterPackage inputenc Error: Unicode character ² (U+B2)(inputenc) not set up for use with LaTeX. acroI2C[I²C]package inputenc error unicode char (u + 190) not set up for use with latexPackage inputenc Error: Unicode char u8:′ not set up for use with LaTeX. 3′inputenc Error: Unicode char u8: not set up for use with LaTeX with G-BriefPackage Inputenc Error: Unicode char u8: not set up for use with LaTeXPackage inputenc Error: Unicode char ́ (U+301)(inputenc) not set up for use with LaTeX. includePackage inputenc Error: Unicode char ̂ (U+302)(inputenc) not set up for use with LaTeX. … $widehatleft (OA,AA' right )$Package inputenc Error: Unicode char â„¡ (U+2121)(inputenc) not set up for use with LaTeX. printbibliography[heading=bibintoc]Package inputenc Error: Unicode char − (U+2212)(inputenc) not set up for use with LaTeXPackage inputenc Error: Unicode character α (U+3B1) not set up for use with LaTeXPackage inputenc Error: Unicode characterError: ! Package inputenc Error: Unicode char ⊘ (U+2298)(inputenc) not set up for use with LaTeX