summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/factura/factura-ejemplo-factura5.tex
blob: 193ae665dfc661f6ca12422f91f0a3b14cbea8bc (plain)
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
%%
%% This is file `factura-ejemplo-factura5.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% factura.dtx  (with options: `cinco')
%% 
%% Copyright 2015 Emilio Lazo Zaia <emiliolazozaia@gmail.com>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%  http://www.latex-project.org/lppl/lppl-1-3c.{html|txt|tex|pdf}
%% and the latest version of this license is in
%%  http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2008/05/04 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Emilio Lazo Zaia.
%% 
%% This work consists of the files README and factura.dtx
%% with its derived files factura.ins, factura.cls, factura.def,
%% factura-ejemplo-firma.tex, factura-ejemplo-fondo.tex,
%% factura-ejemplo-membrete.tex, factura-ejemplo-cotizacion.tex,
%% factura-ejemplo-prefactura.tex, factura-ejemplo-factura1.tex
%% factura-ejemplo-factura2.tex, factura-ejemplo-factura3.tex,
%% factura-ejemplo-factura4.tex, factura-ejemplo-factura5.tex,
%% factura-ejemplo-factura6.tex, factura-ejemplo-reporte1.tex,
%% factura-ejemplo-reporte2.tex, factura-ejemplo-reporte3.tex,
%% and factura-beispiel-rechnung.tex.
%% 
%% Descripción de este ejemplo:
%%  Hacemos una factura,
%%  Escribimos el reporte, pero sólo generamos la factura,
%%  Escribe la denominación y el número (denom),
%%  Modo 'sin cantidades' (sincantidad),
%%  Totalización en modo de filas (filas),
%%  Centrados los totales en el modo de filas (centrado),
%%  Separado cada ítem con una línea horizontal (lineaitem),
%%  Sin expandir el renglón de la factura ni la descripción (sinexpandir),
%%  Especificando 'G' en los ítems gravados con IVA general (G),
%%  Obligando a especificar todos los IVA así no existan productos gravados con ellos (todosiva),
%%  Cambiando la geometría del papel de la factura (\GeometriaReporte),
%%  Con resumen (\Resumen),
%%  Con descuentos totales (\Descuento***),
%%  Alterando la separación mínima vertical entre los elementos (\SepElementos),
%%  Alterando la separación horizontal en el encabezado y la distancia desde el contorno hasta el texto (\SepEncabez),
%%  Alterando la línea de las cajas del encabezado, la curvatura en la esquina y la sombra (\LineaEncabez),
%%  Alterando la línea de la descripción, la curvatura en la esquina y la sombra (\LineaDescrip),
%%  Alterando la separación horizontal y vertical entre los totales en el modo de filas (\SepFilas),
%%  Alterando la longitud de las líneas para firmar y su grosor (\LineaFirmas),
%%  Alterando la posición de la fecha, las firmas y de la denominación del documento (\PosFecha, \PosFirmas y \PosDenom),
%%  Redefiniendo el formato de la fecha (redef. @@Fecha y \@EstiloFecha),
%%  Con descripción larga.
%%
\documentclass[
sincantidad,
denom,
filas,
centrado,
lineaitem,
sinexpandir,
G,
todosiva,
]{factura}

\usepackage[utf8]{inputenc}

\GeometriaFactura{a3paper,vmargin={5cm,5.5cm},hmargin={1cm,1cm},footskip=0pt,headsep=0pt,headheight=0pt}
\Fecha{01-01-2016}
\RazonSocial{Ayala San Vicente Usureros}
\RIF{Y-12.345.678-9}
\Contacto{Jacinto de Ayala}
\Direccion{Av. Ayala, Galpón Santo Vicente, Sector Arauca, Apure, Venezuela}
\Telefono{+58 (987) 654.32.10}
\Email{jacinto@ayala.sv}
\Emisor{Lázaro de la Vega}
\Num{1}
\Condiciones{Las condiciones de pago...}
\Resumen{El resumen opcional}
\DescuentoE{15}
\DescuentoG{20}
\SepElementos{1cm}
\SepEncabez{1cm}{16pt}
\SepDescrip{16pt}
\LineaEncabez{1pt}{20pt}{3pt}
\LineaDescrip{1pt}{20pt}{3pt}
\SepFilas{1cm}{5pt}
\LineaFirmas{6.5cm}{2pt}
\PosFecha{-0cm}{-1.5cm}
\PosFirmas{7cm}{2cm}{-3cm}
\PosDenom{-0cm}{4.3cm}
\makeatletter
 \renewcommand{\@@Fecha}{\slshape FECHA DE EMISIÓN:}
 \renewcommand{\@EstiloFecha}{\@LetraFecha\bfseries\@@Fecha\space{\color{blue}\@Fecha}}
\makeatother

\begin{document}

\begin{factura}
 \Item{ítem sin cantidad, con IVA general}{1000}
 \ItemA{ítem sin cantidad, con IVA adicional}{1000}
 \ItemX{línea sin precio}
\end{factura}

\Descripcion{Descripción larga del servicio}

\begin{reporte}
 El reporte - página 1\newpage El reporte - página 2 \newpage El reporte - página 3
 \FirmaReporte[\includegraphics[width=5cm]{factura-ejemplo-firma}][0pt][21pt]
\end{reporte}

\end{document}
%% 
%%
%% End of file `factura-ejemplo-factura5.tex'.