TransWikia.com

Using xcolor list in smartdiagram package

TeX - LaTeX Asked by user3056542 on June 29, 2021

I would like to use names from dvipsnames option to create color list in smartdiagram. For example. 1. NavyBlue, 2. Orange, 3. GreenYellow, 4. Purple , 5. cornflowerBlue, 6.SpringGreen and 7. CadetBlue, or BlueViolet

The color list is available under this heading "Following are the xcolor color names available with the dvipsnames option" if you google.

example from smartdiagram packages;

begin{center}
smartdiagramset{border color=none,
set color list={blue!50!cyan,green!60!lime,orange!50!red,red!80!black},
back arrow disabled=true}
smartdiagram[flow diagram:horizontal]{Set up,Run,Analyse,Modify~/ Add}
end{center}

Any help on seting the color list?
Thank you

One Answer

enter image description here

documentclass{article}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{smartdiagram}

%usepackage[dvipsnames]{xcolor}

definecolor{mypink1}{rgb}{0.858, 0.188, 0.478}
definecolor{mypink2}{RGB}{219, 48, 122}
definecolor{mypink3}{cmyk}{0, 0.7808, 0.4429, 0.1412}
definecolor{mygray}{gray}{0.6}

begin{document}

    begin{center}
        smartdiagramset{border color=none,
            set color list={mypink1,mypink2,mypink3,mygray},
            back arrow disabled=true}
        smartdiagram[flow diagram:horizontal]{Set up,Run,Analyse,Modify~/ Add}
    end{center}
end{document}

Alternate arrangement with xcolor

PassOptionsToPackage{usenames,dvipsnames}{xcolor}
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{smartdiagram}

usepackage[usenames,dvipsnames]{xcolor}
colorlet{LightRubineRed}{RubineRed!70}
colorlet{Mycolor1}{green!10!orange!90}
definecolor{Mycolor2}{HTML}{00F9DE}

begin{document}

    begin{center}
        smartdiagramset{border color=none,
            set color list={Apricot,Mycolor1,Mycolor2,RubineRed},
            back arrow disabled=true}
        smartdiagram[flow diagram:horizontal]{Set up,Run,Analyse,Modify~/ Add}
    end{center}
end{document}

enter image description here

Another edit for navyblue

PassOptionsToPackage{usenames,dvipsnames}{xcolor}
documentclass{article}
usepackage[utf8]{inputenc}
usepackage{smartdiagram}

usepackage[usenames,dvipsnames]{xcolor}

begin{document}

    begin{center}
        smartdiagramset{border color=none,
            set color list={NavyBlue!50!Black,RoyalPurple!40!Violet!40,NavyBlue,RubineRed},
            back arrow disabled=true}
        smartdiagram[flow diagram:horizontal]{Set up,Run,Analyse,Modify~/ Add}
    end{center}
end{document}

enter image description here

why not select from the table

enter image description here

Correct answer by js bibra on June 29, 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