Creating a note section












5















I'm wondering how I can create a note section like in the picture with two lines. I would love if I can use it as a command in LaTeX like note{some text}.



enter image description here



Thanks in advance.










share|improve this question




















  • 2





    Could post what you've tried?

    – Bernard
    Feb 10 at 12:01











  • What does your question have to do with biblatex or marginnote?

    – Bernard
    Feb 10 at 12:12











  • So far I have tried using ` begin{lstlisting} Note: Some text end{lstlisting} `

    – user3874252
    Feb 10 at 12:16








  • 1





    Using what, exactly?

    – Bernard
    Feb 10 at 12:20











  • The lstlisting package. But that package is more for larger amount of code and have it formatted to display a gray background.

    – user3874252
    Feb 10 at 12:27
















5















I'm wondering how I can create a note section like in the picture with two lines. I would love if I can use it as a command in LaTeX like note{some text}.



enter image description here



Thanks in advance.










share|improve this question




















  • 2





    Could post what you've tried?

    – Bernard
    Feb 10 at 12:01











  • What does your question have to do with biblatex or marginnote?

    – Bernard
    Feb 10 at 12:12











  • So far I have tried using ` begin{lstlisting} Note: Some text end{lstlisting} `

    – user3874252
    Feb 10 at 12:16








  • 1





    Using what, exactly?

    – Bernard
    Feb 10 at 12:20











  • The lstlisting package. But that package is more for larger amount of code and have it formatted to display a gray background.

    – user3874252
    Feb 10 at 12:27














5












5








5


1






I'm wondering how I can create a note section like in the picture with two lines. I would love if I can use it as a command in LaTeX like note{some text}.



enter image description here



Thanks in advance.










share|improve this question
















I'm wondering how I can create a note section like in the picture with two lines. I would love if I can use it as a command in LaTeX like note{some text}.



enter image description here



Thanks in advance.







footnotes






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 10 at 14:17







user31729

















asked Feb 10 at 11:49









user3874252user3874252

524




524








  • 2





    Could post what you've tried?

    – Bernard
    Feb 10 at 12:01











  • What does your question have to do with biblatex or marginnote?

    – Bernard
    Feb 10 at 12:12











  • So far I have tried using ` begin{lstlisting} Note: Some text end{lstlisting} `

    – user3874252
    Feb 10 at 12:16








  • 1





    Using what, exactly?

    – Bernard
    Feb 10 at 12:20











  • The lstlisting package. But that package is more for larger amount of code and have it formatted to display a gray background.

    – user3874252
    Feb 10 at 12:27














  • 2





    Could post what you've tried?

    – Bernard
    Feb 10 at 12:01











  • What does your question have to do with biblatex or marginnote?

    – Bernard
    Feb 10 at 12:12











  • So far I have tried using ` begin{lstlisting} Note: Some text end{lstlisting} `

    – user3874252
    Feb 10 at 12:16








  • 1





    Using what, exactly?

    – Bernard
    Feb 10 at 12:20











  • The lstlisting package. But that package is more for larger amount of code and have it formatted to display a gray background.

    – user3874252
    Feb 10 at 12:27








2




2





Could post what you've tried?

– Bernard
Feb 10 at 12:01





Could post what you've tried?

– Bernard
Feb 10 at 12:01













What does your question have to do with biblatex or marginnote?

– Bernard
Feb 10 at 12:12





What does your question have to do with biblatex or marginnote?

– Bernard
Feb 10 at 12:12













So far I have tried using ` begin{lstlisting} Note: Some text end{lstlisting} `

– user3874252
Feb 10 at 12:16







So far I have tried using ` begin{lstlisting} Note: Some text end{lstlisting} `

– user3874252
Feb 10 at 12:16






1




1





Using what, exactly?

– Bernard
Feb 10 at 12:20





Using what, exactly?

– Bernard
Feb 10 at 12:20













The lstlisting package. But that package is more for larger amount of code and have it formatted to display a gray background.

– user3874252
Feb 10 at 12:27





The lstlisting package. But that package is more for larger amount of code and have it formatted to display a gray background.

– user3874252
Feb 10 at 12:27










4 Answers
4






active

oldest

votes


















7














An inevitable tcolorbox solution, providing a lot of configuration possibilities.
The default shift of the Note: is set to 1.5cm, but this can be changed by the option nodeshift=...



enter image description here



documentclass{article}

usepackage{blindtext}

usepackage[most]{tcolorbox}

makeatletter
NewDocumentCommand{mynote}{+O{}+m}{%
begingroup
tcbset{%
noteshift/.store in=mynote@shift,
noteshift=1.5cm
}
begin{tcolorbox}[nobeforeafter,
enhanced,
sharp corners,
toprule=1pt,
bottomrule=1pt,
leftrule=0pt,
rightrule=0pt,
colback=yellow!20,
#1,
left skip=mynote@shift,
right skip=mynote@shift,
overlay={node[right] (mynotenode) at ([xshift=-mynote@shift]frame.west) {textbf{Note:}} ;},
]
#2
end{tcolorbox}
endgroup
}
makeatother

begin{document}

blindtext

mynote{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

% Exaggerated example
mynote[noteshift=4cm,colback=green!40]{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

end{document}





share|improve this answer





















  • 1





    The king of tcolorbox :-). Very nice and I have appreciated also your answer.

    – Sebastiano
    Feb 10 at 20:06






  • 1





    Thank you. That was the best solution for me!

    – user3874252
    Feb 14 at 14:49











  • @user3874252: You're welcome. Happy TeXing... but please don't use the green color example ;-)

    – user31729
    Feb 14 at 18:39











  • @ChristianHupfer Haha, yeah it will be colorless but I liked how you fixed the margins real nice. Thank you, again!

    – user3874252
    Feb 15 at 12:32



















8














Is this something that you were looking for ?



enter image description here



Then you can use the new command notte derived from the environment quote:



documentclass{article}
usepackage{lipsum}

newlength{Lnote}
newcommand{notte}[1]
{addtolength{leftmargini}{4em}
settowidth{Lnote}{textbf{Note:~}}
begin{quote}
rule{dimexprtextwidth-2leftmargini}{1pt}\
mbox{}hspace{-Lnote}textbf{Note:~}%
#1\[-0.5ex]
rule{dimexprtextwidth-2leftmargini}{1pt}
end{quote}
addtolength{leftmargini}{-4em}}

begin{document}
lipsum[3]

notte{To create a note section like in the picture, use the command texttt{notte}.}

lipsum[4]

notte{Another note}
end{document}





share|improve this answer



















  • 1





    Very good and I have appreciated your work.

    – Sebastiano
    Feb 10 at 12:59






  • 1





    @Sebastiano Thanks. However, I was wondering how to set the left and right margins differently-- leftmargini controls the left margin within a quote very much as its right margin too... and there apparently seems to be no rightmargini !

    – Partha D.
    Feb 10 at 13:05



















3














A solution with tabularx, makecell and linegoal:



documentclass{article}
usepackage{array}
usepackage{booktabs}
usepackage[svgnames, table]{xcolor}
usepackage{tabularx, makecell, linegoal}

usepackage{lipsum}% only for example text

newcommand{mynote}[1]{medskippartextbf{small Note}quadsetlength{extrarowheight}{2pt}begin{tabularx}{linegoal}{X}
Xhline{1pt}
rowcolor{WhiteSmoke!80!Lavender}#1 \
Xhline{1pt}
end{tabularx}}

begin{document}
sffamily
lipsum[2]

mynote{Internal pullup resistors are enabled on the MSP430F20xx to support ltextsuperscript{2}C communication}

end{document}


enter image description here






share|improve this answer































    2














    I would suggest you try footnote. There should be an understanding in the text, as to the note points to which text (like references). Here is a sample code:



    documentclass{article}
    begin{document}
    Hello World
    This is text with a note.footnote{This is the note text.
    Here it is at the bottom of the page.}
    end{document}


    enter image description here






    share|improve this answer
























      Your Answer








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

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

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


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474177%2fcreating-a-note-section%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      7














      An inevitable tcolorbox solution, providing a lot of configuration possibilities.
      The default shift of the Note: is set to 1.5cm, but this can be changed by the option nodeshift=...



      enter image description here



      documentclass{article}

      usepackage{blindtext}

      usepackage[most]{tcolorbox}

      makeatletter
      NewDocumentCommand{mynote}{+O{}+m}{%
      begingroup
      tcbset{%
      noteshift/.store in=mynote@shift,
      noteshift=1.5cm
      }
      begin{tcolorbox}[nobeforeafter,
      enhanced,
      sharp corners,
      toprule=1pt,
      bottomrule=1pt,
      leftrule=0pt,
      rightrule=0pt,
      colback=yellow!20,
      #1,
      left skip=mynote@shift,
      right skip=mynote@shift,
      overlay={node[right] (mynotenode) at ([xshift=-mynote@shift]frame.west) {textbf{Note:}} ;},
      ]
      #2
      end{tcolorbox}
      endgroup
      }
      makeatother

      begin{document}

      blindtext

      mynote{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      % Exaggerated example
      mynote[noteshift=4cm,colback=green!40]{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      end{document}





      share|improve this answer





















      • 1





        The king of tcolorbox :-). Very nice and I have appreciated also your answer.

        – Sebastiano
        Feb 10 at 20:06






      • 1





        Thank you. That was the best solution for me!

        – user3874252
        Feb 14 at 14:49











      • @user3874252: You're welcome. Happy TeXing... but please don't use the green color example ;-)

        – user31729
        Feb 14 at 18:39











      • @ChristianHupfer Haha, yeah it will be colorless but I liked how you fixed the margins real nice. Thank you, again!

        – user3874252
        Feb 15 at 12:32
















      7














      An inevitable tcolorbox solution, providing a lot of configuration possibilities.
      The default shift of the Note: is set to 1.5cm, but this can be changed by the option nodeshift=...



      enter image description here



      documentclass{article}

      usepackage{blindtext}

      usepackage[most]{tcolorbox}

      makeatletter
      NewDocumentCommand{mynote}{+O{}+m}{%
      begingroup
      tcbset{%
      noteshift/.store in=mynote@shift,
      noteshift=1.5cm
      }
      begin{tcolorbox}[nobeforeafter,
      enhanced,
      sharp corners,
      toprule=1pt,
      bottomrule=1pt,
      leftrule=0pt,
      rightrule=0pt,
      colback=yellow!20,
      #1,
      left skip=mynote@shift,
      right skip=mynote@shift,
      overlay={node[right] (mynotenode) at ([xshift=-mynote@shift]frame.west) {textbf{Note:}} ;},
      ]
      #2
      end{tcolorbox}
      endgroup
      }
      makeatother

      begin{document}

      blindtext

      mynote{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      % Exaggerated example
      mynote[noteshift=4cm,colback=green!40]{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      end{document}





      share|improve this answer





















      • 1





        The king of tcolorbox :-). Very nice and I have appreciated also your answer.

        – Sebastiano
        Feb 10 at 20:06






      • 1





        Thank you. That was the best solution for me!

        – user3874252
        Feb 14 at 14:49











      • @user3874252: You're welcome. Happy TeXing... but please don't use the green color example ;-)

        – user31729
        Feb 14 at 18:39











      • @ChristianHupfer Haha, yeah it will be colorless but I liked how you fixed the margins real nice. Thank you, again!

        – user3874252
        Feb 15 at 12:32














      7












      7








      7







      An inevitable tcolorbox solution, providing a lot of configuration possibilities.
      The default shift of the Note: is set to 1.5cm, but this can be changed by the option nodeshift=...



      enter image description here



      documentclass{article}

      usepackage{blindtext}

      usepackage[most]{tcolorbox}

      makeatletter
      NewDocumentCommand{mynote}{+O{}+m}{%
      begingroup
      tcbset{%
      noteshift/.store in=mynote@shift,
      noteshift=1.5cm
      }
      begin{tcolorbox}[nobeforeafter,
      enhanced,
      sharp corners,
      toprule=1pt,
      bottomrule=1pt,
      leftrule=0pt,
      rightrule=0pt,
      colback=yellow!20,
      #1,
      left skip=mynote@shift,
      right skip=mynote@shift,
      overlay={node[right] (mynotenode) at ([xshift=-mynote@shift]frame.west) {textbf{Note:}} ;},
      ]
      #2
      end{tcolorbox}
      endgroup
      }
      makeatother

      begin{document}

      blindtext

      mynote{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      % Exaggerated example
      mynote[noteshift=4cm,colback=green!40]{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      end{document}





      share|improve this answer















      An inevitable tcolorbox solution, providing a lot of configuration possibilities.
      The default shift of the Note: is set to 1.5cm, but this can be changed by the option nodeshift=...



      enter image description here



      documentclass{article}

      usepackage{blindtext}

      usepackage[most]{tcolorbox}

      makeatletter
      NewDocumentCommand{mynote}{+O{}+m}{%
      begingroup
      tcbset{%
      noteshift/.store in=mynote@shift,
      noteshift=1.5cm
      }
      begin{tcolorbox}[nobeforeafter,
      enhanced,
      sharp corners,
      toprule=1pt,
      bottomrule=1pt,
      leftrule=0pt,
      rightrule=0pt,
      colback=yellow!20,
      #1,
      left skip=mynote@shift,
      right skip=mynote@shift,
      overlay={node[right] (mynotenode) at ([xshift=-mynote@shift]frame.west) {textbf{Note:}} ;},
      ]
      #2
      end{tcolorbox}
      endgroup
      }
      makeatother

      begin{document}

      blindtext

      mynote{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      % Exaggerated example
      mynote[noteshift=4cm,colback=green!40]{Brontosaurs are thin at one end, thick in the middle and thin again at the other end}

      end{document}






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 10 at 14:19

























      answered Feb 10 at 14:11







      user31729















      • 1





        The king of tcolorbox :-). Very nice and I have appreciated also your answer.

        – Sebastiano
        Feb 10 at 20:06






      • 1





        Thank you. That was the best solution for me!

        – user3874252
        Feb 14 at 14:49











      • @user3874252: You're welcome. Happy TeXing... but please don't use the green color example ;-)

        – user31729
        Feb 14 at 18:39











      • @ChristianHupfer Haha, yeah it will be colorless but I liked how you fixed the margins real nice. Thank you, again!

        – user3874252
        Feb 15 at 12:32














      • 1





        The king of tcolorbox :-). Very nice and I have appreciated also your answer.

        – Sebastiano
        Feb 10 at 20:06






      • 1





        Thank you. That was the best solution for me!

        – user3874252
        Feb 14 at 14:49











      • @user3874252: You're welcome. Happy TeXing... but please don't use the green color example ;-)

        – user31729
        Feb 14 at 18:39











      • @ChristianHupfer Haha, yeah it will be colorless but I liked how you fixed the margins real nice. Thank you, again!

        – user3874252
        Feb 15 at 12:32








      1




      1





      The king of tcolorbox :-). Very nice and I have appreciated also your answer.

      – Sebastiano
      Feb 10 at 20:06





      The king of tcolorbox :-). Very nice and I have appreciated also your answer.

      – Sebastiano
      Feb 10 at 20:06




      1




      1





      Thank you. That was the best solution for me!

      – user3874252
      Feb 14 at 14:49





      Thank you. That was the best solution for me!

      – user3874252
      Feb 14 at 14:49













      @user3874252: You're welcome. Happy TeXing... but please don't use the green color example ;-)

      – user31729
      Feb 14 at 18:39





      @user3874252: You're welcome. Happy TeXing... but please don't use the green color example ;-)

      – user31729
      Feb 14 at 18:39













      @ChristianHupfer Haha, yeah it will be colorless but I liked how you fixed the margins real nice. Thank you, again!

      – user3874252
      Feb 15 at 12:32





      @ChristianHupfer Haha, yeah it will be colorless but I liked how you fixed the margins real nice. Thank you, again!

      – user3874252
      Feb 15 at 12:32











      8














      Is this something that you were looking for ?



      enter image description here



      Then you can use the new command notte derived from the environment quote:



      documentclass{article}
      usepackage{lipsum}

      newlength{Lnote}
      newcommand{notte}[1]
      {addtolength{leftmargini}{4em}
      settowidth{Lnote}{textbf{Note:~}}
      begin{quote}
      rule{dimexprtextwidth-2leftmargini}{1pt}\
      mbox{}hspace{-Lnote}textbf{Note:~}%
      #1\[-0.5ex]
      rule{dimexprtextwidth-2leftmargini}{1pt}
      end{quote}
      addtolength{leftmargini}{-4em}}

      begin{document}
      lipsum[3]

      notte{To create a note section like in the picture, use the command texttt{notte}.}

      lipsum[4]

      notte{Another note}
      end{document}





      share|improve this answer



















      • 1





        Very good and I have appreciated your work.

        – Sebastiano
        Feb 10 at 12:59






      • 1





        @Sebastiano Thanks. However, I was wondering how to set the left and right margins differently-- leftmargini controls the left margin within a quote very much as its right margin too... and there apparently seems to be no rightmargini !

        – Partha D.
        Feb 10 at 13:05
















      8














      Is this something that you were looking for ?



      enter image description here



      Then you can use the new command notte derived from the environment quote:



      documentclass{article}
      usepackage{lipsum}

      newlength{Lnote}
      newcommand{notte}[1]
      {addtolength{leftmargini}{4em}
      settowidth{Lnote}{textbf{Note:~}}
      begin{quote}
      rule{dimexprtextwidth-2leftmargini}{1pt}\
      mbox{}hspace{-Lnote}textbf{Note:~}%
      #1\[-0.5ex]
      rule{dimexprtextwidth-2leftmargini}{1pt}
      end{quote}
      addtolength{leftmargini}{-4em}}

      begin{document}
      lipsum[3]

      notte{To create a note section like in the picture, use the command texttt{notte}.}

      lipsum[4]

      notte{Another note}
      end{document}





      share|improve this answer



















      • 1





        Very good and I have appreciated your work.

        – Sebastiano
        Feb 10 at 12:59






      • 1





        @Sebastiano Thanks. However, I was wondering how to set the left and right margins differently-- leftmargini controls the left margin within a quote very much as its right margin too... and there apparently seems to be no rightmargini !

        – Partha D.
        Feb 10 at 13:05














      8












      8








      8







      Is this something that you were looking for ?



      enter image description here



      Then you can use the new command notte derived from the environment quote:



      documentclass{article}
      usepackage{lipsum}

      newlength{Lnote}
      newcommand{notte}[1]
      {addtolength{leftmargini}{4em}
      settowidth{Lnote}{textbf{Note:~}}
      begin{quote}
      rule{dimexprtextwidth-2leftmargini}{1pt}\
      mbox{}hspace{-Lnote}textbf{Note:~}%
      #1\[-0.5ex]
      rule{dimexprtextwidth-2leftmargini}{1pt}
      end{quote}
      addtolength{leftmargini}{-4em}}

      begin{document}
      lipsum[3]

      notte{To create a note section like in the picture, use the command texttt{notte}.}

      lipsum[4]

      notte{Another note}
      end{document}





      share|improve this answer













      Is this something that you were looking for ?



      enter image description here



      Then you can use the new command notte derived from the environment quote:



      documentclass{article}
      usepackage{lipsum}

      newlength{Lnote}
      newcommand{notte}[1]
      {addtolength{leftmargini}{4em}
      settowidth{Lnote}{textbf{Note:~}}
      begin{quote}
      rule{dimexprtextwidth-2leftmargini}{1pt}\
      mbox{}hspace{-Lnote}textbf{Note:~}%
      #1\[-0.5ex]
      rule{dimexprtextwidth-2leftmargini}{1pt}
      end{quote}
      addtolength{leftmargini}{-4em}}

      begin{document}
      lipsum[3]

      notte{To create a note section like in the picture, use the command texttt{notte}.}

      lipsum[4]

      notte{Another note}
      end{document}






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Feb 10 at 12:45









      Partha D.Partha D.

      1,12718




      1,12718








      • 1





        Very good and I have appreciated your work.

        – Sebastiano
        Feb 10 at 12:59






      • 1





        @Sebastiano Thanks. However, I was wondering how to set the left and right margins differently-- leftmargini controls the left margin within a quote very much as its right margin too... and there apparently seems to be no rightmargini !

        – Partha D.
        Feb 10 at 13:05














      • 1





        Very good and I have appreciated your work.

        – Sebastiano
        Feb 10 at 12:59






      • 1





        @Sebastiano Thanks. However, I was wondering how to set the left and right margins differently-- leftmargini controls the left margin within a quote very much as its right margin too... and there apparently seems to be no rightmargini !

        – Partha D.
        Feb 10 at 13:05








      1




      1





      Very good and I have appreciated your work.

      – Sebastiano
      Feb 10 at 12:59





      Very good and I have appreciated your work.

      – Sebastiano
      Feb 10 at 12:59




      1




      1





      @Sebastiano Thanks. However, I was wondering how to set the left and right margins differently-- leftmargini controls the left margin within a quote very much as its right margin too... and there apparently seems to be no rightmargini !

      – Partha D.
      Feb 10 at 13:05





      @Sebastiano Thanks. However, I was wondering how to set the left and right margins differently-- leftmargini controls the left margin within a quote very much as its right margin too... and there apparently seems to be no rightmargini !

      – Partha D.
      Feb 10 at 13:05











      3














      A solution with tabularx, makecell and linegoal:



      documentclass{article}
      usepackage{array}
      usepackage{booktabs}
      usepackage[svgnames, table]{xcolor}
      usepackage{tabularx, makecell, linegoal}

      usepackage{lipsum}% only for example text

      newcommand{mynote}[1]{medskippartextbf{small Note}quadsetlength{extrarowheight}{2pt}begin{tabularx}{linegoal}{X}
      Xhline{1pt}
      rowcolor{WhiteSmoke!80!Lavender}#1 \
      Xhline{1pt}
      end{tabularx}}

      begin{document}
      sffamily
      lipsum[2]

      mynote{Internal pullup resistors are enabled on the MSP430F20xx to support ltextsuperscript{2}C communication}

      end{document}


      enter image description here






      share|improve this answer




























        3














        A solution with tabularx, makecell and linegoal:



        documentclass{article}
        usepackage{array}
        usepackage{booktabs}
        usepackage[svgnames, table]{xcolor}
        usepackage{tabularx, makecell, linegoal}

        usepackage{lipsum}% only for example text

        newcommand{mynote}[1]{medskippartextbf{small Note}quadsetlength{extrarowheight}{2pt}begin{tabularx}{linegoal}{X}
        Xhline{1pt}
        rowcolor{WhiteSmoke!80!Lavender}#1 \
        Xhline{1pt}
        end{tabularx}}

        begin{document}
        sffamily
        lipsum[2]

        mynote{Internal pullup resistors are enabled on the MSP430F20xx to support ltextsuperscript{2}C communication}

        end{document}


        enter image description here






        share|improve this answer


























          3












          3








          3







          A solution with tabularx, makecell and linegoal:



          documentclass{article}
          usepackage{array}
          usepackage{booktabs}
          usepackage[svgnames, table]{xcolor}
          usepackage{tabularx, makecell, linegoal}

          usepackage{lipsum}% only for example text

          newcommand{mynote}[1]{medskippartextbf{small Note}quadsetlength{extrarowheight}{2pt}begin{tabularx}{linegoal}{X}
          Xhline{1pt}
          rowcolor{WhiteSmoke!80!Lavender}#1 \
          Xhline{1pt}
          end{tabularx}}

          begin{document}
          sffamily
          lipsum[2]

          mynote{Internal pullup resistors are enabled on the MSP430F20xx to support ltextsuperscript{2}C communication}

          end{document}


          enter image description here






          share|improve this answer













          A solution with tabularx, makecell and linegoal:



          documentclass{article}
          usepackage{array}
          usepackage{booktabs}
          usepackage[svgnames, table]{xcolor}
          usepackage{tabularx, makecell, linegoal}

          usepackage{lipsum}% only for example text

          newcommand{mynote}[1]{medskippartextbf{small Note}quadsetlength{extrarowheight}{2pt}begin{tabularx}{linegoal}{X}
          Xhline{1pt}
          rowcolor{WhiteSmoke!80!Lavender}#1 \
          Xhline{1pt}
          end{tabularx}}

          begin{document}
          sffamily
          lipsum[2]

          mynote{Internal pullup resistors are enabled on the MSP430F20xx to support ltextsuperscript{2}C communication}

          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 10 at 13:06









          BernardBernard

          176k778209




          176k778209























              2














              I would suggest you try footnote. There should be an understanding in the text, as to the note points to which text (like references). Here is a sample code:



              documentclass{article}
              begin{document}
              Hello World
              This is text with a note.footnote{This is the note text.
              Here it is at the bottom of the page.}
              end{document}


              enter image description here






              share|improve this answer




























                2














                I would suggest you try footnote. There should be an understanding in the text, as to the note points to which text (like references). Here is a sample code:



                documentclass{article}
                begin{document}
                Hello World
                This is text with a note.footnote{This is the note text.
                Here it is at the bottom of the page.}
                end{document}


                enter image description here






                share|improve this answer


























                  2












                  2








                  2







                  I would suggest you try footnote. There should be an understanding in the text, as to the note points to which text (like references). Here is a sample code:



                  documentclass{article}
                  begin{document}
                  Hello World
                  This is text with a note.footnote{This is the note text.
                  Here it is at the bottom of the page.}
                  end{document}


                  enter image description here






                  share|improve this answer













                  I would suggest you try footnote. There should be an understanding in the text, as to the note points to which text (like references). Here is a sample code:



                  documentclass{article}
                  begin{document}
                  Hello World
                  This is text with a note.footnote{This is the note text.
                  Here it is at the bottom of the page.}
                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 10 at 13:32









                  subham sonisubham soni

                  4,99183188




                  4,99183188






























                      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%2f474177%2fcreating-a-note-section%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

                      Human spaceflight

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                      張江高科駅