Create custom note boxes Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30UTC (7:30pm US/Eastern)Create 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

What order were files/directories output in dir?

What are the discoveries that have been possible with the rejection of positivism?

Why we try to capture variability?

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Semigroups with no morphisms between them

A term for a woman complaining about things/begging in a cute/childish way

Why can't I install Tomboy in Ubuntu Mate 19.04?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

How to align multiple equations

Random body shuffle every night—can we still function?

How does the math work when buying airline miles?

How many morphisms from 1 to 1+1 can there be?

Why weren't discrete x86 CPUs ever used in game hardware?

How many time has Arya actually used Needle?

Most bit efficient text communication method?

What to do with repeated rejections for phd position

Why are vacuum tubes still used in amateur radios?

How does light 'choose' between wave and particle behaviour?

Customizing QGIS plugins

Do I really need to have a message in a novel to appeal to readers?

How do I find out the mythology and history of my Fortress?

Trademark violation for app?

What makes a man succeed?



Create custom note boxes



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30UTC (7:30pm US/Eastern)Create 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










2















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




























    2















    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


























      2












      2








      2


      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 Apr 1 at 21:20







      Igor

















      asked Apr 1 at 20:08









      IgorIgor

      274




      274




















          1 Answer
          1






          active

          oldest

          votes


















          6














          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
            Apr 1 at 21:11






          • 1





            It works. Check out my addendum.

            – ferahfeza
            Apr 1 at 21:16






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            Apr 1 at 21:17






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            Apr 1 at 21:18











          • @Igor, add to each bigskipnewline

            – ferahfeza
            Apr 1 at 21:23











          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









          6














          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
            Apr 1 at 21:11






          • 1





            It works. Check out my addendum.

            – ferahfeza
            Apr 1 at 21:16






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            Apr 1 at 21:17






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            Apr 1 at 21:18











          • @Igor, add to each bigskipnewline

            – ferahfeza
            Apr 1 at 21:23















          6














          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
            Apr 1 at 21:11






          • 1





            It works. Check out my addendum.

            – ferahfeza
            Apr 1 at 21:16






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            Apr 1 at 21:17






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            Apr 1 at 21:18











          • @Igor, add to each bigskipnewline

            – ferahfeza
            Apr 1 at 21:23













          6












          6








          6







          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 Apr 1 at 21:25

























          answered Apr 1 at 21:02









          ferahfezaferahfeza

          7,60912033




          7,60912033












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

            – Igor
            Apr 1 at 21:11






          • 1





            It works. Check out my addendum.

            – ferahfeza
            Apr 1 at 21:16






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            Apr 1 at 21:17






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            Apr 1 at 21:18











          • @Igor, add to each bigskipnewline

            – ferahfeza
            Apr 1 at 21:23

















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

            – Igor
            Apr 1 at 21:11






          • 1





            It works. Check out my addendum.

            – ferahfeza
            Apr 1 at 21:16






          • 1





            @ferahfeza I like it. My congratulations.

            – Sebastiano
            Apr 1 at 21:17






          • 1





            @Sebastiano, thank you very much.

            – ferahfeza
            Apr 1 at 21:18











          • @Igor, add to each bigskipnewline

            – ferahfeza
            Apr 1 at 21:23
















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

          – Igor
          Apr 1 at 21:11





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

          – Igor
          Apr 1 at 21:11




          1




          1





          It works. Check out my addendum.

          – ferahfeza
          Apr 1 at 21:16





          It works. Check out my addendum.

          – ferahfeza
          Apr 1 at 21:16




          1




          1





          @ferahfeza I like it. My congratulations.

          – Sebastiano
          Apr 1 at 21:17





          @ferahfeza I like it. My congratulations.

          – Sebastiano
          Apr 1 at 21:17




          1




          1





          @Sebastiano, thank you very much.

          – ferahfeza
          Apr 1 at 21:18





          @Sebastiano, thank you very much.

          – ferahfeza
          Apr 1 at 21:18













          @Igor, add to each bigskipnewline

          – ferahfeza
          Apr 1 at 21:23





          @Igor, add to each bigskipnewline

          – ferahfeza
          Apr 1 at 21:23

















          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

          Boston (Lincolnshire) Stedsbyld | Berne yn Boston | NavigaasjemenuBoston Borough CouncilBoston, Lincolnshire

          Trouble understanding the speech of overseas colleaguesHow can I better understand manager or clients with strong accents?Adding more movement and speech at the fundamental level to a highly-sedentary job?Difficulty in understanding Manager's accent(language and communication)How to adjust yourself where your colleagues are not understanding to you?Understanding manager's expectationsForeigner and colleagues using slangHaving difficulty understanding meetingsHow do you breathe when giving a speech?Trouble Waking Up for Emergencies (On-Call)Problems with colleaguesColleagues feeling insecure when I do my work

          Ballerup Komuun Stääden an saarpen | Futnuuten | Luke uk diar | Nawigatsjuunwww.ballerup.dkwww.statistikbanken.dk: Tabelle BEF44 (Folketal pr. 1. januar fordelt på byer)Commonskategorii: Ballerup Komuun55° 44′ N, 12° 22′ O