General%& -parsing first line

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
DEpurpnijM
Posts: 3
Joined: Tue Jun 09, 2009 2:26 pm

%& -parsing first line

Post by DEpurpnijM »

Hi There!

I've been googlin' around for a while now in order to find a way to change the filename of the output *.pdf while using kile and pdflatex.

Using the (linux) console it is no problem doing this by using the command:

pdflatex -filename mynewoutputname source.tex

Because I am using Kile I don't want do struggle with the console and so I thought why not use the first line %&-parsing thing. But it simply doesn't work. (I do still hope I'm just doing it wrong^^)

So my very first line of my soure-documet (the file, where \begin{document} is in...) is:

%& -filname mynewoutputname

(I did try variations like -file-name=foo, --filename=foo and so on - didn't work either)

So what am I doing wrong? (Btw: if I compile the source with the first line parsing in console it doesn't work either)

Thanx

edit: I know there's a way reconfiguring kile - but I would have to do it with every new filename - I'm just looking for a way defining the filename in the source document...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

%& -parsing first line

Post by T3. »

I think the right option is -jobname, not -filename, and this works just fine in MiKTeX but not in TeX Live (which is what you use, I expect). Could you drop an e-mail about this to the TeX Live list?

Cheers,

Tomek
DEpurpnijM
Posts: 3
Joined: Tue Jun 09, 2009 2:26 pm

Re: %& -parsing first line

Post by DEpurpnijM »

Hi Tomek!

Yes sure - I mean jobname - that's what I used. And yes again - I'm using TexLive. It doesn't work so I will now figure out how to drop an email there...

Thank you.

edit: done - let's wait :)
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: %& -parsing first line

Post by T3. »

There is no e-mail from you on the TeX Live list. Have you subscribed to it?

Cheers,

Tomek
DEpurpnijM
Posts: 3
Joined: Tue Jun 09, 2009 2:26 pm

Re: %& -parsing first line

Post by DEpurpnijM »

Well I don't now what exactly went wrong - tried again...

Thanks for the remark!
Post Reply