The function returns the LaTeX code to create a tikz figure representing the Hasse diagram drawn from a set of profiles (prof), an incidence matrix (Z) or a cover matrix (C). The code can be copied and pasted into a latex file. The latex source requires the tikz package,