Re: [O] OrgTbl mode not working

2015-08-13 Thread Benjamin Slade
Here is one:



\begin{comment}
#+ORGTBL: SEND summarytable orgtbl-to-latex :splice t :skip 0

|   |   |   |   |   |
|---+---+---+---+---|
|   |   |   |   |   |

\end{comment}



[running in AUCTeX mode]


regards,
~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)


Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Hello,

 Benjamin Slade sl...@jnanam.net writes:

 Since some recent update of either orgmode or AUCTeX, OrgTbl-mode is no
 longer working for me.  The OrgTbl menu appears, and allows me to insert
 tables, but it does not treat inserted tables as actual orgmode tables,
 but just as regular characters (i.e. I can't edit them as tables, or
 compile them into LaTeX tables with C-c C-c, etc.)

 Would you have an ECM? I cannot reproduce the issue.

 Regards,

-- 



[O] OrgTbl mode not working

2015-08-12 Thread Benjamin Slade
Since some recent update of either orgmode or AUCTeX, OrgTbl-mode is no
longer working for me.  The OrgTbl menu appears, and allows me to insert
tables, but it does not treat inserted tables as actual orgmode tables,
but just as regular characters (i.e. I can't edit them as tables, or
compile them into LaTeX tables with C-c C-c, etc.)

~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)



Re: [O] (org-agenda-to-appt) with sexp org-diary-class entry?

2014-12-07 Thread Benjamin Slade
Thanks, Marco. Well, it at least helps to update me to a non-obsolete
sexp method.

I have no idea how to check what's actually been pushed to `appt` to see
whether the updated org-class really behaves differently to
org-diary-class in this respect.  (So I'll have to see tomorrow how
`appt` behaves.)


~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)



[O] (org-agenda-to-appt) with sexp org-diary-class entry?

2014-12-05 Thread Benjamin Slade
None of my events which are scheduled with org-diary-class sexp entries
seem to get pushed with (org-agenda-to-appt) (for triggering alarms
etc.).  Is this simply a limitation of sexp org-diary-class?  Is there
are workaround, or would it be better to simply schedule such events as
(infinitely) repeating?



[O] timezone in org-mode events?

2014-11-30 Thread Benjamin Slade
As far as I can tell, org-mode (at least out-of-the-box) doesn't seem to
support any sort of timezone information in events (deadlines etc.).
There are certainly events for which it would be useful to establish the
absolute time (e.g. for conference abstract submission deadlines) either
in terms of timezone abbreviations or UTC+/-N format. Is this sort of
feature enableable as an option somewhere in org-mode?

~
Dr Benjamin Slade pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320
BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux} (Choose Linux, Choose
Freedom)



Re: [O] org-capture/remember in Emacs 24.4.1? (Marco Wahl)

2014-10-28 Thread Benjamin Slade
Oddly this works on my one computer, but not my other -- doubly odd
since they're both running the same distro, the same version of Emacs,
and the same .emacs file!

Even commenting out that line doesn't change the (wrong) behaviour on my
one computer


Marco Wahl marcowahls...@gmail.com writes:

 The following message is a courtesy copy of an article
 that has been posted to gmane.emacs.orgmode as well.

 Benjamin Slade sl...@jnanam.net writes:

Your code works for me (Emacs 25 with a current Org from the git
 repo).
 
 Just guessing: Do you have installed a further hook for deleting frames
 in certain situations which might be the wrongdoer?

 I don't seem to. I can't find anything else which seems to do anything
 with deleting frames.

 (side stepping the problem:) Perhaps there's a simpler way to set up a
 remember-frame like this in 24.4?

 I played some with the 24.4 and now can confirm your report.  Emacs
 crashed every time after C-c C-c in the caption buffer.

 Unfortunately I could not understand what's going on.

 Being pragmatic you could comment the line

  (when capture-frame-p (make-frame-invisible))  ;; hide quickly

 This line looks like cosmetics and commenting out this line worked as a
 side stepping for me.


 Best regards,  Marco

-- 
~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)



Re: [O] org-capture/remember in Emacs 24.4.1? (Marco Wahl)

2014-10-28 Thread Benjamin Slade
I figured it out - in updating, I had lost the cdlatex package, and
org-capture wants this for some reason, that's why it was crashing for
me.


Marco Wahl marcowahls...@gmail.com writes:

 The following message is a courtesy copy of an article
 that has been posted to gmane.emacs.orgmode as well.

 Benjamin Slade sl...@jnanam.net writes:

Your code works for me (Emacs 25 with a current Org from the git
 repo).
 
 Just guessing: Do you have installed a further hook for deleting frames
 in certain situations which might be the wrongdoer?

 I don't seem to. I can't find anything else which seems to do anything
 with deleting frames.

 (side stepping the problem:) Perhaps there's a simpler way to set up a
 remember-frame like this in 24.4?

 I played some with the 24.4 and now can confirm your report.  Emacs
 crashed every time after C-c C-c in the caption buffer.

 Unfortunately I could not understand what's going on.

 Being pragmatic you could comment the line

  (when capture-frame-p (make-frame-invisible))  ;; hide quickly

 This line looks like cosmetics and commenting out this line worked as a
 side stepping for me.


 Best regards,  Marco

-- 
~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)



Re: [O] org-capture/remember in Emacs 24.4.1? (Marco Wahl)

2014-10-27 Thread Benjamin Slade
Your code works for me (Emacs 25 with a current Org from the git
 repo).
 
 Just guessing: Do you have installed a further hook for deleting frames
 in certain situations which might be the wrongdoer?

I don't seem to. I can't find anything else which seems to do anything
with deleting frames.

(side stepping the problem:) Perhaps there's a simpler way to set up a
remember-frame like this in 24.4?


~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)



[O] org-capture/remember in Emacs 24.4.1?

2014-10-26 Thread Benjamin Slade
I had the following snippets in my .emacs which allowed me to call up a
mini-emacsclient frame to quickly add notes and TODOs etc.  It doesn't
seem to work anymore (it comes up, but as soon as I choose [t], [n]
etc. it disappears).  Is there an updated recommendation on how to do
this?

###
(defcustom remember-frame-alist nil
Additional frame parameters for dedicated remember frame.
:type 'alist
:group 'remember)

(defadvice remember (around remember-frame-parameters activate)
Set some frame parameters for the remember frame.
(let ((default-frame-alist (append remember-frame-alist default-frame-alist)))
ad-do-it))

;;;

(defun make-remember-frame ()
  turn the current frame into a small popup frame for remember mode;
 this is meant to be called with 
  emacsclient -c -e '(make-remember-frame)'
  (modify-frame-parameters nil
   '( (name . *Remember*) ;; must be same as in 
mode-hook below  
  (width .  80)
  (height . 20)
  (vertical-scroll-bars . nil)
  (menu-bar-lines . nil)
  (tool-bar-lines . nil)))
  (set-frame-parameter (selected-frame) 'alpha '(85 50))
  (org-capture)
  (when (fboundp 'x-focus-frame) (x-focus-frame nil)) ;; X only
  (delete-other-windows)
  ) 

;; when we're in such a remember-frame, close it when done. (doesn't work when 
cancelled...)
(add-hook 'org-capture-mode-hook
  (lambda()
(define-key org-capture-mode-map (kbd C-c C-c)
  '(lambda()(interactive)
 (let ((capture-frame-p 
(string= (frame-parameter nil 'name) *Remember*)))
   (when capture-frame-p (make-frame-invisible))  ;; hide 
quickly
   (org-capture-finalize)
   (when capture-frame-p (delete-frame)))


(setq org-capture-templates
  '((t Todo entry (file+headline ~/Documents/Org/ToDo.org Captured 
Tasks)
 * TODO %?\n  %i\n  %a)
(n Notes entry (file+headline ~/Documents/Org/Notes.org Captured 
Notes)
 * %?\nEntered on %U\n  %i\n  %a)
(m Meetings entry (file ~/Documents/Org/Meetings.org )
 * %?\n %i\n  %a)
(c Clipboard entry (file+headline ~/Documents/Org/Notes.org 
Captured Notes)
 * %x %?\nEntered on %U\n  %i\n  %a)))
##

~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)



[O] new(ish) behaviour wrt to {s }s

2014-02-01 Thread Benjamin Slade
At some point orgmode has started escaping {s and }s which I don't want
to be escaped on conversion to LaTeX. For example when I put in orgmode
\textsubscript{some subscript}, I get out in the .tex file
\textsubscript\{some subsubscript}. Likewise with a user-defined
function like \Bracketed{...}.

Is there a flag/option I can use to tell orgmode to *never* escape my {s
and }s on export to LaTeX?
~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)




[O] Aligned glosses in orgmode (for export to odt/doc)

2014-01-22 Thread Benjamin Slade
I'm contemplating writing a linguistics article in orgmode because I
know I will need to provide a doc(x) file (normally I would otherwise
use LaTeX).

One of things I will need to be able to is produce numbered examples
with aligned interlinear glosses (like these:
http://www.eva.mpg.de/lingua/resources/glossing-rules.php ). It's been a
while since I've done this in a doc(x)-ish format, but the obvious ways
would be (1) to do something with tab alignment or (2) use
borderless/invisible tables.

Can anyone suggest how this (or some other solution to producing
interlinear glosses) might be implemented in an orgmode-odt/doc/docx
setup? One potential solution would be an orgmode setup which produces
borderless tables with an optimal width column setting. I don't know
how to do this in orgmode though (or if it can be done currently).

~
Dr Benjamin Slade
 Dept. of Linguistics, Uni. of Utah

pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~
{sent by mu4e on Emacs running under GNU/Linux}
(Choose Linux, Choose Freedom)




[O] can't export org-tables to LaTeX / void error - org-list-allow-alphabetical

2013-09-10 Thread Benjamin Slade
I have some older org files which once exported to LaTeX without
complaint but now refuse to do so, producing the error
 defconst: Symbol's value as variable is void:
 org-list-allow-alphabetical

These files have org-tables in them; if removed, the files export
without any problem.

I haven't set org-list-allow-alphabetical anywhere in my .emacs

I'm running the latest version of org  org-plus-contrib from ELPA.

Suggestions?
-- 
~~
Dr Benjamin Slade http://www.jnanam.net/slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
~~
{sent by mu4e on Emacs running under GNU/Linux}



[O] suppress new(ish) behaviour of math in export to latex-beamer

2013-02-02 Thread Benjamin Slade
I have some orgmode beamer files from late 2011 that I want to edit and
re-use. However, orgmode's behaviour seems to have changed since then
with respect to handling of math commands like \neg, \phi, \psi etc. Now
it seems to automatically put in surrounding $...$s, which mucks up the
output of my older files. Is there a way of suppressing this new
behaviour?
-- 
~~
Dr Benjamin Slade
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
{sent by mu4e on Emacs running under GNU/Linux}



Re: [O] suppress new(ish) behaviour of math in export to latex-beamer

2013-02-02 Thread Benjamin Slade
Hmm... now that I look more closely at it, perhaps it's something that
is changed on the LaTeX side rather than the org side.

On Sat, 02 Feb 2013, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 Benjamin Slade sl...@jnanam.net writes:

 I have some orgmode beamer files from late 2011 that I want to edit and
 re-use. However, orgmode's behaviour seems to have changed since then
 with respect to handling of math commands like \neg, \phi, \psi etc. Now
 it seems to automatically put in surrounding $...$s, which mucks up the
 output of my older files. Is there a way of suppressing this new
 behaviour?

 Could you maybe give a small example to illustrate what you mean?


-- 
~~
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
{sent by mu4e on Emacs running under GNU/Linux}



[O] require blank line in TeX output of org (and/or how to use the LaTeX package linguex via org-mode)

2012-11-21 Thread Benjamin Slade
I want to be able to use the LaTeX package linguex in org-based beamer
presentations. But this package requires a special syntax where after
the environment there must be a blank line in the LaTeX source (!=a blank line
in the LaTeX output). How do I do this in org-mode?
-- 
~~
pgp fingerprint: 21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19
{sent by mu4e on Emacs running under GNU/Linux}



[O] fontifying superscript/subscript

2012-10-13 Thread Benjamin Slade
Is there a way to have org-mode fontify superscript/subscript the way
that AUCTeX does?

(A second, but related, question---especially assuming that the answer
to the first question may be no---is there any straightforward way of
getting emacs to raise/lower text as part of a face? [I looked at
font-latex.el of AUCTeX, but it's not clear to me exactly how the
raising/lowering is being implementd.])


-- 
~
Dr Benjamin Slade http://ling.uta.edu/~ben/
  Dept. of Linguistics  TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
~
{sent by mu4e on Emacs running under GNU/Linux}



Re: [O] fontifying superscript/subscript

2012-10-13 Thread Benjamin Slade
Thanks. 

I suppose that:

(add-hook 'org-mode-hook 'org-toggle-pretty-entities)

is the way the auto-enable it?


On Sat, 13 Oct 2012, Carsten Dominik wrote:

 On 13.10.2012, at 08:04, Benjamin Slade wrote:

 Is there a way to have org-mode fontify superscript/subscript the way
 that AUCTeX does?

 C-c C-x \

 
 (A second, but related, question---especially assuming that the answer
 to the first question may be no---is there any straightforward way of
 getting emacs to raise/lower text as part of a face? [I looked at
 font-latex.el of AUCTeX, but it's not clear to me exactly how the
 raising/lowering is being implementd.])
 
 
 -- 
 ~
 Dr Benjamin Slade http://ling.uta.edu/~ben/
  Dept. of Linguistics  TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
 ~
{sent by mu4e on Emacs running under GNU/Linux}
 


-- 
~
Dr Benjamin Slade http://ling.uta.edu/~ben/
  Dept. of Linguistics  TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
~
{sent by mu4e on Emacs running under GNU/Linux}



Re: [O] fontifying superscript/subscript

2012-10-13 Thread Benjamin Slade
It seemed to work, but (setq org-pretty-entities t) is probably cleaner,
so I switched to that.

thanks,  --Ben

On Sat, 13 Oct 2012, Thomas S. Dye t...@tsdye.com wrote:

 Aloha Benjamin,

 I don't know if your supposition will work. However, org-pretty-entities
 can be customized, or you can put (setq org-pretty-entities t) in your
 .emacs.

 I prefer to do this on a per-file basis with:
 #+startup: entitiespretty

 hth,
 Tom

 Benjamin Slade sl...@jnanam.net writes:

 Thanks. 

 I suppose that:

 (add-hook 'org-mode-hook 'org-toggle-pretty-entities)

 is the way the auto-enable it?


 On Sat, 13 Oct 2012, Carsten Dominik wrote:

 On 13.10.2012, at 08:04, Benjamin Slade wrote:

 Is there a way to have org-mode fontify superscript/subscript the way
 that AUCTeX does?

 C-c C-x \

 
 (A second, but related, question---especially assuming that the answer
 to the first question may be no---is there any straightforward way of
 getting emacs to raise/lower text as part of a face? [I looked at
 font-latex.el of AUCTeX, but it's not clear to me exactly how the
 raising/lowering is being implementd.])
 
 
 -- 
 ~
 Dr Benjamin Slade http://ling.uta.edu/~ben/
  Dept. of Linguistics  TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
 ~
{sent by mu4e on Emacs running under GNU/Linux}
 


-- 
~
Dr Benjamin Slade http://ling.uta.edu/~ben/
  Dept. of Linguistics  TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
~
{sent by mu4e on Emacs running under GNU/Linux}



Re: [O] Remembrance Agent and Orgmode

2012-10-12 Thread Benjamin Slade
Alan,

So do you have it working now? I don't run Macs, so I didn't have
anything to suggest earlier.

That sounds like something which should
be documented somewhere (i.e. which now someone should document).


On Fri, 12 Oct 2012, Alan Schmitt alan.schm...@polytechnique.org wrote:

 Alan Schmitt alan.schm...@polytechnique.org writes:

 I'm trying to set up the remembrance agent, but I'm not able to get the
 binaries to work. I'm on OS X Mountain Lion, and the binaries from
 http://www.remem.org/ tell me bad CPU type. I tried building it from
 source, but I'm getting an error about strnlen.

 I've been able to build it, by commenting out the strnlen function in
 savutil/gbuf.c, as it's already define in OS X since Lion.

 Alan


-- 
~
Dr Benjamin Slade http://ling.uta.edu/~ben/
  Dept. of Linguistics  TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
~
{sent by mu4e on Emacs running under GNU/Linux}



Re: [O] Remembrance Agent and Orgmode

2012-10-01 Thread Benjamin Slade
Dear Eric,

Many thanks for this; it was very useful: I've got the Remembrance Agent
up and running now.


Eric Fraga e.fr...@ucl.ac.uk writes:

 Hi,

 sorry I am coming late to this thread.  I use the Remembrance Agent.  It
 works great for me, trawling both emails and all my text (org, latex,
 etc.) documents automatically for similarities in text while I
 write.  It's ideal for academic writing (papers, proposals).

 The agent is not intrusive at all, assuming you have a large enough
 display and works particularly well if you use a display in portrait
 orientation, as I do for writing.

 There are two elements to setting this up: the emacs side and the
 remembrance agent itself.  For emacs, my settings are straightforward:

 #+begin_src emacs-lisp
 (setq hilit-background-mode 'dark) ; if you have a dark background, obviously 
 ;-)
 (require 'remem)
 (setq remem-database-dir /home/ucecesf/s/share/remembrance-agent
   remem-load-original-suggestion t
   remem-prog-dir /usr/bin
   remem-scopes-list '((documents 4 5 500)
   (mail 4 10 500)
   ))
 #+end_src

 For the agent itself, I use cron to update the databases every night
 with an entry that looks like this:

 ,
 | 12 4 * * * sh /home/ucecesf/s/bin/ra-buildindices.sh
 `

 The contents of that shell script are:

 #+begin_src sh
 #!/bin/sh -f
 B=/home/ucecesf/s/share/remembrance-agent
 ra-index ${B}/mail ${HOME}/s/News/agent/nnimap/ucl  /dev/null
 ra-index ${B}/documents ${HOME}/s/notes ${HOME}/s/grants ${HOME}/s/talks 
 ${HOME}/s/papers ${HOME}/s/projects  /dev/null
 #+end_src

 In all of the above, you will need to change all the appropriate paths
 for the location of the databases and the places to search.  The two
 index commands trawl my emails and my relevant documents respectively.

 I hope this helps.


-- 
~
Dr Benjamin Slade http://ling.uta.edu/~ben/
  Dept. of Linguistics  TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
~
{sent by mu4e on Emacs running under GNU/Linux}



Re: [O] can't find org-version?

2012-09-03 Thread Benjamin Slade
I did indeed start up by asking the org-toodledo maintainer. He suggested that it must be something funny in my org-setup (and pointed to previous issues like http://thread.gmane.org/gmane.emacs.orgmode/59337 and http://comments.gmane.org/gmane.emacs.orgmode/55412 - but neither of those seems to be my problem), so I thought I'd ask here. 


The work-around I mentioned seems to work perfectly well, I was just worried that there was some underlying problem in my setup that might cause additional problems at some point.


Giovanni Ridolfi writes:


 Da: Benjamin Slade sl...@jnanam.net

 Inviato: Lunedì 3 Settembre 2012 5:46

 Since updating to org 7.9, I've had an odd problem with another package that depends on org-mode (org-toodledo). 

 It reports that it can't find org-version.

 So the problem is in org-toodledo. Did you ask its maintainer?


 The following work-around patches the problem, 


 (require 'org-version)
 (setq org-version (org-release))

 but I was wondering how to "really" solve it:

 hack org-toodledo.

 cheers,
 Giovanni




 
~~~~
Dr Benjamin Slade [ http://ling.uta.edu/~ben/ ]
  Dept. of Linguistics  TESOL - University of Texas at Arlington
132E Hammond Hall | Office Hours: tba

   {sent by mu4e on Emacs running under GNU/Linux}


[O] can't find org-version?

2012-09-02 Thread Benjamin Slade
Since updating to org 7.9, I've had an odd problem with another package that depends on org-mode (org-toodledo). It reports that it can't find org-version. I did have org installed via git, but I decided, given that I'm running emacs24, to change over to the elpa install to see if that made any difference. It didn't.


The following work-around patches the problem, but I was wondering how to "really" solve it:


(require 'org-version)
(setq org-version (org-release))




 
~~~~
Dr Benjamin Slade [ http://ling.uta.edu/~ben/ ]
  Dept. of Linguistics  TESOL - University of Texas at Arlington
132E Hammond Hall | Office Hours: tba

   {sent by mu4e on Emacs running under GNU/Linux}


Re: [O] Remembrance Agent and Orgmode

2012-07-17 Thread Benjamin Slade
Sadly I don't have any information to offer, but I'd like to second Karl's 
request. I was also looking at the Remembrance Agent last week and trying to 
figure out (1) how to get it properly set-up and (2) how it might best be used 
in a modern Emacs(/Orgmode) setup.


Dr Benjamin Slade [ http://ling.uta.edu/~ben/ ]
  Dept. of Linguistics  TESOL - University of Texas at Arlington   
 
132E Hammond Hall | Office Hours: tba

 Stæfcræft  Vyākaraṇa (lingblog) -  
http://staefcraeft.blogspot.com
 The Babbage Files (techblog) - 
http://babbagefiles.blogspot.com

  While corporations dominate society and write the laws,
   each advance in technology is an opening for them
   to further restrict its users.
--Stallman's Law

   Ongietan sceal gleaw hælehu gæstlic bið,
   þonne ealre þisse worulde wela   weste stondeð,
   swa nu missenlicegeond þisne middangeard
   winde biwauneweallas stondaþ,
   hrime bihrorene, hryðge þa ederas.
  --The Wanderer (73-77)

   {sent from Emacs running under GNU/Linux}


Re: [O] exporting emphasised text (bold, italics etc.) in ORGTBL

2011-06-21 Thread Benjamin Slade
Thanks, Nick. Yes, I understand what you're saying.

But what I was wondering is this: orgmode generally interprets *word* as
bolding of word and /word/ as italicising of word. So is there a way to
make it export *word* as \textbf{word} and /word/ as \textit{word}, when
using orgtbl.

cheers,
  --Ben

On 21 June 2011 10:28, Nick Dokos nicholas.do...@hp.com wrote:

 Benjamin Slade sl...@jnanam.net wrote:

  When I'm using orgtbl in the midst of a LaTeX document, is there a way to
 tell it to export *bold*
  as \textbf{bold}, /italics/ as \textit{italics} etc.?

 Yes, just like that. For example, the following works fine for me:

 --8---cut here---start-8---

 * foo

 Here's a table:


 |   foo | bar |
 |---+-|
 | 1 |   2 |
 | 3 |   4 |
 | \textbf{bold} | \textit{italic} |
 |   | |
 --8---cut here---end---8---


 Not sure if you are talking about radio tables in a LaTeX file,
 but that too seems to work fine (see appendix A.5.1 of the Org manual
 for more details on this:

 --8---cut here---start-8---
 \documentclass{article}

 \begin{document}
 Here's a table of stuff:

 % BEGIN RECEIVE ORGTBL to-buy
 \begin{tabular}{rr}
 foo  bar \\
 \hline
 1  2 \\
 3  4 \\
 \textbf{bold}  \textit{italic} \\
\\
 \end{tabular}
 % END RECEIVE ORGTBL to-buy


 %The Org table is inside a LaTeX comment.

 % #+ORGTBL: SEND to-buy orgtbl-to-latex
 % |   foo | bar |
 % |---+-|
 % | 1 |   2 |
 % | 3 |   4 |
 % | \textbf{bold} | \textit{italic} |
 % |   | |


 \end{document}

 %%% Local Variables:
 %%% mode: latex
 %%% TeX-master: t
 %%% End:
 --8---cut here---end---8---

 Nick




-- 
-
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign
[ http://www.jnanam.net/slade/ ]

Stæfcræft  Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-
  *प*रो ऽक्ष॑का*मा* हि *दे*वाः
'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)


[O] exporting emphasised text (bold, italics etc.) in ORGTBL

2011-06-20 Thread Benjamin Slade
When I'm using orgtbl in the midst of a LaTeX document, is there a way to
tell it to export *bold* as \textbf{bold}, /italics/ as \textit{italics}
etc.?
-- 
-
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign
[ http://www.jnanam.net/slade/ ]

Stæfcræft  Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-
  *प*रो ऽक्ष॑का*मा* हि *दे*वाः
'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)


Re: [O] orgmode/beamer - won't export blocks

2011-05-30 Thread Benjamin Slade
Hi Seb,

So you don't include LaTeX packages that you always want to be loaded
in the .emacs config? I have a bunch of packages that I would need for
my beamer presentations and it would be nice just to have them
automatically included every time.

By the bye, I found the old config code from here:
http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html

cheers,
  --Ben
-
From:   Sebastien Vauban
Subject:Re: [O] orgmode/beamer - won't export blocks
Date:   Fri, 27 May 2011 23:35:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Benjamin,

Benjamin Slade wrote:
 Thank you for the help.

 Yes, removing the configuration code from .emacs results in the
 correct behaviour (i.e. blocks are now exported properly).

Where did you find that way to do?  I guess in old threads... Is it still on
Worg, this should be removed.

 Quick question -- is there still a way of setting up beamer/orgmode
 configuration in .emacs?

Why are you asking that?  It's even better: you don't need any special
configuration anymore (like before) for beamer to work out of the box.

The only lines I still have in my .emacs about beamer are:

#+begin_src emacs-lisp
;; XXX 2010-03-25 TEMP Fix for conflict TikZ/hyperref: loading
;; `atbegshi' before document class beamer
(add-to-list 'org-export-latex-classes
 '(beamer
   \\RequirePackage{atbegshi}
   \\documentclass{beamer}\n
   org-beamer-sectioning))
#+end_src

Maybe even not needed anymore...

Best regards,
  Seb

-- 
Sébastien Vauban



Re: [O] orgmode/beamer - won't export blocks

2011-05-30 Thread Benjamin Slade
Hi Seb,

Many thanks for your reply. One last question: do you have an example
(or a link to an explanation about) making one's own theme? (I
understand the #+INCLUDE option).

cheers,
  --Ben

 Message: 20
 Date: Mon, 30 May 2011 16:42:03 +0200
 From: Sebastien Vauban wxhgmqzgw...@spammotel.com
 To: emacs-orgmode@gnu.org
 Subject: Re: [O] orgmode/beamer - won't export blocks
 Message-ID: 80boykxnb8@somewhere.org
 Content-Type: text/plain; charset=utf-8

 Hi Benjamin,

 Benjamin Slade wrote:
 So you don't include LaTeX packages that you always want to be loaded in the
 .emacs config?

 No, I tend to avoid doing such. This really is the worst place to think of...
 because your .emacs file is personal. Then, you cannot (easily) share any of
 your custom with anybody...

 I have a bunch of packages that I would need for my beamer presentations and
 it would be nice just to have them automatically included every time.

 If you want to do so, either put your list of packages

 - in an Org file that you #+INCLUDE as needed, or
 - in your own theme (that's what I generally end up doing).

 Both are better places, IMHO, for customs.

 Best regards,
  Seb



Re: [O] orgmode/beamer - won't export blocks

2011-05-27 Thread Benjamin Slade
Thank you for the help.

Yes, removing the configuration code from .emacs results in the
correct behaviour (i.e. blocks are now exported properly).

Quick question -- is there still a way of setting up beamer/orgmode
configuration in .emacs?

thanks,
  --Ben

On 27 May 2011 02:01, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Benjamin Slade sl...@jnanam.net writes:

 Thanks, Sebastien and Eric.

 I updated to org-mode v7.5 [stable], but I'm still having the same problem.

 I include below a minimal example and also the snippet of code in my
 .emacs config file which is relevant.

 Thanks for the example.  More importantly, thanks for the snippet of
 configuration code.  The problem, I believe, lies there as your simple
 file works just fine for me (assuming you have oddeven levels being
 used; it doesn't work if you have odd only).

 I would suggest that you no longer need (or want) to customise the
 org-export-latex-classes variable for beamer.

 Try removing that customisation, restart emacs and see what happens?

 HTH.
 --
 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
 : using Org-mode version 7.5 (release_7.5.312.gf194)




[O] orgmode/beamer - won't export blocks

2011-05-24 Thread Benjamin Slade
I'm having the same trouble which seems to be reported in this thread (I'm
not running Aquamacs though, just GNU Emacs under Linux, with orgmode v7.4):
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28752.html


I've followed tutorials, and orgmode isn't generating beamer \block
structures (I checked the LaTeX code generated: it is generating \itemize
rather than \block).

Did anyone ever figure out the reason for this?

-

[Orgmode] Baffled by beamer blocks

Philip J. Hollenback
Tue, 17 Aug 2010 08:31:43 -0700

I've got a basic org-mode 7.01g + beamer setup working and am able to
create and export presentations.  However I am completely unable to
create presentations with blocks in them.  I've followed the examples on
the website such as http://orgmode.org/worg/org-tutorials/org-beamer.php
with no success.

When I try to write a presentation with blocks, I find that instead of
blocks I end up with nested lists in the frames.  The LaTeX output shows
no \block structures.  I see no error messages in any of my emacs
buffers. I should note that I'm running Aquamacs 1.9 on the mac.

Can anyone suggest what in my setup might be preventing blocks from
working?  I'm really baffled at this point.

Thanks,
P.
--
Philip J. Hollenback
phil...@pobox.com
www.hollenback.net


Re: [O] orgmode/beamer - won't export blocks

2011-05-24 Thread Benjamin Slade
Thanks, Sebastien and Eric.

I updated to org-mode v7.5 [stable], but I'm still having the same problem.

I include below a minimal example and also the snippet of code in my
.emacs config file which is relevant.

Cheers, Ben.

%%Minimal example begins%%
#+startup: beamer
#+LaTeX_CLASS: beamer
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+BEAMER_FRAME_LEVEL: 2

#+MACRO: BEAMERMODE presentation
#+MACRO: BEAMERTHEME Madrid
#+MACRO: BEAMERCOLORTHEME lily
#+MACRO: BEAMERSUBJECT RMRF
#+MACRO: BEAMERINSTITUTE Miskatonic University, Astrology Dept.
#+TITLE: Presentation with Org-Mode and Beamer
#+AUTHOR: Someone

* My presentation

** Overview

   1. Blocks

   2. That's it

** Blocks
Nothing to see here.
*** A block   :B_example:
:PROPERTIES:
:BEAMER_env: example
:END:
  - Hello, world
  - I can't see any block here!
%%Minimal example ends%%


I have the following in my .emacs, in case there's something here that
is causing a problem (taken from
http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
)

%%snippet from .emacs begins%%
;; #+LaTeX_CLASS: beamer in org files
(unless (boundp 'org-export-latex-classes)
  (setq org-export-latex-classes nil))
(add-to-list 'org-export-latex-classes
  ;; beamer class, for presentations
  '(beamer
 \\documentclass[11pt]{beamer}\n
  \\mode{{{beamermode}}}\n
  \\usethemebeamertheme\n
  \\usecolorthemebeamercolortheme\n
  \\beamertemplateballitem\n
  \\setbeameroption{show notes}
  \\usepackage[utf8]{inputenc}\n
  \\usepackage[T1]{fontenc}\n
  \\usepackage{hyperref}\n
  \\usepackage{color}
  \\usepackage{listings}
  \\lstset{numbers=none,language=[ISO]C++,tabsize=4,
  frame=single,
  basicstyle=\\small,
  showspaces=false,showstringspaces=false,
  showtabs=false,
  keywordstyle=\\color{blue}\\bfseries,
  commentstyle=\\color{red},
  }\n
  \\usepackage{verbatim}\n
  \\institutebeamerinstitute\n
   \\subjectbeamersubject\n

 (\\section{%s} . \\section*{%s})


 (\\begin{frame}[fragile]\\frametitle{%s}
   \\end{frame}
   \\begin{frame}[fragile]\\frametitle{%s}
   \\end{frame})))

  ;; letter class, for formal letters

  (add-to-list 'org-export-latex-classes

  '(letter
 \\documentclass[11pt]{letter}\n
  \\usepackage[utf8]{inputenc}\n
  \\usepackage[T1]{fontenc}\n
  \\usepackage{color}

 (\\section{%s} . \\section*{%s})
 (\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} . \\subsubsection*{%s})
 (\\paragraph{%s} . \\paragraph*{%s})
 (\\subparagraph{%s} . \\subparagraph*{%s})))
%%snippet from .emacs ends%%


From: Eric S Fraga
Subject: Re: [O] orgmode/beamer - won't export blocks
Date: Tue, 24 May 2011 22:11:07 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)


 Benjamin Slade wrote:
 I'm having the same trouble which seems to be reported in this thread (I'm
 not running Aquamacs though, just GNU Emacs under Linux, with orgmode v7.4):
 http://www.mail-archive.com/address@hidden/msg28752.html

Benjamin,

But that is quite old.  That thread ended inconclusively because the OP
never got back to us with further details.  And as Sebastien says:

[...]

Sebastien Vauban address@hidden writes:
 If you search for accurate help, please post an ECM (Example Complete and
 Minimal), so that one can very quickly try your file, report if it works or
 not, and try to spot the problem.

 Best regards,
   Seb

Please give us a small *complete* org file (say, one slide with one or
two blocks) that doesn't work and we can see what is happening.  It
might also be worthwhile updating your version to org to the most recent
stable release (7.5), if you can.

In any case, I would suggest you look at the configuration options in
your org file, specifically #+BEAMER_FRAME_LEVEL and the H: #+OPTIONS
setting.

I use org+beamer practically daily and it works just fine!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.299.gb638.dirty)