概要
Compiled LaTeX code and created PDF file with latexmk -pdf
, then converted PDF to svg using pdf2svg
.
LaTeX TikZ code:
\documentclass[preview]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage[default,osfigures,scale=0.95]{opensans}
\tikzset{>=latex} % Arrow tip to solid style
\begin{document}
\colorlet{io}{green!30!blue!30}
\colorlet{mem}{green!50!blue!30}
\colorlet{cpu}{yellow!30!brown}
\colorlet{cpucomps}{yellow!15!brown}
\begin{tikzpicture}
% I/O rectangles and connections
\filldraw[fill=io,draw=black] (1,-1) rectangle (5,1);
\draw[arrows=->,ultra thick] (5,0) -- (6,0);
\draw[arrows=->,ultra thick] (10,0) -- (11,0);
\filldraw[fill=io,draw=black] (11,-1) rectangle (15,1);
% Main device rectangle
\filldraw[fill=white,draw=black] (6,-5) rectangle (10,5);
% Memory rectangle
\filldraw[fill=mem,draw=black] (6.25, -4.5) rectangle (9.75, -3);
% CPU rectangle
\filldraw[fill=cpu,draw=black] (6.25,-1) rectangle (9.75,4.25);
% CPU components rectangles
\filldraw[fill=cpucomps,draw=black] (6.5,2.5) rectangle (9.5,4);
\filldraw[fill=cpucomps,draw=black] (6.5,0.5) rectangle (9.5,2);
% Mem arrows
\draw[arrows=->,ultra thick] (7.5,-1) -- (7.5,-3);
\draw[arrows=->,ultra thick] (8.5,-3) -- (8.5,-1);
% Text
\Large
\draw (3,0) node { \begin{tabular}{cc}Dispositivo\\de entrada\end{tabular}};
\draw (13,0) node { \begin{tabular}{cc}Dispositivo\\de salida\end{tabular}};
\draw (8,4.6) node{M\'aquina};
\draw (8,-0.5) node {CPU};
\draw (8,3.25) node {\begin{tabular}{cc}Unidad\\de control\end{tabular}};
\draw (8,1.25) node {ALU};
\draw (8,-3.75) node {Memoria};
\end{tikzpicture}
\end{document}
ライセンス
- あなたは以下の条件に従う場合に限り、自由に
- 共有 – 本作品を複製、頒布、展示、実演できます。
- 再構成 – 二次的著作物を作成できます。
- あなたの従うべき条件は以下の通りです。
- 表示 – あなたは適切なクレジットを表示し、ライセンスへのリンクを提供し、変更があったらその旨を示さなければなりません。これらは合理的であればどのような方法で行っても構いませんが、許諾者があなたやあなたの利用行為を支持していると示唆するような方法は除きます。
- 継承 – もしあなたがこの作品をリミックスしたり、改変したり、加工した場合には、あなたはあなたの貢献部分を元の作品とこれと同一または互換性があるライセンスの下に頒布しなければなりません。
https://creativecommons.org/licenses/by-sa/3.0CC BY-SA 3.0 Creative Commons Attribution-Share Alike 3.0 truetrue