T1

From MIT Technology Roadmapping
Jump to navigation Jump to search

<tex> \documentclass[11pt,oneside,article]{memoir}

\usepackage{amsthm} %\usepackage{xltxtra} %\usepackage{newpxtext} %\usepackage[varg,bigdelims]{newpxmath} \usepackage{amsmath} \usepackage{amssymb} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{

   cd,

math, decorations.markings, decorations.pathreplacing, positioning, arrows.meta, circuits.logic.US, shapes, calc, fit,

   quotes}

\newcommand{\tn}{\textnormal} \newcommand{\inp}[1]{#1^{\tn{in}}} \newcommand{\outp}[1]{#1^{\tn{out}}} \newcommand{\upd}[1]{#1^{\tn{upd}}} \newcommand{\rdt}[1]{#1^{\tn{rdt}}}

\tikzset{

    oriented WD/.style={%everything after equals replaces "oriented WD" in key.
       every to/.style={out=0,in=180,draw},
       label/.style={
          font=\everymath\expandafter{\the\everymath\scriptstyle},
          inner sep=0pt,
          node distance=2pt and -2pt},
       semithick,
       node distance=1 and 1,
       decoration={markings, mark=at position \stringdecpos with \stringdec},
       ar/.style={postaction={decorate}},
       execute at begin picture={\tikzset{
          x=\bbx, y=\bby,
          every fit/.style={inner xsep=\bbx, inner ysep=\bby}}}
       },
    string decoration/.store in=\stringdec,
    string decoration={\arrow{stealth};},
    string decoration pos/.store in=\stringdecpos,
    string decoration pos=.7,
    bbx/.store in=\bbx,
    bbx = 1.5cm,
    bby/.store in=\bby,
    bby = 1.5ex,
    bb port sep/.store in=\bbportsep,
    bb port sep=1.5,
    % bb wire sep/.store in=\bbwiresep,
    % bb wire sep=1.75ex,
    bb port length/.store in=\bbportlen,
    bb port length=4pt,
    bb penetrate/.store in=\bbpenetrate,
    bb penetrate=0,
    bb min width/.store in=\bbminwidth,
    bb min width=1cm,
    bb rounded corners/.store in=\bbcorners,
    bb rounded corners=2pt,
    bb small/.style={bb port sep=1, bb port length=2.5pt, bbx=.4cm, bb min width=.4cm, 

bby=.7ex}, bb medium/.style={bb port sep=1, bb port length=2.5pt, bbx=.4cm, bb min width=.4cm, bby=.9ex},

    bb/.code 2 args={%When you see this key, run the code below:
       \pgfmathsetlengthmacro{\bbheight}{\bbportsep * (max(#1,#2)+1) * \bby}
       \pgfkeysalso{draw,minimum height=\bbheight,minimum width=\bbminwidth,outer 

sep=0pt,

          rounded corners=\bbcorners,thick,
          prefix after command={\pgfextra{\let\fixname\tikzlastnode}},
          append after command={\pgfextra{\draw
             \ifnum #1=0{} \else foreach \i in {1,...,#1} {
                ($(\fixname.north west)!{\i/(#1+1)}!(\fixname.south west)$) +(-

\bbportlen,0)

 coordinate (\fixname_in\i) -- +(\bbpenetrate,0) coordinate (\fixname_in\i')}\fi 
 %Define the endpoints of tickmarks
             \ifnum #2=0{} \else foreach \i in {1,...,#2} {
                ($(\fixname.north east)!{\i/(#2+1)}!(\fixname.south east)$) +(-

\bbpenetrate,0)

 coordinate (\fixname_out\i') -- +(\bbportlen,0) coordinate (\fixname_out\i)}\fi;
          }}}
    },
    bb name/.style={append after command={\pgfextra{\node[anchor=north] at 

(\fixname.north) {#1};}}} }

\tikzset{
 	unoriented WD/.style={
 		every to/.style={draw},
 		shorten <=-\penetration, shorten >=-\penetration,
 		label distance=-2pt,
 		thick,
 		node distance=\spacing,
 		execute at begin picture={\tikzset{
 			x=\spacing, y=\spacing}}
 		},
 	pack size/.store in=\psize,
 	pack size = 8pt,
 	spacing/.store in=\spacing,
 	spacing = 8pt,
 	link size/.store in=\lsize,
 	link size = 2pt,

penetration/.store in=\penetration, penetration = 2pt,

 	pack color/.store in=\pcolor,
 	pack color = blue,
 	pack inside color/.store in=\picolor,
 	pack inside color=blue!20,
 	pack outside color/.store in=\pocolor,
 	pack outside color=blue!50!black,
 	surround sep/.store in=\ssep,
 	surround sep=8pt,
 	link/.style={
 		circle, 
 		draw=black, 
 		fill=black,
 		inner sep=0pt, 
 		minimum size=\lsize
 	},
 	pack/.style={
 		circle, 
 		draw = \pocolor, 
 		fill = \picolor,
 		inner sep = .25*\psize,
 		minimum size = \psize
 	},
 	outer pack/.style={
 		ellipse, 
 		draw,
 		inner sep=\ssep,
 		color=\pocolor,
 	},
 	intermediate pack/.style={
 		ellipse,
 		dashed, 
 		draw,
 		inner sep=\ssep,
 		color=\pocolor,
 	},
 }

\tikzset{Yonepart/.pic={ \node[bb={1}{2},bb name = {\tiny$X_{11}$}] (X11) {}; \node[bb={2}{2},below right=of X11,bb name = {\tiny$X_{12}$}] (X12) {}; \node[bb={2}{1}, above right=of X12,bb name = {\tiny$X_{13}$}] (X13) {}; \node[bb={2}{2}, fit={($(X11.north west)+(.3,1.5)$) (X12) ($(X13.east)+(-.3,0)$)},bb name = {\scriptsize $Y_1$}] (Y1) {}; \draw (Y1_in1') to (X11_in1); \draw (Y1_in2') to (X12_in2); \draw (X11_out1) to (X13_in1); \draw (X11_out2) to (X12_in1); \draw (X12_out1) to (X13_in2); \draw (X12_out2) to (Y1_out2'); \draw (X13_out1) to (Y1_out1'); \coordinate (bottombox) at ($(X12.south)$); \coordinate (rightbox) at ($(X13.east)$); \coordinate (Y1northwest) at ($(Y1.north west)$); } }

\tikzset{Ytwopart/.pic={ \node[bb={2}{2}, bb name = {\tiny$X_{21}$}] (X21) {}; \node[bb={1}{2},above right=-1 and 1 of X21,bb name = {\tiny$X_{22}$}] (X22) {}; \node[bb={1}{2}, fit={($(X21.south west)+(-.25,0)$) ($(X22.north east)+(.25,3.5)$)},bb name = {\scriptsize$Y_2$}] (Y2){}; \draw (Y2_in1') to (X21_in2); \draw (X21_out1) to (X22_in1); \draw (X22_out2) to (Y2_out1'); \draw let \p1=(X22.south east), \p2=($(Y2_out2)$), \n1={\y1-\bby}, \n2=\bbportlen in (X21_out2) to (\x1+\n2,\n1) -- (\x1+\n2,\n1) to (Y2_out2'); \draw let \p1=(X22.north east), \p2=(X21.north west), \n1={\y1+\bby}, \n2=\bbportlen in

         (X22_out1) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (X21_in1);
         }

}

\tikzset{SmallNeuronPic/.pic={

\node[bb={3}{1}] (N1) {$\scriptstyle N_1$};
 \node[bb={2}{1}, above right=.7 and 3.5 of N1] (N2) {$\scriptstyle N_2$};
 \node[bb={2}{1}, below =of N2] (N3) {$\scriptstyle N_3$};
 \node[bb={3}{1}, below =of N3] (N4) {$\scriptstyle N_4$};
 \node[bb={6}{8}, fit={($(N1.west)-(.5,0)$) ($(N2.north)+(0,2)$) ($(N3.east)+(1.5,0)$) ($(N4.south)-(0,1)$)}, bb name={$\scriptstyle X$}] (X) {};
 \draw (X_in1') to (N2_in1);
 \draw (X_in2') to (N1_in1);
 \draw (X_in3') to (N1_in2);
 \draw (X_in4') to (N1_in3);
 \draw (X_in6') to (N4_in2);
 \draw (N1_out1) to (N2_in2);
 \draw (N1_out1) to (N3_in1);
 \draw (N1_out1) to (N4_in1);
 \draw (N2_out1) to (X_out1');
 \draw (N2_out1) to (X_out2');
 \draw (N2_out1) to (X_out3');
 \draw (N3_out1) to (X_out4');
 \draw (N3_out1) to (X_out5');
 \draw (N3_out1) to (X_out6');
 \draw (N4_out1) to (X_out7');
 \draw (N4_out1) to (X_out8'); 
 \draw (X_in5') to[looseness=2] (N3_in2);
 \draw let \p1=(N4.south east), \p2=(N4.south west), \n1={\y2-\bby}, \n2=\bbportlen in
         (N3_out1) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (N4_in3);

} }

\tikzset{SmallNeuronDashed/.pic={

\node[bb={3}{1}] (N1) {$\scriptstyle N_1$};
 \node[bb={2}{1}, above right=.7 and 3.5 of N1] (N2) {$\scriptstyle N_2$};
 \node[bb={2}{1}, below =of N2] (N3) {$\scriptstyle N_3$};
 \node[bb={3}{1}, below =of N3] (N4) {$\scriptstyle N_4$};
 \node[bb={6}{8}, fit={($(N1.west)-(.5,0)$) ($(N2.north)+(0,2)$) ($(N3.east)+(1.5,0)$) ($(N4.south)-(0,1)$)}, bb name={$\scriptstyle X$}] (X) {};
 \draw[dashed] (X_in1') to (N2_in1);
 \draw[dashed] (X_in2') to (N1_in1);
 \draw[dashed] (X_in3') to (N1_in2);
 \draw[dashed] (X_in4') to (N1_in3);
 \draw[dashed] (X_in6') to (N4_in2);
 \draw[dashed] (N1_out1) to (N2_in2);
 \draw[dashed] (N1_out1) to (N3_in1);
 \draw[dashed] (N1_out1) to (N4_in1);
 \draw[dashed] (N2_out1) to (X_out1');
 \draw[dashed] (N2_out1) to (X_out2');
 \draw[dashed] (N2_out1) to (X_out3');
 \draw[dashed] (N3_out1) to (X_out4');
 \draw[dashed] (N3_out1) to (X_out5');
 \draw[dashed] (N3_out1) to (X_out6');
 \draw[dashed] (N4_out1) to (X_out7');
 \draw[dashed] (N4_out1) to (X_out8'); 
 \draw[dashed] (X_in5') to[looseness=2] (N3_in2);
 \draw[dashed] let \p1=(N4.south east), \p2=(N4.south west), \n1={\y2-\bby}, \n2=\bbportlen in
         (N3_out1) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (N4_in3);

} }

\tikzset{SmallNestingPic/.pic={ \path (0,0) pic [purple] {Yonepart}; \path ($(rightbox)+(5,-5)$) pic [orange] {Ytwopart};

\node[bb={1}{2}, fit={($(Y1northwest)+(-.5,4)$) ($(Y2.south east)+(1,0)$)}, bb name={\small $Z$}] (Z) {}; \draw (Z_in1') to (Y1_in2); \draw let \p1=(Y2.north west),\p2=(Y2.north east),\n1={\y2+\bby},\n2=\bbportlen in

 (Y1_out1) to (\x1+\n2,\n1)--(\x2+\n2,\n1) to (Z_out1');

\draw (Y1_out2) to (Y2_in1); \draw (Y2_out2) to (Z_out2'); \draw let \p1=(Y2.north east), \p2=(Y1.north west), \n1={\y2+\bby}, \n2=\bbportlen in

         (Y2_out1) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (Y1_in1);
         }

}

\tikzset{Zredgreen/.pic={ \node[bb={2}{2}, green!50!black, bb name = $\scriptstyle Y_1$] (YY1) {}; \node[bb={1}{2}, red, below right=-1 and 2 of YY1, bb name=$\scriptstyle Y_2$] (YY2) {}; \node[bb={1}{2}, fit={($(YY1.north west)+(-.5,4)$) ($(YY2.south east)+(.5,-2)$)}, bb name={\scriptsize $Z$}] (Z) {}; \draw (Z_in1') to (YY1_in2); \draw (YY1_out1) to (Z_out1'); \draw (YY1_out2) to (YY2_in1); \draw (YY2_out2) to (Z_out2'); \draw let \p1=(YY2.north east), \p2=(YY1.north west), \n1={\y2+\bby}, \n2=\bbportlen in

         (YY2_out1) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (YY1_in1);

} }

\tikzset{Zcombined/.pic={ \node[bb={1}{2},green!25!black,bb name = {\tiny$X_{11}$}] (X11) {}; \node[bb={2}{2},green!25!black,below right=of X11,bb name = {\tiny$X_{12}$}] (X12) {}; \node[bb={2}{1}, green!25!black,above right=of X12,bb name = {\tiny$X_{13}$}] (X13) {}; \draw (X11_out1) to (X13_in1); \draw (X11_out2) to (X12_in1); \draw (X12_out1) to (X13_in2);

\node[bb={2}{2}, red!30!black, below right = 0 and 1.25 of X12, bb name = {\tiny$X_{21}$}] (X21) {}; \node[bb={1}{2}, red!30!black, above right=-1 and 1 of X21,bb name = {\tiny$X_{22}$}] (X22) {}; \draw (X21_out1) to (X22_in1); \draw let \p1=(X22.north east), \p2=(X21.north west), \n1={\y1+\bby}, \n2=\bbportlen in

         (X22_out1) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (X21_in1);
       
       \node[bb={1}{2}, fit = {($(X11.north east)+(-1,3)$) (X12) (X13) ($(X21.south)+(0,-1)$) ($(X22.east)+(.5,0)$)}, bb name ={\scriptsize $Z$}] (Z) {};

\draw (Z_in1') to (X12_in2); \draw (X13_out1) to (Z_out1'); \draw (X12_out2) to (X21_in2); \draw let \p1=(X22.south east),\n1={\y1-\bby}, \n2=\bbportlen in (X21_out2) to (\x1+\n2,\n1) to (Z_out2'); \draw let \p1=(X22.north east), \p2=(X11.north west), \n1={\y2+\bby}, \n2=\bbportlen in

         (X22_out2) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (X11_in1);

} }

%\setmainfont{Tex Gyre Pagella} \settrims{0pt}{0pt}

\settypeblocksize{*}{35pc}{*} 
\setlrmargins{*}{*}{1} 
\setulmarginsandblock{1in}{1in}{*} 
\setheadfoot{\onelineskip}{2\onelineskip} 
\setheaderspaces{*}{1.5\onelineskip}{*}
\checkandfixthelayout

\setcounter{tocdepth}{1} \setcounter{secnumdepth}{1} \pagestyle{ruled} \renewcommand*{\chaptitlefont}{\bfseries\Large} \setsecheadstyle{\bfseries\large\raggedright} \setsubsecheadstyle{\bfseries\raggedright} \begin{document}

\title{Digital Publishing Workflow} \author{Joemilly} \maketitle

\begin{equation} \begin{tikzpicture}[oriented WD, bbx = .8cm, bby =.5cm, bb min width=1cm, bb port length=2pt, bb port sep=1] \node[bb={1}{2}] (X1) {$Edit$ $and$ $Typesetting$}; \node[bb={2}{2},right =8 of X1] (X2) {$Processing$ $and$ $Output$};

   \draw[ar] (X1_out1) to (X2_in1);

\draw[ar] (X2_out2) -- (18,-0.5);

   \draw[ar] let \p1=(X2.north east), \p2=(X1.north west), \n1={\y2+\bby}, \n2=\bbportlen in
         (X2_out1) to[in=0] (\x1+\n2,\n1) -- (\x2-\n2,\n1) to[out=180] (X1_in1);

\begin{scope}[blue!60!black]

   \node[bb={1}{2},below left = 14 of X2] (X3) {$Logic$ $Model$};
   \node[bb={3}{1},below right=of X3] (X4) {$Resource$ $and$ $Activity$ $Coordination$};
   \node[bb={2}{1}, above right=of X4] (X5) {$Planning$ $and$ $Management$};
   \node[bb={2}{2}, dashed, fit={($(X3.north west)+(.3,1.5)$) (X4)  ($(X5.east)+(-.3,0)$)}] (Y1) {};
   \draw[ar] (X1_out2) to (X3_in1);	
   \draw[ar] (X3_out1) to (X5_in1);
   \draw[ar] (X5_in2)  to (X4_out1);  
   \draw[ar] (X4_in1)  to (X3_out2);
   \draw[ar]  (X2_in2) to (X5_out1);
   \draw[label] 

node at ($(X3_out1)!.5!(X5_in1)+(0,7pt)$) {$Media$ $Wiki$ + $Phabricator$}; \end{scope}

   \node[bb={6}{1},below=10 of X3] (X6) {$Design$ $Element$};
   \node[bb={1}{1},right=2 of X6] (X7) {$Typesetting$};
   \node[bb={1}{2},below=12 of X5] (X8) {$Proofing$ $and$ $Draft$ $copy$};    
   \node[bb={1}{2},right=2 of X8] (X9) {$Publishing$};
   \draw[ar] (X6_out1) to (X7_in1);
   \draw[ar] (-4,-26.4) -- (X6_in2);
   \draw[ar] (-4,-27.4) -- (X6_in3);  
   \draw[ar] (-4,-28.4) -- (X6_in4);   
   \draw[ar] (-4,-29.4) -- (X6_in5);   
   \draw[ar] (-4,-30.4) -- (X6_in6);  
   \draw[ar] (X7_out1)  to (X8_in1);    
   \draw[ar] (X4_in2)  to (X6_in1);
   \draw[label] 

node at ($(X6_in2)!.5!(X6_in2)+(-1,7pt)$) {$Content$} node at ($(X6_in3)!.5!(X6_in3)+(-1,7pt)$) {$Template$} node at ($(X6_in4)!.5!(X6_in4)+(-2,7pt)$) {$Image$ $and$ $Illustration$} node at ($(X6_in5)!.5!(X6_in5)+(-1.5,7pt)$) {$Video$ $and$ $Audio$} node at ($(X6_in6)!.5!(X6_in6)+(-1,7pt)$) {$Reference$} node at ($(X9_in1)!.5!(X9_in1)+(-2,7pt)$) {$Prepress$ $operation$} ; \end{tikzpicture}

\end{equation}


\end{document} </tex>