Is it possible to outline questions like this, and what are some other options?












0














I am writing some math homework in LaTex and I would like to format somehow like this:




10.2) Question Statement




My Answer





Meaning, I would like the question statement stand out, either in a colored box like above, or in some other way. Is this possible? Thank you.



EDIT: Here is an example of how I would like to to look like:




10.2) Let $R$ be an integral domain. Show that if $R[x]$ is a principal ideal domain, then $R$ is a field.




Proof: The map $varphi : R[x] to R$ defined by $varphi: p(x) mapsto p(0)$ is a surjective homomorphism with kerned $(x)$. By the first isomorphism theorem, we have $R[x]/(x) cong R$. Furthermore, $(x)$ is a maximal ideal, is a prime ideal, and because $R[x]$ is a principal ideal domain, $(x)$ is maximal. Therefore $R[x]/(x)$ is a field, so $R$ is a field as well.










share|improve this question




















  • 1




    Please add a minimal example of what you tried so far. It makes much easier to help you!
    – CarLaTeX
    Jan 2 at 21:30










  • Some inspiration on how to achieve a colored background might be found here: Changing background color of text in Latex
    – leandriis
    Jan 2 at 21:31










  • @leandriis Thanks, I will check it out.
    – Ovi
    Jan 2 at 21:33










  • @CarLaTeX Honestly I have zero ideas, I know only very minimal LaTex. I will try to google around and see if I can find something.
    – Ovi
    Jan 2 at 21:34










  • @Ovio Just set up a little example of question-answer, we'll do the coloring and all the rest.
    – CarLaTeX
    Jan 2 at 21:41
















0














I am writing some math homework in LaTex and I would like to format somehow like this:




10.2) Question Statement




My Answer





Meaning, I would like the question statement stand out, either in a colored box like above, or in some other way. Is this possible? Thank you.



EDIT: Here is an example of how I would like to to look like:




10.2) Let $R$ be an integral domain. Show that if $R[x]$ is a principal ideal domain, then $R$ is a field.




Proof: The map $varphi : R[x] to R$ defined by $varphi: p(x) mapsto p(0)$ is a surjective homomorphism with kerned $(x)$. By the first isomorphism theorem, we have $R[x]/(x) cong R$. Furthermore, $(x)$ is a maximal ideal, is a prime ideal, and because $R[x]$ is a principal ideal domain, $(x)$ is maximal. Therefore $R[x]/(x)$ is a field, so $R$ is a field as well.










share|improve this question




















  • 1




    Please add a minimal example of what you tried so far. It makes much easier to help you!
    – CarLaTeX
    Jan 2 at 21:30










  • Some inspiration on how to achieve a colored background might be found here: Changing background color of text in Latex
    – leandriis
    Jan 2 at 21:31










  • @leandriis Thanks, I will check it out.
    – Ovi
    Jan 2 at 21:33










  • @CarLaTeX Honestly I have zero ideas, I know only very minimal LaTex. I will try to google around and see if I can find something.
    – Ovi
    Jan 2 at 21:34










  • @Ovio Just set up a little example of question-answer, we'll do the coloring and all the rest.
    – CarLaTeX
    Jan 2 at 21:41














0












0








0


0





I am writing some math homework in LaTex and I would like to format somehow like this:




10.2) Question Statement




My Answer





Meaning, I would like the question statement stand out, either in a colored box like above, or in some other way. Is this possible? Thank you.



EDIT: Here is an example of how I would like to to look like:




10.2) Let $R$ be an integral domain. Show that if $R[x]$ is a principal ideal domain, then $R$ is a field.




Proof: The map $varphi : R[x] to R$ defined by $varphi: p(x) mapsto p(0)$ is a surjective homomorphism with kerned $(x)$. By the first isomorphism theorem, we have $R[x]/(x) cong R$. Furthermore, $(x)$ is a maximal ideal, is a prime ideal, and because $R[x]$ is a principal ideal domain, $(x)$ is maximal. Therefore $R[x]/(x)$ is a field, so $R$ is a field as well.










share|improve this question















I am writing some math homework in LaTex and I would like to format somehow like this:




10.2) Question Statement




My Answer





Meaning, I would like the question statement stand out, either in a colored box like above, or in some other way. Is this possible? Thank you.



EDIT: Here is an example of how I would like to to look like:




10.2) Let $R$ be an integral domain. Show that if $R[x]$ is a principal ideal domain, then $R$ is a field.




Proof: The map $varphi : R[x] to R$ defined by $varphi: p(x) mapsto p(0)$ is a surjective homomorphism with kerned $(x)$. By the first isomorphism theorem, we have $R[x]/(x) cong R$. Furthermore, $(x)$ is a maximal ideal, is a prime ideal, and because $R[x]$ is a principal ideal domain, $(x)$ is maximal. Therefore $R[x]/(x)$ is a field, so $R$ is a field as well.







color






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 22:23









Christian Hupfer

148k14193390




148k14193390










asked Jan 2 at 21:27









OviOvi

1475




1475








  • 1




    Please add a minimal example of what you tried so far. It makes much easier to help you!
    – CarLaTeX
    Jan 2 at 21:30










  • Some inspiration on how to achieve a colored background might be found here: Changing background color of text in Latex
    – leandriis
    Jan 2 at 21:31










  • @leandriis Thanks, I will check it out.
    – Ovi
    Jan 2 at 21:33










  • @CarLaTeX Honestly I have zero ideas, I know only very minimal LaTex. I will try to google around and see if I can find something.
    – Ovi
    Jan 2 at 21:34










  • @Ovio Just set up a little example of question-answer, we'll do the coloring and all the rest.
    – CarLaTeX
    Jan 2 at 21:41














  • 1




    Please add a minimal example of what you tried so far. It makes much easier to help you!
    – CarLaTeX
    Jan 2 at 21:30










  • Some inspiration on how to achieve a colored background might be found here: Changing background color of text in Latex
    – leandriis
    Jan 2 at 21:31










  • @leandriis Thanks, I will check it out.
    – Ovi
    Jan 2 at 21:33










  • @CarLaTeX Honestly I have zero ideas, I know only very minimal LaTex. I will try to google around and see if I can find something.
    – Ovi
    Jan 2 at 21:34










  • @Ovio Just set up a little example of question-answer, we'll do the coloring and all the rest.
    – CarLaTeX
    Jan 2 at 21:41








1




1




Please add a minimal example of what you tried so far. It makes much easier to help you!
– CarLaTeX
Jan 2 at 21:30




Please add a minimal example of what you tried so far. It makes much easier to help you!
– CarLaTeX
Jan 2 at 21:30












Some inspiration on how to achieve a colored background might be found here: Changing background color of text in Latex
– leandriis
Jan 2 at 21:31




Some inspiration on how to achieve a colored background might be found here: Changing background color of text in Latex
– leandriis
Jan 2 at 21:31












@leandriis Thanks, I will check it out.
– Ovi
Jan 2 at 21:33




@leandriis Thanks, I will check it out.
– Ovi
Jan 2 at 21:33












@CarLaTeX Honestly I have zero ideas, I know only very minimal LaTex. I will try to google around and see if I can find something.
– Ovi
Jan 2 at 21:34




@CarLaTeX Honestly I have zero ideas, I know only very minimal LaTex. I will try to google around and see if I can find something.
– Ovi
Jan 2 at 21:34












@Ovio Just set up a little example of question-answer, we'll do the coloring and all the rest.
– CarLaTeX
Jan 2 at 21:41




@Ovio Just set up a little example of question-answer, we'll do the coloring and all the rest.
– CarLaTeX
Jan 2 at 21:41










1 Answer
1






active

oldest

votes


















2














As others have pointed out, there are a massive range of options for doing boxed and colored text. Here's just one example. Whichever you use, you probably want to set it up as a personally defined environment: that way you can easily change the precise implementation without having to alter your document in more than one place. If you learn anything from this, learn that!



documentclass[12pt]{article}
usepackage{tcolorbox}% Here's the package we will use. Many options for sure.

newenvironment{question}[1]% We set up an environment which takes one mandatory argument: the question number.
{begin{tcolorbox}[title=#1]}% Its start is to begin a tcolorbox with our question-number as the title
{end{tcolorbox}}% And its end is just to end tcolorbox

tcbset{colback=orange!20!white,colframe=orange!75,fonttitle=sffamilybfseries}% Fiddle with colors, fonts etc here

begin{document}
begin{question}{10.2}
Let (R) be an integral domain. Show that if (R[x]) is a principal ideal domain, then (R) is a field.
end{question}
Proof: The map (varphi : R[x] to R) defined by (varphi: p(x) mapsto p(0)) is a surjective homomorphism with kerned ((x)). By the first isomorphism theorem, we have (R[x]/(x) cong R). Furthermore, ((x)) is a maximal ideal, is a prime ideal, and because (R[x]) is a principal ideal domain, ((x)) is maximal. Therefore (R[x]/(x)) is a field, so (R) is a field as well.

end{document}


Boxed text image



You could start by experimenting with tcolorbox: find its documentation with texdoc tcolorbox at the terminal or on CTAN.






share|improve this answer





















    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%2f468321%2fis-it-possible-to-outline-questions-like-this-and-what-are-some-other-options%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    As others have pointed out, there are a massive range of options for doing boxed and colored text. Here's just one example. Whichever you use, you probably want to set it up as a personally defined environment: that way you can easily change the precise implementation without having to alter your document in more than one place. If you learn anything from this, learn that!



    documentclass[12pt]{article}
    usepackage{tcolorbox}% Here's the package we will use. Many options for sure.

    newenvironment{question}[1]% We set up an environment which takes one mandatory argument: the question number.
    {begin{tcolorbox}[title=#1]}% Its start is to begin a tcolorbox with our question-number as the title
    {end{tcolorbox}}% And its end is just to end tcolorbox

    tcbset{colback=orange!20!white,colframe=orange!75,fonttitle=sffamilybfseries}% Fiddle with colors, fonts etc here

    begin{document}
    begin{question}{10.2}
    Let (R) be an integral domain. Show that if (R[x]) is a principal ideal domain, then (R) is a field.
    end{question}
    Proof: The map (varphi : R[x] to R) defined by (varphi: p(x) mapsto p(0)) is a surjective homomorphism with kerned ((x)). By the first isomorphism theorem, we have (R[x]/(x) cong R). Furthermore, ((x)) is a maximal ideal, is a prime ideal, and because (R[x]) is a principal ideal domain, ((x)) is maximal. Therefore (R[x]/(x)) is a field, so (R) is a field as well.

    end{document}


    Boxed text image



    You could start by experimenting with tcolorbox: find its documentation with texdoc tcolorbox at the terminal or on CTAN.






    share|improve this answer


























      2














      As others have pointed out, there are a massive range of options for doing boxed and colored text. Here's just one example. Whichever you use, you probably want to set it up as a personally defined environment: that way you can easily change the precise implementation without having to alter your document in more than one place. If you learn anything from this, learn that!



      documentclass[12pt]{article}
      usepackage{tcolorbox}% Here's the package we will use. Many options for sure.

      newenvironment{question}[1]% We set up an environment which takes one mandatory argument: the question number.
      {begin{tcolorbox}[title=#1]}% Its start is to begin a tcolorbox with our question-number as the title
      {end{tcolorbox}}% And its end is just to end tcolorbox

      tcbset{colback=orange!20!white,colframe=orange!75,fonttitle=sffamilybfseries}% Fiddle with colors, fonts etc here

      begin{document}
      begin{question}{10.2}
      Let (R) be an integral domain. Show that if (R[x]) is a principal ideal domain, then (R) is a field.
      end{question}
      Proof: The map (varphi : R[x] to R) defined by (varphi: p(x) mapsto p(0)) is a surjective homomorphism with kerned ((x)). By the first isomorphism theorem, we have (R[x]/(x) cong R). Furthermore, ((x)) is a maximal ideal, is a prime ideal, and because (R[x]) is a principal ideal domain, ((x)) is maximal. Therefore (R[x]/(x)) is a field, so (R) is a field as well.

      end{document}


      Boxed text image



      You could start by experimenting with tcolorbox: find its documentation with texdoc tcolorbox at the terminal or on CTAN.






      share|improve this answer
























        2












        2








        2






        As others have pointed out, there are a massive range of options for doing boxed and colored text. Here's just one example. Whichever you use, you probably want to set it up as a personally defined environment: that way you can easily change the precise implementation without having to alter your document in more than one place. If you learn anything from this, learn that!



        documentclass[12pt]{article}
        usepackage{tcolorbox}% Here's the package we will use. Many options for sure.

        newenvironment{question}[1]% We set up an environment which takes one mandatory argument: the question number.
        {begin{tcolorbox}[title=#1]}% Its start is to begin a tcolorbox with our question-number as the title
        {end{tcolorbox}}% And its end is just to end tcolorbox

        tcbset{colback=orange!20!white,colframe=orange!75,fonttitle=sffamilybfseries}% Fiddle with colors, fonts etc here

        begin{document}
        begin{question}{10.2}
        Let (R) be an integral domain. Show that if (R[x]) is a principal ideal domain, then (R) is a field.
        end{question}
        Proof: The map (varphi : R[x] to R) defined by (varphi: p(x) mapsto p(0)) is a surjective homomorphism with kerned ((x)). By the first isomorphism theorem, we have (R[x]/(x) cong R). Furthermore, ((x)) is a maximal ideal, is a prime ideal, and because (R[x]) is a principal ideal domain, ((x)) is maximal. Therefore (R[x]/(x)) is a field, so (R) is a field as well.

        end{document}


        Boxed text image



        You could start by experimenting with tcolorbox: find its documentation with texdoc tcolorbox at the terminal or on CTAN.






        share|improve this answer












        As others have pointed out, there are a massive range of options for doing boxed and colored text. Here's just one example. Whichever you use, you probably want to set it up as a personally defined environment: that way you can easily change the precise implementation without having to alter your document in more than one place. If you learn anything from this, learn that!



        documentclass[12pt]{article}
        usepackage{tcolorbox}% Here's the package we will use. Many options for sure.

        newenvironment{question}[1]% We set up an environment which takes one mandatory argument: the question number.
        {begin{tcolorbox}[title=#1]}% Its start is to begin a tcolorbox with our question-number as the title
        {end{tcolorbox}}% And its end is just to end tcolorbox

        tcbset{colback=orange!20!white,colframe=orange!75,fonttitle=sffamilybfseries}% Fiddle with colors, fonts etc here

        begin{document}
        begin{question}{10.2}
        Let (R) be an integral domain. Show that if (R[x]) is a principal ideal domain, then (R) is a field.
        end{question}
        Proof: The map (varphi : R[x] to R) defined by (varphi: p(x) mapsto p(0)) is a surjective homomorphism with kerned ((x)). By the first isomorphism theorem, we have (R[x]/(x) cong R). Furthermore, ((x)) is a maximal ideal, is a prime ideal, and because (R[x]) is a principal ideal domain, ((x)) is maximal. Therefore (R[x]/(x)) is a field, so (R) is a field as well.

        end{document}


        Boxed text image



        You could start by experimenting with tcolorbox: find its documentation with texdoc tcolorbox at the terminal or on CTAN.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 at 23:09









        Paul StanleyPaul Stanley

        14.1k42747




        14.1k42747






























            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%2f468321%2fis-it-possible-to-outline-questions-like-this-and-what-are-some-other-options%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

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents