Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In the german Koma Script Book I read about the elegant way to predefine the personal address in a .lco file like this

~/texmf/tex/latex/jd_private_v001.lco # <- added answer here for other readers

\ProvidesFile{JohnDoePrivate.lco}[2012/04/11]
\setkomavar{fromname}{John Doe}
\setkomavar{signature}{John Doe}
\setkomavar{fromaddress}{Iceroad 4\\ Northpole}
...

And include it in the header of a letter like

~/my/work/letters/letter.tex

\documentclass[foldmarks=true,foldmarks=blmtP,%
JohnDoePrivate,version=last]{scrlttr2}
\usepackage[utf8]{inputenc}

\begin{document}
\opening{Dear Peter,}

i just want to say "hi".

\closing{Best wishes}
\end{letter}
\end{document}

My first idea was to create one .lco per sender address like JohnDoePrivate.lco, JohnDoeWork.lco and store them global on my Linux system. But where?

If John moves i could create a jd_private_v002.lco and LaTeX will hopefully take the latest address. I could also use the old .tex files too, if i force LaTeX to use a special version.

share|improve this question
3  
Probably in ~/texmf/tex/latex/scrlettraddresses –  egreg Nov 6 '12 at 23:18

1 Answer 1

up vote 4 down vote accepted

Depends to your system: Linux or Windows.

However, it is the same as creating an own package and saving it in the local TEXMF tree which can be for Linux

~/texmf/[TDS]
/usr/local/texmf/[TDS]
/usr/local/texlive/texmf-local/[TDS]

and so on. For MiKTeX you can define own trees and add them to the root base.

And in all directories you have to create a TDS (TeX Directory Structure), as Enrico already pointed out.

share|improve this answer
    
sorry, but usr/local/ is not system wide. –  Herbert Nov 7 '12 at 14:41
    
@Herbert /usr/local is of course system wide, in the sense that any user can access it. –  egreg Nov 7 '12 at 18:33
    
no, only local user in the subnet. –  Herbert Nov 7 '12 at 21:18
    
ok, i correct my statement. –  Jonas Stein Nov 9 '12 at 16:27
    
I placed the template to ~/texmf/tex/latex/JohnDoePrivate2.lco and it works. I did not place it to /usr/... because I think private addresses should be saved in private directories. –  Jonas Stein Nov 9 '12 at 16:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.