From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter de Jong Subject: Re: Remove \maketitle from scrlttr2 latex export Date: Sun, 31 Jul 2011 13:55:48 +0200 Message-ID: References: <81bowb8qkk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=20cf307f30ee1055f204a95c3208 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnUcZ-0007sV-B2 for emacs-orgmode@gnu.org; Sun, 31 Jul 2011 07:55:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QnUcX-0001Cd-Re for emacs-orgmode@gnu.org; Sun, 31 Jul 2011 07:55:51 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:62355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnUcX-0001CU-K1 for emacs-orgmode@gnu.org; Sun, 31 Jul 2011 07:55:49 -0400 Received: by vwm42 with SMTP id 42so1938722vwm.0 for ; Sun, 31 Jul 2011 04:55:49 -0700 (PDT) In-Reply-To: <81bowb8qkk.fsf@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --20cf307f30ee1055f204a95c3208 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Perhaps this is indeed a latex issue related to the scrlttr2 class. I have reverted back to Jambu's original .scrlttr2 file, added the BIND, changed [jambu] to [pdj] for the LCO, removed the *encl section. I also applied the patch to org-latex.el. No maketitle appears in the .tex, but from the commandline i also have erro= rs: /---- | (c:\Users\pjo16137\Dropbox\Organizer\export\brief.aux) | ("C:\Program Files (x86)\MiKTeX\tex\latex\base\ts1cmr.fd") | ! Undefined control sequence. | \select@language ... \@empty }\languageshorthands | {none}\babel@beginsave = \cs.. | l.24 \begin{document} | | ? \---- Maybe this error results in the blank first page with "none". This issue has not much to do anymore with org-mode, I'll try to find some Latex help. Thanx Jambu for the help. 2011/7/30 Jambunathan K : > > Hello Peter > > Thanks for your interest in scrlttr2. > >> Hi, >> >> Since a few days i use the scrlttr2 org-mode implementation of >> Jambunathan. His work was posted in this list: >> http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01264.html >> http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01266.html >> >> His 4 .el files are placed in ~/emacs/contrib/scrlttr2 and are loaded >> in _emacs (commented out my own configuration). >> I then start emacs, open brief.scrlttr2, Ctrl-c Ctrl-e d opens the >> attached pdf file. I included the intermediate brief.tex. >> >> As the pdf shows, there is a for the most blank first page with "none" >> from the \maketitle statement. Whatever i do, this statement keeps >> getting generated. >> >> How can I remove this? >> > > From my end, I am seeing that \maketitle is no longer produced. Did you > revert the org/scrlttr2 file after adding the following line? > > ,---- > | #+BIND: org-export-latex-title-command "" > `---- > > As an alternative you can also do a C-c C-c on the above line and you > will find yourself being questioned with: > > ,---- > | Allow BIND values in this buffer? (y or n) =C2=A0y > `---- > > The generation of above query is controlled by the following variable > > ,----[ C-h v org-export-allow-BIND RET ] > | org-export-allow-BIND is a variable defined in `org-exp.el'. > | Its value is confirm > | > | Documentation: > | Non-nil means allow #+BIND to define local variable values for export. > | This is a potential security risk, which is why the user must confirm t= he > | use of these lines. > | > | You can customize this variable. > | > | [back] > `---- > > You may also want to check that variable. > > > On export to scrlttr2, Org creates a "*Org PDF LaTeX Output*" buffer > that contains some errors [1]. =C2=A0Inspite of this a pdf file is > produced. The errors are because of extra newlines in \encl and \closing > commands. The attached "patch" to org-latex.el removes this extra > newline. If there is some interest from maintainer's side I can create a > formal patch for org-latex.el[2]. > > > > > As a side note, if the "to" section of the scrlttr2 file contains a bbdb > link as below > > ,---- > | ** to > | =C2=A0 =C2=A0[[bbdb:Richard%20Stallman][bbdb:Richard Stallman]] > `---- > > > and you have BBDB entry with the address for the above person as shown > below > > ,---- > | Richard Stallman - Free Software Foundation > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Office: 51 Franklin St > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Boston, MA =C2= =A002110 > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0US > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 net: rms@gnu.org > `---- > > > then org-scrlttr2 is intelligent enough to expand the snail mail address > automagically. > > Jambunathan K. > > > Footnotes: > > [1] Dump of error lines while compiling tex file generated by > scrlttr2. Note the reference to paragraphs in \encl and \closing lines. > > ,---- > | Overfull \hbox (142.92982pt too wide) in paragraph at lines 43--43 > | $[]$ > | Location field: empty > | Reference line: only place and date > | Title: no > | Subject: before opening > | Runaway argument? > | { > | ! Paragraph ended before \encl was complete. > | > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\p= ar > | l.50 > | > | ! Extra }, or forgotten \endgroup. > | l.57 } > | > | Runaway argument? > | { > | ! Paragraph ended before \closing was complete. > | > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\p= ar > | l.60 > | > | ! Extra }, or forgotten \endgroup. > | l.62 } > | > | [1{C:/Documents and Settings/kjambunathan/Local Settings/Application Da= ta/MiKTe > | X/2.8/pdftex/config/pdftex.map}] > | ("c:\Documents and Settings\kjambunathan\My Documents\My Data\tmp-orgmo= de\scrlt > | tr2\sample-scrlttr2.aux") ) > | (see the transcript file for additional information){C:/Program Files/M= iKTeX 2. > | 8/fonts/enc/dvips/fontname/8r.enc} | helvetic/uhvr8a.pfb> | fb> > | Output written on sample-scrlttr2.pdf (1 page, 26984 bytes). > | Transcript written on sample-scrlttr2.log. > `---- > > [2] scrlttr2 is a hack. Nevertheless a clean patch can be applied to > org-latex.el by moving the "\n" to the sectioning options of > org-export-latex-classes. > > -- > > --=20 Met vriendelijke groet, Peter de Jong --20cf307f30ee1055f204a95c3208 Content-Type: application/x-tex; name="brief.tex" Content-Disposition: attachment; filename="brief.tex" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gqry9rtn1 JSBDcmVhdGVkIDIwMTEtMDctMzEgem8gMTM6MzEKXGRvY3VtZW50Y2xhc3NbcGRqXXtzY3JsdHRy Mn0KXHVzZXBhY2thZ2VbdXRmOF17aW5wdXRlbmN9Clx1c2VwYWNrYWdlW1QxXXtmb250ZW5jfQpc dXNlcGFja2FnZXtmaXhsdHgyZX0KXHVzZXBhY2thZ2V7Z3JhcGhpY3h9Clx1c2VwYWNrYWdle2xv bmd0YWJsZX0KXHVzZXBhY2thZ2V7ZmxvYXR9Clx1c2VwYWNrYWdle3dyYXBmaWd9Clx1c2VwYWNr YWdle3NvdWx9Clx1c2VwYWNrYWdle3RleHRjb21wfQpcdXNlcGFja2FnZXttYXJ2b3N5bX0KXHVz ZXBhY2thZ2V7d2FzeXN5bX0KXHVzZXBhY2thZ2V7bGF0ZXhzeW19Clx1c2VwYWNrYWdle2Ftc3N5 bWJ9Clx1c2VwYWNrYWdle2h5cGVycmVmfQpcdG9sZXJhbmNlPTEwMDAKXHByb3ZpZGVjb21tYW5k e1xhbGVydH1bMV17XHRleHRiZnsjMX19CgpcdGl0bGV7YnJpZWZ9ClxhdXRob3J7fQpcZGF0ZXtc dG9kYXl9CgpcYmVnaW57ZG9jdW1lbnR9CgoKCgpcYmVnaW57bGV0dGVyfQogewogICBCbGEKfQoK XHNldGtvbWF2YXJ7c3ViamVjdH0gewogICBDb21wb3NpbmcgbGV0dGVycyB1c2luZyBzY3JsdHRy Mgp9Cgpcb3BlbmluZyB7CiAgIEZyaWVuZHMKfQoKICAgSSB3b3VsZCBsaWtlIHRvIHNoYXJlIHdp dGggeW91IGEgbGl0dGxlIHV0aWxpdHkgdGhhdCBoZWxwcyBtZQogICBjb21wb3NlIGZvcm1hbCBs ZXR0ZXJzIHdpdGhpbiBPcmcgbW9kZS4gV291bGQgeW91IGxpa2UgdG8gdHJ5IGl0PwoKXGNsb3Np bmcgewogICBUaGFua3MKfQpcZW5ke2xldHRlcn0KClxlbmR7ZG9jdW1lbnR9 --20cf307f30ee1055f204a95c3208 Content-Type: application/octet-stream; name="brief.scrlttr2" Content-Disposition: attachment; filename="brief.scrlttr2" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gqry9ztf2 IytCSU5EOiBvcmctZXhwb3J0LWxhdGV4LXRpdGxlLWNvbW1hbmQgIiIKIytMYVRlWF9DTEFTUzog c2NybHR0cjIKIytMYVRlWF9DTEFTU19PUFRJT05TOiBbcGRqXQojK09QVElPTlM6IHRvYzpuaWwK CiogbGV0dGVyCgoqKiB0bwogICBCbGEKKiogc3ViamVjdAogICBDb21wb3NpbmcgbGV0dGVycyB1 c2luZyBzY3JsdHRyMgoKKiogb3BlbmluZwogICBGcmllbmRzCgoqKiBib2R5CiAgIEkgd291bGQg bGlrZSB0byBzaGFyZSB3aXRoIHlvdSBhIGxpdHRsZSB1dGlsaXR5IHRoYXQgaGVscHMgbWUKICAg Y29tcG9zZSBmb3JtYWwgbGV0dGVycyB3aXRoaW4gT3JnIG1vZGUuIFdvdWxkIHlvdSBsaWtlIHRv IHRyeSBpdD8KCioqIGNsb3NpbmcKICAgVGhhbmtzCg== --20cf307f30ee1055f204a95c3208--