What is the correct way to typeset a vector when there are subscripts or superscript? The Next...

How do I secure a TV wall mount?

Is it possible to create a QR code using text?

Finitely generated matrix groups whose eigenvalues are all algebraic

Physiological effects of huge anime eyes

Strange use of "whether ... than ..." in official text

How to pronounce fünf in 45

What steps are necessary to read a Modern SSD in Medieval Europe?

It it possible to avoid kiwi.com's automatic online check-in and instead do it manually by yourself?

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

Direct Implications Between USA and UK in Event of No-Deal Brexit

That's an odd coin - I wonder why

Is it possible to make a 9x9 table fit within the default margins?

Compensation for working overtime on Saturdays

Can this transistor (2n2222) take 6V on emitter-base? Am I reading datasheet incorrectly?

Is it correct to say moon starry nights?

A hang glider, sudden unexpected lift to 25,000 feet altitude, what could do this?

Find the majority element, which appears more than half the time

Are British MPs missing the point, with these 'Indicative Votes'?

What are the unusually-enlarged wing sections on this P-38 Lightning?

Mathematica command that allows it to read my intentions

Incomplete cube

How can I prove that a state of equilibrium is unstable?

How to find if SQL server backup is encrypted with TDE without restoring the backup

Create custom note boxes



What is the correct way to typeset a vector when there are subscripts or superscript?



The Next CEO of Stack Overflow












0















Consider this MWE:



documentclass{article}

begin{document}

[vec{v}_{12345}^{12345678}]

[overrightarrow{P_{12345}P_{12345}^{12345678}}]

end{document}


MWE output



As you can see, vec is designed to typeset a vector with an arrow above the argument.



However, when we do not have a unary symbol to represent a vector (e.g. the difference between the coordinates of two points) then we can use overrightarrow. But this notation has two problems:




  1. When we are working with long chain of numbers overrightarrow collides with it. as shown in the example.

  2. And I think the most important: it is not consistent with vec. Why? Because vec stop the arrow before the subscript/superscript, but overrightarrow continues the arrow at the end regardless of the existence or not of subscript/superscript.


Remember that we are writing vectors, no matter the length of the text that represents the vector.



What I want



With your huge help, I would like to write the following:



Example of what I want



Example 2 of what I want



Example 3 of what I want



Thanks!!









share



























    0















    Consider this MWE:



    documentclass{article}

    begin{document}

    [vec{v}_{12345}^{12345678}]

    [overrightarrow{P_{12345}P_{12345}^{12345678}}]

    end{document}


    MWE output



    As you can see, vec is designed to typeset a vector with an arrow above the argument.



    However, when we do not have a unary symbol to represent a vector (e.g. the difference between the coordinates of two points) then we can use overrightarrow. But this notation has two problems:




    1. When we are working with long chain of numbers overrightarrow collides with it. as shown in the example.

    2. And I think the most important: it is not consistent with vec. Why? Because vec stop the arrow before the subscript/superscript, but overrightarrow continues the arrow at the end regardless of the existence or not of subscript/superscript.


    Remember that we are writing vectors, no matter the length of the text that represents the vector.



    What I want



    With your huge help, I would like to write the following:



    Example of what I want



    Example 2 of what I want



    Example 3 of what I want



    Thanks!!









    share

























      0












      0








      0








      Consider this MWE:



      documentclass{article}

      begin{document}

      [vec{v}_{12345}^{12345678}]

      [overrightarrow{P_{12345}P_{12345}^{12345678}}]

      end{document}


      MWE output



      As you can see, vec is designed to typeset a vector with an arrow above the argument.



      However, when we do not have a unary symbol to represent a vector (e.g. the difference between the coordinates of two points) then we can use overrightarrow. But this notation has two problems:




      1. When we are working with long chain of numbers overrightarrow collides with it. as shown in the example.

      2. And I think the most important: it is not consistent with vec. Why? Because vec stop the arrow before the subscript/superscript, but overrightarrow continues the arrow at the end regardless of the existence or not of subscript/superscript.


      Remember that we are writing vectors, no matter the length of the text that represents the vector.



      What I want



      With your huge help, I would like to write the following:



      Example of what I want



      Example 2 of what I want



      Example 3 of what I want



      Thanks!!









      share














      Consider this MWE:



      documentclass{article}

      begin{document}

      [vec{v}_{12345}^{12345678}]

      [overrightarrow{P_{12345}P_{12345}^{12345678}}]

      end{document}


      MWE output



      As you can see, vec is designed to typeset a vector with an arrow above the argument.



      However, when we do not have a unary symbol to represent a vector (e.g. the difference between the coordinates of two points) then we can use overrightarrow. But this notation has two problems:




      1. When we are working with long chain of numbers overrightarrow collides with it. as shown in the example.

      2. And I think the most important: it is not consistent with vec. Why? Because vec stop the arrow before the subscript/superscript, but overrightarrow continues the arrow at the end regardless of the existence or not of subscript/superscript.


      Remember that we are writing vectors, no matter the length of the text that represents the vector.



      What I want



      With your huge help, I would like to write the following:



      Example of what I want



      Example 2 of what I want



      Example 3 of what I want



      Thanks!!







      arrows subscripts superscripts vector





      share












      share










      share



      share










      asked 2 mins ago









      manoooohmanooooh

      1,1631517




      1,1631517






















          0






          active

          oldest

          votes












          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%2f482665%2fwhat-is-the-correct-way-to-typeset-a-vector-when-there-are-subscripts-or-supersc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f482665%2fwhat-is-the-correct-way-to-typeset-a-vector-when-there-are-subscripts-or-supersc%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

          Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

          (1602) Indiana Índice Designación y nombre Características orbitales Véase...

          Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...