Skip to content

Commit 536795f

Browse files
committed
Agrega columnas justificadas
1 parent 0d7a75f commit 536795f

3 files changed

Lines changed: 50 additions & 45 deletions

File tree

src/cfg/init.tex

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -770,35 +770,6 @@
770770
\addtocounter{table}{\value{templateTables}}%
771771
}
772772

773-
% -----------------------------------------------------------------------------
774-
% Formato de columnas
775-
% -----------------------------------------------------------------------------
776-
% Centrado
777-
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
778-
\newcolumntype{\CColor}[2]{>{\columncolor{#1}\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#2}}
779-
780-
\newcolumntype{P}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
781-
\newcolumntype{\PColor}[2]{>{\columncolor{#1}\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#2}}
782-
783-
\newcolumntype{B}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
784-
\newcolumntype{\BColor}[2]{>{\columncolor{#1}\centering\let\newline\\\arraybackslash\hspace{0pt}}b{#2}}
785-
786-
% Izquierda
787-
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
788-
\newcolumntype{\LColor}[2]{>{\columncolor{#1}\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#2}}
789-
\newcolumntype{T}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
790-
\newcolumntype{\TColor}[2]{>{\columncolor{#1}\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#2}}
791-
\newcolumntype{F}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
792-
\newcolumntype{\FColor}[2]{>{\columncolor{#1}\raggedright\let\newline\\\arraybackslash\hspace{0pt}}b{#2}}
793-
794-
% Derecha
795-
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
796-
\newcolumntype{\RColor}[2]{>{\columncolor{#1}\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#2}}
797-
\newcolumntype{H}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
798-
\newcolumntype{\HColor}[2]{>{\columncolor{#1}\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#2}}
799-
\newcolumntype{G}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
800-
\newcolumntype{\GColor}[2]{>{\columncolor{#1}\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}b{#2}}
801-
802773
% -----------------------------------------------------------------------------
803774
% Parcha el entorno tablenotes
804775
% -----------------------------------------------------------------------------

src/cmd/column.tex

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,54 @@
216216
\createthreecolumn{0.3333}{0.3333}{0.3333}{0}{0}{#1}{#2}{#3}%
217217
}
218218

219+
% Crea un salto de columna en el entorno multicol
220+
\ifthenelse{\isundefined{\newcolumn}}{%
221+
\newcommand{\newcolumn}{%
222+
\checkinsidemulticol\vfill\null\columnbreak%
223+
}
224+
}{%
225+
\renewcommand{\newcolumn}{%
226+
\checkinsidemulticol\vfill\null\columnbreak%
227+
}
228+
}
229+
230+
% Salto de página en entorno multicol
231+
\newcommand{\newpagemulticol}{%
232+
\newcolumn\newcolumn\clearpage%
233+
}
234+
235+
% Centrado
236+
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
237+
\newcolumntype{\CColor}[2]{>{\columncolor{#1}\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#2}}
238+
239+
\newcolumntype{P}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
240+
\newcolumntype{\PColor}[2]{>{\columncolor{#1}\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#2}}
241+
242+
\newcolumntype{B}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
243+
\newcolumntype{\BColor}[2]{>{\columncolor{#1}\centering\let\newline\\\arraybackslash\hspace{0pt}}b{#2}}
244+
245+
% Izquierda
246+
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
247+
\newcolumntype{\LColor}[2]{>{\columncolor{#1}\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#2}}
248+
\newcolumntype{T}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
249+
\newcolumntype{\TColor}[2]{>{\columncolor{#1}\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#2}}
250+
\newcolumntype{F}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
251+
\newcolumntype{\FColor}[2]{>{\columncolor{#1}\raggedright\let\newline\\\arraybackslash\hspace{0pt}}b{#2}}
252+
253+
% Derecha
254+
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
255+
\newcolumntype{\RColor}[2]{>{\columncolor{#1}\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#2}}
256+
\newcolumntype{H}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
257+
\newcolumntype{\HColor}[2]{>{\columncolor{#1}\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#2}}
258+
\newcolumntype{G}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
259+
\newcolumntype{\GColor}[2]{>{\columncolor{#1}\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}b{#2}}
260+
261+
% Justificado
262+
\newcolumntype{Y}[1]{>{\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
263+
\newcolumntype{\YColor}[2]{>{\columncolor{#1}\let\newline\\\arraybackslash\hspace{0pt}}m{#2}}
264+
\newcolumntype{K}[1]{>{\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
265+
\newcolumntype{\KColor}[2]{>{\columncolor{#1}\let\newline\\\arraybackslash\hspace{0pt}}p{#2}}
266+
\newcolumntype{J}[1]{>{\let\newline\\\arraybackslash\hspace{0pt}}b{#1}}
267+
\newcolumntype{\JColor}[2]{>{\columncolor{#1}\let\newline\\\arraybackslash\hspace{0pt}}b{#2}}
268+
219269
% END

src/cmd/other.tex

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@
1414
\hbadness=10000 \vspace{\baselinestretch\baselineskip} \par%
1515
}
1616

17-
% Crea un salto de columna en el entorno multicol
18-
\ifthenelse{\isundefined{\newcolumn}}{%
19-
\newcommand{\newcolumn}{%
20-
\checkinsidemulticol\vfill\null\columnbreak%
21-
}
22-
}{%
23-
\renewcommand{\newcolumn}{%
24-
\checkinsidemulticol\vfill\null\columnbreak%
25-
}
26-
}
27-
28-
% Salto de página en entorno multicol
29-
\newcommand{\newpagemulticol}{%
30-
\newcolumn\newcolumn\clearpage%
31-
}
32-
3317
% Redimensiona un ítem
3418
% #1 Tamaño del nuevo objeto (En linewidth)
3519
% #2 Objeto a redimensionar

0 commit comments

Comments
 (0)