tikzmarknode lines with hooksHow can I put a coloured outline around fraction lines?Easy way to do several...

infared filters v nd

Is it inappropriate for a student to attend their mentor's dissertation defense?

I'm flying to France today and my passport expires in less than 2 months

High voltage LED indicator 40-1000 VDC without additional power supply

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Can I make popcorn with any corn?

What is the word for reserving something for yourself before others do?

Languages that we cannot (dis)prove to be Context-Free

What would happen to a modern skyscraper if it rains micro blackholes?

Rock identification in KY

Today is the Center

Theorems that impeded progress

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

What typically incentivizes a professor to change jobs to a lower ranking university?

Did Shadowfax go to Valinor?

Why can't we play rap on piano?

dbcc cleantable batch size explanation

Why doesn't H₄O²⁺ exist?

Unable to deploy metadata from Partner Developer scratch org because of extra fields

Why is 150k or 200k jobs considered good when there's 300k+ births a month?

Cross compiling for RPi - error while loading shared libraries

How can bays and straits be determined in a procedurally generated map?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

What's the point of deactivating Num Lock on login screens?



tikzmarknode lines with hooks


How can I put a coloured outline around fraction lines?Easy way to do several line styles on one path using TikZ?Rotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themDrawing an arrow over a tabular with tikzmarkDrawing a line (A) and then draw another line starting in the middle of line A













1















I'm trying to get a line produced by tikzmarknodes to start and end with little hooks, i.e., horizontal thinner lines protruding from the ends, more or less to resemble a bracket. I couldn't figure out how to manipulate the node code.



documentclass{article}
usepackage{tikz}
usetikzlibrary{tikzmark}
begin{document}

This is some text and tikzmarknode{a}this is some text.

This is some text and tikzmarknode{b}this is some text.
begin{tikzpicture}[remember picture] draw[overlay,semithick] (a.west) -- (b.west); end{tikzpicture}

This is some text and begin{tikzpicture}draw[overlay,very thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,very thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

This is some text and ~this is some text.


end{document}


The code of the two last lines produce more or less what I am envisioning:



enter image description here



Any help here from the tikz masters?










share|improve this question





























    1















    I'm trying to get a line produced by tikzmarknodes to start and end with little hooks, i.e., horizontal thinner lines protruding from the ends, more or less to resemble a bracket. I couldn't figure out how to manipulate the node code.



    documentclass{article}
    usepackage{tikz}
    usetikzlibrary{tikzmark}
    begin{document}

    This is some text and tikzmarknode{a}this is some text.

    This is some text and tikzmarknode{b}this is some text.
    begin{tikzpicture}[remember picture] draw[overlay,semithick] (a.west) -- (b.west); end{tikzpicture}

    This is some text and begin{tikzpicture}draw[overlay,very thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,very thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

    This is some text and ~this is some text.


    end{document}


    The code of the two last lines produce more or less what I am envisioning:



    enter image description here



    Any help here from the tikz masters?










    share|improve this question



























      1












      1








      1








      I'm trying to get a line produced by tikzmarknodes to start and end with little hooks, i.e., horizontal thinner lines protruding from the ends, more or less to resemble a bracket. I couldn't figure out how to manipulate the node code.



      documentclass{article}
      usepackage{tikz}
      usetikzlibrary{tikzmark}
      begin{document}

      This is some text and tikzmarknode{a}this is some text.

      This is some text and tikzmarknode{b}this is some text.
      begin{tikzpicture}[remember picture] draw[overlay,semithick] (a.west) -- (b.west); end{tikzpicture}

      This is some text and begin{tikzpicture}draw[overlay,very thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,very thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

      This is some text and ~this is some text.


      end{document}


      The code of the two last lines produce more or less what I am envisioning:



      enter image description here



      Any help here from the tikz masters?










      share|improve this question
















      I'm trying to get a line produced by tikzmarknodes to start and end with little hooks, i.e., horizontal thinner lines protruding from the ends, more or less to resemble a bracket. I couldn't figure out how to manipulate the node code.



      documentclass{article}
      usepackage{tikz}
      usetikzlibrary{tikzmark}
      begin{document}

      This is some text and tikzmarknode{a}this is some text.

      This is some text and tikzmarknode{b}this is some text.
      begin{tikzpicture}[remember picture] draw[overlay,semithick] (a.west) -- (b.west); end{tikzpicture}

      This is some text and begin{tikzpicture}draw[overlay,very thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,very thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

      This is some text and ~this is some text.


      end{document}


      The code of the two last lines produce more or less what I am envisioning:



      enter image description here



      Any help here from the tikz masters?







      tikz-pgf tikz-node tikzmark






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 8 hours ago







      jan

















      asked 9 hours ago









      janjan

      9971519




      9971519






















          1 Answer
          1






          active

          oldest

          votes


















          3














          One possible way.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture] draw[very thin]
          ([xshift=0.2em]a.west) -- ([xshift=-0.3pt]a.west)
          ([xshift=0.2em]b.west) -- ([xshift=-0.3pt]b.west);
          draw[semithick] (a.west) -- (b.west); end{tikzpicture}

          This is some text and begin{tikzpicture}draw[overlay,thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

          This is some text and ~this is some text.
          end{document}


          enter image description here



          ADDENDUM: For more general settings, you may want to work with styles and fill.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          tikzset{brace me/.style n args={2}{insert path={([xshift=0.2em,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=-0.1pt]#1.west) --
          ([xshift=0.2em,yshift=-0.1pt]#1.west) --
          cycle}}}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a}{b}] ;
          end{tikzpicture}

          This is some text and tikzmarknode{a'}{~this} is some text.

          This is some text ~and tikzmarknode{b'}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a'}{b'}] ;
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • Almost ;) Is there a way to have the hooks very thin?

            – jan
            8 hours ago













          • @jan only the hooks or the full bracket?

            – marmot
            8 hours ago











          • Only the hooks, like in the code below the vertical line was semithick and the horizontal lines very thin

            – jan
            8 hours ago











          • @jan I added something. (If you want to make sure that the line is always vertical regardless of whether or not the nodes are precisely on top of each other, this also possible but requires more work and more input in the form of a prescription of what is to be done in that case.)

            – marmot
            8 hours ago











          • The hooks should always be horizontal, even if the line ends up not being. So that's ok. But one more thing: Now given the different thicknesses, they thin lines don't connect nicely at the ends (I had the same problem with the bad solution below.) Is there a way to get them to connect fully to the vertical line, i.e., the thing being treated as one drawing? I guess that might be a more general question: Can I change the thickness in a draw command on the go?

            – jan
            8 hours ago














          Your Answer








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

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

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


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483398%2ftikzmarknode-lines-with-hooks%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









          3














          One possible way.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture] draw[very thin]
          ([xshift=0.2em]a.west) -- ([xshift=-0.3pt]a.west)
          ([xshift=0.2em]b.west) -- ([xshift=-0.3pt]b.west);
          draw[semithick] (a.west) -- (b.west); end{tikzpicture}

          This is some text and begin{tikzpicture}draw[overlay,thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

          This is some text and ~this is some text.
          end{document}


          enter image description here



          ADDENDUM: For more general settings, you may want to work with styles and fill.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          tikzset{brace me/.style n args={2}{insert path={([xshift=0.2em,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=-0.1pt]#1.west) --
          ([xshift=0.2em,yshift=-0.1pt]#1.west) --
          cycle}}}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a}{b}] ;
          end{tikzpicture}

          This is some text and tikzmarknode{a'}{~this} is some text.

          This is some text ~and tikzmarknode{b'}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a'}{b'}] ;
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • Almost ;) Is there a way to have the hooks very thin?

            – jan
            8 hours ago













          • @jan only the hooks or the full bracket?

            – marmot
            8 hours ago











          • Only the hooks, like in the code below the vertical line was semithick and the horizontal lines very thin

            – jan
            8 hours ago











          • @jan I added something. (If you want to make sure that the line is always vertical regardless of whether or not the nodes are precisely on top of each other, this also possible but requires more work and more input in the form of a prescription of what is to be done in that case.)

            – marmot
            8 hours ago











          • The hooks should always be horizontal, even if the line ends up not being. So that's ok. But one more thing: Now given the different thicknesses, they thin lines don't connect nicely at the ends (I had the same problem with the bad solution below.) Is there a way to get them to connect fully to the vertical line, i.e., the thing being treated as one drawing? I guess that might be a more general question: Can I change the thickness in a draw command on the go?

            – jan
            8 hours ago


















          3














          One possible way.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture] draw[very thin]
          ([xshift=0.2em]a.west) -- ([xshift=-0.3pt]a.west)
          ([xshift=0.2em]b.west) -- ([xshift=-0.3pt]b.west);
          draw[semithick] (a.west) -- (b.west); end{tikzpicture}

          This is some text and begin{tikzpicture}draw[overlay,thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

          This is some text and ~this is some text.
          end{document}


          enter image description here



          ADDENDUM: For more general settings, you may want to work with styles and fill.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          tikzset{brace me/.style n args={2}{insert path={([xshift=0.2em,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=-0.1pt]#1.west) --
          ([xshift=0.2em,yshift=-0.1pt]#1.west) --
          cycle}}}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a}{b}] ;
          end{tikzpicture}

          This is some text and tikzmarknode{a'}{~this} is some text.

          This is some text ~and tikzmarknode{b'}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a'}{b'}] ;
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • Almost ;) Is there a way to have the hooks very thin?

            – jan
            8 hours ago













          • @jan only the hooks or the full bracket?

            – marmot
            8 hours ago











          • Only the hooks, like in the code below the vertical line was semithick and the horizontal lines very thin

            – jan
            8 hours ago











          • @jan I added something. (If you want to make sure that the line is always vertical regardless of whether or not the nodes are precisely on top of each other, this also possible but requires more work and more input in the form of a prescription of what is to be done in that case.)

            – marmot
            8 hours ago











          • The hooks should always be horizontal, even if the line ends up not being. So that's ok. But one more thing: Now given the different thicknesses, they thin lines don't connect nicely at the ends (I had the same problem with the bad solution below.) Is there a way to get them to connect fully to the vertical line, i.e., the thing being treated as one drawing? I guess that might be a more general question: Can I change the thickness in a draw command on the go?

            – jan
            8 hours ago
















          3












          3








          3







          One possible way.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture] draw[very thin]
          ([xshift=0.2em]a.west) -- ([xshift=-0.3pt]a.west)
          ([xshift=0.2em]b.west) -- ([xshift=-0.3pt]b.west);
          draw[semithick] (a.west) -- (b.west); end{tikzpicture}

          This is some text and begin{tikzpicture}draw[overlay,thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

          This is some text and ~this is some text.
          end{document}


          enter image description here



          ADDENDUM: For more general settings, you may want to work with styles and fill.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          tikzset{brace me/.style n args={2}{insert path={([xshift=0.2em,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=-0.1pt]#1.west) --
          ([xshift=0.2em,yshift=-0.1pt]#1.west) --
          cycle}}}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a}{b}] ;
          end{tikzpicture}

          This is some text and tikzmarknode{a'}{~this} is some text.

          This is some text ~and tikzmarknode{b'}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a'}{b'}] ;
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer















          One possible way.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture] draw[very thin]
          ([xshift=0.2em]a.west) -- ([xshift=-0.3pt]a.west)
          ([xshift=0.2em]b.west) -- ([xshift=-0.3pt]b.west);
          draw[semithick] (a.west) -- (b.west); end{tikzpicture}

          This is some text and begin{tikzpicture}draw[overlay,thin] (0.05,0.1) -- (0,0.1); draw[overlay,semithick] (0,0.1) -- (0,-0.35); draw[overlay,thin] (0,-0.35) -- (0.05,-0.35); end{tikzpicture}~this is some text.

          This is some text and ~this is some text.
          end{document}


          enter image description here



          ADDENDUM: For more general settings, you may want to work with styles and fill.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark}
          tikzset{brace me/.style n args={2}{insert path={([xshift=0.2em,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=0.1pt]#1.west) --
          ([xshift=-0.3pt,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=-0.1pt]#2.west) --
          ([xshift=0.2em,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=0.1pt]#2.west) --
          ([xshift=0.3pt,yshift=-0.1pt]#1.west) --
          ([xshift=0.2em,yshift=-0.1pt]#1.west) --
          cycle}}}
          begin{document}

          This is some text and tikzmarknode{a}{~this} is some text.

          This is some text and tikzmarknode{b}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a}{b}] ;
          end{tikzpicture}

          This is some text and tikzmarknode{a'}{~this} is some text.

          This is some text ~and tikzmarknode{b'}{~this} is some text.
          begin{tikzpicture}[overlay,remember picture]
          fill[brace me={a'}{b'}] ;
          end{tikzpicture}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 8 hours ago

























          answered 9 hours ago









          marmotmarmot

          115k5145276




          115k5145276













          • Almost ;) Is there a way to have the hooks very thin?

            – jan
            8 hours ago













          • @jan only the hooks or the full bracket?

            – marmot
            8 hours ago











          • Only the hooks, like in the code below the vertical line was semithick and the horizontal lines very thin

            – jan
            8 hours ago











          • @jan I added something. (If you want to make sure that the line is always vertical regardless of whether or not the nodes are precisely on top of each other, this also possible but requires more work and more input in the form of a prescription of what is to be done in that case.)

            – marmot
            8 hours ago











          • The hooks should always be horizontal, even if the line ends up not being. So that's ok. But one more thing: Now given the different thicknesses, they thin lines don't connect nicely at the ends (I had the same problem with the bad solution below.) Is there a way to get them to connect fully to the vertical line, i.e., the thing being treated as one drawing? I guess that might be a more general question: Can I change the thickness in a draw command on the go?

            – jan
            8 hours ago





















          • Almost ;) Is there a way to have the hooks very thin?

            – jan
            8 hours ago













          • @jan only the hooks or the full bracket?

            – marmot
            8 hours ago











          • Only the hooks, like in the code below the vertical line was semithick and the horizontal lines very thin

            – jan
            8 hours ago











          • @jan I added something. (If you want to make sure that the line is always vertical regardless of whether or not the nodes are precisely on top of each other, this also possible but requires more work and more input in the form of a prescription of what is to be done in that case.)

            – marmot
            8 hours ago











          • The hooks should always be horizontal, even if the line ends up not being. So that's ok. But one more thing: Now given the different thicknesses, they thin lines don't connect nicely at the ends (I had the same problem with the bad solution below.) Is there a way to get them to connect fully to the vertical line, i.e., the thing being treated as one drawing? I guess that might be a more general question: Can I change the thickness in a draw command on the go?

            – jan
            8 hours ago



















          Almost ;) Is there a way to have the hooks very thin?

          – jan
          8 hours ago







          Almost ;) Is there a way to have the hooks very thin?

          – jan
          8 hours ago















          @jan only the hooks or the full bracket?

          – marmot
          8 hours ago





          @jan only the hooks or the full bracket?

          – marmot
          8 hours ago













          Only the hooks, like in the code below the vertical line was semithick and the horizontal lines very thin

          – jan
          8 hours ago





          Only the hooks, like in the code below the vertical line was semithick and the horizontal lines very thin

          – jan
          8 hours ago













          @jan I added something. (If you want to make sure that the line is always vertical regardless of whether or not the nodes are precisely on top of each other, this also possible but requires more work and more input in the form of a prescription of what is to be done in that case.)

          – marmot
          8 hours ago





          @jan I added something. (If you want to make sure that the line is always vertical regardless of whether or not the nodes are precisely on top of each other, this also possible but requires more work and more input in the form of a prescription of what is to be done in that case.)

          – marmot
          8 hours ago













          The hooks should always be horizontal, even if the line ends up not being. So that's ok. But one more thing: Now given the different thicknesses, they thin lines don't connect nicely at the ends (I had the same problem with the bad solution below.) Is there a way to get them to connect fully to the vertical line, i.e., the thing being treated as one drawing? I guess that might be a more general question: Can I change the thickness in a draw command on the go?

          – jan
          8 hours ago







          The hooks should always be horizontal, even if the line ends up not being. So that's ok. But one more thing: Now given the different thicknesses, they thin lines don't connect nicely at the ends (I had the same problem with the bad solution below.) Is there a way to get them to connect fully to the vertical line, i.e., the thing being treated as one drawing? I guess that might be a more general question: Can I change the thickness in a draw command on the go?

          – jan
          8 hours ago




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483398%2ftikzmarknode-lines-with-hooks%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

          Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

          Schneeberg (Smreczany) Bibliografia | Menu...

          Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...