Tell me more ×
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.

How can I make rounded corners at one side (only right, only left)?

\documentclass{minimal}
\usepackage{tikz}
\begin{document}
    \begin{tikzpicture}
        \node [fill=gray, rounded corners=10pt]{

        };
    \end{tikzpicture}
\end{document}
share|improve this question

1 Answer

up vote 18 down vote accepted

This is possible with the rounded rectangle shape type:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes.misc}
\begin{document}

\begin{tikzpicture}[every node/.style={fill=gray, rounded rectangle, minimum width=2cm, minimum height=1cm}]
    \node [](A){};
    \node [rounded rectangle west arc=none, below=of A](B){};
    \node [rounded rectangle east arc=none, below=of B]{};
\end{tikzpicture}

\end{document}

screen shot of results

See Section 48.8 of the TikZ Manual for further options.

share|improve this answer

Your Answer

 
discard

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.