color - background for warning symbol












2















This warning icon in link: How to print a warning sign (triangle with exclamation point)?



i want to fill red colour in backgroud like attached image
enter image description here



This minimal code:



documentclass{article}
usepackage{stackengine}
usepackage{scalerel}
usepackage{xcolor}
newcommanddangersign[1][2ex]{%
renewcommandstacktype{L}%
scaleto{stackon[1.3pt]{color{red}$triangle$}{tiny !}}{#1}%
}
begin{document}
This is a danger sign 5ex tall: dangersign[5ex]par
Here is the default (2ex) size: dangersign
end{document}


! can black or white
Please help.
Thank in advance










share|improve this question



























    2















    This warning icon in link: How to print a warning sign (triangle with exclamation point)?



    i want to fill red colour in backgroud like attached image
    enter image description here



    This minimal code:



    documentclass{article}
    usepackage{stackengine}
    usepackage{scalerel}
    usepackage{xcolor}
    newcommanddangersign[1][2ex]{%
    renewcommandstacktype{L}%
    scaleto{stackon[1.3pt]{color{red}$triangle$}{tiny !}}{#1}%
    }
    begin{document}
    This is a danger sign 5ex tall: dangersign[5ex]par
    Here is the default (2ex) size: dangersign
    end{document}


    ! can black or white
    Please help.
    Thank in advance










    share|improve this question

























      2












      2








      2








      This warning icon in link: How to print a warning sign (triangle with exclamation point)?



      i want to fill red colour in backgroud like attached image
      enter image description here



      This minimal code:



      documentclass{article}
      usepackage{stackengine}
      usepackage{scalerel}
      usepackage{xcolor}
      newcommanddangersign[1][2ex]{%
      renewcommandstacktype{L}%
      scaleto{stackon[1.3pt]{color{red}$triangle$}{tiny !}}{#1}%
      }
      begin{document}
      This is a danger sign 5ex tall: dangersign[5ex]par
      Here is the default (2ex) size: dangersign
      end{document}


      ! can black or white
      Please help.
      Thank in advance










      share|improve this question














      This warning icon in link: How to print a warning sign (triangle with exclamation point)?



      i want to fill red colour in backgroud like attached image
      enter image description here



      This minimal code:



      documentclass{article}
      usepackage{stackengine}
      usepackage{scalerel}
      usepackage{xcolor}
      newcommanddangersign[1][2ex]{%
      renewcommandstacktype{L}%
      scaleto{stackon[1.3pt]{color{red}$triangle$}{tiny !}}{#1}%
      }
      begin{document}
      This is a danger sign 5ex tall: dangersign[5ex]par
      Here is the default (2ex) size: dangersign
      end{document}


      ! can black or white
      Please help.
      Thank in advance







      icon






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 hours ago









      latexfortilatexforti

      4467




      4467






















          1 Answer
          1






          active

          oldest

          votes


















          5














          documentclass{article}
          usepackage{stackengine}
          usepackage{scalerel}
          usepackage{xcolor,amssymb}
          newcommanddangersignb[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          newcommanddangersignw[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{color{white}tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          begin{document}
          This is a (black) danger sign 5ex tall: dangersignb[5ex]par
          Here is the default (2ex) size: dangersignb

          This is a (white) danger sign 5ex tall: dangersignw[5ex]par
          Here is the default (2ex) size: dangersignw
          end{document}


          enter image description here






          share|improve this answer
























          • B.Segletes. Your above code work in overleaf. But I run in texmarker this come error: "package stackengine could not be installed". please help. thanks

            – latexforti
            9 hours ago






          • 1





            @latexforti I am not familiar with texmarker, but you can find the style file at ctan.org/pkg/stackengine and place it in your working directory.

            – Steven B. Segletes
            8 hours 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%2f483162%2fcolor-background-for-warning-symbol%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









          5














          documentclass{article}
          usepackage{stackengine}
          usepackage{scalerel}
          usepackage{xcolor,amssymb}
          newcommanddangersignb[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          newcommanddangersignw[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{color{white}tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          begin{document}
          This is a (black) danger sign 5ex tall: dangersignb[5ex]par
          Here is the default (2ex) size: dangersignb

          This is a (white) danger sign 5ex tall: dangersignw[5ex]par
          Here is the default (2ex) size: dangersignw
          end{document}


          enter image description here






          share|improve this answer
























          • B.Segletes. Your above code work in overleaf. But I run in texmarker this come error: "package stackengine could not be installed". please help. thanks

            – latexforti
            9 hours ago






          • 1





            @latexforti I am not familiar with texmarker, but you can find the style file at ctan.org/pkg/stackengine and place it in your working directory.

            – Steven B. Segletes
            8 hours ago
















          5














          documentclass{article}
          usepackage{stackengine}
          usepackage{scalerel}
          usepackage{xcolor,amssymb}
          newcommanddangersignb[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          newcommanddangersignw[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{color{white}tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          begin{document}
          This is a (black) danger sign 5ex tall: dangersignb[5ex]par
          Here is the default (2ex) size: dangersignb

          This is a (white) danger sign 5ex tall: dangersignw[5ex]par
          Here is the default (2ex) size: dangersignw
          end{document}


          enter image description here






          share|improve this answer
























          • B.Segletes. Your above code work in overleaf. But I run in texmarker this come error: "package stackengine could not be installed". please help. thanks

            – latexforti
            9 hours ago






          • 1





            @latexforti I am not familiar with texmarker, but you can find the style file at ctan.org/pkg/stackengine and place it in your working directory.

            – Steven B. Segletes
            8 hours ago














          5












          5








          5







          documentclass{article}
          usepackage{stackengine}
          usepackage{scalerel}
          usepackage{xcolor,amssymb}
          newcommanddangersignb[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          newcommanddangersignw[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{color{white}tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          begin{document}
          This is a (black) danger sign 5ex tall: dangersignb[5ex]par
          Here is the default (2ex) size: dangersignb

          This is a (white) danger sign 5ex tall: dangersignw[5ex]par
          Here is the default (2ex) size: dangersignw
          end{document}


          enter image description here






          share|improve this answer













          documentclass{article}
          usepackage{stackengine}
          usepackage{scalerel}
          usepackage{xcolor,amssymb}
          newcommanddangersignb[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          newcommanddangersignw[1][2ex]{%
          scaleto{stackengine{0.3pt}{scalebox{1.1}[.9]{%
          color{red}$blacktriangle$}}{color{white}tinybfseries !}{O}{c}{F}{F}{L}}{#1}%
          }
          begin{document}
          This is a (black) danger sign 5ex tall: dangersignb[5ex]par
          Here is the default (2ex) size: dangersignb

          This is a (white) danger sign 5ex tall: dangersignw[5ex]par
          Here is the default (2ex) size: dangersignw
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 9 hours ago









          Steven B. SegletesSteven B. Segletes

          161k9205415




          161k9205415













          • B.Segletes. Your above code work in overleaf. But I run in texmarker this come error: "package stackengine could not be installed". please help. thanks

            – latexforti
            9 hours ago






          • 1





            @latexforti I am not familiar with texmarker, but you can find the style file at ctan.org/pkg/stackengine and place it in your working directory.

            – Steven B. Segletes
            8 hours ago



















          • B.Segletes. Your above code work in overleaf. But I run in texmarker this come error: "package stackengine could not be installed". please help. thanks

            – latexforti
            9 hours ago






          • 1





            @latexforti I am not familiar with texmarker, but you can find the style file at ctan.org/pkg/stackengine and place it in your working directory.

            – Steven B. Segletes
            8 hours ago

















          B.Segletes. Your above code work in overleaf. But I run in texmarker this come error: "package stackengine could not be installed". please help. thanks

          – latexforti
          9 hours ago





          B.Segletes. Your above code work in overleaf. But I run in texmarker this come error: "package stackengine could not be installed". please help. thanks

          – latexforti
          9 hours ago




          1




          1





          @latexforti I am not familiar with texmarker, but you can find the style file at ctan.org/pkg/stackengine and place it in your working directory.

          – Steven B. Segletes
          8 hours ago





          @latexforti I am not familiar with texmarker, but you can find the style file at ctan.org/pkg/stackengine and place it in your working directory.

          – Steven B. Segletes
          8 hours 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%2f483162%2fcolor-background-for-warning-symbol%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

          Lallio

          Unable to find Lightning Node

          Futebolista