TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to code this in Latex.

Can you help me please!

I tried to create a shape embedding a minipage in it with no success. In fact I think this is a bad idea, but I don't know any other way to do it.

EDIT: Add code from comment:

\begin{tikzpicture}[node distance=4cm] 
    \node (pp)[draw, diamond, shape aspect=1, rotate=0, minimum size=1]{\begin{minipage}{1cm} 
    \centering \tikz{ \draw (.5,2.6) node[] {.}; %... more points } 
    \end{minipage} }; 
share|improve this question
Welcome to TeX.SX! Could you please provide a fully compilable minimal working example by editing the post (MWE)? Such an example starts with \documentclass... and ends with ...\end{document}. It would help the solvers tremendously! – Malipivo May 5 '14 at 17:26
My solution looks like that \begin{tikzpicture}[node distance=4cm] \node (pp)[draw, diamond, shape aspect=1, rotate=0, minimum size=1]{ \begin{minipage}{1cm} \centering \tikz{ \draw (.5,2.6) node[] {.}; %... more points } \end{minipage} }; \end{tikzpicture} – Harry R. May 5 '14 at 17:29
For the points I would go with the decorations.shapes library. – Claudio Fiandrino May 5 '14 at 18:12

I really don't know what I'm answering but this looks like the left part of the picture

\node[diamond,draw,minimum size=2cm] (a) at (0,3) {};
\node[draw,minimum height=1.8cm,minimum width=2cm,anchor=west] (b) at ([xshift=1mm]a.center) {};
\draw[thick,dotted] ($(a.north)!0.8!(a.south)!0.3!(a.west)$) arc (-120:-330:4mm) -- ++(5mm,0)
coordinate (c);
\draw[thick,dotted] ([shift={(-4mm,-1mm)}]c)--++(15mm,0) --+(0,5mm) ++(0,-5mm)--+(0,5mm);

enter image description here

share|improve this answer
Thank you very much! This is what I needed, now I just have to figure out how to draw those curly arrows. – Harry R. May 6 '14 at 18:44

I would suggest you simply draw circles fort the points. Below I have defined \MyHorizontalPoints and \MyVerticalPoints to allow you to draw as many as desired. The size is controlled via \PointSize and the spacing is controlled via \PointSep which can be adjusted with \renewcommand{}{} as illustrated with the yellow dots:

enter image description here



    \foreach \x in {1,...,#2} {%
        \draw [#1] (\Shift,0) circle (\PointSize);

    \foreach \y in {1,...,#2} {%
        \draw [#1] (0,\Shift) circle (\PointSize);



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.