Re: KOMA-Script letter 2 for invoices

2020-02-02 Thread Jean-Marie Pacquet
Le 01/02/2020 à 21:47, Jean-Marie Pacquet a écrit :
> Le 01/02/2020 à 20:04, Rich Shepard a écrit :
>> On Sat, 1 Feb 2020, Rich Shepard wrote:
>>
>>> I just updated the scrguien PDF to the 2019-10-10 version and will read
>>> Section 4.21. I may be back with specific questions for you.
>>
>> Jean-Marie,
>>
>> I've read Section 4.21 of the latest KOMA-Script manual and I'm still
>> lost.
>> I understand the overall idea but not the details of implementation.
>>
>> In my documents/templates/ directory I have three files:
>> aesllc-invoice.lco,
>> aesllc-invoice.lyx, and invoice-template.lyx; the latter is what I've
>> been
>> using and which I want to add the EIN number. The three files are in the
>> attached compressed tarball.
>>
>> In the invoice-template.lyx file do I specify 'aesllc-invoice' as a
>> custom
>> class option or somehow un-grey the predefined class option radiobutton?
>>
>> What affect does aesllc-invoice.lyx/.lco have on invoice-template.lyx?
>>
>> I'm looking forward to learning how to use .lco files.
>>
>> Best regards,
>>
>> Rich
>>
Rich,

The file invoice-template.lyx does not use aesllc-invoice.lco.
aesllc-invoice.lyx and aesllc-invoice.lco are used together but have
nothing to do with invoice-template.lyx.

I wrote a lco file named invoice-template.lco from all instructions
preceding the KOMAoptions line in the preamble of invoice-template.lyx.
I modified invoice-template.lyx (new name is invoice-template.new.lyx)
to use this lco file. And in this lco, I added the EIN number below the
logo in a minipage.

Best regards

-- 

Jean-Marie

\date{}
\usepackage{scrpage2}
\pagestyle{scrheadings}
\cfoot[scrplain-centered ]{}
\makeatletter
% horizontal position of the address field
\@setplength{toaddrhpos}{20.0mm}
% vertical position of the address field
\@addtoplength{toaddrvpos}{20mm}
\makeatother
\renewcommand*{\raggedsignature}{}
\makeatletter
% vertical position of ref line (date)
\@setplength{refvpos}{6.5cm}
% space between ref line and letter text
\@setplength{refaftervskip}{4cm}
% space for signature image
\@setplength{sigbeforevskip}{0mm}
\makeatother
\firsthead{
  \begin{minipage}[t]{20cm}
~\\
\usekomavar{fromlogo}\\%
EIN: 81-5320225\\%
  \end{minipage}
}
\ihead{\usekomavar{toname}\\%
Page \thepage\\\usekomavar{date}}
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrlttr2
\begin_preamble
%% Load an *.lco style file (see KOMA documentation)
\LoadLetterOption{invoice-template}%  

\KOMAoptions{%
foldmarks=false
}
\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "palatino" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 0
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 2cm
\topmargin 4cm
\bottommargin 2cm
\headsep 1.5cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Logo
\begin_inset Graphics
filename /home/rshepard/documents/templates/llc-letterhead.pdf
width 100text%

\end_inset


\end_layout

\begin_layout Signature
\begin_inset Graphics
filename /data/signature-written.jpg
width 3in

\end_inset


\begin_inset Newline newline
\end_inset

Dr.
 Richard B.
 Shepard
\begin_inset Newline newline
\end_inset

President
\end_layout

\begin_layout Subject

\end_layout

\begin_layout Date
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
today
\end_layout

\end_inset


\end_layout

\begin_layout Address
name
\begin_inset Newline newline
\end_inset

company
\begin_inset Newline newline
\end_inset

address
\begin_inset Newline newline
\end_inset

city, state zip
\end_layout

\be

Re: KOMA-Script letter 2 for invoices

2020-02-01 Thread Rich Shepard

On Sat, 1 Feb 2020, Jean-Marie Pacquet wrote:


I need to upgrade my Lyx version (which is 2.2.3) to be able to use your
files (2.3). I'll be back to you to-morrow.

It's compiling...


Jean-Marie,

Thank you. There's no rush and I do want to learn how to use the lco files
with KOMAScript.

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script letter 2 for invoices

2020-02-01 Thread Jean-Marie Pacquet
Le 01/02/2020 à 20:04, Rich Shepard a écrit :
> On Sat, 1 Feb 2020, Rich Shepard wrote:
>
>> I just updated the scrguien PDF to the 2019-10-10 version and will read
>> Section 4.21. I may be back with specific questions for you.
>
> Jean-Marie,
>
> I've read Section 4.21 of the latest KOMA-Script manual and I'm still
> lost.
> I understand the overall idea but not the details of implementation.
>
> In my documents/templates/ directory I have three files:
> aesllc-invoice.lco,
> aesllc-invoice.lyx, and invoice-template.lyx; the latter is what I've
> been
> using and which I want to add the EIN number. The three files are in the
> attached compressed tarball.
>
> In the invoice-template.lyx file do I specify 'aesllc-invoice' as a
> custom
> class option or somehow un-grey the predefined class option radiobutton?
>
> What affect does aesllc-invoice.lyx/.lco have on invoice-template.lyx?
>
> I'm looking forward to learning how to use .lco files.
>
> Best regards,
>
> Rich
>
Rich,

I need to upgrade my Lyx version (which is 2.2.3) to be able to use your
files (2.3). I'll be back to you to-morrow.

It's compiling...

-- 

Jean-Marie

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script letter 2 for invoices

2020-02-01 Thread Rich Shepard

On Sat, 1 Feb 2020, Rich Shepard wrote:


I just updated the scrguien PDF to the 2019-10-10 version and will read
Section 4.21. I may be back with specific questions for you.


Jean-Marie,

I've read Section 4.21 of the latest KOMA-Script manual and I'm still lost.
I understand the overall idea but not the details of implementation.

In my documents/templates/ directory I have three files: aesllc-invoice.lco,
aesllc-invoice.lyx, and invoice-template.lyx; the latter is what I've been
using and which I want to add the EIN number. The three files are in the
attached compressed tarball.

In the invoice-template.lyx file do I specify 'aesllc-invoice' as a custom
class option or somehow un-grey the predefined class option radiobutton?

What affect does aesllc-invoice.lyx/.lco have on invoice-template.lyx?

I'm looking forward to learning how to use .lco files.

Best regards,

Rich


invoice-templates.tgz
Description: GNU Zip compressed data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script letter 2 for invoices

2020-02-01 Thread Rich Shepard

On Sat, 1 Feb 2020, Jean-Marie Pacquet wrote:


Do you have a lco (letter class option) file? If yes, you can append any
text you want after the logo in a minitable.


Jean-Marie,

This struck a memory chord so I went looking. I have a DINrich.lco (and a
DINrich.lyx) which I think you provided 6.5 years ago (the file date is 3
Jul 2013). I don't know that I ever used it because I either did not know
how or I forgot. I think this will accommodate adding the EIN.

I just updated the scrguien PDF to the 2019-10-10 version and will read
Section 4.21. I may be back with specific questions for you.

Thanks very much.

Best regards,

Rich

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: KOMA-Script letter 2 for invoices

2020-02-01 Thread Jean-Marie Pacquet
Le 31/01/2020 à 22:46, Rich Shepard a écrit :
> I use the KOMA-Script letter 2 for my client invoices. I want to add
> the EIN
> (Employer Indentification Number; the business equivalent of a Social
> Security Number for people). I've not found an environment that allows
> me to
> put the EIN between the logo and the date, on the right side of the text
> area.
>
> Suggestions are needed.
>
> TIA,
>
> Rich

Rich,

Do you have a lco (letter class option) file? If yes, you can append any
text you want after the logo in a minitable. It will be displayed under
the logo. See the lco file here:
https://wiki.lyx.org/uploads//Examples/Letters/Koma_letter2_by_Jean-Marie/NFpro.lco

If you don't have a lco file, you should write one. ;-)

-- 

Jean-Marie

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


KOMA-Script letter 2 for invoices

2020-01-31 Thread Rich Shepard

I use the KOMA-Script letter 2 for my client invoices. I want to add the EIN
(Employer Indentification Number; the business equivalent of a Social
Security Number for people). I've not found an environment that allows me to
put the EIN between the logo and the date, on the right side of the text
area.

Suggestions are needed.

TIA,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users