希望你一切都好。我有一个请求,要求根据我的需求更改 tikz 描述性智能图表。以下代码在 tikz 中生成描述性图表:
\documentclass{article}
\usepackage{smartdiagram}
\begin{document}
\tikzset{no shadow/.style={
every shadow/.style={
fill=none,
shadow xshift=0pt,
shadow yshift=0pt}
}}
\tikzset{description/.append style={top color=\col,bottom color=\col,
minimum height=6.5em,no shadow},
description title/.append style={top color=\col,bottom color=\col,
minimum height=6.5em,no shadow}}
\smartdiagramset{descriptive items y sep=7em,
set color list={red!40,blue!35,orange!40,cyan!50}}
\smartdiagram[descriptive diagram]{
{Models,{Choose the electrical sources models}},
{Sizing, {Define a sizing module able to desgin an infrastructure based on
\begin{itemize}
\item [--] meterological data
\item [--] load
\end{itemize}}},
{Management, Define a management module able to provide an optimal power profile for each step of the negotiation},
{Validation, Experiment these both modules to ensure the reliability of the system}}
\end{document}
我想将这个普通图表更改为更具交互性的图表,就像在 PowerPoint 中找到它们一样。我感兴趣的设计类似于以下设计:
所以如果有人能帮助我实现我的目标我会很高兴。
干杯
莫
答案1
一个可能的解决方案tcolorbox
。
\documentclass{article}
\usepackage{lmodern}
\usepackage[most]{tcolorbox}
\usepackage{fontawesome5}
\newtcolorbox{mybox}[4][]{%
enhanced, width=9cm, height=2cm,
fontupper=\small\sffamily,
fonttitle=\large\sffamily\bfseries\slshape,
leftupper=1.5cm,
colback=white,
colframe=white,
colupper=white,
title=#2,
attach title to upper={\\},
underlay={\fill[#4] (frame.north west)--([xshift=-5mm]frame.north east)--(frame.east)--([xshift=-5mm]frame.south east)-|cycle;},
overlay={\node[circle, minimum size=2cm, line width=1mm, draw=white, fill=#4, font=\Huge, text=white] at (frame.west) {#3};},
#1, }
\begin{document}
\begin{mybox}{Company Description}{\faIcon[regular]{lightbulb}}{green!50!blue}
This slide is 100\% editable. Adapt it to your needs and capture your audience's attention.
\end{mybox}
\begin{mybox}{Text Here}{\faIcon[regular]{handshake}}{gray!80!green}
This slide is 100\% editable. Adapt it to your needs and capture your audience's attention.
\end{mybox}
\begin{mybox}{Company Description}{\faIcon[regular]{cog}}{green!50!blue}
This slide is 100\% editable. Adapt it to your needs and capture your audience's attention.
\end{mybox}
\end{document}