Take the 2-minute tour ×
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 to remove the rectange who surrounds the A character and to draw that char vertically, please ?

\documentclass[]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{fit,calc,positioning,decorations.pathreplacing,matrix}

\begin{document}   

\begin{tikzpicture}[decoration={brace}][scale=2] 
\node [draw] (A) {A}; 
\node [fit=(A)] (fit) {};              
\draw [decorate,line width=1pt] 
  ([yshift=-5pt]fit.south west) -- ([yshift=5pt]fit.north west);
\end{tikzpicture}

\end{document} 

Thanks a lot!

share|improve this question
    
What do you mean by "draw that char vertically,". Do something like \node [scale=2] (A) {A};. –  Harish Kumar May 18 at 1:11
    
@HarishKumar, to draw it translated by 90° . –  dgs May 18 at 1:16
    
You want to rotate the brace too? –  Harish Kumar May 18 at 1:17
    
Don't say draw if you don't want it to draw the node i.e. a box around it. Just say e.g. \node (A) {A};. Do you mean you want the A horizontally? –  cfr May 18 at 1:17

1 Answer 1

up vote 5 down vote accepted

To suppress the rectangle, delete the draw option; to rotate the node contents, use the rotate=<angle> option:

\documentclass[]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{fit,calc,positioning,decorations.pathreplacing,matrix}

\begin{document}   

\begin{tikzpicture}[decoration={brace},scale=2] 
\node [rotate=90] (A) {A}; 
\node [fit=(A)] (fit) {};              
\draw [decorate,line width=1pt] 
  ([yshift=-5pt]fit.south west) -- ([yshift=5pt]fit.north west);
\end{tikzpicture}

\end{document}

enter image description here

As in your other question, it's still not clear to me why you use the fit node and the remarks I made about using two optional arguments and the scale option.

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.