Estoy intentando componer una tabla lateral con numeración automática en las filas y subnumeración en las columnas. solíaesta respuestapara numerar las filas pero eso solo me da los números de encabezado de fila. Me gustaría que las columnas tuvieran subnúmeros correspondientes a cada fila (por ejemplo, 1. encabezado de fila 1a. aproximadamente dos filas de..., 1b. ..., 1c. ...). El MWE conserva parte del formato requerido como mi documento, por lo que algunos elementos (como que la tabla esté de lado) pueden no ser necesarios. Mis intentos han dado como resultado que el conteo continúe a lo largo de las filas en lugar de obtener subnúmeros (por ejemplo, obtengo 1. 2. 3. 4. en la primera fila y luego la segunda fila comienza en 5). Soy nuevo en LaTeX y Esta es mi primera publicación, lo siento si esto es obvio o si me perdí la respuesta en otra parte.
MWE:
\documentclass[11pt,a4paper,openright,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{rotating}
\renewcommand{\arraystretch}{1.5}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcounter{rowcount}
\setcounter{rowcount}{0}
\begin{document}
\begin{sidewaystable}
\centering
\caption{An Appropriate Table Title}
\small
\label{tab:valued_language_capabilities}
\begin{tabular}{@{\stepcounter{rowcount}\therowcount.\hspace*{\tabcolsep}}L{40mm}L{45mm}L{45mm}L{45mm}}
\multicolumn{1}{>{\makebox[3em][r]{}}l}{} & column header & column header & column header\\
\hline
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
\hline
\end{tabular}
\end{sidewaystable}
\end{document}
Se compila como:
Respuesta1
¿Como esto? (Solía \hskip
sólo reducir el número de letras).
\documentclass[11pt,a4paper,openright,oneside]{book}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{rotating}
\renewcommand{\arraystretch}{1.5}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcounter{rowcount}
\setcounter{rowcount}{0}
\newcounter{colcount}[rowcount]% auto reset
\renewcommand{\thecolcount}{\therowcount\alph{colcount}}
\begin{document}
\begin{sidewaystable}
\centering
\caption{An Appropriate Table Title}
\small
\label{tab:valued_language_capabilities}
\begin{tabular}{@{\stepcounter{rowcount}\therowcount.\hskip\tabcolsep}L{40mm}
@{\hskip\tabcolsep\stepcounter{colcount}\thecolcount\hskip\tabcolsep}L{45mm}
@{\hskip\tabcolsep\stepcounter{colcount}\thecolcount\hskip\tabcolsep}L{45mm}
@{\hskip\tabcolsep\stepcounter{colcount}\thecolcount\hskip\tabcolsep}L{45mm}}
\multicolumn{1}{>{\makebox[3em][r]{}}l}{} & column header & column header & column header\\
\hline
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
row header & approximately two lines of row subcontent & approximately two lines of row subcontent & approximately two lines of row subcontent\\
\hline
\end{tabular}
\end{sidewaystable}
\end{document}