| 1 |
%% |
| 2 |
%% This is file `factura-ejemplo-factura08.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% factura.dtx (with options: `factocho') |
| 8 |
%% |
| 9 |
%% Copyright 2022 Emilio Augusto Lazo Zaia <[email protected]> |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either |
| 13 |
%% version 1.3c of this license or (at your option) any later |
| 14 |
%% version. This version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl/lppl-1-3c.{html|txt|tex|pdf} |
| 16 |
%% and the latest version of this license is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3c or later is part of all distributions of |
| 19 |
%% LaTeX version 2008/05/04 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status `maintained'. |
| 22 |
%% |
| 23 |
%% The Current Maintainer of this work is Emilio Augusto Lazo Zaia. |
| 24 |
%% |
| 25 |
%% This work consists of the files README and factura.dtx |
| 26 |
%% with its derived files factura.ins, factura.cls, factura.def, |
| 27 |
%% factura-ejemplo-aux.tex, factura-ejemplo-firma.tex, |
| 28 |
%% factura-ejemplo-fondo.tex, factura-ejemplo-membrete.tex, |
| 29 |
%% factura-ejemplo-notadecredito.tex, factura-ejemplo-notadedebito.tex, |
| 30 |
%% factura-ejemplo-cotizacion.tex, factura-ejemplo-prefactura.tex, |
| 31 |
%% factura-ejemplo-factura01.tex, factura-ejemplo-factura02.tex, |
| 32 |
%% factura-ejemplo-factura03.tex, factura-ejemplo-factura04.tex, |
| 33 |
%% factura-ejemplo-factura05.tex, factura-ejemplo-factura06.tex, |
| 34 |
%% factura-ejemplo-factura07.tex, factura-ejemplo-factura08.tex, |
| 35 |
%% factura-ejemplo-factura09.tex, factura-ejemplo-factura10.tex, |
| 36 |
%% factura-ejemplo-reporte1.tex, factura-ejemplo-reporte2.tex, |
| 37 |
%% factura-ejemplo-reporte3.tex, factura-ejemplo-reporte4.tex |
| 38 |
%% and factura-beispiel-rechnung.tex. |
| 39 |
%% |
| 40 |
%% Descripción de este ejemplo: |
| 41 |
%%<desc> |
| 42 |
%% Escribimos una factura |
| 43 |
%% (sinexpandir) Sin expandir el cuadro de la factura ni la descripción |
| 44 |
%% (divisa) Cambia la moneda por la divisa |
| 45 |
%% (monedaceldas) Pone el signo monetario en cada celda monetaria |
| 46 |
%% (monedadespues) Pone el signo monetario después de cada monto numérico y no antes |
| 47 |
%% (csv) Escribe un archivo CSV con la información numérica de la factura |
| 48 |
%% Redefiniendo el formato de la fecha (redefiniendo macros \@@Fecha y \@EstiloFecha) |
| 49 |
%% (\Descuento*) Con descuentos totales en dinero neto (y no en porcentajes) aplicables por igual a todos los tipos de elementos existentes |
| 50 |
%% (\Letra***) Cambiando tipografías |
| 51 |
%% (\Resumen) Con resumen |
| 52 |
%% (\NotaInterna) Con nota interna |
| 53 |
%% Sin nota final |
| 54 |
%% Escribimos un ítem cuya descripción ocupa más que una línea |
| 55 |
%% Escribimos una descripción de un ítem distinta para el .csv |
| 56 |
%% (\Descripcion) Con descripción larga |
| 57 |
%%</desc> |
| 58 |
%% |
| 59 |
\documentclass[ |
| 60 |
sinexpandir, |
| 61 |
divisa, |
| 62 |
monedaceldas, |
| 63 |
monedadespues, |
| 64 |
csv, |
| 65 |
]{factura} |
| 66 |
|
| 67 |
\input{factura-ejemplo-aux.tex}% Se incluye para efectos del ejemplo, así tendremos disponible la macro \Ejemplo. |
| 68 |
\usepackage[utf8]{inputenc} |
| 69 |
|
| 70 |
\Num{1} |
| 71 |
\RazonSocial{Ayala San Vicente Usureros} |
| 72 |
\RIF{Y-12.345.678-9} |
| 73 |
\Contacto{Jacinto de Ayala} |
| 74 |
\Direccion{Av. Ayala, Galpón San Vicente, Sector Arauca, Apure, Venezuela} |
| 75 |
\Telefono{+58 (987) 654.32.10} |
| 76 |
\Email{[email protected]} |
| 77 |
|
| 78 |
\Fecha{02-07-2022} |
| 79 |
|
| 80 |
\makeatletter |
| 81 |
\renewcommand{\@@Fecha}{FECHA:} |
| 82 |
\renewcommand{\@EstiloFechas}{\@LetraFecha\bfseries\@@Fecha\space{\color{blue}\@Fecha}} |
| 83 |
% \setlength{\@EspacioSignoMonetario}{0pt} % Para cambiar el espacio entre el monto y el signo monetario |
| 84 |
\makeatother |
| 85 |
|
| 86 |
\Descuento*{300} |
| 87 |
% \Divisa{₩} |
| 88 |
|
| 89 |
\LetraTitEnc{\fontfamily{lmdh}\fontsize{10}{12}} |
| 90 |
\LetraEncFactura{\fontfamily{cmss}\fontsize{12}{14}} |
| 91 |
\LetraFecha{\fontfamily{qpl}\slshape} |
| 92 |
\LetraTitColumnas{\fontfamily{lmdh}\fontsize{10}{12}} |
| 93 |
\LetraItems{\fontfamily{cmss}\fontsize{14}{17}} |
| 94 |
\LetraNumeros{\fontfamily{phv}} |
| 95 |
\LetraTitTotales{\fontfamily{qtm}\fontsize{12}{14}\scshape} |
| 96 |
\LetraNumTotales{\fontfamily{phv}} |
| 97 |
\LetraNumTotal{\fontfamily{phv}} |
| 98 |
\LetraTitTotal{\fontfamily{qhv}} |
| 99 |
\LetraDescripcion{\fontfamily{put}} |
| 100 |
\LetraFirmas{\fontfamily{put}\itshape} |
| 101 |
\tabcolsep7pt |
| 102 |
|
| 103 |
\Resumen{Este es el resumen} |
| 104 |
\NotaInterna{Esta es la nota interna} |
| 105 |
|
| 106 |
\begin{document} |
| 107 |
|
| 108 |
\begin{factura} |
| 109 |
\Item{1}{ítem con IVA general}{1000} |
| 110 |
\Item{10}{otro ítem con IVA general (descripción larga para mostrar el cambio de línea)}[otro ítem con IVA general (esta descripción es sólo para el .csv)]{1000} |
| 111 |
\end{factura} |
| 112 |
|
| 113 |
\Descripcion{Esta es la descripción larga} |
| 114 |
|
| 115 |
%% Este es un comando auxiliar suministrado por factura-ejemplo-aux.tex para escribir el detalle del ejemplo en la última hoja. |
| 116 |
\Ejemplo |
| 117 |
|
| 118 |
\end{document} |
| 119 |
%% |
| 120 |
%% |
| 121 |
%% End of file `factura-ejemplo-factura08.tex'. |