SWOTテーブル-記事に変換する方法は?



Swot Table How Convert An



解決:

必要に応じて、フォント、テキスト、色を変更します。

このコードは、TikZを使用したSWOTマトリックスへの私の回答から適応されました



 documentclass [10pt、tikz、border = 2mm] {standalone}  usepackage {times}  usepackage {tikz}  usetikzlibrary {matrix}  colorlet {helpful} {lime!70}  colorlet {harmful} {red!30}  colorlet {internal} {yellow!20}  colorlet {external} {cyan!30}  colorlet {S} {helpful!50!internal}  colorlet {W} {harmful!50!internal}  colorlet {O} {helpful !50!external}  colorlet {T} {harmful!50!external}  newcommand { texta} {Helpful \ tiny(目的を達成するため) par}  newcommand { textb} {Harmful \ tiny (目的を達成するため) par}  newcommand { textcn} {内部起源\ tiny(製品スラッシュ会社属性) par}  newcommand { textdn} {外部起源\ tiny(環境スラッシュ市場)属性) par}  newcommand { back} [1] { fontsize {60} {70}  selectfont#1}  begin {document}  begin {tikzpicture} [any / .style = {minimum width = 3cm、最小の高さ= 3cm、%テキストの幅= 2.5cm、align = center、outer sep = 0pt}、header / .style = {any、minimum height = 1cm、fill = black!10}、leftcol / .style = {header、回転= 90}、mycolor / .style = {fill =#1、text =#1!60!black}]  matri x(SWOT)[ノードのマトリックス、ノード= {any、anchor = center}、%列sep =- pgflinewidth、%行sep =- pgflinewidth、%行1 / .style = {nodes = header}、%列1 / .style = {nodes = leftcol}、inner sep = 0pt] {&| [fill = helpful] | { texta}&| [fill = harmful] | { textb} \ | [fill = internal] | { textcn}&| [mycolor = S] |  back {S}&| [mycolor = W] |  back {W} \ | [fill = external] | { textdn}&| [mycolor = O] |  back {O}&| [mycolor = T] |  back {T} \};  node [any、anchor = center] at(SWOT-2-2){strength 1 \ strength 2};  node [any、anchor = center] at(SWOT-2-3){weakness 1 \ weakness 2};  node [any、anchor = center] at(SWOT-3-2){opportunity 1 \ Opportunity 2};  node [any、anchor = center] at(SWOT-3-3){脅威1 \脅威2};  end {tikzpicture}  end {document}

ここに画像の説明を入力してください


テーブル付き:



 documentclass [10pt、table] {article}  usepackage {times}  usepackage {array}  usepackage {graphicx}  usepackage {tikz}  colorlet {helpful} {lime!70}  colorlet {harmful} {red!30}  colorlet {internal} {yellow!20}  colorlet {external} {cyan!30}  colorlet {S} {helpful!50!internal}  colorlet {W} {harmful!50!internal}  colorlet {O} { help!50!external}  colorlet {T} {harmful!50!external}  newcommand { texta} {Helpful  par  tiny(目的を達成するため)}  newcommand { textb} {Harmful  par  tiny(目的を達成するために)}  newcommand { textcn} { rotatebox [origin = c] {90} { parbox [t] {3cm} { centering内部起源\ tiny(製品スラッシュ会社属性) par }}}  newcommand { textdn} { rotatebox [origin = c] {90} { parbox [b] {3cm} { centering外部オリジン\ tiny(環境スラッシュマーケット属性) par}}}  newcommand { texts} { makebox [0pt] [c] { parbox [t] {0.2  textwidth} { centeringstrength 1  parstrength 2}}}  newcommand { textw} { makebox [0pt] [c] { parbox [t] {0.2  textwidth} { centering weakness 1  par weakness 2}}}  newcommand { tex to} { makebox [0pt] [c] { parbox [t] {0.2  textwidth} { centering Opportunity 1  par Opportunity 2}}}  newcommand { textt} { makebox [0pt] [c] {  parbox [t] {0.2  textwidth} { centering Threat 1  par Threat 2}}}  newcommand { back} [1] { tikz  node [overlay、text =#1!60!black、font =  fontsize {60} {70}  selectfont](char)at(0、-0.1){#1};}  newcommand  mycolor [1] { cellcolor {#1}}  newcolumntype {C} [1] {> { centering  arraybackslash} m {#1}}  begin {document}  begin {tabular} {c * {2} {C {0.2  textwidth}}}& cellcolor {helpful}  texta& cellcolor {有害}  textb \  cellcolor {internal}  textcn& mycolor {S}  back {S}  texts& mycolor {W}  back {W}  textw \  cellcolor {external}  textdn&  mycolor {O}  back {O}  texto& mycolor {T}  back {T}  textt  end {tabular}  end {document}

ここに画像の説明を入力してください


私の以前の答えは、正しいものを修正するために最大の箱のサイズを知る必要があります最小の高さ。ハリッシュクマールは、に基づいて代替ソリューションを提供しています段落の寸法の問題を解決する表形式。

ここで私はに基づいて別のソリューションを提供しますtcbraster(からtcolorbox)。それは使用しています同じ行のすべてのボックスを正しいサイズに自動的に調整する(2つのコンパイル)ためのraster equal height = rowsオプション。それはまた使用します背景マークを描画するための透かしテキストオプション。そして、この場合は使用されていませんが、tcolorboxライブラリをフィッティングすると、対応する長方形に合うように内部テキストを調整できます。



 documentclass [10pt] {article}  usepackage {times}  usepackage [most] {tcolorbox}  usepackage {lipsum}  colorlet {helpful} {lime!70}  colorlet {harmful} {red!30}  colorlet {internal } {yellow!20}  colorlet {external} {cyan!30}  colorlet {S} {helpful!50!internal}  colorlet {W} {harmful!50!internal}  colorlet {O} {helpful!50! external}  colorlet {T} {harmful!50!external}  newcommand { texta} {Helpful  par  tiny(目的を達成するため)}  newcommand { textb} {Harmful  par  tiny(目的を達成するため) )}  newcommand { textcn} { rotatebox [origin = c] {90} { parbox [t] {3cm} { centering内部起源\ tiny(製品スラッシュ会社属性) par}}}  newcommand { textdn} { rotatebox [origin = c] {90} { parbox [b] {3cm} { centering外部オリジン\ tiny(環境スラッシュマーケット属性) par}}}  newcommand { texts} {strength 1  parstrength 2}  newcommand { textw} {weakness 1  par weakness 2}  newcommand { texto} {opportunity 1  par Opportunity 2}  newcommand { textt} {threat 1  par Threat 2}  tcbset {swotbox / .style = {size = normal、boxrule = 0pt 、colback =#1、watermark text =#1、width = .5  linewidth-5mm}、header / .style = {size = small、boxrule = 0pt、width = .5  linewidth-5mm、colback =#1、 valign = center、halign = center}、firstcol / .style = {header =#1、width = 1cm}}  begin {document}  begin {tcbitemize} [raster columns = 3、raster rows = 3、拡張されたシャープなコーナー、raster equal height = rows、raster force size = false、raster column skip = 0pt、raster row skip = 0pt]%空のコーナーと2つのヘッダー tcbitem [blankest、width = 1cm]  tcbitem [header = help]  texta  tcbitem [ヘッダー=有害]  textb%最初の行 tcbitem [firstcol =内部]  textcn  tcbitem [swotbox = S]  lipsum [2]  tcbitem [swotbox = W]  lipsum [2]%2番目の行 tcbitem [ firstcol = external]  textcn  tcbitem [swotbox = O]  lipsum [2]  tcbitem [swotbox = T]  lipsum [2]  end {tcbitemize}  end {document}

ここに画像の説明を入力してください