Create custom note boxes The Next CEO of Stack OverflowCreate Custom tabularcreate a framed environment for a margin noteHow to create nested custom environment with different kind of frames?How to create theorem boxesCreate custom note environment with tcolorboxCreate custom tabular environment“Author's note”How do I create colored table note enviroment?Making an environment for personal noteHow to create custom formatting command

Is it possible to create a QR code using text?

Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?

Does int main() need a declaration on C++?

How can I replace x-axis labels with pre-determined symbols?

How to show a landlord what we have in savings?

Compensation for working overtime on Saturdays

Does Germany produce more waste than the US?

Calculate the Mean mean of two numbers

Is this a new Fibonacci Identity?

Raspberry pi 3 B with Ubuntu 18.04 server arm64: what pi version

Upgrading From a 9 Speed Sora Derailleur?

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

Is a distribution that is normal, but highly skewed, considered Gaussian?

How does a dynamic QR code work?

Could you use a laser beam as a modulated carrier wave for radio signal?

How to unfasten electrical subpanel attached with ramset

How to coordinate airplane tickets?

Is it correct to say moon starry nights?

Compilation of a 2d array and a 1d array

What did the word "leisure" mean in late 18th Century usage?

Does the Idaho Potato Commission associate potato skins with healthy eating?

Can Sri Krishna be called 'a person'?

Calculating discount not working

Gauss' Posthumous Publications?



Create custom note boxes



The Next CEO of Stack OverflowCreate Custom tabularcreate a framed environment for a margin noteHow to create nested custom environment with different kind of frames?How to create theorem boxesCreate custom note environment with tcolorboxCreate custom tabular environment“Author's note”How do I create colored table note enviroment?Making an environment for personal noteHow to create custom formatting command










1















I am trying to create custom info boxes (very similar as in awesomebox package).



The and everything sims is fine except when the box is not surrounded with some text. Then I get an error There's no line here to end.



I guess the error is because of bigskipnewline in my macros. I used it to create extra paddings on top and bottom of the environment and macros



documentclass[12pt,a4paper]article
usepackage[utf8]inputenc
usepackage[margin=2cm]geometry
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagegraphicx
usepackagefontawesome
parindent=0ex
usepackagexcolor

% RED
definecolorredSevenrgb0.94, 0.24, 0.24
definecolorredNinergb0.79, 0.16, 0.16

% ORANGE
definecolororangeSevenrgb0.97, 0.4, 0.03
definecolororangeNinergb0.85, 0.28, 0.06

% BANS ----------------------------------------------------------------------

newcommandbanBox[2][ban]%
bigskipnewline
beginminipage.1textwidthcentering
textcolorredSevenfontsize1624faicon#1
endminipage%
textcolorredSevenvrule width 3pt hspace14pt
beginminipage.8textwidth
textcolorredNine#2
endminipage
smallskipnewline


newenvironmentbanEnv[1][ban]%
bigskipnewline%
beginminipage.1textwidthcentering%
textcolorredSevenfontsize1624faicon#1%
endminipage%
textcolorredSevenvrule width 3pt hspace14pt%
beginminipage.8textwidth
colorredNine
endminipagebigskipnewline

% WARNINGS ------------------------------------------------------------------

newcommandwarningBox[2][exclamation-triangle]%
bigskip newline
beginminipage.1textwidthcentering
textcolororangeSevenfontsize1624faicon#1
endminipage%
textcolororangeSevenvrule width 3pt hspace14pt
beginminipage.8textwidth
textcolororangeNine#2
endminipage
newline


newenvironmentwarningEnv[1][exclamation-triangle]%
bigskipnewline
beginminipage.1textwidthcentering%
textcolororangeSevenfontsize1624faicon#1%
endminipage%
textcolororangeSevenvrule width 3pt hspace14pt%
beginminipage.8textwidth
colororangeNine
endminipagebigskipnewline

%-------------------------------------------------------------------------------

begindocument

Comment this line or Delete any commented line bellow
banBoxBan box.
% A
beginbanEnv
Ban environment.\
Lorem ipsum dolor sit amet.\
Earum odit quia maiores nisi illum reiciendis aspernatur.
endbanEnv
% B
warningBoxWarning box.
% C
beginwarningEnv
Warning environment.\
Lorem ipsum dolor sit amet\
Earum odit quia maiores nisi illum reiciendis aspernatur.
endwarningEnv
% D

enddocument


Updated:
The worst case if is no line in between.



begindocument

banBoxBan box.

beginbanEnv
Ban environment.\
Lorem ipsum dolor sit amet.\
Earum odit quia maiores nisi illum reiciendis aspernatur.
endbanEnv

warningBoxWarning box.

beginwarningEnv
Warning environment.\
Lorem ipsum dolor sit amet\
Earum odit quia maiores nisi illum reiciendis aspernatur.
endwarningEnv


enddocument









share|improve this question




























    1















    I am trying to create custom info boxes (very similar as in awesomebox package).



    The and everything sims is fine except when the box is not surrounded with some text. Then I get an error There's no line here to end.



    I guess the error is because of bigskipnewline in my macros. I used it to create extra paddings on top and bottom of the environment and macros



    documentclass[12pt,a4paper]article
    usepackage[utf8]inputenc
    usepackage[margin=2cm]geometry
    usepackageamsmath
    usepackageamsfonts
    usepackageamssymb
    usepackagegraphicx
    usepackagefontawesome
    parindent=0ex
    usepackagexcolor

    % RED
    definecolorredSevenrgb0.94, 0.24, 0.24
    definecolorredNinergb0.79, 0.16, 0.16

    % ORANGE
    definecolororangeSevenrgb0.97, 0.4, 0.03
    definecolororangeNinergb0.85, 0.28, 0.06

    % BANS ----------------------------------------------------------------------

    newcommandbanBox[2][ban]%
    bigskipnewline
    beginminipage.1textwidthcentering
    textcolorredSevenfontsize1624faicon#1
    endminipage%
    textcolorredSevenvrule width 3pt hspace14pt
    beginminipage.8textwidth
    textcolorredNine#2
    endminipage
    smallskipnewline


    newenvironmentbanEnv[1][ban]%
    bigskipnewline%
    beginminipage.1textwidthcentering%
    textcolorredSevenfontsize1624faicon#1%
    endminipage%
    textcolorredSevenvrule width 3pt hspace14pt%
    beginminipage.8textwidth
    colorredNine
    endminipagebigskipnewline

    % WARNINGS ------------------------------------------------------------------

    newcommandwarningBox[2][exclamation-triangle]%
    bigskip newline
    beginminipage.1textwidthcentering
    textcolororangeSevenfontsize1624faicon#1
    endminipage%
    textcolororangeSevenvrule width 3pt hspace14pt
    beginminipage.8textwidth
    textcolororangeNine#2
    endminipage
    newline


    newenvironmentwarningEnv[1][exclamation-triangle]%
    bigskipnewline
    beginminipage.1textwidthcentering%
    textcolororangeSevenfontsize1624faicon#1%
    endminipage%
    textcolororangeSevenvrule width 3pt hspace14pt%
    beginminipage.8textwidth
    colororangeNine
    endminipagebigskipnewline

    %-------------------------------------------------------------------------------

    begindocument

    Comment this line or Delete any commented line bellow
    banBoxBan box.
    % A
    beginbanEnv
    Ban environment.\
    Lorem ipsum dolor sit amet.\
    Earum odit quia maiores nisi illum reiciendis aspernatur.
    endbanEnv
    % B
    warningBoxWarning box.
    % C
    beginwarningEnv
    Warning environment.\
    Lorem ipsum dolor sit amet\
    Earum odit quia maiores nisi illum reiciendis aspernatur.
    endwarningEnv
    % D

    enddocument


    Updated:
    The worst case if is no line in between.



    begindocument

    banBoxBan box.

    beginbanEnv
    Ban environment.\
    Lorem ipsum dolor sit amet.\
    Earum odit quia maiores nisi illum reiciendis aspernatur.
    endbanEnv

    warningBoxWarning box.

    beginwarningEnv
    Warning environment.\
    Lorem ipsum dolor sit amet\
    Earum odit quia maiores nisi illum reiciendis aspernatur.
    endwarningEnv


    enddocument









    share|improve this question


























      1












      1








      1


      0






      I am trying to create custom info boxes (very similar as in awesomebox package).



      The and everything sims is fine except when the box is not surrounded with some text. Then I get an error There's no line here to end.



      I guess the error is because of bigskipnewline in my macros. I used it to create extra paddings on top and bottom of the environment and macros



      documentclass[12pt,a4paper]article
      usepackage[utf8]inputenc
      usepackage[margin=2cm]geometry
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagegraphicx
      usepackagefontawesome
      parindent=0ex
      usepackagexcolor

      % RED
      definecolorredSevenrgb0.94, 0.24, 0.24
      definecolorredNinergb0.79, 0.16, 0.16

      % ORANGE
      definecolororangeSevenrgb0.97, 0.4, 0.03
      definecolororangeNinergb0.85, 0.28, 0.06

      % BANS ----------------------------------------------------------------------

      newcommandbanBox[2][ban]%
      bigskipnewline
      beginminipage.1textwidthcentering
      textcolorredSevenfontsize1624faicon#1
      endminipage%
      textcolorredSevenvrule width 3pt hspace14pt
      beginminipage.8textwidth
      textcolorredNine#2
      endminipage
      smallskipnewline


      newenvironmentbanEnv[1][ban]%
      bigskipnewline%
      beginminipage.1textwidthcentering%
      textcolorredSevenfontsize1624faicon#1%
      endminipage%
      textcolorredSevenvrule width 3pt hspace14pt%
      beginminipage.8textwidth
      colorredNine
      endminipagebigskipnewline

      % WARNINGS ------------------------------------------------------------------

      newcommandwarningBox[2][exclamation-triangle]%
      bigskip newline
      beginminipage.1textwidthcentering
      textcolororangeSevenfontsize1624faicon#1
      endminipage%
      textcolororangeSevenvrule width 3pt hspace14pt
      beginminipage.8textwidth
      textcolororangeNine#2
      endminipage
      newline


      newenvironmentwarningEnv[1][exclamation-triangle]%
      bigskipnewline
      beginminipage.1textwidthcentering%
      textcolororangeSevenfontsize1624faicon#1%
      endminipage%
      textcolororangeSevenvrule width 3pt hspace14pt%
      beginminipage.8textwidth
      colororangeNine
      endminipagebigskipnewline

      %-------------------------------------------------------------------------------

      begindocument

      Comment this line or Delete any commented line bellow
      banBoxBan box.
      % A
      beginbanEnv
      Ban environment.\
      Lorem ipsum dolor sit amet.\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endbanEnv
      % B
      warningBoxWarning box.
      % C
      beginwarningEnv
      Warning environment.\
      Lorem ipsum dolor sit amet\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endwarningEnv
      % D

      enddocument


      Updated:
      The worst case if is no line in between.



      begindocument

      banBoxBan box.

      beginbanEnv
      Ban environment.\
      Lorem ipsum dolor sit amet.\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endbanEnv

      warningBoxWarning box.

      beginwarningEnv
      Warning environment.\
      Lorem ipsum dolor sit amet\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endwarningEnv


      enddocument









      share|improve this question
















      I am trying to create custom info boxes (very similar as in awesomebox package).



      The and everything sims is fine except when the box is not surrounded with some text. Then I get an error There's no line here to end.



      I guess the error is because of bigskipnewline in my macros. I used it to create extra paddings on top and bottom of the environment and macros



      documentclass[12pt,a4paper]article
      usepackage[utf8]inputenc
      usepackage[margin=2cm]geometry
      usepackageamsmath
      usepackageamsfonts
      usepackageamssymb
      usepackagegraphicx
      usepackagefontawesome
      parindent=0ex
      usepackagexcolor

      % RED
      definecolorredSevenrgb0.94, 0.24, 0.24
      definecolorredNinergb0.79, 0.16, 0.16

      % ORANGE
      definecolororangeSevenrgb0.97, 0.4, 0.03
      definecolororangeNinergb0.85, 0.28, 0.06

      % BANS ----------------------------------------------------------------------

      newcommandbanBox[2][ban]%
      bigskipnewline
      beginminipage.1textwidthcentering
      textcolorredSevenfontsize1624faicon#1
      endminipage%
      textcolorredSevenvrule width 3pt hspace14pt
      beginminipage.8textwidth
      textcolorredNine#2
      endminipage
      smallskipnewline


      newenvironmentbanEnv[1][ban]%
      bigskipnewline%
      beginminipage.1textwidthcentering%
      textcolorredSevenfontsize1624faicon#1%
      endminipage%
      textcolorredSevenvrule width 3pt hspace14pt%
      beginminipage.8textwidth
      colorredNine
      endminipagebigskipnewline

      % WARNINGS ------------------------------------------------------------------

      newcommandwarningBox[2][exclamation-triangle]%
      bigskip newline
      beginminipage.1textwidthcentering
      textcolororangeSevenfontsize1624faicon#1
      endminipage%
      textcolororangeSevenvrule width 3pt hspace14pt
      beginminipage.8textwidth
      textcolororangeNine#2
      endminipage
      newline


      newenvironmentwarningEnv[1][exclamation-triangle]%
      bigskipnewline
      beginminipage.1textwidthcentering%
      textcolororangeSevenfontsize1624faicon#1%
      endminipage%
      textcolororangeSevenvrule width 3pt hspace14pt%
      beginminipage.8textwidth
      colororangeNine
      endminipagebigskipnewline

      %-------------------------------------------------------------------------------

      begindocument

      Comment this line or Delete any commented line bellow
      banBoxBan box.
      % A
      beginbanEnv
      Ban environment.\
      Lorem ipsum dolor sit amet.\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endbanEnv
      % B
      warningBoxWarning box.
      % C
      beginwarningEnv
      Warning environment.\
      Lorem ipsum dolor sit amet\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endwarningEnv
      % D

      enddocument


      Updated:
      The worst case if is no line in between.



      begindocument

      banBoxBan box.

      beginbanEnv
      Ban environment.\
      Lorem ipsum dolor sit amet.\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endbanEnv

      warningBoxWarning box.

      beginwarningEnv
      Warning environment.\
      Lorem ipsum dolor sit amet\
      Earum odit quia maiores nisi illum reiciendis aspernatur.
      endwarningEnv


      enddocument






      macros environments






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 5 hours ago







      Igor

















      asked 6 hours ago









      IgorIgor

      204




      204




















          1 Answer
          1






          active

          oldest

          votes


















          5














          I have added a space character before bigskipnewline for newline command. Such as:



          documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline % <----------------- added and space
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          %Comment this line or Delete any commented line bellow
          banBoxBan box.
          A
          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv
          B
          warningBoxWarning box.
          C
          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv
          D
          enddocument


          enter image description here



          ADDENDUM:



          If we remove the A, B, C and D lines, output is follow:



           documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          banBoxBan box.

          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv

          warningBoxWarning box.

          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv

          enddocument


          enter image description here






          share|improve this answer

























          • it does'n work if you remove the text in between (A, B, C, D)

            – Igor
            5 hours ago






          • 1





            It works. Check out my addendum.

            – ferahfeza
            5 hours ago






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            5 hours ago






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            5 hours ago











          • @Igor, add to each bigskipnewline

            – ferahfeza
            5 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%2f482643%2fcreate-custom-note-boxes%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














          I have added a space character before bigskipnewline for newline command. Such as:



          documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline % <----------------- added and space
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          %Comment this line or Delete any commented line bellow
          banBoxBan box.
          A
          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv
          B
          warningBoxWarning box.
          C
          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv
          D
          enddocument


          enter image description here



          ADDENDUM:



          If we remove the A, B, C and D lines, output is follow:



           documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          banBoxBan box.

          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv

          warningBoxWarning box.

          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv

          enddocument


          enter image description here






          share|improve this answer

























          • it does'n work if you remove the text in between (A, B, C, D)

            – Igor
            5 hours ago






          • 1





            It works. Check out my addendum.

            – ferahfeza
            5 hours ago






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            5 hours ago






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            5 hours ago











          • @Igor, add to each bigskipnewline

            – ferahfeza
            5 hours ago















          5














          I have added a space character before bigskipnewline for newline command. Such as:



          documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline % <----------------- added and space
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          %Comment this line or Delete any commented line bellow
          banBoxBan box.
          A
          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv
          B
          warningBoxWarning box.
          C
          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv
          D
          enddocument


          enter image description here



          ADDENDUM:



          If we remove the A, B, C and D lines, output is follow:



           documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          banBoxBan box.

          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv

          warningBoxWarning box.

          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv

          enddocument


          enter image description here






          share|improve this answer

























          • it does'n work if you remove the text in between (A, B, C, D)

            – Igor
            5 hours ago






          • 1





            It works. Check out my addendum.

            – ferahfeza
            5 hours ago






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            5 hours ago






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            5 hours ago











          • @Igor, add to each bigskipnewline

            – ferahfeza
            5 hours ago













          5












          5








          5







          I have added a space character before bigskipnewline for newline command. Such as:



          documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline % <----------------- added and space
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          %Comment this line or Delete any commented line bellow
          banBoxBan box.
          A
          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv
          B
          warningBoxWarning box.
          C
          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv
          D
          enddocument


          enter image description here



          ADDENDUM:



          If we remove the A, B, C and D lines, output is follow:



           documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          banBoxBan box.

          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv

          warningBoxWarning box.

          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv

          enddocument


          enter image description here






          share|improve this answer















          I have added a space character before bigskipnewline for newline command. Such as:



          documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline % <----------------- added and space
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          %Comment this line or Delete any commented line bellow
          banBoxBan box.
          A
          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv
          B
          warningBoxWarning box.
          C
          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv
          D
          enddocument


          enter image description here



          ADDENDUM:



          If we remove the A, B, C and D lines, output is follow:



           documentclass[12pt,a4paper]article
          usepackage[utf8]inputenc
          usepackage[margin=2cm]geometry
          usepackageamsmath
          usepackageamsfonts
          usepackageamssymb
          usepackagegraphicx
          usepackagefontawesome
          parindent=0ex
          usepackagexcolor

          % RED
          definecolorredSevenrgb0.94, 0.24, 0.24
          definecolorredNinergb0.79, 0.16, 0.16

          % ORANGE
          definecolororangeSevenrgb0.97, 0.4, 0.03
          definecolororangeNinergb0.85, 0.28, 0.06

          % BANS ----------------------------------------------------------------------

          newcommandbanBox[2][ban]%
          bigskipnewline
          beginminipage.1textwidthcentering
          textcolorredSevenfontsize1624faicon#1
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolorredNine#2
          endminipage
          smallskipnewline


          newenvironmentbanEnv[1][ban]%
          bigskipnewline%
          beginminipage.1textwidthcentering%
          textcolorredSevenfontsize1624faicon#1%
          endminipage%
          textcolorredSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colorredNine
          endminipagebigskipnewline

          % WARNINGS ------------------------------------------------------------------

          newcommandwarningBox[2][exclamation-triangle]%
          bigskip newline
          beginminipage.1textwidthcentering
          textcolororangeSevenfontsize1624faicon#1
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt
          beginminipage.8textwidth
          textcolororangeNine#2
          endminipage
          newline


          newenvironmentwarningEnv[1][exclamation-triangle]%
          bigskipnewline
          beginminipage.1textwidthcentering%
          textcolororangeSevenfontsize1624faicon#1%
          endminipage%
          textcolororangeSevenvrule width 3pt hspace14pt%
          beginminipage.8textwidth
          colororangeNine
          endminipagebigskipnewline

          %-------------------------------------------------------------------------------

          begindocument

          banBoxBan box.

          beginbanEnv
          Ban environment.\
          Lorem ipsum dolor sit amet.\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endbanEnv

          warningBoxWarning box.

          beginwarningEnv
          Warning environment.\
          Lorem ipsum dolor sit amet\
          Earum odit quia maiores nisi illum reiciendis aspernatur.
          endwarningEnv

          enddocument


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 5 hours ago

























          answered 5 hours ago









          ferahfezaferahfeza

          7,29411933




          7,29411933












          • it does'n work if you remove the text in between (A, B, C, D)

            – Igor
            5 hours ago






          • 1





            It works. Check out my addendum.

            – ferahfeza
            5 hours ago






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            5 hours ago






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            5 hours ago











          • @Igor, add to each bigskipnewline

            – ferahfeza
            5 hours ago

















          • it does'n work if you remove the text in between (A, B, C, D)

            – Igor
            5 hours ago






          • 1





            It works. Check out my addendum.

            – ferahfeza
            5 hours ago






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            5 hours ago






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            5 hours ago











          • @Igor, add to each bigskipnewline

            – ferahfeza
            5 hours ago
















          it does'n work if you remove the text in between (A, B, C, D)

          – Igor
          5 hours ago





          it does'n work if you remove the text in between (A, B, C, D)

          – Igor
          5 hours ago




          1




          1





          It works. Check out my addendum.

          – ferahfeza
          5 hours ago





          It works. Check out my addendum.

          – ferahfeza
          5 hours ago




          1




          1





          @ferahfeza I like it. My congratulations.

          – Sebastiano
          5 hours ago





          @ferahfeza I like it. My congratulations.

          – Sebastiano
          5 hours ago




          1




          1





          @Sebastiano, thank you very much.

          – ferahfeza
          5 hours ago





          @Sebastiano, thank you very much.

          – ferahfeza
          5 hours ago













          @Igor, add to each bigskipnewline

          – ferahfeza
          5 hours ago





          @Igor, add to each bigskipnewline

          – ferahfeza
          5 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%2f482643%2fcreate-custom-note-boxes%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

          Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]Combining two 32-bit integers into one 64-bit integerDetermine if an int is within rangeLossy packing 32 bit integer to 16 bitComputing the square root of a 64-bit integerKeeping integer addition within boundsSafe multiplication of two 64-bit signed integersLeetcode 10: Regular Expression MatchingSigned integer-to-ascii x86_64 assembler macroReverse the digits of an Integer“Add two numbers given in reverse order from a linked list”

          Category:Fedor von Bock Media in category "Fedor von Bock"Navigation menuUpload mediaISNI: 0000 0000 5511 3417VIAF ID: 24712551GND ID: 119294796Library of Congress authority ID: n96068363BnF ID: 12534305fSUDOC authorities ID: 034604189Open Library ID: OL338253ANKCR AUT ID: jn19990000869National Library of Israel ID: 000514068National Thesaurus for Author Names ID: 341574317ReasonatorScholiaStatistics

          Kiel Indholdsfortegnelse Historie | Transport og færgeforbindelser | Sejlsport og anden sport | Kultur | Kendte personer fra Kiel | Noter | Litteratur | Eksterne henvisninger | Navigationsmenuwww.kiel.de54°19′31″N 10°8′26″Ø / 54.32528°N 10.14056°Ø / 54.32528; 10.14056Oberbürgermeister Dr. Ulf Kämpferwww.statistik-nord.deDen danske Stats StatistikKiels hjemmesiderrrWorldCat312794080n790547494030481-4