]> git.lyx.org Git - features.git/commitdiff
frletter: new layout and template file for the frletter class (for writing French...
authorUwe Stöhr <uwestoehr@web.de>
Sat, 2 Oct 2010 00:43:39 +0000 (00:43 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 2 Oct 2010 00:43:39 +0000 (00:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35550 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_manifest.py
lib/Makefile.am
lib/layouts/frletter.layout [new file with mode: 0644]
lib/templates/frletter.lyx [new file with mode: 0644]

index 8540de980dbab3e38de2e6ded45401cba6041321..321db06d94870ac6a5d8a010a92685da6a9dcb2d 100644 (file)
@@ -1350,6 +1350,7 @@ lib_templates_files = Split('''
     elsarticle.lyx
     es_beamer-conference-ornate-20min.lyx
     fr_beamer-conference-ornate-20min.lyx
+    frletter.lyx
     g-brief-de.lyx
     g-brief-en.lyx
     g-brief2.lyx
@@ -2772,6 +2773,7 @@ lib_layouts_files = Split('''
     extletter.layout
     extreport.layout
     foils.layout
+    frletter.layout
     g-brief.layout
     g-brief2.layout
     heb-article.layout
index 0a0bcf253056b748cf1c10a1a74cc1b8a96c391d..330057806d0bc43eb6941a86eea8fba6500b5543 100644 (file)
@@ -1081,6 +1081,7 @@ dist_layouts_DATA =\
        layouts/figs-within-sections.module \
        layouts/foils.layout \
        layouts/foottoend.module \
+       layouts/frletter.layout \
        layouts/g-brief.layout \
        layouts/g-brief2.layout \
        layouts/hanging.module \
@@ -1236,6 +1237,7 @@ dist_templates_DATA = \
        templates/elsarticle.lyx \
        templates/es_beamer-conference-ornate-20min.lyx \
        templates/fr_beamer-conference-ornate-20min.lyx \
+       templates/frletter.lyx \
        templates/g-brief2.lyx \
        templates/g-brief-de.lyx \
        templates/g-brief-en.lyx \
diff --git a/lib/layouts/frletter.layout b/lib/layouts/frletter.layout
new file mode 100644 (file)
index 0000000..5111982
--- /dev/null
@@ -0,0 +1,46 @@
+#% Do not delete the line below; configure depends on this
+#  \DeclareLaTeXClass[frletter]{letter (frletter)}
+# Layout file for the frletter class.
+# Author : Liviu Andronic and Uwe Stöhr
+
+Format 28
+
+# Read the definitions from letter.layout
+Input letter.layout
+
+# change placement within LyX
+Style My_Address
+       Margin                  Static
+End
+
+Style Send_To_Address
+       Margin                  Right_Address_Box
+End
+
+
+Style Date
+       Margin                  Right_Address_Box
+       LatexType               Command
+       LatexName               date
+       LabelSep                xxx
+       ParSkip                 0.4
+       TopSep                  0.9
+       BottomSep               0.5
+       ParSep                  1
+       Align                   Left
+       LabelType               No_Label
+End
+
+
+# add more space as in stdletter.inc because the French words are wider
+Style Opening
+       LeftMargin              Fermeture:xxx
+End
+
+Style Signature
+       LeftMargin              Fermeture:xxx
+End
+
+Style Closing
+       LeftMargin              Fermeture:xxx
+End
diff --git a/lib/templates/frletter.lyx b/lib/templates/frletter.lyx
new file mode 100644 (file)
index 0000000..997c3e5
--- /dev/null
@@ -0,0 +1,180 @@
+#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 401
+\begin_document
+\begin_header
+\textclass frletter
+\use_default_options false
+\maintain_unincluded_children false
+\language french
+\inputencoding auto
+\fontencoding global
+\font_roman default
+\font_sans default
+\font_typewriter default
+\font_default_family default
+\use_xetex false
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
+
+\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
+\paperfontsize default
+\spacing single
+\use_hyperref false
+\papersize default
+\use_geometry false
+\use_amsmath 0
+\use_esint 0
+\use_mhchem 1
+\use_mathdots 1
+\cite_engine basic
+\use_bibtopic false
+\use_indices false
+\paperorientation portrait
+\suppress_date false
+\index Index
+\shortcut idx
+\color #008000
+\end_index
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\paragraph_indentation default
+\quotes_language french
+\papercolumns 1
+\papersides 1
+\paperpagestyle default
+\tracking_changes false
+\output_changes false
+\html_math_output 0
+\html_be_strict false
+\end_header
+
+\begin_body
+
+\begin_layout My Address
+<My Name>
+\begin_inset Newline newline
+\end_inset
+
+<My Street>
+\begin_inset Newline newline
+\end_inset
+
+<My Town>
+\end_layout
+
+\begin_layout Send To Address
+<Send To Name> 
+\begin_inset Newline newline
+\end_inset
+
+<Send To Street> 
+\begin_inset Newline newline
+\end_inset
+
+<Send To Town>
+\end_layout
+
+\begin_layout Date
+Paris, le 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
+\backslash
+today
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Signature
+<Your signature>
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+This field MUST be before the "Opening" field!
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Opening
+<Objet: Demande de stage>
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+
+\begin_inset Newline newline
+\end_inset
+
+<Madame, Monsieur,>
+\end_layout
+
+\begin_layout Standard
+<Text of Your 
+\begin_inset Quotes fld
+\end_inset
+
+Letter
+\begin_inset Quotes frd
+\end_inset
+
+.
+ To create a real letter: just replace erase all the text in <> (including
+ the 
+\begin_inset Quotes eld
+\end_inset
+
+<>
+\begin_inset Quotes erd
+\end_inset
+
+ characters) with the desired text.> 
+\end_layout
+
+\begin_layout Standard
+<Text of Your Letter.
+ To create a real letter, just replace erase all the text in <> (including
+ the 
+\begin_inset Quotes eld
+\end_inset
+
+<>
+\begin_inset Quotes erd
+\end_inset
+
+ characters) with the desired text.> 
+\end_layout
+
+\begin_layout Closing
+<Veuillez agréer, Madame, Monsieur, l'expression de mes sentiments distingués.>
+\end_layout
+
+\begin_layout cc
+<cc>
+\end_layout
+
+\begin_layout encl
+<encl>
+\end_layout
+
+\end_body
+\end_document