TransWikia.com

Change the label of a cell

TeX - LaTeX Asked by Sadcow on June 30, 2021

enter image description here
Hello, I have a block like the following, I want to change the label as follows (to the blue color). Could you please help me with that?Thank you

documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{tikz}
usepackage{verbatim}
begin{document}
usetikzlibrary{shapes,arrows.meta,decorations, positioning, arrows.meta, calc, shapes.geometric}
tikzset{block/.style={draw, fill=blue!15, rectangle, minimum height=1.7em, minimum width=2em},
cell/.style={rectangle, rounded corners=5mm, fill=green!15, draw,very thick,}}
begin{tikzpicture}[auto]
node [cell, minimum height =6.7cm, minimum width=7.2cm, label={[above, very thick, font = large] 
textbf{ABC}}](celll) at (3.5,-2.7){} ;
end{tikzpicture}
end{document}
end{document}

2 Answers

documentclass{article}
usepackage{tikz}
begin{document}
tikzset{cell/.style={rectangle, rounded corners=5mm, fill=green!15, draw,very thick,}}
begin{tikzpicture}[auto]
node [cell, minimum height =6.7cm, minimum width=7.2cm, 
label={[font = largebfseries,rotate=-90,anchor=south]right:ABC}](celll) at (3.5,-2.7){} ;
end{tikzpicture}
end{document}

enter image description here

Correct answer by user240002 on June 30, 2021

The same answer remodeled

enter image description here

documentclass{article}
usepackage{tikz}
begin{document}
    tikzset{
        cell/.style={
            rectangle, rounded corners=5mm, fill=green!15, draw,very thick,minimum height =6.7cm, minimum width=7.2cm, },
        every label/.style={
            font=largebfseries, rotate=-90, anchor=south}
        }
    begin{tikzpicture}[auto]
        node [cell, label=0:zero](){}  ;
    end{tikzpicture}
end{document}

Answered by js bibra on June 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP