%% to be compiled with pdflatex

\documentclass{amsart}

\usepackage{tikz}
\usetikzlibrary{decorations.markings}

\begin{document}
\thispagestyle{empty}

\centerline{%
  \tikzpicture[trim left=(PL),trim right=(PR),baseline=(PL)]

  \coordinate (PL) at (0,0) ; %
  \coordinate (PR) at (9,0) ; %

  \tikzset{
    midtip/.style={postaction={decorate,decoration= %
        {markings,mark=at position #1 with %
          %% need the thin to override
          {\arrow[thin]{stealth[sep=-2pt]}} %
    }}}, %
    midtip/.default=1/2, %
  }

  \draw[thick,midtip,outer sep=0pt, %
    execute at begin node={$\scriptstyle}, %
    execute at end node={$}, %
  ] (PL) -- (PR) %
  node[pos=0,left] {P:1(2345)} %
  node[pos=1/2,above] {\bf C:12345\vphantom(} %
  node[pos=1,right] {P:(1234)5} %
  ; %

  \fill[radius=1.7pt] foreach \X in {PL,PR} { (\X) circle[] } ; %

  \endtikzpicture
} % \centerline
\end{document}

%%%%%%%%

%% png creation (normal size, transparent)

%%% pdflatex diagram3-1.tex
%%% pdftocairo -png -singlefile -transp diagram3-1.pdf tmp
%%% magick -define png:exclude-chunk=date,time tmp.png -crop 689x29+293+249 +repage diagram3-1.png
%%% optipng diagram3-1.png %% no effect

%%%% Default resolution of pdftocairo is 150 ppi.

%%%% magick adds white (fallback) background to the transparent image.

%%%% trim parameters:
%%% magick tmp.png -format "%@\n" info: %% 688x29+294+249

%%%% Left padding 1px (after trimming) to get symmetric dots.

%% program versions

%%% This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
%%% Document Class: amsart 2017/10/31 v2.20.4
%%% Package: tikz 2020/01/08 v3.1.5b (3.1.5b)

%%% pdftocairo version 0.86.1
%%% ImageMagick 7.1.1-43 Q16-HDRI x86_64 22550 https://imagemagick.org
%%% OptiPNG version 0.7.7

%%%%%%%%

%%%% First version:
%%% 2024-12-23

%%%% Latest changes:
%%% 2025-08-05 % use midtip and refactor
%%% 2026-03-01 % outer sep=0pt

%%%%%%%%
