Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
IGNORE everything in my last email.

The only relevant bit is

 \includegraphics[width=10em]{BoxplotSummary.pdf}
 \includegraphics[width=10em]{z.pdf}

 So it seems to be ignoring the change in height and width commands for
 z.pdf, and defaulting to 10em.

If I then edit the [width=10em] bit in the tex file I can change the
size easily.

It just seems that babel isn't passing the changes made in the org
file onto the tex file.

Graham


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Oddity in LaTeX export?

2009-12-13 Thread Nick Dokos
Mark Elston m_els...@comcast.net wrote:

 I have a standard format I like to use in creating some class notes
 in latex.  I use memoir and have a boilerplate that only differs
 in the title from notes to notes.  I have decided to try to manage
 my documentation for my notes in org to see if it is easier to do.
 Mostly (so far) it is a pretty good match.
 
 However, I have run into a snag for exporting the notes to latex.
 I tried using the #+TITLE: directive but got page numbers (in roman)
 on the first couple of pages.  This looked ugly. 

Can you post the tex file that is produced with the TITLE directive? I
don't understand why/how roman page numbers are produced (but I don't
know memoir well).

 So I set the#+TITLE: directive to be empty and added to the #+TEXT: block
 the following:
 
 #+TEXT: \title{ABC Class Notes}
 #+TEXT: \begin{titlingpage}
 #+TEXT: \maketitle
 #+TEXT: \end{titlingpage}
 
 This almost works.  The problem is the first of these lines gets
 exported with the closing '}' escaped.  In other words it comes
 out as:
 
 \title{ABC Class Notes\}
 
 I am not sure why this is or what to do about it.

This is probably a bug - Carsten has fixed a number of instances
of such escaped braces I believe.

 
 BTW, I had to set the TITLE directive to empty since just having it
 resulted in an automatic \maketitle export which was not surrounded
 by the titlingpage environment.  I really wanted that titlingpage
 environment and I couldn't think of another way of  handling it.
 

You can perhaps redefine org-export-latex-title-command:

(setq org-export-latex-title-command 
\\begin{titlingpage}\n\\maketitle\n\\end{titlingpage})

and try using the TITLE directive again. I'm surmising that this had
something to do with the roman page numbers, but maybe that's wrong?

HTH,
Nick








___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [Worg] Lots of broken links in published version

2009-12-13 Thread David Maus
Just realized that there a lot of broken links in the published
version of Worg. Seems like something went totally wrong with the
export to html. For instance:

http://orgmode.org/worg/

The main resources

The link to the official page reads http:/g and leads to
http://orgmode.org/worg/g

-or-

http://orgmode.org/worg/org-contrib/org-protocol.php

Firefox

As of March 2009 Firefox users follow the steps documented on
http:l. Here is a summary: ...

the link reads http:l and leads to
http://orgmode.org/worg/org-contrib/l

And so on.

Regards,

  -- David

-- 
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
A little progress here

#+srcname:Boxplots Summary
#+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both
 boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt))
#+end_src


#+resname: Boxplots

#+ATTR_LaTeX: width=10cm

[[file:BoxplotSummary.pdf]]

This gives me a plot 10cm wide, but in addition to the small plot.
Not sure I understand why I am getting two plots.

Graham


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
This works

#+srcname:Boxplots Summary
#+begin_src R :session BirdData :file BoxplotSummary.pdf :exports none
 boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt))
#+end_src


#+resname: Boxplots
#+CAPTION:Trial boxplots with babel
#+LABEL:  fig:trial boxplots
#+ATTR_LaTeX: width=10cm

[[file:BoxplotSummary.pdf]]


However, it needs :exports none

I actually want the code to still be present, but if I use  :exports
code   I get the both boxplots again :-(

I assume this is becasue the graphics are treated differently from
numerical code output.

Graham


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] changing size of R graphics in pdf output

2009-12-13 Thread Graham Smith
OK,  This was all to do with the ordering of the latex code

Below works, includes the R code, but only one plot of the expected size.


#+srcname:Boxplots Summary
#+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both
 boxplot(Wingcrd,Tarsus,Head,Wt,names=c(Wingcrd,Tarsus,Head,Wt))
#+end_src

#+CAPTION:Trial boxplots with babel
#+LABEL:  fig:trial boxplots
#+ATTR_LaTeX: width=10cm
#+resname: Boxplots
[[file:BoxplotSummary.pdf]]

I await for someone to tell me how it should be done :-)

Graham


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] keep newlines on pdf export

2009-12-13 Thread Eraldo Helal
When I export an org file like the following to pdf:
test.org
 line1
 line2
 line3

what I get is:
test.pdf
 line1 line2 line3

however, I would like to get the following in the pdf:
test.pdf
 line1
 line2
 line3

How can I get pdf export to keep my org newlines?
Remark: I do have \n:t set in my options line.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] access scattered notes centralized

2009-12-13 Thread Kestutis Matonis
I would like to clear up one thing.
Lets say i have notes in
/home/documents/work/note.org,
/home/documents/computers/note.org,
and i would like that they would stay there, but also i would like to
access all scattered  notes from one  place (that is, i wanna know
what notes i have).

Can i do this in emacs org-mode? How?


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [org-mac-protocol] How to actually set it up and use it?

2009-12-13 Thread Christopher Suckling
On Sat, 12 Dec 2009 12:56:00 -0600, Ron Parker r...@inthefaith.net wrote:

 After reading this message I downloaded org-mac-protocol and installed
 it.  The scripts work for me if I open them in Script Editor and run
 them, but they do not work from the scripts menu nor from Quicksilver.

Second thought:

If you got the scripts from github, they're not compiled.

Load them up in Script Editor and save them with file format 'Script'.

(Applescripts are by default saved as binaries which are less than
convenient for versioning with git)

Best, Christopher


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: access scattered notes centralized

2009-12-13 Thread PT
Kestutis Matonis matonisk at gmail.com writes:

 
 I would like to clear up one thing.
 Lets say i have notes in
 /home/documents/work/note.org,
 /home/documents/computers/note.org,
 and i would like that they would stay there, but also i would like to
 access all scattered  notes from one  place (that is, i wanna know
 what notes i have).
 
 Can i do this in emacs org-mode? How?
 

Keep a master org file with links to all the other org files: 

http://orgmode.org/manual/Hyperlinks.html#Hyperlinks


That's what I do. I visit the master file and from there I can access any
of the scattered note files.





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] access scattered notes centralized

2009-12-13 Thread David Maus
At Sun, 13 Dec 2009 00:11:33 +0200,
Kestutis Matonis wrote:
 
 I would like to clear up one thing.
 Lets say i have notes in
 /home/documents/work/note.org,
 /home/documents/computers/note.org,
 and i would like that they would stay there, but also i would like to
 access all scattered  notes from one  place (that is, i wanna know
 what notes i have).
 
 Can i do this in emacs org-mode? How?

Well, if you do not specify categories for headlines or files Orgmode
choses the filename without extension to be the category of all
headlines inside this file. Hence all notes in work/note.org and
computers/note.org belong to the same category note.

If both files are added to `org-agenda-files' you can perform a
search query:

C-a m CATEGORY=note RET

Regards,

  -- David
-- 
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: access scattered notes centralized

2009-12-13 Thread Matt Lundin
Kestutis Matonis maton...@gmail.com writes:

 I would like to clear up one thing.
 Lets say i have notes in
 /home/documents/work/note.org,
 /home/documents/computers/note.org,
 and i would like that they would stay there, but also i would like to
 access all scattered  notes from one  place (that is, i wanna know
 what notes i have).

 Can i do this in emacs org-mode? How?

http://orgmode.org/manual/Agenda-files.html#Agenda-files

- Matt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Oddity in LaTeX export?

2009-12-13 Thread Mark Elston

Nick Dokos wrote:

Mark Elston m_els...@comcast.net wrote:


I have a standard format I like to use in creating some class notes
in latex.  I use memoir and have a boilerplate that only differs
in the title from notes to notes.  I have decided to try to manage
my documentation for my notes in org to see if it is easier to do.
Mostly (so far) it is a pretty good match.

However, I have run into a snag for exporting the notes to latex.
I tried using the #+TITLE: directive but got page numbers (in roman)
on the first couple of pages.  This looked ugly. 


Can you post the tex file that is produced with the TITLE directive? I
don't understand why/how roman page numbers are produced (but I don't
know memoir well).



Actually, part of the boilerplate includes a \pagenumbering{roman}
*after* the titlingpage environment.  This is probably what caused it.
After all my remaining boilerplate (including a Preface section) I
insert a \pagenumbering{arabic} and this restarts the page numbers
from 1.


So I set the#+TITLE: directive to be empty and added to the #+TEXT: block
the following:

#+TEXT: \title{ABC Class Notes}
#+TEXT: \begin{titlingpage}
#+TEXT: \maketitle
#+TEXT: \end{titlingpage}

This almost works.  The problem is the first of these lines gets
exported with the closing '}' escaped.  In other words it comes
out as:

\title{ABC Class Notes\}

I am not sure why this is or what to do about it.


This is probably a bug - Carsten has fixed a number of instances
of such escaped braces I believe.



Should I submit a bug report?  As I was working with this another
piece of boilerplate I had (and removed) was:

#+TEXT: \shorttableofcontents{Sessions}{0}

which resulted in:

\shorttableofcontents{Sessions}{0\}

I don't have to have the short table of contents so I removed it
but it is another such escaped backslash.


BTW, I had to set the TITLE directive to empty since just having it
resulted in an automatic \maketitle export which was not surrounded
by the titlingpage environment.  I really wanted that titlingpage
environment and I couldn't think of another way of  handling it.



You can perhaps redefine org-export-latex-title-command:

(setq org-export-latex-title-command 
\\begin{titlingpage}\n\\maketitle\n\\end{titlingpage})

and try using the TITLE directive again. 



Can I set this on a case-by-case basis?  Not all my documents use
memoir.  I think the titlingpage environment is memoir-specific.

Mark



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] keep newlines on pdf export

2009-12-13 Thread Nick Dokos
Eraldo Helal era...@eraldo.org wrote:

 When I export an org file like the following to pdf:
 test.org
  line1
  line2
  line3
 
 what I get is:
 test.pdf
  line1 line2 line3
 
 however, I would like to get the following in the pdf:
 test.pdf
  line1
  line2
  line3
 
 How can I get pdf export to keep my org newlines?
 Remark: I do have \n:t set in my options line.
 

org-to-pdf is really org-to-latex-to-pdf, and generally
speaking[1] newlines in latex are not significant. One way
to make them significant is

line1\\
line2\\
line3

Another might be

#+LATEX: \obeylines { %}
line1
line2
line3
#+LATEX: }

The %} might or might not be necessary to prevent the org LaTeX exporter
from complaining, but it's a useful workaround for an area that has had
problems in the past.

HTH,
Nick

[1] with exceptions, e.g. paragraph demarcation.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [Worg] Lots of broken links in published version

2009-12-13 Thread Carsten Dominik

Hi David,

thanks!

Please verify that things are now back to normal.

- Carsten

On Dec 13, 2009, at 11:47 AM, David Maus wrote:


Just realized that there a lot of broken links in the published
version of Worg. Seems like something went totally wrong with the
export to html. For instance:

http://orgmode.org/worg/

The main resources

The link to the official page reads http:/g and leads to
http://orgmode.org/worg/g

-or-

http://orgmode.org/worg/org-contrib/org-protocol.php

Firefox

As of March 2009 Firefox users follow the steps documented on
http:l. Here is a summary: ...

the link reads http:l and leads to
http://orgmode.org/worg/org-contrib/l

And so on.

Regards,

 -- David

--
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] keep newlines on pdf export

2009-12-13 Thread Nick Dokos
Eraldo Helal era...@eraldo.org wrote:

 One other reason behind this is that I can not export my document to
 html anymore after I added \\ at the end of every line... well I can
 but it does not look the way I want it to be. =]
 

The \obeylines method should not affect the HTML export.

Nick


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] keep newlines on pdf export

2009-12-13 Thread Nick Dokos
Eraldo Helal era...@eraldo.org wrote:

 When I export an org file like the following to pdf:
 test.org
  line1
  line2
  line3
 
 what I get is:
 test.pdf
  line1 line2 line3
 
 however, I would like to get the following in the pdf:
 test.pdf
  line1
  line2
  line3
 
 How can I get pdf export to keep my org newlines?
 Remark: I do have \n:t set in my options line.
 

Not sure whether this actually went in or not: see

http://thread.gmane.org/gmane.emacs.orgmode/18823

Also I messed up the syntax of obeylines before - it should
look like this:

#+LATEX: {\obeylines %}
line1
line2
line3
#+LATEX: }

Nick


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: STARTUP: indent turns off indent when invoked twice [6.33x]

2009-12-13 Thread Carsten Dominik

Fixed, thank you for your report.

- Carsten

On Dec 10, 2009, at 3:53 PM, Óscar Fuentes wrote:




Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


When an org file that contains this line

#+STARTUP: indent

is visited, it correctly enables org-indent-mode. Once you put the
cursor on the STARTUP line and press C-c C-c, org-indent-mode is
disabled. If you press C-c C-c again, it remains disabled.

Happens with emacs -Q too.

Emacs  : GNU Emacs 23.1.50.2 (x86_64-unknown-linux-gnu, X toolkit)
of 2009-12-08 on qcore
Package: Org-mode version 6.33x

current state:
==
(setq
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers

  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recenter)
)
--
Óscar


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] keep newlines on pdf export

2009-12-13 Thread Carsten Dominik


On Dec 14, 2009, at 4:40 AM, Nick Dokos wrote:


Eraldo Helal era...@eraldo.org wrote:


When I export an org file like the following to pdf:
test.org

line1
line2
line3


what I get is:
test.pdf

line1 line2 line3


however, I would like to get the following in the pdf:
test.pdf

line1
line2
line3


How can I get pdf export to keep my org newlines?
Remark: I do have \n:t set in my options line.



Not sure whether this actually went in or not: see

   http://thread.gmane.org/gmane.emacs.orgmode/18823


We went in and out of this idea.  For a while, #+OPTIONS: \n:t
did enter a \obeylines into the LaTeX output, but that turned
out to be not reliable,

http://thread.gmane.org/gmane.emacs.orgmode/18823/focus=18867

so I removed that again.

But the hack you show below surely will work in that limited sense.

- Carsten



Also I messed up the syntax of obeylines before - it should
look like this:

#+LATEX: {\obeylines %}
line1
line2
line3
#+LATEX: }

Nick


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Saving and restoring visibility

2009-12-13 Thread Carsten Dominik

Hi,

I vaguely remember that someone posted code here a
while ago (one year?) to save and restore outline visibility.

Who remembers or can find back the post?

Thanks.

- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode