In order to integrate a legend into the text of my pdf file, I want to extend the answer of a previous question on this site https://tex.stackexchange.com/a/196784/15140 in order to add in front of the diamond a line which is either dotted or dashed. Something looking:
prices are represented as -----<> and weights as - - -<>
How can I achieve this ?
