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

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

How can a day be of 24 hours?

Is there a hemisphere-neutral way of specifying a season?

How could indestructible materials be used in power generation?

how do we prove that a sum of two periods is still a period?

What exactly is ineptocracy?

What is the opposite of "eschatology"?

What are the G forces leaving Earth orbit?

What do you call someone who asks many questions?

Processor speed limited at 0.4 Ghz

How to travel to Japan while expressing milk?

Implication of namely

OP Amp not amplifying audio signal

Unlock My Phone! February 2018

Machine learning testing data

Could the museum Saturn V's be refitted for one more flight?

Do creatures with a listed speed of "0 ft., fly 30 ft. (hover)" ever touch the ground?

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 was the shrink from 8″ made only to 5.25″ and not smaller (4″ or less)

How do conventional missiles fly?

Why were 5.25" floppy drives cheaper than 8"?

Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?

Am I breaking OOP practice with this architecture?

Different meanings of こわい



How to typeset a phone number


How to produce a figure dash ‒ (U+2012) with pdflatex and XCharter













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 1 min 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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...