How to typeset a phone numberHow to produce a figure dash ‒ (U+2012) with pdflatex and XCharterHow to...

Why was the shrink from 8″ made only to 5.25″ and not smaller (4″ or less)

Bullying boss launched a smear campaign and made me unemployable

In the UK, is it possible to get a referendum by a court decision?

ssTTsSTtRrriinInnnnNNNIiinngg

What is an equivalently powerful replacement spell for the Yuan-Ti's Suggestion spell?

Processor speed limited at 0.4 Ghz

How do conventional missiles fly?

How do I exit BASH while loop using modulus operator?

Did 'Cinema Songs' exist during Hiranyakshipu's time?

Is it a bad idea to plug the other end of ESD strap to wall ground?

files created then deleted at every second in tmp directory

Can compressed videos be decoded back to their uncompresed original format?

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

Why was Sir Cadogan fired?

How to install cross-compiler on Ubuntu 18.04?

Can a virus destroy the BIOS of a modern computer?

If a warlock makes a Dancing Sword their pact weapon, is there a way to prevent it from disappearing if it's farther away for more than a minute?

Why do I get negative height?

Ambiguity in the definition of entropy

Implication of namely

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

Forgetting the musical notes while performing in concert

How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?

Avoiding the "not like other girls" trope?



How to typeset a phone number


How to produce a figure dash ‒ (U+2012) with pdflatex and XCharterHow to typeset large numbersHow to typeset my research publication?How to typeset variables and other code?Number format for accountsTypeset a number in hexdecimal format (preferably math mode)How to typeset manuscript insertion marks?What does “typeset twice” mean?How to format a number with a certain precision?How would you typeset the followingAstrophysical notation : typeset HI













0















There is an interesting discussion at https://ux.stackexchange.com/q/92941/107032 about how a (US) phone number needs to be written.
The answers essentially state:




  1. If your audience is strictly in the US, use (###) ###-####


  2. If your audience is not strictly in the US, use +# ### ### #### , which corresponds to the E.123 norm.



There is a conversation about how the dash in the first case needs to be written in Latex at How to produce a figure dash ‒ (U+2012) with pdflatex and XCharter.



I have other questions:




  1. Should the numbers be entered in math mode?

  2. Should the spaces be unbreakable, or of another nature?

  3. Should the plus sign be something other than a plus sign? (This wikipedia page seems to use the "normal" + sign, but I was wondering if there was a different convention)


MWE:



documentclass{standalone}
begin{document}
% Solution from https://tex.stackexchange.com/a/335513/34551
newlengthfigurewidth
newcommandfdash
{settowidthfigurewidth{9}%
raisebox{0.6ex}{makebox[figurewidth]{hrulefill}}%
}
begin{tabular}{c c c }
(607) 123-4567 & +22 607 123 4567 & Text mode\
(607)~123-4567 & +22~607~123~4567 & Text mode, unbreakable spaces\
((607) 123-4567) & (+22 607 123 4567) & Math mode\
((607)~123-4567) & (+22~607~123~4567) & Math mode, unbreakable spaces\
(607) 123fdash4567 & & Text mode, "custom" dashes\
((607) 123fdash4567) & & Math mode, "custom" dashes
end{tabular}

end{document}


enter image description here









share



























    0















    There is an interesting discussion at https://ux.stackexchange.com/q/92941/107032 about how a (US) phone number needs to be written.
    The answers essentially state:




    1. If your audience is strictly in the US, use (###) ###-####


    2. If your audience is not strictly in the US, use +# ### ### #### , which corresponds to the E.123 norm.



    There is a conversation about how the dash in the first case needs to be written in Latex at How to produce a figure dash ‒ (U+2012) with pdflatex and XCharter.



    I have other questions:




    1. Should the numbers be entered in math mode?

    2. Should the spaces be unbreakable, or of another nature?

    3. Should the plus sign be something other than a plus sign? (This wikipedia page seems to use the "normal" + sign, but I was wondering if there was a different convention)


    MWE:



    documentclass{standalone}
    begin{document}
    % Solution from https://tex.stackexchange.com/a/335513/34551
    newlengthfigurewidth
    newcommandfdash
    {settowidthfigurewidth{9}%
    raisebox{0.6ex}{makebox[figurewidth]{hrulefill}}%
    }
    begin{tabular}{c c c }
    (607) 123-4567 & +22 607 123 4567 & Text mode\
    (607)~123-4567 & +22~607~123~4567 & Text mode, unbreakable spaces\
    ((607) 123-4567) & (+22 607 123 4567) & Math mode\
    ((607)~123-4567) & (+22~607~123~4567) & Math mode, unbreakable spaces\
    (607) 123fdash4567 & & Text mode, "custom" dashes\
    ((607) 123fdash4567) & & Math mode, "custom" dashes
    end{tabular}

    end{document}


    enter image description here









    share

























      0












      0








      0








      There is an interesting discussion at https://ux.stackexchange.com/q/92941/107032 about how a (US) phone number needs to be written.
      The answers essentially state:




      1. If your audience is strictly in the US, use (###) ###-####


      2. If your audience is not strictly in the US, use +# ### ### #### , which corresponds to the E.123 norm.



      There is a conversation about how the dash in the first case needs to be written in Latex at How to produce a figure dash ‒ (U+2012) with pdflatex and XCharter.



      I have other questions:




      1. Should the numbers be entered in math mode?

      2. Should the spaces be unbreakable, or of another nature?

      3. Should the plus sign be something other than a plus sign? (This wikipedia page seems to use the "normal" + sign, but I was wondering if there was a different convention)


      MWE:



      documentclass{standalone}
      begin{document}
      % Solution from https://tex.stackexchange.com/a/335513/34551
      newlengthfigurewidth
      newcommandfdash
      {settowidthfigurewidth{9}%
      raisebox{0.6ex}{makebox[figurewidth]{hrulefill}}%
      }
      begin{tabular}{c c c }
      (607) 123-4567 & +22 607 123 4567 & Text mode\
      (607)~123-4567 & +22~607~123~4567 & Text mode, unbreakable spaces\
      ((607) 123-4567) & (+22 607 123 4567) & Math mode\
      ((607)~123-4567) & (+22~607~123~4567) & Math mode, unbreakable spaces\
      (607) 123fdash4567 & & Text mode, "custom" dashes\
      ((607) 123fdash4567) & & Math mode, "custom" dashes
      end{tabular}

      end{document}


      enter image description here









      share














      There is an interesting discussion at https://ux.stackexchange.com/q/92941/107032 about how a (US) phone number needs to be written.
      The answers essentially state:




      1. If your audience is strictly in the US, use (###) ###-####


      2. If your audience is not strictly in the US, use +# ### ### #### , which corresponds to the E.123 norm.



      There is a conversation about how the dash in the first case needs to be written in Latex at How to produce a figure dash ‒ (U+2012) with pdflatex and XCharter.



      I have other questions:




      1. Should the numbers be entered in math mode?

      2. Should the spaces be unbreakable, or of another nature?

      3. Should the plus sign be something other than a plus sign? (This wikipedia page seems to use the "normal" + sign, but I was wondering if there was a different convention)


      MWE:



      documentclass{standalone}
      begin{document}
      % Solution from https://tex.stackexchange.com/a/335513/34551
      newlengthfigurewidth
      newcommandfdash
      {settowidthfigurewidth{9}%
      raisebox{0.6ex}{makebox[figurewidth]{hrulefill}}%
      }
      begin{tabular}{c c c }
      (607) 123-4567 & +22 607 123 4567 & Text mode\
      (607)~123-4567 & +22~607~123~4567 & Text mode, unbreakable spaces\
      ((607) 123-4567) & (+22 607 123 4567) & Math mode\
      ((607)~123-4567) & (+22~607~123~4567) & Math mode, unbreakable spaces\
      (607) 123fdash4567 & & Text mode, "custom" dashes\
      ((607) 123fdash4567) & & Math mode, "custom" dashes
      end{tabular}

      end{document}


      enter image description here







      formatting





      share












      share










      share



      share










      asked 7 mins ago









      ClémentClément

      2,65221264




      2,65221264






















          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%2f482894%2fhow-to-typeset-a-phone-number%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%2f482894%2fhow-to-typeset-a-phone-number%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

          Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

          How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...