nm9505

LaTex Colored Table

Jan 22nd, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.32 KB | Science | 0 0
  1. \documentclass{article}[20pt,a4paper] % Comment the following line to NOT allow the usage of umlauts
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[english]{babel}
  4. \usepackage[a4paper, lmargin=2cm, rmargin=2cm, bottom=2cm]{geometry} \usepackage{color}
  5. % Uncomment the following line to allow the usage of graphics (.png, .jpg)
  6. \usepackage{verbatim} \usepackage{graphicx} \usepackage{amsmath} \usepackage[all]{xy} \usepackage{pst-all} \usepackage{tikz} \usepackage{gnuplottex}
  7. %\usepackage{chronology}
  8. \usepackage{tablefootnote} \tikzset{flippedeventlabel/.append style={align=center}} \usetikzlibrary{matrix.skeleton} \usetikzlibrary{datavisualization} \usetikzlibrary[shapes,arrows,positioning,fit,backgrounds,intersections,shadows,calc,datavisualization.formats.functions] \usetikzlibrary{decorations.text} \pgfdeclarelayer{background layer} \pgfdeclarelayer{foreground layer} \pgfsetlayers{background layer,main,foreground layer}
  9. %\usetikzlibrary{datavisualization.formats.functions}
  10. \usepackage{pgf-pie} \usepackage{color,colortbl} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9} \usepackage[colorlinks=true,linkcolor=black,citecolor=black,filecolor=magenta,urlcolor=blue]{hyperref} %Paquete de estilo de referencias
  11. \urlstyle{same}
  12. % Start the document
  13. \title{Utilizando Los Entornos \texttt{Tabular}, \texttt{pgf-pie}, y \texttt{tikz} en \LaTeX\ Para Crear Tablas y Gráficos} \author{Nimrod Rodríguez\\ \href{SITIO WEB}{\underline{\textcolor{red}{enlace:} Código \LaTeX }}} \date{Noviembre 18, 2022}
  14. \pagecolor{black}
  15. \begin{document}
  16. \maketitle
  17. \begin{enumerate}
  18. \item Uso de entornos \texttt{figure} y \texttt{tabular} para construir una tabla de verdad del cálculo Proposicional. \begin{center}
  19. \bf\textcolor{yellow!80!green}{Tabla de contingencia para \\ valores \underline{esperados} en X e Y:} \\ \vspace{0.5cm}
  20. \begin{tabular}{|c|c|c|c|}
  21. \hline
  22. \rowcolor{blue}
  23. \textcolor{white}{\bf{X $\backslash$ \textcolor{yellow}{Y}}} & \textcolor{yellow}{\bf{Joven}} & \textcolor{yellow}{\bf{Adulto}} & \textcolor{yellow}{\bf{Total}}\\
  24. \hline
  25. \rowcolor{black}
  26. \bf\textcolor{white}
  27. {Si padece} & \bf\textcolor{green}{10.27} & \bf\textcolor{green}{9.73} & \bf\textcolor{orange}{20} \\
  28. \hline
  29. \rowcolor{black}
  30. \bf\textcolor{white}{No padece} & \bf\textcolor{green}{8.73} & \bf\textcolor{green}{8.27} & \bf\textcolor{orange}{17} \\
  31. \hline
  32. \rowcolor{black}
  33. \textcolor{white}
  34. {\bf{TOTAL}} & \bf\textcolor{blue!25}{19} & \bf\textcolor{blue!25}{18} & \bf\textcolor{white}{37} \\
  35. \hline
  36.  
  37. \end{tabular}\\
  38. \vspace{1cm}
  39. \textcolor{yellow}{\bf\Large{$p_{\chi^2}\ =\ \displaystyle{\mathsf{\Sigma_k\frac{(f_{ok}\ -\ f_{ek})^2}{f_{ek}}}}$,} \tiny{$k = 1,\cdots,4 $}}\\
  40. \vspace{0.3cm}
  41. \textcolor{yellow}{\bf{$\mathsf{f_{ok}:}$ k-ésima frecuencia observada.}}\\
  42.  
  43. \textcolor{yellow}{\bf{$\mathsf{f_{ek}:}$ k-ésima frecuencia esperada.}}
  44. \end{center}
  45. \vspace{.4cm}
  46. \textcolor{white}{ F, al igual que t-Student y Chi-Cuadrado son conocidas como distribuciones muestrales, comúnmente utilizadas en la Estadística Inferencial. Su forma analítica es, en gran parte compleja, a tal punto que está relacionado con el desarrollo hipergeométrico de un ensayo de Bernoulli, la función Gamma, particularmente con la de tipo 2, así como con la función Beta y, por definición, con la función Chi-Cuadrado.}
  47.  
  48. \end{enumerate}
  49. \end{document}
  50.  
Add Comment
Please, Sign In to add comment