Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-28 Thread Dr Eberhard Lisse


Turned out to be really easy.

Looked into

/Applications/LyX.app//Contents/Resources/layouts/scrlttr2.layout

and see that it does something like


 Style Date
 CopyStyle Name
 LatexName setkomavar
 LatexParam{date}
 LabelString   "Date:"
 End

exported to LuaLaTeX and see that if I use a date in the LyX file it
exports to something like

 \setkomavar{date}{2021-09-01}

Quick look in TFM (scrguien.pdf) and it turns out I can just use

 \usekomavar{date}

in the stamp instead of \ISOToday as per the enclosed diff:

 *** bookoff.2021-09-28.lyx 2021-09-28 17:35:19.0 +0200
 --- bookoff.lyx2021-09-28 17:40:36.0 +0200
 ***
 *** 33,39 
\tiny\myStampProf\\
\scriptsize\myStampPO\\
\myStampNo\\
 !   \footnotesize\usekomavar{date}
}
\setsansfont{IBM Plex Sans}
}
 --- 33,39 
\tiny\myStampProf\\
\scriptsize\myStampPO\\
\myStampNo\\
 !   \footnotesize\ISOToday
}
\setsansfont{IBM Plex Sans}
}
 ***
 *** 185,194 
2021-08-01
\end_layout

 - \begin_layout Date
 - 2021-09-01
 - \end_layout
 -
\begin_layout Signature
Dr Eberhard W Lisse
\end_layout
 --- 185,190 

If I don't, LyX (or rather Koma) sets up a default date (into the Koma
variable), which then also comes up on the stamp.

Complete files enclosed again.


el


On 28/09/2021 17:12, Dr Eberhard Lisse wrote:

Herbert,

thanks.

I seem to recall having asked this particular question a few years ago,
but can't find the post.

However, you helped me in 2017 with some luacode, to be accessed via a
local layout which Philip Pirrip helped me with.  Adapting this should a
project for one of my next weekends

greetings, el

On 25/09/2021 12:27, Herbert Voss wrote:



Am 24.09.21 um 07:58 schrieb Dr Eberhard Lisse:


here is the complete letter with the accompanying Koma Letter Class
Option file, which either needs to be in the same directory or in one
which texhash (which MUST be run after each change) can find.


Look into the document's preamble (at the end).  The command
\myISOdate should be set in your document as a date field and not in
the preamble.  I never used scrlettr2 so I do not know how to define
such a field in LyX. Then you can input a date different from \today

Herbert





--
To email me replace 'nospam' with 'el'#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
\usepackage{noto}

%% LUA: Winkel des Gesamtstempels -- willk\"{u}rlich 
%% zwischen -5 und +5 Grad -- bei jedem Dokument anders
\usepackage{luacode}
\newcommand\rot{\directlua{tex.sprint(math.random(-5,5))}}

\usepackage{tikz}
\usepackage{xpatch}

%% XCOLOR: Farbdefinitionen
\definecolor{stampink}{RGB}{122 150 165}

%% LATEX: Individuelle Definitionen f\"{u}r den Stempel (Formatierung 
Gr\"{o}{\ss}e und Schriftstil)
\newcommand\myStampName{Dr Eberhard W Lisse}
\newcommand\myStampProf{Obstetrician \& Gynecologist}
\newcommand\myStampPO{PO Box 8421 Bachbrecht}
\newcommand\myStampNo{016-000-0141135}

\newcommand\myStampArrangement{%
   \setsansfont{Linux Biolinum O}
   \parbox{3cm}{%
  \centering\sffamily
  \footnotesize\myStampName\\
  \tiny\myStampProf\\
  \scriptsize\myStampPO\\
  \myStampNo\\
  \footnotesize\usekomavar{date}
   }
   \setsansfont{IBM Plex Sans}
}

%% TIKZ: Laden notwendiger Styles
\usetikzlibrary{fit}

%% Erstellen eines Befehls f\"{u}r den Stempel in einer Gr\"{o}{\ss}e von 6 cm 
x 3 cm skaliert
\newcommand\Stamper{%
\resizebox{8cm}{3cm}{%
\begin{tikzpicture}
%%%
%%
%% 
%% TIKZ: Setzen der linken unteren und rechten oberen Ecke des Rechtecks
\coordinate (dm1) at (0,0);
\coordinate (dm2) at (2.6,1.4);
%%%
%% TIKZ: Schleife f\"{u}r drei Winkel
\foreach \r in {-0.9,0,0.9}{%
%% TIKZ: Rahmmen des Stempels: Rechteck, Farbe=stampink, Transparenz=0.4, 
Linienst\"{a}rke des Rahmens=1pt
%%   und einen Knoten namens (bx4) definieren
\node[rectangle,draw,stampink,opacity=.4,line width=1.2pt,rotate=\r, rounded 
corners=1pt][fit=(dm1)(dm2)](bx4){};
%% TIKZ: Stempeltext: Farbe=stampink, gedreht um den Winkel \r mit 
Transparenz=0.4

Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-28 Thread Dr Eberhard Lisse

Herbert,

thanks.

I seem to recall having asked this particular question a few years ago,
but can't find the post.

However, you helped me in 2017 with some luacode, to be accessed via a
local layout which Philip Pirrip helped me with.  Adapting this should a
project for one of my next weekends

greetings, el

On 25/09/2021 12:27, Herbert Voss wrote:



Am 24.09.21 um 07:58 schrieb Dr Eberhard Lisse:


here is the complete letter with the accompanying Koma Letter Class
Option file, which either needs to be in the same directory or in one
which texhash (which MUST be run after each change) can find.


Look into the document's preamble (at the end).  The command
\myISOdate should be set in your document as a date field and not in
the preamble.  I never used scrlettr2 so I do not know how to define
such a field in LyX. Then you can input a date different from \today

Herbert



--
To email me replace 'nospam' with 'el'

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


Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-25 Thread Herbert Voss



Am 24.09.21 um 07:58 schrieb Dr Eberhard Lisse:


here is the complete letter with the accompanying Koma Letter Class
Option file, which either needs to be in the same directory or in one
which texhash (which MUST be run after each change) can find.


Look into the document's preamble (at the end). The command
\myISOdate  should be set in your document as a date field and
not in the preamble. I never used scrlettr2 so I do not know how to
 define such a field in LyX. Then you can input a date different from 
\today


Herbert
%
% Load EITHER the DIN Letter from Koma Script or the US one by commenting
% out the other
% 
\LoadLetterOption{DIN}
%
%\LoadLetterOption{UScommercial9}
%
% Options
% 
\KOMAoptions{%
addrfield=true%print an address field?
,backaddress=true% print the back address?
,enlargefirstpage=true%
,foldmarks=true%   print foldmarks?
,footsepline=false%separate the footer with a line on page >1
,fromalign=center% alignment of the address
,fromemail=false%  print sender e-mail address
,fromfax=false%print sender fax number
,fromlogo=false%   print a logo (position depends on fromalign)
,fromphone=false%  print sender phone number
,fromrule=afteraddress%separate the address with a line?
,fromurl=false%print sender URL
,headsepline=false%separate the header with a line on page >1
,pagenumber=botright%  position of the page number (see docu)
,parskip=half% Use indent instead of skip
,refline=wide% layout of the refline
,paper=a4% pagesize
}

% 
% set some lengths for the letter
% 
\makeatletter
\@setplength{sigindent}{0mm}
\@setplength{specialmailindent}{0truecm}
\@setplength{specialmailrightindent}{\fill}
\@setplength{refvpos}{89mm}
\@setplength{refaftervskip}{10pt}
\@setplength{firstfootvpos}{7cm}
\@addtoplength{firstfootvpos}{\textheight}
%
% NEW
%
\@addtoplength{firstfootvpos}{\footskip}
\makeatother

%
% Load some packages
% 
% If I want to test the letter output
% 
\usepackage{lipsum}

%
% to get to the URLs with proper breaking, needs some work
% to survive turning this on in LyX
%
\usepackage{hyperref}
\hypersetup{%
   breaklinks=true,
   colorlinks=true,
   linkcolor=black,
   pdfborder={0 0 0},
   pdfborderstyle={},
   urlcolor=blue, 
}
\usepackage{xurl}

%
\KOMAoptions{DIV=13}
%
% I like the ISO Date
% 
\providecommand*{\LCORequirePackage}[2][]{%
  \if@atdocument
\scr@ifundefinedorrelax{ver@#2.sty}{%
  \GenericError{%
(nanicmict.lco)\@spaces\@spaces\@spaces\@spaces
  }{%
LCO-File nanicmict.lco Error: Package `#2' not loaded%
  }{%
See the documentation of nanicmict.lco for explanation.%
  }{%
This lco-file needs serveral packages. But packages can be loaded only
before\MessageBreak
\string\begin{document}. You've used the lco-file after
\string\begin{document} so it cannot\MessageBreak
load the needed packages.\MessageBreak
You should either add \string\LoadLetterOption{nanic} before
\string\begin{document}\MessageBreak
or load package `#2' using \string\usepackage[#1]{#2}
before\MessageBreak
\string\begin{document}.
  }%
}{}%
  \else
\RequirePackage[#1]{#2}%
  \fi
}
\LCORequirePackage{scrdate}

%
% page # of ## pages
% 
\usepackage{lastpage}
%
% for the fancy header and footer formatting
% 
\usepackage[automark]{scrlayer-scrpage}

\pagestyle{scrheadings}

\firstfoot{%
   \centering{%
  \hrulefill\newline
  \footnotesize{%
 \textsf{%
Practice Nr: 016-000-141135\\
SWAMed Building 2$^{nd}$ Floor $\cdot$ John Meinert
Street $\cdot$ Windhoek $\cdot$ Namibia\\
Telephone: +264 61 236403 $\cdot$ Cell: +264 81 124
6733 $\cdot$ Fax: +264 88 624273 $\cdot$
Email: \href{mailto:d...@lisse.na}{d...@lisse.na}\\
GPG Fingerprint: 7399 BE0B AEFB 4AE5 EDB9 4A54 9705 1DA3 7945 3FAB
 }
  }
   }
}



\clearscrheadfoot
\lohead[\usekomavar{fromname}]{\usekomavar{fromname}}
\rohead[\usekomavar{subject}]{\usekomavar{subject}}
%\ofoot[Page \pagemark\ of \pageref{LastPage}]
%  {Page \pagemark\ of \pageref{LastPage}}
\ofoot{Page \pagemark\ of \pageref{LastPage}}




%
% Sender's Name, in LARGE font, then practice details, since the 
% address goes into the footer
% 
\setkomavar{fromname}{\textsc{Dr Eberhard W Lisse}}
\setkomafont{fromname}{\LARGE}
\setkomavar{fromaddress}{Obstetrician \& Gynaecologist}
\setkomafont{fromaddress}{\large}

%
% default signature, left justified
%
\setkomavar{signature}{Dr Eberhard W Lisse}
\renewcommand*{\raggedsignature}{\raggedright}

%
% This goes in the Window of th

Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-24 Thread Dr Eberhard W Lisse
John,

the Phillies are almost still in it. And the Blue Jays :-)-O

Was the LCO in the same directory? And did you install the lipsum package?

But the stamp is more or less working, which is the main thing.

el
On 24. Sep 2021, 18:49 +0200, John White , wrote:
> On Thursday, September 23, 2021 10:58:42 PM PDT Dr Eberhard Lisse wrote:
> > John, all
> >
> > here is the complete letter with the accompanying Koma Letter Class
> > Option file, which either needs to be in the same directory or in one
> > which texhash (which MUST be run after each change) can find.
> >
> 
> I am vacationing in Philadelphia for a while and will look into this upon my 
> return to Reno.
> But just for the fun of it I ran your bookoff.lys on my stock lyx, making no 
> changes, and here attach the resulting pdf.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-24 Thread John White
On Thursday, September 23, 2021 10:58:42 PM PDT Dr Eberhard Lisse wrote:
> John, all
> 
> here is the complete letter with the accompanying Koma Letter Class
> Option file, which either needs to be in the same directory or in one
> which texhash (which MUST be run after each change) can find.
> 


I am vacationing in Philadelphia for a while and will look into this upon my 
return to 
Reno.  

But just for the fun of it I ran your bookoff.lys on my stock lyx, making no 
changes, and 
here attach the resulting pdf.



bookoff.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-23 Thread Dr Eberhard Lisse

John, all

here is the complete letter with the accompanying Koma Letter Class
Option file, which either needs to be in the same directory or in one
which texhash (which MUST be run after each change) can find.

On MacTeX the file to look for is

/usr/local/texlive/2021basic/texmf.cnf

on linux something like

find /usr -name texmf.cnf

might help.

The variable to look for is

TEXMFLOCAL = /usr/local/texlive/texmf-local

which in my case yields something like

[...]
32  /usr/local/texlive/texmf-local/tex/latex/misc
1496/usr/local/texlive/texmf-local/tex/latex/koma-script
240 /usr/local/texlive/texmf-local/tex/latex/rangen
[...]

and I have my own adapted *.lco in there, as homebrew (on the mac) makes
me own the tree below /usr/local and so I don't need sudo.

I think you can set up a similar tree below $HOME somehow, but I don't
use LyX/LaTeX on linux, so I don't know.

The letter is currently set up for DIN A4. In the LyX file as

Document -? Settings... -> Page Layout (Default)

where for US formats it would need to be adapted, and in the LCO at the
top where you should comment out the DIN and un-comment the
UScommercial9.

If you want to know where they are

The letter and stamp require a number packages, so at the very least do:

tlmgr install pgf xpatch lipsum hyperref xurl lastpage koma-script \
luacode

packages that are installed already will cause a warning message.

I hope it's a complete list.

I like Google's NOTO fonts but if you don't, just change in the document
preamble (this is required for the stamp to work, but I have never
bothered to try to understand why it doesn't work properly when put
directly into the LyX Font page).

Iso you may need to

tlmgr install noto

sudo may be required (of course).

I have put two paragraphs worth of lorem ipsum text in there, and if you
really want to play with it, wait for at least a minute, make small
change to the LyX file and regenerate, while the PDF viewer has it open.

You should see that the stamp will slightly rotate and move :-)-O

I also enclose a PDF for comparison, which was generated from the
command line using

lyx -f -e pdf5 bookoff.lyx

It needs LUATEX (LuaLaTeX), pdflatex does NOT work (it uses LUA
internally to calculate some randomness).

I find really cool, that you can have seriously involved and complicated
LaTeX Voodoo without a single line of it bothering the (casual) user
:-)-O as it is all hidden in the preamble or in the LCO.


I am quite interested in positive comments and improvements to make
it faster, better or both.

I would be EXTREMELY interested in someone doing this over as a LyX
module, i.e. so that you can get additional fields in the LyX window and
that the stamp dimensions are then calculated dynamically, and this
sordid mess could perhaps even join the LyX project properly :-)-O

I have not the faintest clue how to do that, myself :-)-O and as it
works for me, no interested in hopping on that particular learning
curve :-)-O

greetings, el

On 2021-09-23 18:43 , Dr Eberhard W Lisse wrote:

john,

I'll share a complete example


[...]

On 23. Sep 2021, 17:43 +0200, John White , wrote:

On Thursday, September 23, 2021 4:25:57 AM PDT Dr Eberhard Lisse wrote:

[...]

Thanks Doc,

I have marked this email "important" and "action item."  When I get
some time I will try to figure it out.  It prints your letterhead
with some extraneous code.  Do not try to tell me how to fix it.  I
need to figure that out for myself.

Best,

John#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
\usepackage{noto}

%% LUA: Winkel des Gesamtstempels -- willk\"{u}rlich 
%% zwischen -5 und +5 Grad -- bei jedem Dokument anders
\usepackage{luacode}
\newcommand\rot{\directlua{tex.sprint(math.random(-5,5))}}

\usepackage{tikz}
\usepackage{xpatch}

%% XCOLOR: Farbdefinitionen
\definecolor{stampink}{RGB}{122 150 165}

%% LATEX: Individuelle Definitionen f\"{u}r den Stempel (Formatierung 
Gr\"{o}{\ss}e und Schriftstil)
\newcommand\myStampName{Dr Eberhard W Lisse}
\newcommand\myStampProf{Obstetrician \& Gynecologist}
\newcommand\myStampPO{PO Box 8421 Bachbrecht}
\newcommand\myStampNo{016-000-0141135}

\newcommand\myStampArrangement{%
   \setsansfont{Linux Biolinum O}
   \parbox{3cm}{%
  \centering\sffamily
  \footnotesize\myStampName\\
  \tiny\myStampProf\\
  \scriptsize\myStampPO\\
  \myStampNo\\
  \footnotesize\ISOToday
   }
   \setsansfont{IBM Plex Sans}
}

%% TIKZ: Laden notwendiger Styles
\usetikzlibrary{fit}

%% Erstellen eines Befehls f\"{u}r den Stempel in einer Gr\"{o}{\ss}e von 6 cm 
x 3 cm skaliert
\newcommand\Stamper{%
\resizebox{8cm}{3cm}{%
\begin{tikzpicture}
%%

Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-23 Thread Dr Eberhard W Lisse
john,

I'll share a complete example

—
Sent from Dr Lisse’s iPhone
On 23. Sep 2021, 17:43 +0200, John White , wrote:
> On Thursday, September 23, 2021 4:25:57 AM PDT Dr Eberhard Lisse wrote:
> > Hi,
> >
> > I have hacked me a Stamp in LaTeX which works very well in the Koma
> > Letter (by way of putting it in LyX's preamble.
> >
> > The stamp gets placed next to the signature block, slightly randomly
> > placed, then slightly randomly rotated and by way of some roation of the
> > frame achieving a realistic look (smudged corners). I wrote an article
> > about this in the German TeX Usergroup's Die Technische Kommödie 2/2017.
> >
> > I use the \ISOtoday ERT from Koma Script's scrdate package.
> >
> >
> > I do not remember whether I have asked this before, and I have looked,
> > but is there a way of using the date that Lyx uses in the blue Date:
> > field? So that if I put a fixed date in the letter, the same should
> > appear in the stamp (i.e. I do not want to have today's stamp on
> > yesterday's letter :-)-O
> >
> > greetings, el
> >
> >
> > PS: In case someone is interested, here is what I use in my Practice,
> > copy and paste into the preamble:
> >
> > 
> > % You can do whatever you want with this, other than bothering us but
> > % if you make money from it, you must send us some.
> > %
> > % Copyright, -wrong -left, and -center 2017, 2021 SPF Lisse Private
> > % Family Foundation best...@spflisseff.nl
> > 
> > %% LUA: Winkel des Gesamtstempels -- willk\"{u}rlich
> > %% zwischen -5 und +5 Grad -- bei jedem Dokument anders
> > \usepackage{luacode}
> > \newcommand\rot{\directlua{tex.sprint(math.random(-5,5))}}
> >
> >
> > \usepackage{tikz}
> > \usepackage{xpatch}
> >
> > %% XCOLOR: Farbdefinitionen
> > \definecolor{stampink}{RGB}{122 150 165}
> >
> > %% LATEX: Individuelle Definitionen f\"{u}r den Stempel
> > %% (Formatierung Gr\"{o}{\ss}e und Schriftstil)
> > %%
> > \newcommand\myStampName{Dr Eberhard W Lisse}
> > \newcommand\myStampProf{Obstetrician \& Gynecologist}
> > \newcommand\myStampPO{PO Box 8421 Bachbrecht}
> > \newcommand\myStampNo{016-000-0141135}
> >
> > \newcommand\myStampArrangement{%
> > \setsansfont{Linux Biolinum O}
> > \parbox{3cm}{%
> > \centering\sffamily
> > \footnotesize\myStampName\\
> > \tiny\myStampProf\\
> > \scriptsize\myStampPO\\
> > \myStampNo\\
> > \footnotesize\ISOToday
> > }
> > \setsansfont{IBM Plex Sans}
> > }
> >
> > %% TIKZ: Laden notwendiger Styles
> > \usetikzlibrary{fit}
> >
> > %% Erstellen eines Befehls f\"{u}r den Stempel in einer
> > %% Gr\"{o}{\ss}e von 6 cm x 3 cm skaliert
> > \newcommand\Stamper{%
> > \resizebox{8cm}{3cm}{%
> > \begin{tikzpicture}
> > %%%
> > %%
> > %% TIKZ: Setzen der linken unteren und rechten oberen Ecke
> > %% des Rechtecks
> > \coordinate (dm1) at (0,0);
> > \coordinate (dm2) at (2.6,1.4);
> > %%
> > %%%
> > %% TIKZ: Schleife f\"{u}r drei Winkel
> > %%
> > \foreach \r in {-0.9,0,0.9}{%
> > %%
> > %% TIKZ: Rahmmen des Stempels: Rechteck, Farbe=stampink,
> > %% Transparenz=0.4,Linienst\"{a}rke des Rahmens=1pt und
> > einen %% Knoten namens (bx4) definieren
> > %%
> > \node[rectangle,draw,stampink,opacity=.4,line width=1.2pt,
> > rotate=\r, rounded corners=1pt][fit=(dm1)(dm2)](bx4){};
> > %%
> > %% TIKZ: Stempeltext: Farbe=stampink, gedreht um den Winkel
> > \r %% mit Transparenz=0.4 in Knoten (bx4) gesetzt
> > %%
> > \node[stampink,rotate=\r,opacity=.4] at
> > (bx4){\myStampArrangement}; }
> > \end{tikzpicture}
> > }
> > }
> >
> > %% SCRLTTR2 & XPATCH: Erstellen einer neuen Variablen f\"{u}r den Brief
> > %% zur Positionierung des Stempels rechts von \closing
> > \newkomavar{rightbesidesignature}
> > \newlength{\normalparskip}
> > \xapptocmd{\closing}{%
> > \setlength{\normalparskip}{\parskip}%
> > \noindent\parbox[b][0pt]{\linewidth}{\raggedleft
> > \setlength{\parskip}{\normalparskip}%
> > \usekomavar{rightbesidesignature}\ifhmode\unskip\strut\fi
> > \vspace{-1.8\baselineskip}%
> > \vspace{\parskip}%
> > \vspace{\lineskip}%
> > }%
> > }{}{}
> >
> 

Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-23 Thread John White

On Thursday, September 23, 2021 4:25:57 AM PDT Dr Eberhard Lisse wrote:
> Hi,
> 
> I have hacked me a Stamp in LaTeX which works very well in the Koma
> Letter (by way of putting it in LyX's preamble.
> 
> The stamp gets placed next to the signature block, slightly randomly
> placed, then slightly randomly rotated and by way of some roation of the
> frame achieving a realistic look (smudged corners).  I wrote an article
> about this in the German TeX Usergroup's Die Technische Kommödie 2/2017.
> 
> I use the \ISOtoday ERT from Koma Script's scrdate package.
> 
> 
> I do not remember whether I have asked this before, and I have looked,
> but is there a way of using the date that Lyx uses in the blue Date:
> field?  So that if I put a fixed date in the letter, the same should
> appear in the stamp (i.e. I do not want to have today's stamp on
> yesterday's letter :-)-O
> 
> greetings, el
> 
> 
> PS: In case someone is interested, here is what I use in my Practice,
> copy and paste into the preamble:
> 
> %%%
%
> % You can do whatever you want with this, other than bothering us but
> % if you make money from it, you must send us some.
> %
> % Copyright, -wrong -left, and -center 2017, 2021 SPF Lisse Private
> % Family Foundation best...@spflisseff.nl
> %%%
%
> %% LUA: Winkel des Gesamtstempels -- willk\"{u}rlich
> %% zwischen -5 und +5 Grad -- bei jedem Dokument anders
> \usepackage{luacode}
> \newcommand\rot{\directlua{tex.sprint(math.random(-5,5))}}
> 
> 
> \usepackage{tikz}
> \usepackage{xpatch}
> 
> %% XCOLOR: Farbdefinitionen
> \definecolor{stampink}{RGB}{122 150 165}
> 
> %% LATEX: Individuelle Definitionen f\"{u}r den Stempel
> %% (Formatierung Gr\"{o}{\ss}e und Schriftstil)
> %%
> \newcommand\myStampName{Dr Eberhard W Lisse}
> \newcommand\myStampProf{Obstetrician \& Gynecologist}
> \newcommand\myStampPO{PO Box 8421 Bachbrecht}
> \newcommand\myStampNo{016-000-0141135}
> 
> \newcommand\myStampArrangement{%
> \setsansfont{Linux Biolinum O}
> \parbox{3cm}{%
>\centering\sffamily
>\footnotesize\myStampName\\
>\tiny\myStampProf\\
>\scriptsize\myStampPO\\
>\myStampNo\\
>\footnotesize\ISOToday
> }
> \setsansfont{IBM Plex Sans}
> }
> 
> %% TIKZ: Laden notwendiger Styles
> \usetikzlibrary{fit}
> 
> %% Erstellen eines Befehls f\"{u}r den Stempel in einer
> %% Gr\"{o}{\ss}e von 6 cm x 3 cm skaliert
> \newcommand\Stamper{%
>  \resizebox{8cm}{3cm}{%
>  \begin{tikzpicture}
>  %%%

>  %%
>  %% TIKZ: Setzen der linken unteren und rechten oberen Ecke
>  %% des Rechtecks
>  \coordinate (dm1) at (0,0);
>  \coordinate (dm2) at (2.6,1.4);
>  %%
>  %%%
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-23 Thread John White

On Thursday, September 23, 2021 4:25:57 AM PDT Dr Eberhard Lisse wrote:
> Hi,
> 
> I have hacked me a Stamp in LaTeX which works very well in the Koma
> Letter (by way of putting it in LyX's preamble.
> 
> The stamp gets placed next to the signature block, slightly randomly
> placed, then slightly randomly rotated and by way of some roation of the
> frame achieving a realistic look (smudged corners).  I wrote an article
> about this in the German TeX Usergroup's Die Technische Kommödie 2/2017.
> 
> I use the \ISOtoday ERT from Koma Script's scrdate package.
> 
> 
> I do not remember whether I have asked this before, and I have looked,
> but is there a way of using the date that Lyx uses in the blue Date:
> field?  So that if I put a fixed date in the letter, the same should
> appear in the stamp (i.e. I do not want to have today's stamp on
> yesterday's letter :-)-O
> 
> greetings, el
> 
> 
> PS: In case someone is interested, here is what I use in my Practice,
> copy and paste into the preamble:
> 
> %%%
%
> % You can do whatever you want with this, other than bothering us but
> % if you make money from it, you must send us some.
> %
> % Copyright, -wrong -left, and -center 2017, 2021 SPF Lisse Private
> % Family Foundation best...@spflisseff.nl
> %%%
%
> %% LUA: Winkel des Gesamtstempels -- willk\"{u}rlich
> %% zwischen -5 und +5 Grad -- bei jedem Dokument anders
> \usepackage{luacode}
> \newcommand\rot{\directlua{tex.sprint(math.random(-5,5))}}
> 
> 
> \usepackage{tikz}
> \usepackage{xpatch}
> 
> %% XCOLOR: Farbdefinitionen
> \definecolor{stampink}{RGB}{122 150 165}
> 
> %% LATEX: Individuelle Definitionen f\"{u}r den Stempel
> %% (Formatierung Gr\"{o}{\ss}e und Schriftstil)
> %%
> \newcommand\myStampName{Dr Eberhard W Lisse}
> \newcommand\myStampProf{Obstetrician \& Gynecologist}
> \newcommand\myStampPO{PO Box 8421 Bachbrecht}
> \newcommand\myStampNo{016-000-0141135}
> 
> \newcommand\myStampArrangement{%
> \setsansfont{Linux Biolinum O}
> \parbox{3cm}{%
>\centering\sffamily
>\footnotesize\myStampName\\
>\tiny\myStampProf\\
>\scriptsize\myStampPO\\
>\myStampNo\\
>\footnotesize\ISOToday
> }
> \setsansfont{IBM Plex Sans}
> }
> 
> %% TIKZ: Laden notwendiger Styles
> \usetikzlibrary{fit}
> 
> %% Erstellen eines Befehls f\"{u}r den Stempel in einer
> %% Gr\"{o}{\ss}e von 6 cm x 3 cm skaliert
> \newcommand\Stamper{%
>  \resizebox{8cm}{3cm}{%
>  \begin{tikzpicture}
>  %%%

>  %%
>  %% TIKZ: Setzen der linken unteren und rechten oberen Ecke
>  %% des Rechtecks
>  \coordinate (dm1) at (0,0);
>  \coordinate (dm2) at (2.6,1.4);
>  %%
>  %%%
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


How to access the Date Field from Koma Letter in the (LaTeX) preamble.

2021-09-23 Thread Dr Eberhard Lisse

Hi,

I have hacked me a Stamp in LaTeX which works very well in the Koma
Letter (by way of putting it in LyX's preamble.

The stamp gets placed next to the signature block, slightly randomly
placed, then slightly randomly rotated and by way of some roation of the
frame achieving a realistic look (smudged corners).  I wrote an article
about this in the German TeX Usergroup's Die Technische Kommödie 2/2017.

I use the \ISOtoday ERT from Koma Script's scrdate package.


I do not remember whether I have asked this before, and I have looked,
but is there a way of using the date that Lyx uses in the blue Date:
field?  So that if I put a fixed date in the letter, the same should
appear in the stamp (i.e. I do not want to have today's stamp on
yesterday's letter :-)-O

greetings, el


PS: In case someone is interested, here is what I use in my Practice,
copy and paste into the preamble:


% You can do whatever you want with this, other than bothering us but
% if you make money from it, you must send us some.
%
% Copyright, -wrong -left, and -center 2017, 2021 SPF Lisse Private
% Family Foundation best...@spflisseff.nl

%% LUA: Winkel des Gesamtstempels -- willk\"{u}rlich
%% zwischen -5 und +5 Grad -- bei jedem Dokument anders
\usepackage{luacode}
\newcommand\rot{\directlua{tex.sprint(math.random(-5,5))}}


\usepackage{tikz}
\usepackage{xpatch}

%% XCOLOR: Farbdefinitionen
\definecolor{stampink}{RGB}{122 150 165}

%% LATEX: Individuelle Definitionen f\"{u}r den Stempel
%% (Formatierung Gr\"{o}{\ss}e und Schriftstil)
%%
\newcommand\myStampName{Dr Eberhard W Lisse}
\newcommand\myStampProf{Obstetrician \& Gynecologist}
\newcommand\myStampPO{PO Box 8421 Bachbrecht}
\newcommand\myStampNo{016-000-0141135}

\newcommand\myStampArrangement{%
   \setsansfont{Linux Biolinum O}
   \parbox{3cm}{%
  \centering\sffamily
  \footnotesize\myStampName\\
  \tiny\myStampProf\\
  \scriptsize\myStampPO\\
  \myStampNo\\
  \footnotesize\ISOToday
   }
   \setsansfont{IBM Plex Sans}
}

%% TIKZ: Laden notwendiger Styles
\usetikzlibrary{fit}

%% Erstellen eines Befehls f\"{u}r den Stempel in einer
%% Gr\"{o}{\ss}e von 6 cm x 3 cm skaliert
\newcommand\Stamper{%
\resizebox{8cm}{3cm}{%
\begin{tikzpicture}
%%%
%%
%% TIKZ: Setzen der linken unteren und rechten oberen Ecke
%% des Rechtecks
\coordinate (dm1) at (0,0);
\coordinate (dm2) at (2.6,1.4);
%%
%%%
%% TIKZ: Schleife f\"{u}r drei Winkel
%%
\foreach \r in {-0.9,0,0.9}{%
%%
%% TIKZ: Rahmmen des Stempels: Rechteck, Farbe=stampink,
%% Transparenz=0.4,Linienst\"{a}rke des Rahmens=1pt und einen
%% Knoten namens (bx4)  definieren
%%
\node[rectangle,draw,stampink,opacity=.4,line width=1.2pt,
rotate=\r, rounded corners=1pt][fit=(dm1)(dm2)](bx4){};
%%
%% TIKZ: Stempeltext: Farbe=stampink, gedreht um den Winkel \r
%% mit Transparenz=0.4 in Knoten (bx4) gesetzt
%%
\node[stampink,rotate=\r,opacity=.4] at 
(bx4){\myStampArrangement};
}
\end{tikzpicture}
}
}

%% SCRLTTR2 & XPATCH: Erstellen einer neuen Variablen f\"{u}r den Brief
%% zur Positionierung des Stempels rechts von \closing
\newkomavar{rightbesidesignature}
\newlength{\normalparskip}
\xapptocmd{\closing}{%
\setlength{\normalparskip}{\parskip}%
\noindent\parbox[b][0pt]{\linewidth}{\raggedleft
\setlength{\parskip}{\normalparskip}%
\usekomavar{rightbesidesignature}\ifhmode\unskip\strut\fi
\vspace{-1.8\baselineskip}%
\vspace{\parskip}%
\vspace{\lineskip}%
}%
}{}{}

%% SCRLTTR2: Einf\"{u}gen des Stempels mit der jeweiligen willk\"{u}rlichen
%% Gesamtdrehung \rot
%%
\setkomavar{rightbesidesignature}{\rotatebox[origin=c]{\rot}{\Stamper}}
%

% Thanks to Peter Flynn, Markus Kohm and Juergen Gilg



--
To email me replace 'nospam' with 'el'

--
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-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_la

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


Re: KOMA-letter-2: logo disappeared [RESOLVED]

2017-09-27 Thread Rich Shepard

On Wed, 27 Sep 2017, Jean-Marie Pacquet wrote:


Just remove this line from your settings:
\firsthead{\centering\usekomavar{fromlogo}\hspace*{8cm}}


Jean-Marie,

  Yes, I should have seen that. You mentioned it in your last message.
Perhaps I need another mug of coffee?

  It's interesting that when I open mwe.lyx I get an error message about an
unknown 'default default' in the header, yet when I search for that double
string I find nothing. I'll ignore it for now.

Thanks again for your help and lessons,

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-27 Thread Jean-Marie Pacquet
Le 27/09/2017 à 17:22, Rich Shepard a écrit :
>   I have a minimal non-working example file called mwe.lyx (copy attached,
> with llc-letterhead.pdf). I thought that I modified it to match your
> rich.lyx example (using two columns in emacs to compare files), yet the
> logo
> still displays too large on the lyx screen and does not appear when I
> preview the document. I have a larger preamble which formats the pages as
> I've used them for years. But, I am not seeing what I've missed that
> prevents the logo from displaying in the preview, or what is present that
> interferes with it.
> 
>   Please show me what I've missed.

Rich,

Just remove this line from your settings:

\firsthead{\centering\usekomavar{fromlogo}\hspace*{8cm}}

-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-27 Thread Persio Barros
Rich,


I can see in your .tex file in the the line 56, the command:


\includegraphics[bb=80bp 100bp 520bp 
240bp,clip,width=0.8\textwidth]{0_home_rshepard_documents_templates_llc-letterhead.eps}


The problem here is the "bb" option. The latest version of pdftex.def doesn't 
handle this option and leaves an empty box where the picture was supposed to be 
inserted.

This bug have been reported in this list some days ago.


I have managed to overcome this bug by inserting the following lines in the 
document preamble:


\def\GPT@warn{\@PackageWarning{pdftex.def}}%

\def\GPT@disable#1{%

\GPT@warn{%

Option `#1' is not supported, use\MessageBreak

option `viewport' instead%

}%

}

\def\GPT@fix{%

\begingroup\expandafter\expandafter\expandafter\endgroup

\expandafter\ifx\csname define@key\endcsname\relax

\else

\def\KV@Gin@bb{%

\GPT@warn{%

Option `bb' does not make sense,\MessageBreak

using `viewport' instead%

}%

\KV@Gin@viewport

}%

\define@key{Gin}{bbllx}{\GPT@disable{bbllx}}%

\define@key{Gin}{bblly}{\GPT@disable{bblly}}%

\define@key{Gin}{bburx}{\GPT@disable{bburx}}%

\define@key{Gin}{bbury}{\GPT@disable{bbury}}%

\define@key{Gin}{natwidth}{\GPT@disable{natwidth}}%

\define@key{Gin}{natheight}{\GPT@disable{natheight}}%

\fi

}

\AtBeginDocument{\GPT@fix}


Persio



Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Paul A. Rubin wrote:


Too many acronyms make the mind acronumb, leading to acronums.


Paul,

  Thank you for understanding. This week has started badly, despite all I
planned for it. There are several serious issues discovered yesterday
needing resolution, including the sudden inability of LyX and LibreOffice
Writer to display my letterhead (and the latter not correctly seeing fonts
in the system's font/ directory) and hassles importing spatial data files
into my spatial analysis tool. Sigh. And it's only Tuesday!

Regards,

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Paul A. Rubin

On 09/26/2017 06:14 PM, Rich Shepard wrote:

On Tue, 26 Sep 2017, Rich Shepard wrote:


 Acronums


  Sigh. That's acronyms. Missed seeing the spelling error.

Rich

Too many acronyms make the mind acronumb, leading to acronums.


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Rich Shepard wrote:


 Acronums


  Sigh. That's acronyms. Missed seeing the spelling error.

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Paul A. Rubin wrote:

MWE = Minimum Working Example (or, since it's actually not working, maybe 
Minimum Wobbly Example?)


  Oh. Acronums R' Us, eh? :-)

  See attached all who are interested. There's the .lyx, .tex, and .log
files in a tarball.

Rich

mwe.tgz
Description: GNU Zip compressed data


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 26/09/2017 à 22:15, Rich Shepard a écrit :
>   Now the log shows an overfull hbox for the header:
> 
> File: 0_home_rshepard_documents_templates_llc-letterhead.eps Graphic
> file (type
>  eps)
> <0_home_rshepard_documents_templates_llc-letterhead.eps>
> Overfull \hbox (227.64565pt too wide) in paragraph at lines 73--73
> 
> When I make the image width narrower it still does not display.

This error means that the bounding box of your pdf image is not what it
should be. You said that you made a minor text modification. 17pt is
acceptable for height increase but 227pt (approx. 80mm) is way too big
for width increase.
-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:


You said that you made a copy of DIN to create your My.lco. Did you
delete these lines?
"
\LetterOptionNeedsPapersize{%
 DIN%
 }
 {a4}
"

They should be replaced by:
"
\LetterOptionNeedsPapersize{%
 My%
}{letter}
"


Jean-Marie,

  Er, ... no. I had overlooked that. Just did no to no effect.

  Now the log shows an overfull hbox for the header:

File: 0_home_rshepard_documents_templates_llc-letterhead.eps Graphic file (type
 eps)
<0_home_rshepard_documents_templates_llc-letterhead.eps>
Overfull \hbox (227.64565pt too wide) in paragraph at lines 73--73

When I make the image width narrower it still does not display.

Thanks,

Rich




Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 26/09/2017 à 20:32, Rich Shepard a écrit :
> head being too high, but I do see this:
> 
> Class scrlttr2 Warning: Letter option file `DIN.lco'
> (scrlttr2)  needs paper size `a4'.
> (scrlttr2)  Current paper size is not `a4'!
> (scrlttr2)  You should add `paper=a4,paper=portrait' at the
> (scrlttr2)  option list of `\documentclass' or
> (scrlttr2)  add `\KOMAoptions{paper=a4,paper=portrait}'
> (scrlttr2)  before starting this letter!
> (scrlttr2)  Maybe you know what you are doing,
> (scrlttr2)  so I do not change this myself.
> 
>   At the top of the preamble I inserted \LoadLetterOption{My}%
> so I don't know why LyX is using DIN.lco. And the page format is US letter,
> not A4. Gzipped log file attached.

Rich,

You said that you made a copy of DIN to create your My.lco. Did you
delete these lines?
"
\LetterOptionNeedsPapersize{%
  DIN%
  }
  {a4}
"

They should be replaced by:
"
\LetterOptionNeedsPapersize{%
  My%
}{letter}
"

-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:


The error message was:
Class scrlttr2 Warning: head of first page is 17.22406pt too high.

The default firstheadvpos in DIN file is 8mm. Since 17 pt is approx.
6mm, I would try:
\@setplength{firstheadvpos}{1mm}


Jean-Marie,

  That clarifies my understanding of firstheadvpos.

  I modified My.lco to \@setplength{firstheadvpos}{1mm} and re-compiled and
re-installed both TeXLive-2017 and LyX-2.2.3. Reconfigured LyX, too. Still
no logo displayed on preview or compiled .pdf.

  This is interesting. Reading the .log I see no reference to the first page
head being too high, but I do see this:

Class scrlttr2 Warning: Letter option file `DIN.lco'
(scrlttr2)  needs paper size `a4'.
(scrlttr2)  Current paper size is not `a4'!
(scrlttr2)  You should add `paper=a4,paper=portrait' at the
(scrlttr2)  option list of `\documentclass' or
(scrlttr2)  add `\KOMAoptions{paper=a4,paper=portrait}'
(scrlttr2)  before starting this letter!
(scrlttr2)  Maybe you know what you are doing,
(scrlttr2)  so I do not change this myself.

  At the top of the preamble I inserted \LoadLetterOption{My}%
so I don't know why LyX is using DIN.lco. And the page format is US letter,
not A4. Gzipped log file attached.

  I'll read Chapter 4 and see if I get ideas.

Still puzzled,

Rich

scoping-draft.log.gz
Description: GNU Zip compressed data


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 26/09/2017 à 18:59, Rich Shepard a écrit :
>   Added your example spacing command in My.lco and neither 15mm nor 25mm
> allows the logo .pdf to display. I'm now reading Chapter 4 (scrlttr2) in
> the
> latest English guide to learn how to set the firstheadpage spacing so the
> logo once again displays.

Rich,

The error message was:
Class scrlttr2 Warning: head of first page is 17.22406pt too high.

The default firstheadvpos in DIN file is 8mm. Since 17 pt is approx.
6mm, I would try:
\@setplength{firstheadvpos}{1mm}

-- 
Jean-Marie



Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:


If you want to modify the default, create your own lco file and call it in
the preamble. The one I created for french norms is NF.lco.


Jean-Marie,

  Added your example spacing command in My.lco and neither 15mm nor 25mm
allows the logo .pdf to display. I'm now reading Chapter 4 (scrlttr2) in the
latest English guide to learn how to set the firstheadpage spacing so the
logo once again displays.

Again, many thanks,

Rich



Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:


The important thing is \@setplength commands go before the \KOMAoptions in
the preamble. And since these are not modified frequently, it makes sense
to put them in a file called "lco".


Jean-Marie,

  I just copied DIN.lo to My.lco and will modify it to include a header
length that accommodates my .pdf logo.


My preamble reads as:


  Well! There's so much more for me to learn about the KOMA-Script classes.
I really appreciate learning more. I'll try to re-read the guide when I can
make the time, perhaps evenings or over the weekend. Much still does not
make complete sense to me as I'm far from a LaTeX or TeX expert.

Very much appreciated,

Rich



Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 26/09/2017 à 18:10, Rich Shepard a écrit :
> Jean-Marie,
> 
>   The setting file does not have a \LoadLetterIption command, and does
> contain \@setplength commands:

The important thing is \@setplength commands go before the \KOMAoptions
in the preamble. And since these are not modified frequently, it makes
sense to put them in a file called "lco".

My preamble reads as:

%
%% Here you can modify the layout of your letter
%% Have a look at the KOMA script documentation
%% for details. Most commands are commented out
%% here (i.e. we use default settings)
%

%% Load an *.lco style file (see KOMA documentation)
\LoadLetterOption{NF}%

%% THE CLASS OPTIONS
%% Remove preceeding '%' to uncomment an item
\KOMAoptions{%
%,headsepline=true%separate the header with a line on page >1
%,footsepline=true% separate the footer with a line on page >1
%pagenumber=botcenter%   position of the page number (see docu)
%,parskip=false%  Use indent instead of skip (more options cf. docu)
,fromalign=left%alignment of the address
%,fromrule=aftername%separate the address with a line?
,fromphone=true% print sender phone number
%,fromfax=true%  print sender fax number
,fromemail=true%   print sender e-mail address
%,fromurl=true%   print sender URL
%,fromlogo=true% print a logo (position depends on fromalign)
%,addrfield=false%print an address field?
,backaddress=false%  print the back address?
%,subject=afteropening,titled% alternative subject layout and position
%,locfield=narrow%  width of the (extra) location field
%,foldmarks=false%  print foldmarks?
%,numericaldate=true%  date layout
%,refline=wide% layout of the refline
}

%% Customize Separators
%\setkomavar{placeseparator}{ -- }
\setkomavar{backaddressseparator}{ $\cdot$ }
%\setkomavar{emailseparator}{ --> }
%\setkomavar{enclseparator}{ > }
%\setkomavar{faxseparator}{ --> }
%\setkomavar{phoneseparator}{ --> }
%\setkomavar{subjectseparator}{ >>> }

%% Customize fonts
%% Use LaTeX's standard font commands
%% Modify with \setkomafont or \addtokomafont
%% (see KOMA documentation)
\setkomafont{backaddress}{\rmfamily}
%\setkomafont{descriptionlabel}{}
\setkomafont{fromaddress}{\small}
\setkomafont{fromname}{\scshape}
%\setkomafont{pagefoot}{}
%\setkomafont{pagehead}{}
%\setkomafont{pagenumber}{}
%\setkomafont{subject}{}
%\setkomafont{title}{}

%\renewcommand{\theenumi}{\alph{enumi}}


-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 26/09/2017 à 18:01, Rich Shepard a écrit :
>   How do I determine in which .lco file to change the height? Here I find
> the setplength in multiple files:

The DIN.lco file is the default. My reference manual says (chapter 4
page 189):
"
By the way, the DIN lco-file will always be loaded as the first lco
file. This ensures that all pseudo-lengths will have more or less
reasonable default values. Because of this, it is not necessary to load
this default file on your own.
"

If you don't call one in your preamble, I assume that all pseudo-lengths
used will be those of DIN.lco.

If you want to modify the default, create your own lco file and call it
in the preamble. The one I created for french norms is NF.lco.
-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:


These \@setplength should be in the lco file (letter class options) which
is called in the Latex preamble with \LoadLetterOption{lcofile}% I don't
think you can use them anywhere in your Lyx document.


Jean-Marie,

  The setting file does not have a \LoadLetterIption command, and does
contain \@setplength commands:

\date{}
\usepackage{scrpage2,url}
\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{\centering\usekomavar{fromlogo}\hspace*{8cm}}
\ihead{\usekomavar{toname}\\%
Page \thepage\\\usekomavar{date}}
\KOMAoptions{%
foldmarks=false
}

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 26/09/2017 à 16:54, Rich Shepard a écrit :
>   [...]. First need to upgrade KOMA-Script.

I still use the 2004 version. I only upgraded the reference manual!.
-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Paul A. Rubin

On 09/26/2017 08:47 AM, Rich Shepard wrote:

On Tue, 26 Sep 2017, Dr Eberhard Lisse wrote:


Why don't you send a MWE with the graphics file in question?



  Possibly because I've no idea what a MWE is? :-)

MWE = Minimum Working Example (or, since it's actually not working, 
maybe Minimum Wobbly Example?)


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:


My scrguien.pdf is old as well (file dated 2013-02-25). It has references
to version 3.10 of KOMA-Script.


Jean-Marie,

  My KOMA-Script version is ancient: 2004; think the version is 2.98. I just
downloaded the latest from CTAN (2017-09-07 but have totally forgotten how
to upgrade an installed package. I'm running TeXLive-2017 and I _think_ that
I cp the koma-script.tds.zip file to /usr/share/texmf/ and unzip it there,
but I'm not confident that's the proper way.


These \@setplength should be in the lco file (letter class options) which
is called in the Latex preamble with \LoadLetterOption{lcofile}% I don't
think you can use them anywhere in your Lyx document.

Have a look at any of the lco file you have (DIN.lco f.ex.).


  I'll look for (and in) .lco files. First need to upgrade KOMA-Script.

Many thanks,

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 26/09/2017 à 16:23, Rich Shepard a écrit :
> On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:
> 
>> You need to use the pseudo-lengths shown in figure 17.1 (In my
>> scrguien.pdf, chapter 17 page 296)
> 
> Jean-Marie,
> 
>   I'll get the latest KOMA-script and docs today; my 2013 version has
> firstheadvpos in Chapter 21 on page 358 and section 21.1.2 on page 365.
> 
>> firstheadvpos
>> vertical distance of letterhead from top paper edge (section 17.1.2,
>> page 299)

Rich,

My scrguien.pdf is old as well (file dated 2013-02-25). It has
references to version 3.10 of KOMA-Script.

>>
>> To set a pseudo-length (f.ex. setting firstheadvpos to 15mm)
>> \@setplength{firstheadvpos}{15mm}
> 
>   I'm getting an error:
> 
>  \@
>    setplength{firstheadvpos}{15mm}
> Sorry, but I'm not programmed to handle this case;
> I'll just pretend that you didn't ask for it.
> If you're in the wrong mode, you might be able to
> return to the right one by typing `I}' or `I$' or `I\par'.
> 
>   KOMA-script upgrade needed?

These \@setplength should be in the lco file (letter class options)
which is called in the Latex preamble with
\LoadLetterOption{lcofile}%
I don't think you can use them anywhere in your Lyx document.

Have a look at any of the lco file you have (DIN.lco f.ex.).
-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Jean-Marie Pacquet wrote:


You need to use the pseudo-lengths shown in figure 17.1 (In my
scrguien.pdf, chapter 17 page 296)


Jean-Marie,

  I'll get the latest KOMA-script and docs today; my 2013 version has
firstheadvpos in Chapter 21 on page 358 and section 21.1.2 on page 365.


firstheadvpos
vertical distance of letterhead from top paper edge (section 17.1.2,
page 299)

To set a pseudo-length (f.ex. setting firstheadvpos to 15mm)
\@setplength{firstheadvpos}{15mm}


  I'm getting an error:

 \@
   setplength{firstheadvpos}{15mm}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

  KOMA-script upgrade needed?

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Rich Shepard

On Tue, 26 Sep 2017, Dr Eberhard Lisse wrote:


Why don't you send a MWE with the graphics file in question?


Eberhard,

  Possibly because I've no idea what a MWE is? :-)

  The graphic file at issue is the same PDF as before except that I changed
the Inc. to LLC because I changed the corporate structure. This was done in
LibreOffice because LyX, at least my installation, does not support the
Baker-signet typeface which I adopted as the company's logotype 25+ years
ago. When the corporate structure changed in the state and federal
registrations I chenged those three letters in LO Writer and re-saved the
page as a .pdf. This overlarge top-of-page issue wasn't before now.

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Dr Eberhard Lisse
Why don't you send a MWE with the graphics file in question?

el

On 25/09/2017 20:22, Rich Shepard wrote:
> On Mon, 25 Sep 2017, Paul A. Rubin wrote:
> 
>> Try starting LyX from a terminal with the "-dbg graphics" flag, open
>> and view the document, and see if it spits up an error message.
>
> Paul,
>
>   File's attached. In emacs the first reference to the image is line
> 459.  There are no errors (or Errors) in the file.
>
>> (I assume you've already checked the LaTeX log for signs of an
>> implosion.)
>
>   Don't know where the log file is to be found. It's not in /var/log/
> or the document directory.
> 
> Thanks,
> 
> Rich




Re: KOMA-letter-2: logo disappeared

2017-09-26 Thread Jean-Marie Pacquet
Le 25/09/2017 à 22:32, Rich Shepard a écrit :
> On Mon, 25 Sep 2017, Rich Shepard wrote:
> 
>> Class scrlttr2 Warning: head of first page is 17.22406pt too high.
>> (scrlttr2)  You have to change `firstheadvpos'
>> (scrlttr2)  or you have to define a smaller
>> (scrlttr2)  head of first page using \setkomavar.
>> (scrlttr2)  Because of this too high head of first page
>> (scrlttr2)  you've got an overfull \vbox message on input
>> line 68.
> 
>   In the document's preamble is:
> 
> \firsthead{\centering\usekomavar{fromlogo}\hspace*{8cm}}
> \ihead{\usekomavar{toname}\\%
> 
>   I'm not sure how to change these to define a smaller head of first page.
> 
>   Anyone know how?

Hello Rich,

You need to use the pseudo-lengths shown in figure 17.1 (In my
scrguien.pdf, chapter 17 page 296)

firstheadvpos
vertical distance of letterhead from top paper edge (section 17.1.2,
page 299)

To set a pseudo-length (f.ex. setting firstheadvpos to 15mm)
\@setplength{firstheadvpos}{15mm}

-- 
Jean-Marie


Re: KOMA-letter-2: logo disappeared

2017-09-25 Thread Rich Shepard

On Mon, 25 Sep 2017, Rich Shepard wrote:


 In the document's preamble is:
\firsthead{\centering\usekomavar{fromlogo}\hspace*{8cm}}
\ihead{\usekomavar{toname}\\%
 I'm not sure how to change these to define a smaller head of first page.


  The KOMA-script 2013 doc says this:

\usekomavar[command ]{name }
\usekomavar*[command ]{name }
In some cases it is necessary for the user to access the content or the
description of a variable and not to leave this only up to the class. This
is specially important when you have defined a variable which is not added
to the reference fields line. Using the command \usekomavar you have access
to the content of the variable name , whereas the starred version
\usekomavar* allows you to access the description or title. In section 21.2,
page 371 you may find mor information about defining variable on your own.

  But this gives me no idea what to change to make the logo fit the page.

Rich


Re: KOMA-letter-2: logo disappeared

2017-09-25 Thread Rich Shepard

On Mon, 25 Sep 2017, Rich Shepard wrote:


Class scrlttr2 Warning: head of first page is 17.22406pt too high.
(scrlttr2)  You have to change `firstheadvpos'
(scrlttr2)  or you have to define a smaller
(scrlttr2)  head of first page using \setkomavar.
(scrlttr2)  Because of this too high head of first page
(scrlttr2)  you've got an overfull \vbox message on input line 
68.


  In the document's preamble is:

\firsthead{\centering\usekomavar{fromlogo}\hspace*{8cm}}
\ihead{\usekomavar{toname}\\%

  I'm not sure how to change these to define a smaller head of first page.

  Anyone know how?

Thanks,

Rich



Re: KOMA-letter-2: logo disappeared

2017-09-25 Thread Rich Shepard

On Mon, 25 Sep 2017, Paul A. Rubin wrote:


Around line 498, LyX parks a copy in the temporary buffer and tries to
convert it to EPS. Around line 505, you can see the \insertgraphics
command for it (which I assume means LyX thinks the conversion was
successful). Your guess is better than mine whether the bounding box is
set correctly.


Paul,

  I saw that LyX thinks the conversion is successful ... and the bounding
box is correct. Wonder why it's not displaying, then. I can run the image
through 'convert' and create an .eps file, but have not before had issues
inserting .pdf files.


Assuming you previewed the document in LyX, Document > LaTeX Log will open
the log in a viewing window for you. The actual log file lives in the
temporary buffer directory (/tmp/lyx_tmpdir.mmCXUkQ28141) in this case.


  Didn't see it there before, it's in ../lyx_tempbuf2. And the log file
tells me:

File: 0_home_rshepard_documents_templates_llc-letterhead.eps Graphic file (type
 eps)
<0_home_rshepard_documents_templates_llc-letterhead.eps>
Overfull \hbox (227.62204pt too wide) in paragraph at lines 68--68
 []|
 []

Overfull \vbox (17.22406pt too high) detected at line 68
 []

File: 0_home_rshepard_documents_templates_llc-letterhead.eps Graphic file (type
 eps)
<0_home_rshepard_documents_templates_llc-letterhead.eps>
Overfull \hbox (227.62204pt too wide) in paragraph at lines 68--68
 []|
 []

Class scrlttr2 Warning: head of first page is 17.22406pt too high.
(scrlttr2)  You have to change `firstheadvpos'
(scrlttr2)  or you have to define a smaller
(scrlttr2)  head of first page using \setkomavar.
(scrlttr2)  Because of this too high head of first page
(scrlttr2)  you've got an overfull \vbox message on input line 68.

  So I need to play with the image size or positioning to get it to fit.

Thanks for the pointer,

Rich



Re: KOMA-letter-2: logo disappeared

2017-09-25 Thread Paul A. Rubin

On 09/25/2017 02:22 PM, Rich Shepard wrote:

On Mon, 25 Sep 2017, Paul A. Rubin wrote:


Try starting LyX from a terminal with the "-dbg graphics" flag, open and
view the document, and see if it spits up an error message.


Paul,

  File's attached. In emacs the first reference to the image is line 459.
There are no errors (or Errors) in the file.
Around line 459 is, I believe, where LyX is trying to convert the image 
to something it can display in the LyX GUI (which ultimately succeeds).


Around line 498, LyX parks a copy in the temporary buffer and tries to 
convert it to EPS. Around line 505, you can see the \insertgraphics 
command for it (which I assume means LyX thinks the conversion was 
successful). Your guess is better than mine whether the bounding box is 
set correctly.
(I assume you've already checked the LaTeX log for signs of an 
implosion.)


  Don't know where the log file is to be found. It's not in /var/log/ 
or the

document directory.
Assuming you previewed the document in LyX, Document > LaTeX Log will 
open the log in a viewing window for you. The actual log file lives in 
the temporary buffer directory (/tmp/lyx_tmpdir.mmCXUkQ28141) in this case.


Paul



Re: KOMA-letter-2: logo disappeared

2017-09-25 Thread Rich Shepard

On Mon, 25 Sep 2017, Paul A. Rubin wrote:


Try starting LyX from a terminal with the "-dbg graphics" flag, open and
view the document, and see if it spits up an error message.


Paul,

  File's attached. In emacs the first reference to the image is line 459.
There are no errors (or Errors) in the file.


(I assume you've already checked the LaTeX log for signs of an implosion.)


  Don't know where the log file is to be found. It's not in /var/log/ or the
document directory.

Thanks,

Rich$ lyx -dbg graphics
Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
Format.cpp (388): Recognised Fileformat: agr
Format.cpp (124): New Format: n=platex, flags=1
Format.cpp (124): New Format: n=dvi, flags=1
Format.cpp (124): New Format: n=latex, flags=1
Format.cpp (124): New Format: n=tgif, flags=2
Format.cpp (124): New Format: n=fig, flags=2
Format.cpp (124): New Format: n=dia, flags=10
Format.cpp (124): New Format: n=odg, flags=10
Format.cpp (124): New Format: n=agr, flags=2
Format.cpp (124): New Format: n=fen, flags=0
Format.cpp (124): New Format: n=svg, flags=2
Format.cpp (124): New Format: n=svgz, flags=10
Format.cpp (124): New Format: n=bmp, flags=0
Format.cpp (124): New Format: n=gif, flags=0
Format.cpp (124): New Format: n=jpg, flags=0
Format.cpp (124): New Format: n=pbm, flags=0
Format.cpp (124): New Format: n=pgm, flags=0
Format.cpp (124): New Format: n=png, flags=0
Format.cpp (124): New Format: n=ppm, flags=0
Format.cpp (124): New Format: n=tiff, flags=0
Format.cpp (124): New Format: n=xbm, flags=0
Format.cpp (124): New Format: n=xpm, flags=0
Format.cpp (124): New Format: n=asciichess, flags=0
Format.cpp (124): New Format: n=asciiimage, flags=0
Format.cpp (124): New Format: n=asciixfig, flags=0
Format.cpp (124): New Format: n=dateout, flags=0
Format.cpp (124): New Format: n=docbook, flags=5
Format.cpp (124): New Format: n=docbook-xml, flags=5
Format.cpp (124): New Format: n=dot, flags=2
Format.cpp (124): New Format: n=dviluatex, flags=5
Format.cpp (124): New Format: n=platex, flags=5
Format.cpp (124): New Format: n=literate, flags=5
Format.cpp (124): New Format: n=sweave, flags=5
Format.cpp (124): New Format: n=r, flags=5
Format.cpp (124): New Format: n=knitr, flags=5
Format.cpp (124): New Format: n=lilypond, flags=2
Format.cpp (124): New Format: n=lilypond-book, flags=5
Format.cpp (124): New Format: n=latex, flags=5
Format.cpp (124): New Format: n=luatex, flags=5
Format.cpp (124): New Format: n=pdflatex, flags=5
Format.cpp (124): New Format: n=xetex, flags=5
Format.cpp (124): New Format: n=latexclipboard, flags=0
Format.cpp (124): New Format: n=text, flags=5
Format.cpp (124): New Format: n=text2, flags=1
Format.cpp (124): New Format: n=text3, flags=1
Format.cpp (124): New Format: n=text4, flags=1
Format.cpp (124): New Format: n=textparagraph, flags=1
Format.cpp (124): New Format: n=beamer.info, flags=5
Format.cpp (124): New Format: n=gnumeric, flags=1
Format.cpp (124): New Format: n=excel, flags=1
Format.cpp (124): New Format: n=excel2, flags=1
Format.cpp (124): New Format: n=html_table, flags=1
Format.cpp (124): New Format: n=oocalc, flags=1
Format.cpp (124): New Format: n=xhtml, flags=5
Format.cpp (124): New Format: n=bibtex, flags=0
Format.cpp (124): New Format: n=eps, flags=2
Format.cpp (124): New Format: n=eps2, flags=2
Format.cpp (124): New Format: n=eps3, flags=1
Format.cpp (124): New Format: n=ps, flags=7
Format.cpp (124): New Format: n=pdf, flags=7
Format.cpp (124): New Format: n=pdf2, flags=7
Format.cpp (124): New Format: n=pdf3, flags=7
Format.cpp (124): New Format: n=pdf4, flags=7
Format.cpp (124): New Format: n=pdf5, flags=7
Format.cpp (124): New Format: n=pdf6, flags=2
Format.cpp (124): New Format: n=pdf7, flags=3
Format.cpp (124): New Format: n=pdf8, flags=3
Format.cpp (124): New Format: n=dvi, flags=7
Format.cpp (124): New Format: n=dvi3, flags=7
Format.cpp (124): New Format: n=html, flags=5
Format.cpp (124): New Format: n=noteedit, flags=2
Format.cpp (124): New Format: n=odt, flags=7
Format.cpp (124): New Format: n=odt2, flags=7
Format.cpp (124): New Format: n=odt3, flags=7
Format.cpp (124): New Format: n=sxw, flags=3
Format.cpp (124): New Format: n=rtf, flags=7
Format.cpp (124): New Format: n=word, flags=7
Format.cpp (124): New Format: n=word2, flags=7
Format.cpp (124): New Format: n=date, flags=0
Format.cpp (124): New Format: n=csv, flags=1
Format.cpp (124): New Format: n=fax, flags=1
Format.cpp (124): New Format: n=lyx, flags=0
Format.cpp (124): New Format: n=lyx13x, flags=1
Format.cpp (124): New Format: n=lyx14x, flags=1
Format.cpp (124): New Format: n=lyx15x, flags=1
Format.cpp (124): New Format: n=lyx16x, flags=1
Format.cpp (124): New Format: n=lyx20x, flags=1
Format.cpp (124): New Format: n=lyx21x, flags=5
Format.cpp (124): New Format: n=clyx, flags=1
Format.cpp (124): New Format: n=jlyx, flags=1
Format.cpp (124): New Format: n=klyx, flags=1
Format.cpp (124): New Format: n=lyxpreview, flags=0
Format.cpp (124): New Format: n=pdftex, flags=0

Re: KOMA-letter-2: logo disappeared

2017-09-25 Thread Paul A. Rubin

On 09/25/2017 12:51 PM, Rich Shepard wrote:

Some time in the past I modified the KOMA-letter version 2 template to
suit my needs. Not by modifying the template itself, but using selected
elements for a letter which I then copy and modify for new letters. 
This has

worked well until today.

  At the top of the document is a Logo environment using the company 
logo as

a .pdf file. It shows in the .lyx document but not when I do a preview or
pdflatex compilation.

  Just after the preamble in the .lyx file is the Logo:

\begin_body

\begin_layout Logo
\begin_inset Graphics
filename /home/rshepard/documents/templates/llc-letterhead.pdf
width 100text%
BoundingBox 80bp 100bp 520bp 250bp
clip

\end_inset


\end_layout

  I'm at a loss to know where to start looking for the reason and need 
some

ideas from the experts here.

TIA,

Rich

Try starting LyX from a terminal with the "-dbg graphics" flag, open and 
view the document, and see if it spits up an error message. (I assume 
you've already checked the LaTeX log for signs of an implosion.)


Paul



KOMA-letter-2: logo disappeared

2017-09-25 Thread Rich Shepard

  Some time in the past I modified the KOMA-letter version 2 template to
suit my needs. Not by modifying the template itself, but using selected
elements for a letter which I then copy and modify for new letters. This has
worked well until today.

  At the top of the document is a Logo environment using the company logo as
a .pdf file. It shows in the .lyx document but not when I do a preview or
pdflatex compilation.

  Just after the preamble in the .lyx file is the Logo:

\begin_body

\begin_layout Logo
\begin_inset Graphics
filename /home/rshepard/documents/templates/llc-letterhead.pdf
width 100text%
BoundingBox 80bp 100bp 520bp 250bp
clip

\end_inset


\end_layout

  I'm at a loss to know where to start looking for the reason and need some
ideas from the experts here.

TIA,

Rich



Re: Koma-script letter error

2016-05-29 Thread Scott Kostyshak
On Sun, May 29, 2016 at 09:30:08PM +0200, Walter van Holst wrote:
> On 29/05/2016 15:25, Michael Berger wrote:
> 
> > Ron, the information you provide is too general; that Latex Error may
> > also be generated in hundreds of other cases.
> > Please, be more specific.
> 
> The name is Walter. Anyway, as a user this is the error that gets
> presented to you. If that is not specific enough, it might be worthwhile
> to have more specific error message.
> 
> Either way, it was a PEBCAK, I had been using the Adress field twice and
> omitted to use "end of letter" (which I do not remember being part of
> KOMA-Script Letter v2 earlier).

Glad you got it fixed. I thought we had an enhancement request open to
prevent duplicate entries for certain styles (like title, and as you
found I guess address also). But I can't find it.

Scott

> 
> Regards,
> 
>  Walter
> 


signature.asc
Description: PGP signature


Re: Koma-script letter error

2016-05-29 Thread Walter van Holst
On 29/05/2016 15:25, Michael Berger wrote:

> Ron, the information you provide is too general; that Latex Error may
> also be generated in hundreds of other cases.
> Please, be more specific.

The name is Walter. Anyway, as a user this is the error that gets
presented to you. If that is not specific enough, it might be worthwhile
to have more specific error message.

Either way, it was a PEBCAK, I had been using the Adress field twice and
omitted to use "end of letter" (which I do not remember being part of
KOMA-Script Letter v2 earlier).

Regards,

 Walter



Re: Koma-script letter error

2016-05-29 Thread Michael Berger



On 05/29/2016 02:54 PM, Walter van Holst wrote:

Hi all,

When trying to use the Koma-script Letter template I get this error:\

! LaTeX Error: \begin{letter} on input line 27 ended by \end{document}.

  \end{document}

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.

Suggestions on how to deal with this would be most welcome.

Regards,

  Walter

Ron, the information you provide is too general; that Latex Error may 
also be generated in hundreds of other cases.

Please, be more specific.
Michael



Re: Koma-script letter error

2016-05-29 Thread Rich Shepard

On Sun, 29 May 2016, Walter van Holst wrote:


When trying to use the Koma-script Letter template I get this error:\
! LaTeX Error: \begin{letter} on input line 27 ended by \end{document}.
\end{document}

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.

Suggestions on how to deal with this would be most welcome.


Walter,

  First, did you examine the error log to see the details? Second, this
frequently occurs when you have an unintended character, such as a digbat,
inserted in the document or you're missing a package.

  Try reducing the letter to a minimal document that compiles, then
incrementally add text until you discover the problem area.

HTH,

Rich


Koma-script letter error

2016-05-29 Thread Walter van Holst
Hi all,

When trying to use the Koma-script Letter template I get this error:\

! LaTeX Error: \begin{letter} on input line 27 ended by \end{document}.

 \end{document}

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.

Suggestions on how to deal with this would be most welcome.

Regards,

 Walter


Italian letter

2014-11-09 Thread renato
Hi,
as I already told, I'm starting to use lyx. I would use it, in 
every need I have. I want to write with it!

So, for example. If I want to write a tipical Italian letter (with, 
address and the date on the left side of letter) how can I do 
that?
Do it exists a Italan letter model? (that is different from the 
Lettre and letter.lyx I've alredy used?)

thank you

Renato


Re: Italian letter

2014-11-09 Thread stefano franchi
On Sun, Nov 9, 2014 at 8:42 AM, renato renato.pontef...@gmail.com wrote:

  Hi,

 as I already told, I'm starting to use lyx. I would use it, in every need
 I have. I want to write with it!



 So, for example. If I want to write a tipical Italian letter (with,
 address and the date on the left side of letter) how can I do that?

 Do it exists a Italan letter model? (that is different from the Lettre and
 letter.lyx I've alredy used?)




I occasionally use LyX for Italian letters, but I am not aware of any such
model. The best letter class seems to be provided by Koma-script. It should
probably be customzed for Italian conventions, though. And I am not aware
of anyone having done it. Hope I am wrong.



Cheers,

Stefano


-- 
__
Stefano Franchi

stefano.fran...@gmail.com stef...@tamu.edu
http://stefano.cleinias.org


Italian letter

2014-11-09 Thread renato
Hi,
as I already told, I'm starting to use lyx. I would use it, in 
every need I have. I want to write with it!

So, for example. If I want to write a tipical Italian letter (with, 
address and the date on the left side of letter) how can I do 
that?
Do it exists a Italan letter model? (that is different from the 
Lettre and letter.lyx I've alredy used?)

thank you

Renato


Re: Italian letter

2014-11-09 Thread stefano franchi
On Sun, Nov 9, 2014 at 8:42 AM, renato renato.pontef...@gmail.com wrote:

  Hi,

 as I already told, I'm starting to use lyx. I would use it, in every need
 I have. I want to write with it!



 So, for example. If I want to write a tipical Italian letter (with,
 address and the date on the left side of letter) how can I do that?

 Do it exists a Italan letter model? (that is different from the Lettre and
 letter.lyx I've alredy used?)




I occasionally use LyX for Italian letters, but I am not aware of any such
model. The best letter class seems to be provided by Koma-script. It should
probably be customzed for Italian conventions, though. And I am not aware
of anyone having done it. Hope I am wrong.



Cheers,

Stefano


-- 
__
Stefano Franchi

stefano.fran...@gmail.com stef...@tamu.edu
http://stefano.cleinias.org


Italian letter

2014-11-09 Thread renato
Hi,
as I already told, I'm starting to use lyx. I would use it, in 
every need I have. I want to write with it!

So, for example. If I want to write a tipical Italian letter (with, 
address and the date on the left side of letter) how can I do 
that?
Do it exists a Italan letter model? (that is different from the 
Lettre and letter.lyx I've alredy used?)

thank you

Renato


Re: Italian letter

2014-11-09 Thread stefano franchi
On Sun, Nov 9, 2014 at 8:42 AM, renato <renato.pontef...@gmail.com> wrote:

>  Hi,
>
> as I already told, I'm starting to use lyx. I would use it, in every need
> I have. I want to write with it!
>
>
>
> So, for example. If I want to write a tipical Italian letter (with,
> address and the date on the left side of letter) how can I do that?
>
> Do it exists a Italan letter model? (that is different from the Lettre and
> letter.lyx I've alredy used?)
>
>
>

I occasionally use LyX for Italian letters, but I am not aware of any such
model. The best letter class seems to be provided by Koma-script. It should
probably be customzed for Italian conventions, though. And I am not aware
of anyone having done it. Hope I am wrong.



Cheers,

Stefano


-- 
__
Stefano Franchi

stefano.fran...@gmail.com <stef...@tamu.edu>
http://stefano.cleinias.org


Re: letterhead with Koma2 or letter

2014-09-26 Thread renato
Hi,
I followed your tips, and I obtained the file attached Here. But I need to 
obtain something like the other file that I attach (Meridiana.pdf)

I mean:
- the logo on the header is on the right
- the footer could be an image (can I can realize it with script?, it would be 
better. This, is an image of a letterhead realized wiith latex)

I would use Lyx, because it will better to write simple letter. But to do 
that, I need a letterhead (I hope to explain myself).


Thank you

Renato
On Friday 26 September 2014 07:57:43 Jean-Marie Pacquet wrote:
 Le 25/09/2014 22:11, renato a écrit :
  Hi,
  please, help me to set letterhead. I tried koma2 and letter class. I read
  the same document (in different site) googling around. But I'm in the
  same situation...
  How can I put Image on the top left and the bottom of the page?
  
  TIA
  
  Renato
 
 Renato,
 
 Did you try the example ksl2pro.lyx shown here:
 http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top left.
 If that does not work for you, please indicate exactly what kind of
 error you get, then I might be able to help.
 
 Regards


ksl2pro.pdf
Description: Adobe PDF document


Meridiana.pdf
Description: Adobe PDF document


Re: letterhead with Koma2 or letter

2014-09-26 Thread Benedict Holland
You might have to get your configuration with ERT. I find a lot of
formatting is complicated with koma. You could also play around with your
din.lco file. That is where all of the spacing is defined unless
overridden. I might suggest an ERT of \raggedright with the includeimage
command. It is hard without seeing your document but specific formatting
that differs from the defaults I always find is better done with ERT. As a
really bad alternative, you can play around with the din file but I would
really not recommend that unless you absolutely have to.

BTW. I should note this because these seem to be a lot of koma questions
cropping up. Koma is extremely complicated and powerful. The manual is over
200 pages. It can do anything you want but the trick is to get it
configured the exact way you want. At one point I did actually go through
about a quarter of the manual. I found that playing around with the margins
to get exactly what I needed was the easiest approach.

~Ben


On Fri, Sep 26, 2014 at 12:41 PM, renato renato.pontef...@gmail.com wrote:

 Hi,
 I followed your tips, and I obtained the file attached Here. But I need to
 obtain something like the other file that I attach (Meridiana.pdf)

 I mean:
 - the logo on the header is on the right
 - the footer could be an image (can I can realize it with script?, it
 would be
 better. This, is an image of a letterhead realized wiith latex)

 I would use Lyx, because it will better to write simple letter. But to do
 that, I need a letterhead (I hope to explain myself).


 Thank you

 Renato
 On Friday 26 September 2014 07:57:43 Jean-Marie Pacquet wrote:
  Le 25/09/2014 22:11, renato a écrit :
   Hi,
   please, help me to set letterhead. I tried koma2 and letter class. I
 read
   the same document (in different site) googling around. But I'm in the
   same situation...
   How can I put Image on the top left and the bottom of the page?
  
   TIA
  
   Renato
 
  Renato,
 
  Did you try the example ksl2pro.lyx shown here:
  http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top
 left.
  If that does not work for you, please indicate exactly what kind of
  error you get, then I might be able to help.
 
  Regards



Re: letterhead with Koma2 or letter

2014-09-26 Thread renato
Hi,
I followed your tips, and I obtained the file attached Here. But I need to 
obtain something like the other file that I attach (Meridiana.pdf)

I mean:
- the logo on the header is on the right
- the footer could be an image (can I can realize it with script?, it would be 
better. This, is an image of a letterhead realized wiith latex)

I would use Lyx, because it will better to write simple letter. But to do 
that, I need a letterhead (I hope to explain myself).


Thank you

Renato
On Friday 26 September 2014 07:57:43 Jean-Marie Pacquet wrote:
 Le 25/09/2014 22:11, renato a écrit :
  Hi,
  please, help me to set letterhead. I tried koma2 and letter class. I read
  the same document (in different site) googling around. But I'm in the
  same situation...
  How can I put Image on the top left and the bottom of the page?
  
  TIA
  
  Renato
 
 Renato,
 
 Did you try the example ksl2pro.lyx shown here:
 http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top left.
 If that does not work for you, please indicate exactly what kind of
 error you get, then I might be able to help.
 
 Regards


ksl2pro.pdf
Description: Adobe PDF document


Meridiana.pdf
Description: Adobe PDF document


Re: letterhead with Koma2 or letter

2014-09-26 Thread Benedict Holland
You might have to get your configuration with ERT. I find a lot of
formatting is complicated with koma. You could also play around with your
din.lco file. That is where all of the spacing is defined unless
overridden. I might suggest an ERT of \raggedright with the includeimage
command. It is hard without seeing your document but specific formatting
that differs from the defaults I always find is better done with ERT. As a
really bad alternative, you can play around with the din file but I would
really not recommend that unless you absolutely have to.

BTW. I should note this because these seem to be a lot of koma questions
cropping up. Koma is extremely complicated and powerful. The manual is over
200 pages. It can do anything you want but the trick is to get it
configured the exact way you want. At one point I did actually go through
about a quarter of the manual. I found that playing around with the margins
to get exactly what I needed was the easiest approach.

~Ben


On Fri, Sep 26, 2014 at 12:41 PM, renato renato.pontef...@gmail.com wrote:

 Hi,
 I followed your tips, and I obtained the file attached Here. But I need to
 obtain something like the other file that I attach (Meridiana.pdf)

 I mean:
 - the logo on the header is on the right
 - the footer could be an image (can I can realize it with script?, it
 would be
 better. This, is an image of a letterhead realized wiith latex)

 I would use Lyx, because it will better to write simple letter. But to do
 that, I need a letterhead (I hope to explain myself).


 Thank you

 Renato
 On Friday 26 September 2014 07:57:43 Jean-Marie Pacquet wrote:
  Le 25/09/2014 22:11, renato a écrit :
   Hi,
   please, help me to set letterhead. I tried koma2 and letter class. I
 read
   the same document (in different site) googling around. But I'm in the
   same situation...
   How can I put Image on the top left and the bottom of the page?
  
   TIA
  
   Renato
 
  Renato,
 
  Did you try the example ksl2pro.lyx shown here:
  http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top
 left.
  If that does not work for you, please indicate exactly what kind of
  error you get, then I might be able to help.
 
  Regards



Re: letterhead with Koma2 or letter

2014-09-26 Thread renato
Hi,
I followed your tips, and I obtained the file attached Here. But I need to 
obtain something like the other file that I attach (Meridiana.pdf)

I mean:
- the logo on the header is on the right
- the footer could be an image (can I can realize it with script?, it would be 
better. This, is an image of a letterhead realized wiith latex)

I would use Lyx, because it will better to write simple letter. But to do 
that, I need a letterhead (I hope to explain myself).


Thank you

Renato
On Friday 26 September 2014 07:57:43 Jean-Marie Pacquet wrote:
> Le 25/09/2014 22:11, renato a écrit :
> > Hi,
> > please, help me to set letterhead. I tried koma2 and letter class. I read
> > the same document (in different site) googling around. But I'm in the
> > same situation...
> > How can I put Image on the top left and the bottom of the page?
> > 
> > TIA
> > 
> > Renato
> 
> Renato,
> 
> Did you try the example ksl2pro.lyx shown here:
> http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top left.
> If that does not work for you, please indicate exactly what kind of
> error you get, then I might be able to help.
> 
> Regards


ksl2pro.pdf
Description: Adobe PDF document


Meridiana.pdf
Description: Adobe PDF document


Re: letterhead with Koma2 or letter

2014-09-26 Thread Benedict Holland
You might have to get your configuration with ERT. I find a lot of
formatting is complicated with koma. You could also play around with your
din.lco file. That is where all of the spacing is defined unless
overridden. I might suggest an ERT of \raggedright with the includeimage
command. It is hard without seeing your document but specific formatting
that differs from the defaults I always find is better done with ERT. As a
really bad alternative, you can play around with the din file but I would
really not recommend that unless you absolutely have to.

BTW. I should note this because these seem to be a lot of koma questions
cropping up. Koma is extremely complicated and powerful. The manual is over
200 pages. It can do anything you want but the trick is to get it
configured the exact way you want. At one point I did actually go through
about a quarter of the manual. I found that playing around with the margins
to get exactly what I needed was the easiest approach.

~Ben


On Fri, Sep 26, 2014 at 12:41 PM, renato <renato.pontef...@gmail.com> wrote:

> Hi,
> I followed your tips, and I obtained the file attached Here. But I need to
> obtain something like the other file that I attach (Meridiana.pdf)
>
> I mean:
> - the logo on the header is on the right
> - the footer could be an image (can I can realize it with script?, it
> would be
> better. This, is an image of a letterhead realized wiith latex)
>
> I would use Lyx, because it will better to write simple letter. But to do
> that, I need a letterhead (I hope to explain myself).
>
>
> Thank you
>
> Renato
> On Friday 26 September 2014 07:57:43 Jean-Marie Pacquet wrote:
> > Le 25/09/2014 22:11, renato a écrit :
> > > Hi,
> > > please, help me to set letterhead. I tried koma2 and letter class. I
> read
> > > the same document (in different site) googling around. But I'm in the
> > > same situation...
> > > How can I put Image on the top left and the bottom of the page?
> > >
> > > TIA
> > >
> > > Renato
> >
> > Renato,
> >
> > Did you try the example ksl2pro.lyx shown here:
> > http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top
> left.
> > If that does not work for you, please indicate exactly what kind of
> > error you get, then I might be able to help.
> >
> > Regards
>


letterhead with Koma2 or letter

2014-09-25 Thread renato
Hi,
please, help me to set letterhead. I tried koma2 and letter class. I read the 
same document (in different site) googling around. But I'm in the same 
situation...
How can I put Image on the top left and the bottom of the page? 

TIA

Renato


Re: letterhead with Koma2 or letter

2014-09-25 Thread Charlie
On Thu, 25 Sep 2014 22:11:55 +0200
renato renato.pontef...@gmail.com wrote:

 Hi,
 please, help me to set letterhead. I tried koma2 and letter class. I
 read the same document (in different site) googling around. But I'm
 in the same situation...
 How can I put Image on the top left and the bottom of the page? 
 
 TIA
 
 Renato

I have had a great deal of help from Jean-Marie Pacquet with my
problems tweaking the Koma letter environment. I will attempt to pass
on his wisdom.

Where you see “Sender name” in the Koma letter template place your
graphic, or your other entry and then move your graphic accordingly,
maybe using Ctrl+space as often as you require.

In the footer you may have to do much the same.

I see you have had some good advice from Jean-Marie on your request
last time.

Prior to using the Koma-Script letter template, I rolled my own letter
template with a plain Koma-Script article page and just placed all the
elements where I wanted much like suggested above for placing the
graphics.

I have also created a graphic with the GIMP with all the writing, with
the font I wanted and graphic placed accordingly and just inserted that
into the “Sender name” area.

Not much help, but maybe a start to what you need.

Charlie
-- 
Registered Linux User:- 329524
***

Anything is good, even perfect if enjoyed without comparing it
to anything else. ---anon

***

Debian GNU/Linux - just the best way to create magic

-


Re: letterhead with Koma2 or letter

2014-09-25 Thread Jean-Marie Pacquet
Le 25/09/2014 22:11, renato a écrit :
 Hi,
 please, help me to set letterhead. I tried koma2 and letter class. I read the 
 same document (in different site) googling around. But I'm in the same 
 situation...
 How can I put Image on the top left and the bottom of the page? 
 
 TIA
 
 Renato
 

Renato,

Did you try the example ksl2pro.lyx shown here:
http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top left.
If that does not work for you, please indicate exactly what kind of
error you get, then I might be able to help.

Regards
-- 
jmp


letterhead with Koma2 or letter

2014-09-25 Thread renato
Hi,
please, help me to set letterhead. I tried koma2 and letter class. I read the 
same document (in different site) googling around. But I'm in the same 
situation...
How can I put Image on the top left and the bottom of the page? 

TIA

Renato


Re: letterhead with Koma2 or letter

2014-09-25 Thread Charlie
On Thu, 25 Sep 2014 22:11:55 +0200
renato renato.pontef...@gmail.com wrote:

 Hi,
 please, help me to set letterhead. I tried koma2 and letter class. I
 read the same document (in different site) googling around. But I'm
 in the same situation...
 How can I put Image on the top left and the bottom of the page? 
 
 TIA
 
 Renato

I have had a great deal of help from Jean-Marie Pacquet with my
problems tweaking the Koma letter environment. I will attempt to pass
on his wisdom.

Where you see “Sender name” in the Koma letter template place your
graphic, or your other entry and then move your graphic accordingly,
maybe using Ctrl+space as often as you require.

In the footer you may have to do much the same.

I see you have had some good advice from Jean-Marie on your request
last time.

Prior to using the Koma-Script letter template, I rolled my own letter
template with a plain Koma-Script article page and just placed all the
elements where I wanted much like suggested above for placing the
graphics.

I have also created a graphic with the GIMP with all the writing, with
the font I wanted and graphic placed accordingly and just inserted that
into the “Sender name” area.

Not much help, but maybe a start to what you need.

Charlie
-- 
Registered Linux User:- 329524
***

Anything is good, even perfect if enjoyed without comparing it
to anything else. ---anon

***

Debian GNU/Linux - just the best way to create magic

-


Re: letterhead with Koma2 or letter

2014-09-25 Thread Jean-Marie Pacquet
Le 25/09/2014 22:11, renato a écrit :
 Hi,
 please, help me to set letterhead. I tried koma2 and letter class. I read the 
 same document (in different site) googling around. But I'm in the same 
 situation...
 How can I put Image on the top left and the bottom of the page? 
 
 TIA
 
 Renato
 

Renato,

Did you try the example ksl2pro.lyx shown here:
http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top left.
If that does not work for you, please indicate exactly what kind of
error you get, then I might be able to help.

Regards
-- 
jmp


letterhead with Koma2 or letter

2014-09-25 Thread renato
Hi,
please, help me to set letterhead. I tried koma2 and letter class. I read the 
same document (in different site) googling around. But I'm in the same 
situation...
How can I put Image on the top left and the bottom of the page? 

TIA

Renato


Re: letterhead with Koma2 or letter

2014-09-25 Thread Charlie
On Thu, 25 Sep 2014 22:11:55 +0200
renato <renato.pontef...@gmail.com> wrote:

> Hi,
> please, help me to set letterhead. I tried koma2 and letter class. I
> read the same document (in different site) googling around. But I'm
> in the same situation...
> How can I put Image on the top left and the bottom of the page? 
> 
> TIA
> 
> Renato

I have had a great deal of help from Jean-Marie Pacquet with my
problems tweaking the Koma letter environment. I will attempt to pass
on his wisdom.

Where you see “Sender name” in the Koma letter template place your
graphic, or your other entry and then move your graphic accordingly,
maybe using Ctrl+space as often as you require.

In the footer you may have to do much the same.

I see you have had some good advice from Jean-Marie on your request
last time.

Prior to using the Koma-Script letter template, I rolled my own letter
template with a plain Koma-Script article page and just placed all the
elements where I wanted much like suggested above for placing the
graphics.

I have also created a graphic with the GIMP with all the writing, with
the font I wanted and graphic placed accordingly and just inserted that
into the “Sender name” area.

Not much help, but maybe a start to what you need.

Charlie
-- 
Registered Linux User:- 329524
***

Anything is good, even perfect if enjoyed without comparing it
to anything else. ---anon

***

Debian GNU/Linux - just the best way to create magic

-


Re: letterhead with Koma2 or letter

2014-09-25 Thread Jean-Marie Pacquet
Le 25/09/2014 22:11, renato a écrit :
> Hi,
> please, help me to set letterhead. I tried koma2 and letter class. I read the 
> same document (in different site) googling around. But I'm in the same 
> situation...
> How can I put Image on the top left and the bottom of the page? 
> 
> TIA
> 
> Renato
> 

Renato,

Did you try the example ksl2pro.lyx shown here:
http://wiki.lyx.org/Examples/KomaLetter2 ? It has an image on the top left.
If that does not work for you, please indicate exactly what kind of
error you get, then I might be able to help.

Regards
-- 
jmp


first letter with Lyx: some questions

2014-09-20 Thread Renato Pontefice
Hi,
I'm trying to use Lyx, for my first document.
what I need to do is a simple letter, but I need:
- kind of letterhead, I mean: logo (image on the top left of the letter)
- footer (a table with 3 cells containing text)

- date aligned on the right
- body of letter

I've try to use Kaoma and letter (.lyx)
I've seen that I can see the latex source, but I don't know how to modify
it.

I'm wondering if, is this the right way to use lyx, or if I'm trying to use
it in a wrong way. I mean:
- Do I'm trying to do something that I can do just with LaTeX editor? Or
Lyx can be modified in many ways?

-Finally, I'm wondering if do already exist somethings that do what I want
to do.

TIA

Renato


Re: first letter with Lyx: some questions

2014-09-20 Thread Benedict Holland
Hi,

You want to use komascript2. http://wiki.lyx.org/Examples/KomaLetter2

You also want to look up how to modify the .lco files from koma. This is
the local file which will determine different margins. This is not
trivial to do and I found that is requires a great amount of tinkering to
get exactly what I wanted. I am attaching a modified DIN.lco which is
located somewhere on your computer. This really determines where everything
is located on a page.

I also found that I did have to use some ERT, particularly for the logos
but also to get text at the very bottom of the page using a Post Scriptum.

So to answer your questions... yes. You can use Lyx to get what you want.
Chances are something exists to get what you want but bare in mind that
this is highly customizable. If you want a different looking letter from
the defaults, that will require some time and playing around to make work.
The end result is fantastic though, particularly if you are doing multiple
letters. All you have to do is format it once and you can make as many
letters as you want.

~Ben

On Sat, Sep 20, 2014 at 10:49 AM, Renato Pontefice 
renato.pontef...@gmail.com wrote:

 Hi,
 I'm trying to use Lyx, for my first document.
 what I need to do is a simple letter, but I need:
 - kind of letterhead, I mean: logo (image on the top left of the letter)
 - footer (a table with 3 cells containing text)

 - date aligned on the right
 - body of letter

 I've try to use Kaoma and letter (.lyx)
 I've seen that I can see the latex source, but I don't know how to modify
 it.

 I'm wondering if, is this the right way to use lyx, or if I'm trying to
 use it in a wrong way. I mean:
 - Do I'm trying to do something that I can do just with LaTeX editor? Or
 Lyx can be modified in many ways?

 -Finally, I'm wondering if do already exist somethings that do what I want
 to do.

 TIA

 Renato



DINregular.lco
Description: Binary data


first letter with Lyx: some questions

2014-09-20 Thread Renato Pontefice
Hi,
I'm trying to use Lyx, for my first document.
what I need to do is a simple letter, but I need:
- kind of letterhead, I mean: logo (image on the top left of the letter)
- footer (a table with 3 cells containing text)

- date aligned on the right
- body of letter

I've try to use Kaoma and letter (.lyx)
I've seen that I can see the latex source, but I don't know how to modify
it.

I'm wondering if, is this the right way to use lyx, or if I'm trying to use
it in a wrong way. I mean:
- Do I'm trying to do something that I can do just with LaTeX editor? Or
Lyx can be modified in many ways?

-Finally, I'm wondering if do already exist somethings that do what I want
to do.

TIA

Renato


Re: first letter with Lyx: some questions

2014-09-20 Thread Benedict Holland
Hi,

You want to use komascript2. http://wiki.lyx.org/Examples/KomaLetter2

You also want to look up how to modify the .lco files from koma. This is
the local file which will determine different margins. This is not
trivial to do and I found that is requires a great amount of tinkering to
get exactly what I wanted. I am attaching a modified DIN.lco which is
located somewhere on your computer. This really determines where everything
is located on a page.

I also found that I did have to use some ERT, particularly for the logos
but also to get text at the very bottom of the page using a Post Scriptum.

So to answer your questions... yes. You can use Lyx to get what you want.
Chances are something exists to get what you want but bare in mind that
this is highly customizable. If you want a different looking letter from
the defaults, that will require some time and playing around to make work.
The end result is fantastic though, particularly if you are doing multiple
letters. All you have to do is format it once and you can make as many
letters as you want.

~Ben

On Sat, Sep 20, 2014 at 10:49 AM, Renato Pontefice 
renato.pontef...@gmail.com wrote:

 Hi,
 I'm trying to use Lyx, for my first document.
 what I need to do is a simple letter, but I need:
 - kind of letterhead, I mean: logo (image on the top left of the letter)
 - footer (a table with 3 cells containing text)

 - date aligned on the right
 - body of letter

 I've try to use Kaoma and letter (.lyx)
 I've seen that I can see the latex source, but I don't know how to modify
 it.

 I'm wondering if, is this the right way to use lyx, or if I'm trying to
 use it in a wrong way. I mean:
 - Do I'm trying to do something that I can do just with LaTeX editor? Or
 Lyx can be modified in many ways?

 -Finally, I'm wondering if do already exist somethings that do what I want
 to do.

 TIA

 Renato



DINregular.lco
Description: Binary data


first letter with Lyx: some questions

2014-09-20 Thread Renato Pontefice
Hi,
I'm trying to use Lyx, for my first document.
what I need to do is a simple letter, but I need:
- kind of letterhead, I mean: logo (image on the top left of the letter)
- footer (a table with 3 cells containing text)

- date aligned on the right
- body of letter

I've try to use Kaoma and letter (.lyx)
I've seen that I can see the latex source, but I don't know how to modify
it.

I'm wondering if, is this the right way to use lyx, or if I'm trying to use
it in a wrong way. I mean:
- Do I'm trying to do something that I can do just with LaTeX editor? Or
Lyx can be modified in many ways?

-Finally, I'm wondering if do already exist somethings that do what I want
to do.

TIA

Renato


Re: first letter with Lyx: some questions

2014-09-20 Thread Benedict Holland
Hi,

You want to use komascript2. http://wiki.lyx.org/Examples/KomaLetter2

You also want to look up how to modify the .lco files from koma. This is
the "local" file which will determine different margins. This is not
trivial to do and I found that is requires a great amount of tinkering to
get exactly what I wanted. I am attaching a modified DIN.lco which is
located somewhere on your computer. This really determines where everything
is located on a page.

I also found that I did have to use some ERT, particularly for the logos
but also to get text at the very bottom of the page using a Post Scriptum.

So to answer your questions... yes. You can use Lyx to get what you want.
Chances are something exists to get what you want but bare in mind that
this is highly customizable. If you want a different looking letter from
the defaults, that will require some time and playing around to make work.
The end result is fantastic though, particularly if you are doing multiple
letters. All you have to do is format it once and you can make as many
letters as you want.

~Ben

On Sat, Sep 20, 2014 at 10:49 AM, Renato Pontefice <
renato.pontef...@gmail.com> wrote:

> Hi,
> I'm trying to use Lyx, for my first document.
> what I need to do is a simple letter, but I need:
> - kind of letterhead, I mean: logo (image on the top left of the letter)
> - footer (a table with 3 cells containing text)
>
> - date aligned on the right
> - body of letter
>
> I've try to use Kaoma and letter (.lyx)
> I've seen that I can see the latex source, but I don't know how to modify
> it.
>
> I'm wondering if, is this the right way to use lyx, or if I'm trying to
> use it in a wrong way. I mean:
> - Do I'm trying to do something that I can do just with LaTeX editor? Or
> Lyx can be modified in many ways?
>
> -Finally, I'm wondering if do already exist somethings that do what I want
> to do.
>
> TIA
>
> Renato
>


DINregular.lco
Description: Binary data


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Ross Reyes


On 6/23/2014 11:37 PM, Charlie wrote:

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot


This is what I use for my header/footer construction in the preamble

 \usepackage{graphics}
\usepackage{fancyhdr}
\lhead{\resizebox{0.44in}{!}{\includegraphics{A_Logo.jpg}}}
\chead{Your Name, town, USA, 484-xxx-}
\rhead{\resizebox{0.44in}{!}{\includegraphics{B_Logo.jpg}}}
\lfoot{Company, Inc. - Proprietary and Confidential}
\cfoot{}
\rfoot{\thepage}
\let\oldmaketitle=\maketitle
\def\maketitle{\oldmaketitle\thispagestyle{fancy}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}





Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Charlie
On Tue, 24 Jun 2014 07:49:22 -0400
Ross Reyes philip_...@yahoo.com wrote:

 
 On 6/23/2014 11:37 PM, Charlie wrote:
  In:
  Debian Jessie
  using:
  Lyx Version 2.0.6
 
  I wanted to put a horizontal line and beneath it a custom footer,
  that has the three elements:
 
  \lfoot - \cfoot - \rfoot
 
 This is what I use for my header/footer construction in the preamble
 
   \usepackage{graphics}
 \usepackage{fancyhdr}
 \lhead{\resizebox{0.44in}{!}{\includegraphics{A_Logo.jpg}}}
 \chead{Your Name, town, USA, 484-xxx-}
 \rhead{\resizebox{0.44in}{!}{\includegraphics{B_Logo.jpg}}}
 \lfoot{Company, Inc. - Proprietary and Confidential}
 \cfoot{}
 \rfoot{\thepage}
 \let\oldmaketitle=\maketitle
 \def\maketitle{\oldmaketitle\thispagestyle{fancy}}
 \renewcommand{\headrulewidth}{0.4pt}
 \renewcommand{\footrulewidth}{0.4pt}
 

Thanks Ross.

I have the header covered and the rest of the text doesn't do anything,
though left the text in the \lfoot and added text into the \cfoot and
the \rfoot.

There was no output at all.

 I think that would work in an article template but not in the letter
 one. I actually tried several variations of this and came up blank or
 received error messages from some attempts.

Thank you.
Charlie
-- 
Registered Linux User:- 329524
***

The keeping of bees is like the direction of
sunbeams. Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Jean-Marie Pacquet

Le 24/06/2014 05:37, Charlie a écrit :

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot

So that I can place three different names and address details onto the
first page of the document.


Hi Charlie,

Which version of KomaScript are you using?
On a recent version of the user's guide (scrguien.pdf dated 2012-05-15.) 
, there is an example (at the end of section 4.10, page 178) of a first 
page footer with 2 columns (left and right). It won't be very difficult 
to add a center column.


--
Jean-Marie



Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Jean-Marie Pacquet

Le 24/06/2014 16:20, Jean-Marie Pacquet a écrit :

[...] It won't be very difficult to add a center column.

If you have a 2.9x version of KomaScript (like me) the following 
modified example will do what you want. If your version is  3.x you 
should replace the first line \firstfoot{% with 
\setkomavar{firstfoot}{%.

All this has to be inserted in your .lco parameter file.


% Define a new letter foot

\firstfoot{%
  \parbox[t]{\textwidth}{\footnotesize
\rule{\linewidth}{2pt}
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Partners:}\\
  Jim Smith\\
  Russ Mayer
\end{tabular}%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Banks:}\\
  Citigroup\\
  Deutsche Bank
\end{tabular}%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Manager:}\\
  Jane Fonda\\[1ex]
  \multicolumn{1}{@{}l@{}}{Court Of Jurisdiction:}\\
  Great Plains
\end{tabular}%
\ifkomavarempty{frombank}{}{%
  \hfill
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\
\usekomavar{frombank}
  \end{tabular}%
}%
  }%
}

Cheers
--
Jean-Marie


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Charlie
On Tue, 24 Jun 2014 21:29:59 +0200
Jean-Marie Pacquet j...@pacquet.net wrote:

 Le 24/06/2014 16:20, Jean-Marie Pacquet a écrit :
  [...] It won't be very difficult to add a center column.
 
 If you have a 2.9x version of KomaScript (like me) the following 
 modified example will do what you want. If your version is  3.x you 
 should replace the first line \firstfoot{% with 
 \setkomavar{firstfoot}{%.
 All this has to be inserted in your .lco parameter file.
 
 
 % Define a new letter foot
 
 \firstfoot{%
\parbox[t]{\textwidth}{\footnotesize
  \rule{\linewidth}{2pt}
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{Partners:}\\
Jim Smith\\
Russ Mayer
  \end{tabular}%
  \hfill
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{Banks:}\\
Citigroup\\
Deutsche Bank
  \end{tabular}%
  \hfill
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{Manager:}\\
Jane Fonda\\[1ex]
\multicolumn{1}{@{}l@{}}{Court Of Jurisdiction:}\\
Great Plains
  \end{tabular}%
  \ifkomavarempty{frombank}{}{%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\
  \usekomavar{frombank}
\end{tabular}%
  }%
}%
 }
 
 Cheers

Thank you Jean-Marie,

The first example you pointed me to on page 178 works, and I was working
on tweaking it, and then I saw you had sent this email, which works
perfectly.

I feel like such an idiot. My only excuse is that I had looked on the
net and through other documentation that I didn't fine that reference
in the scrguien.pdf.

It's not unusual for me to go the hard way first.

I did look through the scrguien.pdf that you have directed me to in the
past and I've got in my LyX information file, but maybe I was already
overloaded with footnote information? I really have no excuse.

Anyway, as ever, and as previously thank you for your help and taking
the time to create the result. It's much appreciated and works
a treat.

Thank you once again.

Stay well,
Charlie

-- 
Registered Linux User:- 329524
***

The smallest seed of faith is better than the largest fruit of
happiness. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Ross Reyes


On 6/23/2014 11:37 PM, Charlie wrote:

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot


This is what I use for my header/footer construction in the preamble

 \usepackage{graphics}
\usepackage{fancyhdr}
\lhead{\resizebox{0.44in}{!}{\includegraphics{A_Logo.jpg}}}
\chead{Your Name, town, USA, 484-xxx-}
\rhead{\resizebox{0.44in}{!}{\includegraphics{B_Logo.jpg}}}
\lfoot{Company, Inc. - Proprietary and Confidential}
\cfoot{}
\rfoot{\thepage}
\let\oldmaketitle=\maketitle
\def\maketitle{\oldmaketitle\thispagestyle{fancy}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}





Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Charlie
On Tue, 24 Jun 2014 07:49:22 -0400
Ross Reyes philip_...@yahoo.com wrote:

 
 On 6/23/2014 11:37 PM, Charlie wrote:
  In:
  Debian Jessie
  using:
  Lyx Version 2.0.6
 
  I wanted to put a horizontal line and beneath it a custom footer,
  that has the three elements:
 
  \lfoot - \cfoot - \rfoot
 
 This is what I use for my header/footer construction in the preamble
 
   \usepackage{graphics}
 \usepackage{fancyhdr}
 \lhead{\resizebox{0.44in}{!}{\includegraphics{A_Logo.jpg}}}
 \chead{Your Name, town, USA, 484-xxx-}
 \rhead{\resizebox{0.44in}{!}{\includegraphics{B_Logo.jpg}}}
 \lfoot{Company, Inc. - Proprietary and Confidential}
 \cfoot{}
 \rfoot{\thepage}
 \let\oldmaketitle=\maketitle
 \def\maketitle{\oldmaketitle\thispagestyle{fancy}}
 \renewcommand{\headrulewidth}{0.4pt}
 \renewcommand{\footrulewidth}{0.4pt}
 

Thanks Ross.

I have the header covered and the rest of the text doesn't do anything,
though left the text in the \lfoot and added text into the \cfoot and
the \rfoot.

There was no output at all.

 I think that would work in an article template but not in the letter
 one. I actually tried several variations of this and came up blank or
 received error messages from some attempts.

Thank you.
Charlie
-- 
Registered Linux User:- 329524
***

The keeping of bees is like the direction of
sunbeams. Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Jean-Marie Pacquet

Le 24/06/2014 05:37, Charlie a écrit :

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot

So that I can place three different names and address details onto the
first page of the document.


Hi Charlie,

Which version of KomaScript are you using?
On a recent version of the user's guide (scrguien.pdf dated 2012-05-15.) 
, there is an example (at the end of section 4.10, page 178) of a first 
page footer with 2 columns (left and right). It won't be very difficult 
to add a center column.


--
Jean-Marie



Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Jean-Marie Pacquet

Le 24/06/2014 16:20, Jean-Marie Pacquet a écrit :

[...] It won't be very difficult to add a center column.

If you have a 2.9x version of KomaScript (like me) the following 
modified example will do what you want. If your version is  3.x you 
should replace the first line \firstfoot{% with 
\setkomavar{firstfoot}{%.

All this has to be inserted in your .lco parameter file.


% Define a new letter foot

\firstfoot{%
  \parbox[t]{\textwidth}{\footnotesize
\rule{\linewidth}{2pt}
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Partners:}\\
  Jim Smith\\
  Russ Mayer
\end{tabular}%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Banks:}\\
  Citigroup\\
  Deutsche Bank
\end{tabular}%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Manager:}\\
  Jane Fonda\\[1ex]
  \multicolumn{1}{@{}l@{}}{Court Of Jurisdiction:}\\
  Great Plains
\end{tabular}%
\ifkomavarempty{frombank}{}{%
  \hfill
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\
\usekomavar{frombank}
  \end{tabular}%
}%
  }%
}

Cheers
--
Jean-Marie


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Charlie
On Tue, 24 Jun 2014 21:29:59 +0200
Jean-Marie Pacquet j...@pacquet.net wrote:

 Le 24/06/2014 16:20, Jean-Marie Pacquet a écrit :
  [...] It won't be very difficult to add a center column.
 
 If you have a 2.9x version of KomaScript (like me) the following 
 modified example will do what you want. If your version is  3.x you 
 should replace the first line \firstfoot{% with 
 \setkomavar{firstfoot}{%.
 All this has to be inserted in your .lco parameter file.
 
 
 % Define a new letter foot
 
 \firstfoot{%
\parbox[t]{\textwidth}{\footnotesize
  \rule{\linewidth}{2pt}
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{Partners:}\\
Jim Smith\\
Russ Mayer
  \end{tabular}%
  \hfill
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{Banks:}\\
Citigroup\\
Deutsche Bank
  \end{tabular}%
  \hfill
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{Manager:}\\
Jane Fonda\\[1ex]
\multicolumn{1}{@{}l@{}}{Court Of Jurisdiction:}\\
Great Plains
  \end{tabular}%
  \ifkomavarempty{frombank}{}{%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\
  \usekomavar{frombank}
\end{tabular}%
  }%
}%
 }
 
 Cheers

Thank you Jean-Marie,

The first example you pointed me to on page 178 works, and I was working
on tweaking it, and then I saw you had sent this email, which works
perfectly.

I feel like such an idiot. My only excuse is that I had looked on the
net and through other documentation that I didn't fine that reference
in the scrguien.pdf.

It's not unusual for me to go the hard way first.

I did look through the scrguien.pdf that you have directed me to in the
past and I've got in my LyX information file, but maybe I was already
overloaded with footnote information? I really have no excuse.

Anyway, as ever, and as previously thank you for your help and taking
the time to create the result. It's much appreciated and works
a treat.

Thank you once again.

Stay well,
Charlie

-- 
Registered Linux User:- 329524
***

The smallest seed of faith is better than the largest fruit of
happiness. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Ross Reyes


On 6/23/2014 11:37 PM, Charlie wrote:

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot


This is what I use for my header/footer construction in the preamble

 \usepackage{graphics}
\usepackage{fancyhdr}
\lhead{\resizebox{0.44in}{!}{\includegraphics{A_Logo.jpg}}}
\chead{Your Name, town, USA, 484-xxx-}
\rhead{\resizebox{0.44in}{!}{\includegraphics{B_Logo.jpg}}}
\lfoot{Company, Inc. - Proprietary and Confidential}
\cfoot{}
\rfoot{\thepage}
\let\oldmaketitle=\maketitle
\def\maketitle{\oldmaketitle\thispagestyle{fancy}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}





Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Charlie
On Tue, 24 Jun 2014 07:49:22 -0400
Ross Reyes <philip_...@yahoo.com> wrote:

> 
> On 6/23/2014 11:37 PM, Charlie wrote:
> > In:
> > Debian Jessie
> > using:
> > Lyx Version 2.0.6
> >
> > I wanted to put a horizontal line and beneath it a custom footer,
> > that has the three elements:
> >
> > \lfoot - \cfoot - \rfoot
> 
> This is what I use for my header/footer construction in the preamble
> 
>   \usepackage{graphics}
> \usepackage{fancyhdr}
> \lhead{\resizebox{0.44in}{!}{\includegraphics{A_Logo.jpg}}}
> \chead{Your Name, town, USA, 484-xxx-}
> \rhead{\resizebox{0.44in}{!}{\includegraphics{B_Logo.jpg}}}
> \lfoot{Company, Inc. - Proprietary and Confidential}
> \cfoot{}
> \rfoot{\thepage}
> \let\oldmaketitle=\maketitle
> \def\maketitle{\oldmaketitle\thispagestyle{fancy}}
> \renewcommand{\headrulewidth}{0.4pt}
> \renewcommand{\footrulewidth}{0.4pt}
> 

Thanks Ross.

I have the header covered and the rest of the text doesn't do anything,
though left the text in the \lfoot and added text into the \cfoot and
the \rfoot.

There was no output at all.

 I think that would work in an article template but not in the letter
 one. I actually tried several variations of this and came up blank or
 received error messages from some attempts.

Thank you.
Charlie
-- 
Registered Linux User:- 329524
***

The keeping of bees is like the direction of
sunbeams. Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Jean-Marie Pacquet

Le 24/06/2014 05:37, Charlie a écrit :

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot

So that I can place three different names and address details onto the
first page of the document.


Hi Charlie,

Which version of KomaScript are you using?
On a recent version of the user's guide (scrguien.pdf dated 2012-05-15.) 
, there is an example (at the end of section 4.10, page 178) of a first 
page footer with 2 columns (left and right). It won't be very difficult 
to add a center column.


--
Jean-Marie



Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Jean-Marie Pacquet

Le 24/06/2014 16:20, Jean-Marie Pacquet a écrit :

[...] It won't be very difficult to add a center column.

If you have a 2.9x version of KomaScript (like me) the following 
modified example will do what you want. If your version is > 3.x you 
should replace the first line "\firstfoot{%" with 
"\setkomavar{firstfoot}{%".

All this has to be inserted in your .lco parameter file.


% Define a new letter foot

\firstfoot{%
  \parbox[t]{\textwidth}{\footnotesize
\rule{\linewidth}{2pt}
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Partners:}\\
  Jim Smith\\
  Russ Mayer
\end{tabular}%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Banks:}\\
  Citigroup\\
  Deutsche Bank
\end{tabular}%
\hfill
\begin{tabular}[t]{l@{}}%
  \multicolumn{1}{@{}l@{}}{Manager:}\\
  Jane Fonda\\[1ex]
  \multicolumn{1}{@{}l@{}}{Court Of Jurisdiction:}\\
  Great Plains
\end{tabular}%
\ifkomavarempty{frombank}{}{%
  \hfill
  \begin{tabular}[t]{l@{}}%
\multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\
\usekomavar{frombank}
  \end{tabular}%
}%
  }%
}

Cheers
--
Jean-Marie


Re: Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-24 Thread Charlie
On Tue, 24 Jun 2014 21:29:59 +0200
Jean-Marie Pacquet <j...@pacquet.net> wrote:

> Le 24/06/2014 16:20, Jean-Marie Pacquet a écrit :
> > [...] It won't be very difficult to add a center column.
> >
> If you have a 2.9x version of KomaScript (like me) the following 
> modified example will do what you want. If your version is > 3.x you 
> should replace the first line "\firstfoot{%" with 
> "\setkomavar{firstfoot}{%".
> All this has to be inserted in your .lco parameter file.
> 
> 
> % Define a new letter foot
> 
> \firstfoot{%
>\parbox[t]{\textwidth}{\footnotesize
>  \rule{\linewidth}{2pt}
>  \begin{tabular}[t]{l@{}}%
>\multicolumn{1}{@{}l@{}}{Partners:}\\
>Jim Smith\\
>Russ Mayer
>  \end{tabular}%
>  \hfill
>  \begin{tabular}[t]{l@{}}%
>\multicolumn{1}{@{}l@{}}{Banks:}\\
>Citigroup\\
>Deutsche Bank
>  \end{tabular}%
>  \hfill
>  \begin{tabular}[t]{l@{}}%
>\multicolumn{1}{@{}l@{}}{Manager:}\\
>Jane Fonda\\[1ex]
>\multicolumn{1}{@{}l@{}}{Court Of Jurisdiction:}\\
>Great Plains
>  \end{tabular}%
>  \ifkomavarempty{frombank}{}{%
>\hfill
>\begin{tabular}[t]{l@{}}%
>  \multicolumn{1}{@{}l@{}}{\usekomavar*{frombank}:}\\
>  \usekomavar{frombank}
>\end{tabular}%
>  }%
>}%
> }
> 
> Cheers

Thank you Jean-Marie,

The first example you pointed me to on page 178 works, and I was working
on tweaking it, and then I saw you had sent this email, which works
perfectly.

I feel like such an idiot. My only excuse is that I had looked on the
net and through other documentation that I didn't fine that reference
in the scrguien.pdf.

It's not unusual for me to go the hard way first.

I did look through the scrguien.pdf that you have directed me to in the
past and I've got in my LyX information file, but maybe I was already
overloaded with footnote information? I really have no excuse.

Anyway, as ever, and as previously thank you for your help and taking
the time to create the result. It's much appreciated and works
a treat.

Thank you once again.

Stay well,
Charlie

-- 
Registered Linux User:- 329524
***

The smallest seed of faith is better than the largest fruit of
happiness. .Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-23 Thread Charlie

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot

So that I can place three different names and address details onto the
first page of the document.

I have googled and I have read custom header and footer documents as
well as .pdf files that tell me a great deal about headers and footers
and even used a footer file that was from the wrong KOMA script or
something and was chastised for attempting to use it by LyX.

Looked through my DIN.lco and every place possible where tweak might
be made. I never realised there were so many LaTeX sites that had
something about footnotes on them.

After futie attempts have had a million error messages and openings that
conflicted when I used fancy instead of default, and on and on.

Tried longtable and multirow, footnotesize and just about everything
that was suggested in all my readings with different parameters and I
have given it best. So I am here again.

The one thing I haven't done, is create my own template to do what I
want rather than use the letter template. In the past I used a template
I made myself, but it was just created from a KOMA article template, and
I think when I discovered the letter template I liked it better? But
can only imagine that's why I changed. Why else?

Anyway it's done my head in, and I realise it's laziness in a way
because eventually, maybe a year from now I'll read something that puts
it all together and I'll be able to do it. Or maybe never and accept
living without it.

But if someone can help me in this it would be truly great.

It's just stubbornness that makes me want to use the template like
this, and a certain amount of ire that I can't find where this type of
footnote for a letter, is documented. Because it's a very popular way to
create a letter. With something like manager, assistant manager and
office address, or president, secretary and treasurer, or similar
and their contact details in the footer of a letter?

It's probably somewhere I have just not thought to look, or under a
heading I haven' associated with a letter.

Thanks in advance,
Charlie
-- 
Registered Linux User:- 329524
***

Whether the flower looks better in the nosegay than in the
meadow where it grew and we had to wet our feet to get it! Is
the scholastic air any advantage? ..Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-23 Thread Charlie

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot

So that I can place three different names and address details onto the
first page of the document.

I have googled and I have read custom header and footer documents as
well as .pdf files that tell me a great deal about headers and footers
and even used a footer file that was from the wrong KOMA script or
something and was chastised for attempting to use it by LyX.

Looked through my DIN.lco and every place possible where tweak might
be made. I never realised there were so many LaTeX sites that had
something about footnotes on them.

After futie attempts have had a million error messages and openings that
conflicted when I used fancy instead of default, and on and on.

Tried longtable and multirow, footnotesize and just about everything
that was suggested in all my readings with different parameters and I
have given it best. So I am here again.

The one thing I haven't done, is create my own template to do what I
want rather than use the letter template. In the past I used a template
I made myself, but it was just created from a KOMA article template, and
I think when I discovered the letter template I liked it better? But
can only imagine that's why I changed. Why else?

Anyway it's done my head in, and I realise it's laziness in a way
because eventually, maybe a year from now I'll read something that puts
it all together and I'll be able to do it. Or maybe never and accept
living without it.

But if someone can help me in this it would be truly great.

It's just stubbornness that makes me want to use the template like
this, and a certain amount of ire that I can't find where this type of
footnote for a letter, is documented. Because it's a very popular way to
create a letter. With something like manager, assistant manager and
office address, or president, secretary and treasurer, or similar
and their contact details in the footer of a letter?

It's probably somewhere I have just not thought to look, or under a
heading I haven' associated with a letter.

Thanks in advance,
Charlie
-- 
Registered Linux User:- 329524
***

Whether the flower looks better in the nosegay than in the
meadow where it grew and we had to wet our feet to get it! Is
the scholastic air any advantage? ..Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


Footer in Koma letter - \lfoot - \cfoot - \rfoot

2014-06-23 Thread Charlie

In:
Debian Jessie
using:
Lyx Version 2.0.6

I wanted to put a horizontal line and beneath it a custom footer, that
has the three elements:

\lfoot - \cfoot - \rfoot

So that I can place three different names and address details onto the
first page of the document.

I have googled and I have read custom header and footer documents as
well as .pdf files that tell me a great deal about headers and footers
and even used a footer file that was from the wrong KOMA script or
something and was chastised for attempting to use it by LyX.

Looked through my DIN.lco and every place possible where tweak might
be made. I never realised there were so many LaTeX sites that had
something about footnotes on them.

After futie attempts have had a million error messages and openings that
conflicted when I used "fancy" instead of default, and on and on.

Tried longtable and multirow, footnotesize and just about everything
that was suggested in all my readings with different parameters and I
have given it best. So I am here again.

The one thing I haven't done, is create my own template to do what I
want rather than use the letter template. In the past I used a template
I made myself, but it was just created from a KOMA article template, and
I think when I discovered the letter template I liked it better? But
can only imagine that's why I changed. Why else?

Anyway it's done my head in, and I realise it's laziness in a way
because eventually, maybe a year from now I'll read something that puts
it all together and I'll be able to do it. Or maybe never and accept
living without it.

But if someone can help me in this it would be truly great.

It's just stubbornness that makes me want to use the template like
this, and a certain amount of ire that I can't find where this type of
footnote for a letter, is documented. Because it's a very popular way to
create a letter. With something like manager, assistant manager and
office address, or president, secretary and treasurer, or similar
and their contact details in the footer of a letter?

It's probably somewhere I have just not thought to look, or under a
heading I haven' associated with a letter.

Thanks in advance,
Charlie
-- 
Registered Linux User:- 329524
***

Whether the flower looks better in the nosegay than in the
meadow where it grew and we had to wet our feet to get it! Is
the scholastic air any advantage? ..Henry David Thoreau

***

Debian GNU/Linux - just the best way to create magic

-


KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Rich Shepard

  In multipage business letters here in the US all continuation pages should
have a header in the upper left of the page containing

Addressee's Name
Date as shown on page 1
Page number

  While I thought that the KOMA-Script Letter 2 configuration I use had this
capability and how to do this was worked out years ago I don't have a record
of how to do this in my saved messages and I am not finding the solution in
my Web searches.

  Please point me to a resource that explains how to add this continuation
page header.

Thanks in advance,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



  1   2   3   4   5   6   7   8   9   10   >