From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: letterhead and signature in odt export Date: Tue, 30 Oct 2018 01:55:05 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fd004c05796bd191" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHMzG-0006dE-V4 for emacs-orgmode@gnu.org; Tue, 30 Oct 2018 01:54:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHMzE-0004yv-UK for emacs-orgmode@gnu.org; Tue, 30 Oct 2018 01:54:46 -0400 Received: from mail-it1-x136.google.com ([2607:f8b0:4864:20::136]:53657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHMzE-0004sQ-Kh for emacs-orgmode@gnu.org; Tue, 30 Oct 2018 01:54:44 -0400 Received: by mail-it1-x136.google.com with SMTP id f16-v6so4879389ita.3 for ; Mon, 29 Oct 2018 22:54:36 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --000000000000fd004c05796bd191 Content-Type: text/plain; charset="UTF-8" in North America it's letter-of-reference season for professors, and I am writing a lot of them. These are some of the only documents I still compose in libreoffice, because I need to use a letterhead that contains both image and text, and I need to insert a .png of my signature near the bottom. I would much prefer to compose these letter in org and them export. In order to so I would need to preserve the letterhead and the signature somehow. Both these sections in my current letters occur within the section which I guess is always replaced by org on export. My immediate question: Is there a way to preserve some of these contents? More generally: do people have template files they are very satisfied with? I would be happy to go straight to pdf via latex, if it were easy to accomplish the same effect that way I don't use latex at all myself so it might not be so easy for me :-/. For completeness, here is the xml for my letterhead (sorry it's rather long): --------- University of Toronto dept. of history Rm-2074 sidney smith, 100 st. george street, TORONTO, ONTARIO M5S 3G3 CANADATelephone 416-978-3363 Fax 416-978-4810 ------ and here is my signature: -------- University of Toronto dept. of history Rm-2074 sidney smith, 100 st. george street, TORONTO, ONTARIO M5S 3G3 CANADATelephone 416-978-3363 Fax 416-978-4810 -------------------- As you can see, one occurs at the beginning of the element, and the other at the end. Can I somehow insert them on export? Thanks as always for your help. --000000000000fd004c05796bd191 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
in North America it= 's letter-of-reference season for professors, and I am writing a lot of= them. These are some of the only documents I still compose in libreoffice,= because I need to use a letterhead that contains both image and text, and = I need to insert a .png of my signature near the bottom.=C2=A0 I would much= prefer to compose these letter in org and them export. In order to so I wo= uld need to preserve the letterhead and the signature somehow.=C2=A0 Both t= hese sections in my current letters occur within the
<off= ice:text>
</office:text>

sectio= n which I guess is always replaced by org on export.=C2=A0 My immediate que= stion: Is there a way to preserve some of these contents? More generally: d= o people have template files they are very satisfied with? I would be happy= to go straight to pdf via latex, if it were easy to accomplish the same ef= fect that way I don't use latex at all myself so it might not be so eas= y for me :-/.

For completeness, here is the xml fo= r my letterhead (sorry it's rather long):

----= -----
<office:body><office:text><text:sequence= -decls><text:sequence-decl text:display-outline-level=3D"2"= text:separation-character=3D"." text:name=3D"Illustration&q= uot;/><text:sequence-decl text:display-outline-level=3D"2" = text:separation-character=3D"." text:name=3D"Table"/>= ;<text:sequence-decl text:display-outline-level=3D"2" text:sep= aration-character=3D"." text:name=3D"Text"/><text= :sequence-decl text:display-outline-level=3D"0" text:name=3D"= ;Drawing"/><text:sequence-decl text:display-outline-level=3D&quo= t;0" text:name=3D"Figure"/><text:sequence-decl text:di= splay-outline-level=3D"2" text:separation-character=3D".&quo= t; text:name=3D"Equation"/><text:sequence-decl text:display= -outline-level=3D"2" text:separation-character=3D"." te= xt:name=3D"Listing"/></text:sequence-decls><text:h te= xt:style-name=3D"P6" text:outline-level=3D"1"/><t= able:table table:name=3D"Table1" table:style-name=3D"Table1&= quot;><table:table-column table:style-name=3D"Table1.A"/>= ;<table:table-column table:style-name=3D"Table1.B"/><tab= le:table-row table:style-name=3D"Table1.1"><table:table-cel= l table:style-name=3D"Table1.A1" office:value-type=3D"string= "><text:p text:style-name=3D"P5"><draw:frame dra= w:style-name=3D"fr1" draw:name=3D"Image1" text:anchor-t= ype=3D"as-char" svg:width=3D"1.857cm" svg:height=3D&quo= t;3.025cm" draw:z-index=3D"0"><draw:image xlink:href= =3D"Pictures/100041D600001B2F00002FDA8AF7D675B9CA7740.wmf" xlink:= type=3D"simple" xlink:show=3D"embed" xlink:actuate=3D&q= uot;onLoad" loext:mime-type=3D"image/x-wmf"/><draw:ima= ge xlink:href=3D"Pictures/1000020100000107000001CF636AB597708AB63A.png= " xlink:type=3D"simple" xlink:show=3D"embed" xlink= :actuate=3D"onLoad" loext:mime-type=3D"image/png"/>&= lt;/draw:frame></text:p></table:table-cell><table:table-c= ell table:style-name=3D"Table1.A1" office:value-type=3D"stri= ng"><text:p text:style-name=3D"P5"><text:span te= xt:style-name=3D"T1">University of Toronto<text:tab/><= ;text:tab/></text:span><text:span text:style-name=3D"T2&qu= ot;> <text:s text:c=3D"2"/></text:span></text:p= ><text:p text:style-name=3D"P5"><text:span text:style= -name=3D"T3">dept. of history</text:span><text:span t= ext:style-name=3D"T4"> <text:s/></text:span></t= ext:p><text:p text:style-name=3D"P4"><text:span text:= style-name=3D"T5">Rm-2074 sidney smith, 100 st. george street,= TORONTO, ONTARIO <text:s/>M5S 3G3 <text:s/>CANADA</text:spa= n></text:p><text:p text:style-name=3D"P4"><text= :span text:style-name=3D"T5">Telephone 416-978-3363 <text:s= text:c=3D"3"/>Fax 416-978-4810 <text:s/></text:span&= gt;</text:p></table:table-cell></table:table-row></tab= le:table><text:h text:style-name=3D"P7" text:outline-level= =3D"1"><text:bookmark text:name=3D"org54567cc"/&g= t;
------

and here is my signature:

--------
<office:body><office:text&= gt;<text:sequence-decls><text:sequence-decl text:display-outline-l= evel=3D"2" text:separation-character=3D"." text:name=3D= "Illustration"/><text:sequence-decl text:display-outline-le= vel=3D"2" text:separation-character=3D"." text:name=3D&= quot;Table"/><text:sequence-decl text:display-outline-level=3D&q= uot;2" text:separation-character=3D"." text:name=3D"Tex= t"/><text:sequence-decl text:display-outline-level=3D"0&quo= t; text:name=3D"Drawing"/><text:sequence-decl text:display-= outline-level=3D"0" text:name=3D"Figure"/><text:s= equence-decl text:display-outline-level=3D"2" text:separation-cha= racter=3D"." text:name=3D"Equation"/><text:sequen= ce-decl text:display-outline-level=3D"2" text:separation-characte= r=3D"." text:name=3D"Listing"/></text:sequence-de= cls><text:h text:style-name=3D"P6" text:outline-level=3D&qu= ot;1"/><table:table table:name=3D"Table1" table:style-= name=3D"Table1"><table:table-column table:style-name=3D&quo= t;Table1.A"/><table:table-column table:style-name=3D"Table1= .B"/><table:table-row table:style-name=3D"Table1.1">= ;<table:table-cell table:style-name=3D"Table1.A1" office:value= -type=3D"string"><text:p text:style-name=3D"P5"&g= t;<draw:frame draw:style-name=3D"fr1" draw:name=3D"Image1= " text:anchor-type=3D"as-char" svg:width=3D"1.857cm&quo= t; svg:height=3D"3.025cm" draw:z-index=3D"0"><dra= w:image xlink:href=3D"Pictures/100041D600001B2F00002FDA8AF7D675B9CA774= 0.wmf" xlink:type=3D"simple" xlink:show=3D"embed" = xlink:actuate=3D"onLoad" loext:mime-type=3D"image/x-wmf"= ;/><draw:image xlink:href=3D"Pictures/1000020100000107000001CF63= 6AB597708AB63A.png" xlink:type=3D"simple" xlink:show=3D"= ;embed" xlink:actuate=3D"onLoad" loext:mime-type=3D"ima= ge/png"/></draw:frame></text:p></table:table-cell>= ;<table:table-cell table:style-name=3D"Table1.A1" office:value= -type=3D"string"><text:p text:style-name=3D"P5"&g= t;<text:span text:style-name=3D"T1">University of Toronto&l= t;text:tab/><text:tab/></text:span><text:span text:style-= name=3D"T2"> <text:s text:c=3D"2"/></text:s= pan></text:p><text:p text:style-name=3D"P5"><te= xt:span text:style-name=3D"T3">dept. of history</text:span&= gt;<text:span text:style-name=3D"T4"> <text:s/></t= ext:span></text:p><text:p text:style-name=3D"P4">&= lt;text:span text:style-name=3D"T5">Rm-2074 sidney smith, 100 = st. george street, TORONTO, ONTARIO <text:s/>M5S 3G3 <text:s/>C= ANADA</text:span></text:p><text:p text:style-name=3D"P4= "><text:span text:style-name=3D"T5">Telephone 416-9= 78-3363 <text:s text:c=3D"3"/>Fax 416-978-4810 <text:s/&= gt;</text:span></text:p></table:table-cell></table:tab= le-row></table:table><text:h text:style-name=3D"P7" t= ext:outline-level=3D"1"><text:bookmark text:name=3D"or= g54567cc"/>
--------------------

As you can see, one occurs at the beginning of the <office:text> ele= ment, and the other at the end. Can I somehow insert them on export?

Thanks as always for your help.
--000000000000fd004c05796bd191--