Skip to content

Question regarding formatting #1

@sw-dbrown

Description

@sw-dbrown

Hi! Thanks for this package. I just found it and would like to use it in a project for consistent formatting of phone numbers.
After playing around with the package for a bit, a few questions came up.

Consider the following minimal example:

\documentclass{article}
\usepackage{phonenumbers}

\begin{document}

\noindent\phonenumber{+49 171 12345678}\\
\phonenumber{017112345678}

\setphonenumbers{%
    country=DE,
    foreign=international,%
    foreign-area-code-sep=space,%
    area-code-sep=space,%
    link=on%
}

\noindent\phonenumber{+49 171 12345678}\\
\phonenumber{017112345678}

\end{document}

Compiling this code leads to the following result:

image

To me, it looks like there is some odd formatting here. Why is the first '1' in the international number set apart from the reset of the area code?

It would also be useful to be, if it would be possible to have a little bit more control over the layout of the number. For example, if I would like to have the number formatted as follows: +49 171 / 123 456 78. Would you consider adding such a feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions