%% %% This is file `factura-ejemplo-reporte2.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% factura.dtx (with options: `repdos') %% %% Copyright 2017 Emilio Lazo Zaia %% %% 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-factura7.tex, %% factura-ejemplo-factura8.tex, factura-ejemplo-reporte1.tex, %% factura-ejemplo-reporte2.tex, factura-ejemplo-reporte3.tex, %% and factura-beispiel-rechnung.tex. %% %% Descripción de este ejemplo: %% %% Escribimos una factura, %% Escribimos un reporte, %% Escribimos factura y reporte, pero sólo producimos el reporte (soloreporte), %% Cambiando la geometría del papel del reporte (\GeometriaReporte), %% Especificamos el fondo (membrete) del reporte para todas las páginas (\FondoReporte*), %% Establecemos el título del reporte para que salga en las cabeceras (\TituloReporte*), %% Agregando la firma escaneada en el reporte (\FirmaReporte), %% Sin resumen, %% Con etiquetas y referencias, %% Con descripción larga (\Descripcion). %% %% \documentclass[ soloreporte, ]{factura} \usepackage[utf8]{inputenc} \GeometriaReporte{letterpaper,vmargin={4.4cm,2.5cm},hmargin={3cm,2cm},footskip=1.2cm,headsep=0.777cm,headheight=1.5cm} \FondoReporte*{factura-ejemplo-membrete} \TituloReporte*{El título del reporte} % \EstiloPagReporte[empty]{soloabajo} % \EstiloPagReporte{solonumpag} % \EstiloPagReporte{soloabajo} \Fecha{06-11-2017} \Num{1} \RazonSocial{Ayala San Vicente Usureros} \RIF{Y-12.345.678-9} \Contacto{Jacinto de Ayala} \Direccion{Av. Ayala, Galpón San Vicente, Sector Arauca, Apure, Venezuela} \Telefono{+58 (987) 654.32.10} \Email{jacinto@ayala.sv} \Proveedor{Lázaro de la Vega y San Román} \Condiciones{Las condiciones del documento...} \begin{document} \begin{factura} \Item{2}{ítem con IVA general}{1000}\label{primeritem} \Item{4}{otro ítem con IVA general}{100} \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. En el artículo número \itemref{primeritem} se facturaron \cantref{primeritem} \descref{primeritem} por un valor de \Moneda\puref{primeritem} cada uno, el descuento porcentual de ese artículo es \dctoref{primeritem}, dando un total de \Moneda\ptref{primeritem}. El IVA de este ítem es de \Moneda\numprint\AlicuotaG; luego se facturó otro artículo más, dando un total final de \Moneda\numprint\Total. % También podemos usar \dctoref{primeritem} para la referencia al descuento, y en cuanto a las totalizaciones: \BIE, \BIR, \BIA, \AlicuotaR, \AlicuotaA, \SubtG, \SubtE, \SubtR, \SubtA, \DescG, \DescE, \DescR, \DescA para los demás totales. \end{reporte} \end{document} %% %% %% End of file `factura-ejemplo-reporte2.tex'.