-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathop_document.Rmd
138 lines (111 loc) · 2.96 KB
/
op_document.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
output:
pdf_document:
includes:
in_header: header.tex
params:
po.id: po.id
po.info.general: po.info.general
po.info.garments: po.info.garments
po.info.garments.flow: po.info.garments.flow
po.info.materials: po.info.materials
sansfont: Calibri light
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = F,
warning = F)
```
***
\begin{vwcol}[widths={0.3,0.7},
sep=.8cm, justify=flush,rule=0pt,indent=1em]
\null \vfill
\includegraphics[width=.2\textwidth]{./Acceso/LOGO.jpg}
\vfill \null
\newpage
\null \vfill
\section{\fontsize{50}{15}\selectfont Full Body}
\vfill \null
\end{vwcol}
``` {r echo = FALSE}
subtitle <- paste0('Orden de producción \\#',
params$po.id)
```
\section{\fontsize{25}{15}\selectfont \hfil `r subtitle`\hfil}
\bigskip
\bigskip
\section{\fontsize{15}{15}\selectfont \hfil Información General\hfil}
\medskip
``` {r echo = FALSE, results = 'asis'}
library(knitr)
library(xtable)
t1 <- knitr::kable(params$po.info.general,
format = 'latex',
booktabs = T,
col.names = c('Información', ''),
linesep = ""
#align = 'l',
#padding = 20
)
b <- as.data.frame(t(params$po.info.garments))
b$names <- c('Prenda',
'Cantidad original',
'Corte',
'Recibido')
b <- b[, c('names', 'V1')]
t2 <- knitr::kable(b,
format = 'latex',
col.names = c('Prendas recibidas', ''),
row.names = F,
booktabs = T,
linesep = "")
t3 <- knitr::kable(params$po.info.materials,
format = 'latex',
booktabs = T,
col.names = c('Nombre',
'Cantidad acordada',
'Cantidad entregada',
'Costo'),
linesep = ""
#align = 'l',
#padding = 20
)
t4 <- knitr::kable(params$po.info.garments.flow,
format = 'latex',
booktabs = T,
col.names = c('ID sistema',
'ID alternativo',
'Fecha recibo',
'Prenda',
'Cantidad'),
linesep = ""
#align = 'l',
#padding = 20
)
cat(c("\\begin{table}[!htb]
\\begin{minipage}[t]{.5\\linewidth}
\\vspace{0pt}
\\centering",
t1,
"\\end{minipage}%
\\begin{minipage}[t]{.5\\linewidth}
\\vspace{0pt}
\\centering",
t2,
"\\end{minipage}
\\end{table}"
))
# cat(c('\\centering', t3))
```
\section{\fontsize{15}{15}\selectfont \hfil Materiales\hfil}
\medskip
\begin{center}
`r t3`
\end{center}
\section{\fontsize{15}{15}\selectfont \hfil Recibos prendas\hfil}
\medskip
\begin{center}
`r t4`
\end{center}
\bigskip
\bigskip
***