From: Jambunathan K <kjambunathan@gmail.com>
To: Peter de Jong <p.de.jong@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Remove \maketitle from scrlttr2 latex export
Date: Sun, 31 Jul 2011 18:00:55 +0530 [thread overview]
Message-ID: <8162mizl6o.fsf@gmail.com> (raw)
In-Reply-To: <CAH-FKQbNip8u2o2YEiN=KRiS1fEqevYo8CaXDdLcGgMhuoq25A@mail.gmail.com> (Peter de Jong's message of "Sun, 31 Jul 2011 13:55:48 +0200")
Peter de Jong <p.de.jong@gmail.com> writes:
> 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.
You can add the #+BIND line to the following variable.
,----[ C-h v org-latex-generic-scrlttr2-setup RET ]
| org-latex-generic-scrlttr2-setup is a variable defined in `org-scrlttr2.el'.
| Its value is
| "\n#+LaTeX_CLASS: scrlttr2\n#+LaTeX_CLASS_OPTIONS: [DIN]\n#+OPTIONS: toc:nil\n"
|
| Documentation:
| Meta lines for scrlttr2 class. Plug in your LCO file.
|
| You can customize this variable.
|
| [back]
`----
> No maketitle appears in the .tex, but from the commandline i also have errors:
> /----
> | (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".
I am using MikTex as well. With following changes your brief.tex, the
file compiles fine for me and things are OK (I see NO "none" page)
,----
| Replace \documentclass[pdj]{scrlttr2} with \documentclass[jambu]{scrlttr2}
|
| Remove the following packages (which I don't have installed )
| \usepackage{marvosym}
| \usepackage{wasysym}
| \usepackage{latexsym}
`----
I am pretty sure that "none" page has something to do with your pdj.lco
file or how you have installed the scrlttr2 class.
FWIW, my lco file begins with the following lines followed by lots of
komavars.
,----
| \ProvidesFile{jambu}[10 letter-class-option]
|
| \usepackage{times} \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage[english]{babel}
| \usepackage{url}
|
| \LoadLetterOption{DIN}
`----
ISTM (and I am not latex user in even remote sense of the word)
including babel package with appropriate langauge would set the things
right for you. Also I am using the "D1N" as the base LCO file. You may
also want to check the base LCO file picked by your setup.
Jambunathan K.
>
> 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 <kjambunathan@gmail.com>:
>>
>> 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) y
>> `----
>>
>> 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 the
>> | 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]. Inspite 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
>> | [[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
>> | Office: 51 Franklin St
>> | Boston, MA 02110
>> | US
>> | 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.
>> | <to be read again>
>> | \par
>> | l.50
>> |
>> | ! Extra }, or forgotten \endgroup.
>> | l.57 }
>> |
>> | Runaway argument?
>> | {
>> | ! Paragraph ended before \closing was complete.
>> | <to be read again>
>> | \par
>> | l.60
>> |
>> | ! Extra }, or forgotten \endgroup.
>> | l.62 }
>> |
>> | [1{C:/Documents and Settings/kjambunathan/Local Settings/Application Data/MiKTe
>> | X/2.8/pdftex/config/pdftex.map}]
>> | ("c:\Documents and Settings\kjambunathan\My Documents\My Data\tmp-orgmode\scrlt
>> | tr2\sample-scrlttr2.aux") )
>> | (see the transcript file for additional information){C:/Program Files/MiKTeX 2.
>> | 8/fonts/enc/dvips/fontname/8r.enc}<C:/Program Files/MiKTeX 2.8/fonts/type1/urw/
>> | helvetic/uhvr8a.pfb><C:/Program Files/MiKTeX 2.8/fonts/type1/urw/times/utmr8a.p
>> | 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.
>>
>> --
>>
>>
--
next prev parent reply other threads:[~2011-07-31 12:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-30 14:14 Remove \maketitle from scrlttr2 latex export Peter de Jong
2011-07-30 20:24 ` Jambunathan K
2011-07-31 11:55 ` Peter de Jong
2011-07-31 12:30 ` Jambunathan K [this message]
[not found] ` <811ux6zkoh.fsf@gmail.com>
[not found] ` <CAH-FKQbp-p+AtJuNQP7y1tk=rWc0k4vXpL_QT6tHMQT+h=NMqA@mail.gmail.com>
2011-08-01 11:05 ` Peter de Jong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8162mizl6o.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=p.de.jong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).