[O] bug#22472: bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered after a revert

2016-02-05 Thread Stephen J. Barr
I was in the progress of writing my own email about this same issue. I was
not aware that C-c C-c is no longer used for disabling overlays. If this is
the case, what is the correct workflow for toggling these previews on and
off?

Thanks,

-Stephen



Stephen J. Barr
PhD Candidate, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stev...@uw.edu
Twitter: @stevejb
Website: http://stephen.planetbarr.com



On Fri, Feb 5, 2016 at 2:10 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Dima Kogan <d...@secretsauce.net> writes:
>
> > Ah. Thanks for explaining. The patch helps somewhat, but one can still
> > get into an inconsistent state:
> >
> >   1. Write \(1 + 2\)
> >   2. Toggle overlay with C-c C-x C-l
> >   3. M-x revert-buffer
> >
> > After the revert, the overlay remains, which is arguably OK, since the
> > text has not changed. However after the revert org doesn't realize that
> > the overlay is still up: org-latex-fragment-image-overlays is nil.
>
> Indeed.
>
> `org-latex-fragment-image-overlays' is a local variable and
> `revert-buffer' calls `normal-mode', which, in turn, calls
> `fundamental-mode'. The latter calls `kill-all-local-variables'.
> Information is lost.
>
> I don't think that `org-latex-fragment-image-overlays' is useful,
> anyway. So I removed it, along with that bug, hopefully.
>
> > I think the overlays should all disappear on a revert.
>
> I'm not convinced that an unmodified overlay should disappear.
>
> Thank you for the report.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
>
>
>


[O] tags completion in a narrowed buffer

2015-08-11 Thread Stephen J. Barr
Greetings,

In my workflow I frequently narrow buffers. Within a narrowed buffer, I
would like to add additional headlines with tag completion. However, the
menu of tags offered for completion are only the tags in the narrowed
buffer. Is it possible for me to specify that tag completion should always
offer me all tags in all org-agenda-files files.

Thanks,
Stephen


Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stev...@uw.edu
Twitter: @stevejb
Website: http://steve.planetbarr.com


[O] helm-mode-org-set-tags adding additional tags

2015-08-11 Thread Stephen J. Barr
Hello,

I am using org-mode 8.2.10 with helm. When I am adding tags to a headline,
the first tag offers me completions of all possible tags in the file.
However, if I go back later and add additional tags, I am not offered
completion. How can I fix this?

Thanks,
Stephen


Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stev...@uw.edu
Twitter: @stevejb
Website: http://steve.planetbarr.com


[O] hook on link creation

2015-08-06 Thread Stephen J. Barr
Greetings,

I have been thinking about a project I would like to do to add some custom
semantic markup to an org-mode. I think that links may be the best way to
do this. Looking at this page:

http://orgmode.org/manual/Adding-hyperlink-types.html

I am wondering if there is a way to have a hook that gets called on link
creation. E.g., if I type stevejb:my_word. I would like to immediately have
stevejb:my_word sent on dbus or something like that.

Is there existing infrastructure for this? Is this the right approach?

Thanks,
Stephen


Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stev...@uw.edu
Twitter: @stevejb
Website: http://steve.planetbarr.com


[O] org-set-property giving error (8.2.10)

2015-07-22 Thread Stephen J. Barr
Greetings,

When trying to insert a property using org-set-property on one of my large
org-mode files, I get the message:

org-read-property-name: Wrong type argument: integer-or-marker-p, nil

However, when I start a brand new org-mode file, it works. I assume that
this is breaking because I have some incorrect syntax somewhere. Is there a
way to find out where this is?

Thanks,
-Stephen


Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stev...@uw.edu
Twitter: @stevejb
Website: http://steve.planetbarr.com


Re: [O] help with custom exporter

2015-05-31 Thread Stephen J. Barr
Thank you for the help. I think I can start hacking something together now
that will do what I want it to do.



Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stev...@uw.edu
Twitter: @stevejb
Website: http://steve.planetbarr.com


On Sat, May 30, 2015 at 5:00 PM, Nicolas Goaziou m...@nicolasgoaziou.fr
wrote:

 Hello,

 Stephen J. Barr stev...@uw.edu writes:

  I am trying to modify ox-md.el. I do not know too much emacs lisp so
 please
  bear with me.
 
  Hypothetically, if I want to modify the exporter to add a THIS DOCUMENT
  BY:  at the beginning, could I do:
 
  (defun org-md-template (contents info)
Return complete document string after Markdown conversion.
  CONTENTS is the transcoded contents string.  INFO is a plist used
  as a communication channel.
(concat THIS DOCUMENT BY:  (plist-get info :author) \n contents)
  )
 
 
  However, I get an error:
 
  org-md-template: Wrong type argument: characterp, #(Stephen
 
  What is the output type of plist-get? Not a string?

 :author contains a secondary string. You need to turn it into the string
 with, e.g., `org-export-data'.

 Regards,

 --
 Nicolas Goaziou



[O] help with custom exporter

2015-05-30 Thread Stephen J. Barr
Greetings,

I am trying to modify ox-md.el. I do not know too much emacs lisp so please
bear with me.

Hypothetically, if I want to modify the exporter to add a THIS DOCUMENT
BY:  at the beginning, could I do:

(defun org-md-template (contents info)
  Return complete document string after Markdown conversion.
CONTENTS is the transcoded contents string.  INFO is a plist used
as a communication channel.
  (concat THIS DOCUMENT BY:  (plist-get info :author) \n contents)
)


However, I get an error:

org-md-template: Wrong type argument: characterp, #(Stephen

What is the output type of plist-get? Not a string?

Thanks,
Stephen


Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone:  425 516 5012
Email: stev...@uw.edu
Twitter: @stevejb
Website: http://steve.planetbarr.com


[O] is it possible to export a list of custom blocks?

2014-08-21 Thread Stephen J. Barr

I have a document that has a lot of definitions defined as custom
blocks, eg.

#+LABEL: defn:my-great-definition
#+ATTR_LATEX: :options [My Great Definition]
#+begin_definition
Blah blah.
#+end_definition


Would it be possible to export to .tex a file that has all of the
definitions in sequence?

Thanks,
Stephen


-- 
Sent with my mu4e



Re: [O] is it possible to export a list of custom blocks?

2014-08-21 Thread Stephen J . Barr
My apologies for the ambiguity. I am happy with the way the block itself
exports. I have a document with many such blocks interspersed throughout
the document. I wanted to create an org document which contains just
these blocks, and then export that document to .tex. 

E.g., if I had a paper, I would like a document containing just the
terms defined in the paper, and none of the rest of the content.

Thanks,
Stephen

Thorsten Jolitz writes:

 Stephen J. Barr stev...@uw.edu writes:

 I have a document that has a lot of definitions defined as custom
 blocks, eg.

 #+LABEL: defn:my-great-definition
 #+ATTR_LATEX: :options [My Great Definition]
 #+begin_definition
 Blah blah.
 #+end_definition


 Would it be possible to export to .tex a file that has all of the
 definitions in sequence?

 It seems to work out of the box, but maybe I don't understand your question:

 #+LABEL: defn:my-great-definition
 #+ATTR_LATEX: :options [My Great Definition]
 #+begin_definition
 Blah blah.
 #+end_definition

 #+BEGIN_SRC emacs-lisp
 (org-export-as 'latex)
 #+END_SRC

 #+results:
 #+begin_example
 % Created 2014-08-21 Do 20:48
 \documentclass[11pt]{article}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{fixltx2e}
 \usepackage{graphicx}
 \usepackage{longtable}
 \usepackage{float}
 \usepackage{wrapfig}
 \usepackage{rotating}
 \usepackage[normalem]{ulem}
 \usepackage{amsmath}
 \usepackage{textcomp}
 \usepackage{marvosym}
 \usepackage{wasysym}
 \usepackage{amssymb}
 \usepackage{hyperref}
 \tolerance=1000
 \author{Thorsten Jolitz}
 \date{\today}
 \title{}
 \hypersetup{
  pdfkeywords={},
   pdfsubject={},
   pdfcreator={Emacs 24.3.1 (Org mode 8.3beta)}}
 \begin{document}

 \tableofcontents

 \section{--text follows this line--}
 \label{sec-1}
 Stephen J. Barr stev...@uw.edu writes:

 I have a document that has a lot of definitions defined as custom
 blocks, eg.

 \#+LABEL: defn:my-great-definition
 \#+ATTR\(_{\text{LATEX}}\): :options [My Great Definition]
 \#+begin\(_{\text{definition}}\)
 Blah blah\ldots{}..
 \#+end\(_{\text{definition}}\)


 Would it be possible to export to .tex a file that has all of the
 definitions in sequence?

 It seems to work out of the box, but maybe I don't understand your question:

 \begin{definition}[My Great Definition]
 \label{defn:my-great-definition}
 Blah blah\ldots{}..
 \end{definition}

 \begin{verbatim}
 (org-export-as 'latex)
 \end{verbatim}


 -- 
 cheers,
 Thorsten
 % Emacs 24.3.1 (Org mode 8.3beta)
 \end{document}
 #+end_example

-- 
Sent with my mu4e



[O] can I disable LaTeX fragment previews individually?

2014-05-07 Thread Stephen J . Barr
Hello,

I often use org-preview-latex-fragment and sometimes I would like to
turn the previews on and off on a case-by-case basis. Then I do C-c C-c,
it turns off all the previews. Is there a way to toggle the preview just
for the fragment at the point?


Thanks!,
Stephen
-- 
Sent with my mu4e




Re: [O] can I disable LaTeX fragment previews individually?

2014-05-07 Thread Stephen J . Barr
Thank you for letting me know. This may be a fun project!

Nick Dokos ndo...@gmail.com writes:

 Stephen J. Barr stev...@uw.edu writes:

 Hello,

 I often use org-preview-latex-fragment and sometimes I would like to
 turn the previews on and off on a case-by-case basis. Then I do C-c C-c,
 it turns off all the previews. Is there a way to toggle the preview just
 for the fragment at the point?



 No built-in way afaict: C-c C-c calls the following function

 ,
 | (defun org-remove-latex-fragment-image-overlays ()
 |   Remove all overlays with LaTeX fragment images in current buffer.
 |   (mapc 'delete-overlay org-latex-fragment-image-overlays)
 |   (setq org-latex-fragment-image-overlays nil))
 `

 which maps delete-overlay over *all* the elements of the
 org-latex-fragment-image-overlays list.

 Figuring our which overlay in that list is the one you want to delete
 may or may not be easy, but if you knew then you can call
 delete-overlay on it. But you'll have to write some lisp.

 Nick

-- 
Sent with my mu4e




[O] tabs inserted in code blocks

2014-03-11 Thread Stephen J. Barr

Hello,

I have the following code block in an org-mode file:



#+CAPTION: Matlab Dynamic Programming Solution
#+LABEL: code:matlab-outer-loop-reference
#+BEGIN_SRC octave  
  Normal_BuildT = realmax * ones(T, i_max, j_max);
  for i=(1:i_max)
  for j=(1:j_max)
  Normal_BuildT(T,i,j) = compute_cell_final(i,j);
  end
  end
  
  for t=((T-1):-1:1)
  for i=(1:i_max)
  for j=(1:j_max)
 Normal_BuildT(t,i,j) = compute_cell(t,i,j, Normal_BuildT(t+1,:,:));
  end
  end
  end
#+END_SRC 



I am exporting this to LaTeX, which gives me the following code.
See that there are tab characters inserted before the lines with Normal_BuildT. 
This is causing minted to render with these strange ^^I characters. 



\begin{listing}[H]
\begin{minted}[]{octave}
Normal_BuildT = realmax * ones(T, i_max, j_max);
for i=(1:i_max)
for j=(1:j_max)
Normal_BuildT(T,i,j) = compute_cell_final(i,j);
end
end

for t=((T-1):-1:1)
for i=(1:i_max)
for j=(1:j_max)
   Normal_BuildT(t,i,j) = compute_cell(t,i,j, Normal_BuildT(t+1,:,:));
end
end
end
\end{minted}
\caption{\label{code:matlab-outer-loop-reference}Matlab Dynamic Programming 
Solution}
\end{listing}



How do I disable this behavior?

Thanks,
Stephen

-- 
Sent with my mu4e




[O] Equation references using RefTex

2014-02-09 Thread Stephen J. Barr
Hello,

My apologies if this is a redundant topic but having searched the
mailing list archives, it is not clear what the state of the art is at
this time.

I am trying to use org-mode as a replacement for tex and auctex/reftex,
but I really miss the ability of reftex to keep track of equation
labels. Can reftex keep track of equation labels in an org-mode
document? I would love to be able to do C-c = and have identical
behavior in org-mode and latex. Is anyone working on this? How can I
help?

Thanks,
Stephen


-- 
Sent with my mu4e




Re: [O] Using org-diary

2014-01-07 Thread Stephen J . Barr
I think that iI figured it out. I was transposing the last two arguments
for some of the cases. Just curious, in the documentation for org-class,

(org-class Y1 M1 D1 Y2 M2 D2 DAYNAME rest SKIP-WEEKS)

what is rest ?

Thanks,
Stephen

ndo...@gmail.com writes:

 Stephen J. Barr stev...@uw.edu writes:

 Greetings org-mode,

 I am trying to use org-class to put in my regularly scheduled
 events. The following snippet is my attempt to put in a regularly
 scheduled Monday-evening event. This is in a file that is included in my
 org-agenda-files, yet when I look at my agenda, this does not show up!

 

 *** Teaching
 %%(org-class 2014 1 6 2014 3 10 1 1) 7:00pm-8:30pm

 

 I would appreciate any advice on this.


 Tested it with a minimal .enacs and it works fine for me:

 Org-mode version 8.2.4 (release_8.2.4-410-ge23bbd)

 Nick

-- 
Sent with my mu4e




[O] Using org-diary

2014-01-06 Thread Stephen J . Barr
Greetings org-mode,

I am trying to use org-class to put in my regularly scheduled
events. The following snippet is my attempt to put in a regularly
scheduled Monday-evening event. This is in a file that is included in my
org-agenda-files, yet when I look at my agenda, this does not show up!



*** Teaching
%%(org-class 2014 1 6 2014 3 10 1 1) 7:00pm-8:30pm



I would appreciate any advice on this.

Thanks,
Stephen

-- 
Sent with my mu4e




Re: [O] Using org-diary

2014-01-06 Thread Stephen J. Barr
What I am now seeing is that the particular date gets picked up, but not
the time. Am I doing something incorrect with the syntax?

Best,
Stephen


On Mon, Jan 6, 2014 at 1:50 PM, Nick Dokos ndo...@gmail.com wrote:

 Stephen J. Barr stev...@uw.edu writes:

  Greetings org-mode,
 
  I am trying to use org-class to put in my regularly scheduled
  events. The following snippet is my attempt to put in a regularly
  scheduled Monday-evening event. This is in a file that is included in my
  org-agenda-files, yet when I look at my agenda, this does not show up!
 
  
 
  *** Teaching
  %%(org-class 2014 1 6 2014 3 10 1 1) 7:00pm-8:30pm
 
  
 
  I would appreciate any advice on this.
 

 Tested it with a minimal .enacs and it works fine for me:

 Org-mode version 8.2.4 (release_8.2.4-410-ge23bbd)

 Nick








Re: [O] Using org-diary

2014-01-06 Thread Stephen J. Barr
So, from a broader perspective, perhaps this org-class stuff is not the
right way to go. I am also noticing that the icalendar-export does not seem
to be exporting these diary-sexps anyway. Perhaps I can
use org-clone-subtree-with-time-shift to do most of what I want.

Best,
Stephen


On Mon, Jan 6, 2014 at 3:35 PM, Nick Dokos ndo...@gmail.com wrote:

 Stephen J. Barr stev...@uw.edu writes:

  What I am now seeing is that the particular date gets picked up, but not
 the time. Am I doing something incorrect with the
  syntax?
 

 No, I believe that's a limitation of what you can do with these
 diary-sexps.

 You can always add the time to the headline: that way it'll appear in
 the agenda (but not in the grid, if you use that, and not sorted
 correctly - the time is just a label):

 *** Teaching 7:00pm-8:30pm
%%(org-class 2014 1 6 2014 3 10 1 1)

 Nick





[O] Using allowframebreaks in org-beamer

2013-11-11 Thread Stephen J. Barr

Greetings,

I am trying to get allowframebreaks to work in an org-mode
presentation. I have the following header + slide.

In the slide that is produced, it seems to drop off the slide after the
8th item, and there is no slide with anything about 9. Is there anything
else that I need to add?

Thanks,
-Stephen




#+OPTIONS: reveal_center:t reveal_progress:t reveal_history:nil 
reveal_control:t reveal_mathjax:t num:nil toc:nil
#+REVEAL_TRANS: linear
#+REVEAL_THEME: night
#+REVEAL_HLEVEL: 2
#+ATTR_REVEAL: :frag highlight-red
#+BEAMER_FRAME_LEVEL: 1
#+BEAMER_THEME: Madrid
#+LaTeX_CLASS_OPTIONS: [mathserif]


* (8) Optimization of the Average Cost Function - Summary
  :PROPERTIES:
  :BEAMER_env: frame
  :BEAMER_envargs: [allowframebreaks]
  :END:

   *Equations 18-25*
Summary:
1. Write Total Cost \(TC(Q_{1},Q_{2},R_{1},R_{2})\)  and Average Cost 
\(AC(Q_{1},Q_{2},R_{1},R_{2}) = TC/T\).
2. For fixed \(R_{1}\) and \(R_{2}\), we need partials of \(AC\) wrt \(Q_{1}, 
Q_{2} = 0\).
3. Derive conditions for an optimal \(Q_{2}\).
4. There is no proof, but through experience there is a unique \(Q_{2}\) which 
satisfies opt. \(Q_{2}\) conditions (Eq. (22)).
5. In some cases, Eq. (22) was positive, so sometimes \(Q_{2} = 0\).
6. Computational experiments for finding \(Q_{2}\) from (22) in Table 1
7. *Given optimal \(Q_{2}\), can find optimal \(Q_{1}\) from  Eq. (21a)*
   1. Note that it has not been proved that \(AC(Q_{1},Q_{2} | R_{1},R_{2}\) is 
convex in \(Q_{1},Q_{2}\), but by computational experience is convex
8. Use heuristics to search for \(R_{2}\)
   1. \(Q_{2}^{*}\) decreasing in \(R_{2}\)
   2. Let \(R_{2}'\) be the smallest value of \(R_{2}\) which results in 
\(Q_{2}* = 0\).
   3. Then, any value of \(R_{2}  R_{2}'\) is not optimal.
   4. Eq. (25) can calculate an upper bound of \(R_{2}\), called \(R_{2}'\).
   5. Search for \(R_{2} \in [0, R_{2}']\)
9. From experience, \(R_{1}^{*}\) is always below the optimal \(R\) in the 
standard problem with no emergency ordering.
   1. This creates an upper bound for \(R_{1}\).
   2. Search \(R_{1} \in [0,R]\).







Re: [O] Using allowframebreaks in org-beamer

2013-11-11 Thread Stephen J. Barr
I agree with the less stuff part. The first pass in my slides is for
content, second pass is for formatting :-). For now, I did manual division
of the sides. I am using both org-beamer and org-reveal (
https://github.com/yjwen/org-reveal) and ideally they would have optimized
(and possibly different) slide breaks. E.g. perhaps beamer breaks 9
elements into 3 3-elements slides whereas reveal breaks into 2 slides, one
with 5 elements and one of 4 elements.

I'll look around for the previous post but in the mean time I think I will
stick with method 0.

Thanks,
Stephen

Best,
Stephen


On Mon, Nov 11, 2013 at 6:13 PM, Rasmus ras...@gmx.us wrote:

 Hi Stephen,

 Stephen J. Barr stev...@uw.edu writes:

  I am trying to get allowframebreaks to work in an org-mode
  presentation. I have the following header + slide.
 
  In the slide that is produced, it seems to drop off the slide after the
  8th item, and there is no slide with anything about 9. Is there anything
  else that I need to add?

 Solution:

 0. Put less stuff on your slides!  Seriously.

 1. If 0 doesn't suit you look for the previous thread on this issue
started by Eric Fragga.  There's a real simple solution where you
unset the framelabel (label=).  I also posted a filter that should
take care of it automatically it that's better in your setup.

 Eric has reported the bug upstream here:


 https://bitbucket.org/rivanvx/beamer/issue/265/including-frame-label-option-stops

 Hope it helps.

 –Rasmus

 --
 . . . The proofs are technical in nature and provides no real
 understanding.






[O] Is there a way to, in a table, denote an entire column as LaTeX

2013-10-13 Thread Stephen J. Barr
Greetings,

In a table, is it possible to denote that an entire column is LaTeX
markup, rather than using the $$ markup around each expression. 

Sample table:

|-+--|
| Term| Explanation  |
|-+--|
| $$x^2$$ | This is a square |
| $$x^3$$ | This is a cubic  |
|-+--|


Is there a better way to do this?

Thanks,
Stephen



Re: [O] is there a way to have =var_name= in table

2012-04-01 Thread Stephen J. Barr
Excellent. Thank you.

On Sat, Mar 31, 2012 at 3:47 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On 31.3.2012, at 21:24, Stephen J. Barr wrote:

 Dear org-mode list,

 Quick and easy question:

 I want to make a document that has a table where one column has
 variables and another column has descriptions.

 E.g.

 | VAR NAMES | DESC                   |
 |---+|
 | =var1=    | this is the first var  |
 | =var2=    | this is the second var |
 |           |                        |
 |---+|
 However, pressing [TAB] after writing =var1= causes #ERROR to show up.
 How do I make this work the way I am intending? :)


 | VAR NAMES | DESC                   |
 |---+|
 | ~var1~    | this is the first var  |
 | ~var2~    | this is the second var |
 |           |                        |
 |---+|

 - Carsten




[O] how to specify table width in HTML export

2012-03-20 Thread Stephen J. Barr
Hello,

This seems like a simple question but I can't seem to find the answer?
How do I specify the table width for an org-table that I will export
to HTML?

Thanks,
Stephen



[O] question about org2blog and latex

2012-03-15 Thread Stephen J. Barr
Hello,

I am working on blogging using org2blog, allowing me to update my
wordpress blog with org-mode. All is working well except latex. I was
expecting latex images but instead just get things like:

$latex z * k^\theta$

The header to my blogpost.org file has

#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+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
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+XSLT:

Am I doing something wrong?

Thanks,
Stephen



Re: [O] question about org2blog and latex

2012-03-15 Thread Stephen J. Barr
Thanks for the help. I just checked the variables and
org2blog/wp-use-wp-latex was set, but the wp-latex plugin was not
installed :) All is working now, although it is definitely a little
grainy. But, it'll certainly lead to an awesome series of blog posts
nonetheless. Puneeth, thank you so much for the fantastic plugin.

One other quick question: Does org-mode and org2blog work with
numbered equations and equation references? If so, could someone
provide a simple example?

Thanks,
Stephen

On Thu, Mar 15, 2012 at 2:51 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 On Thu, Mar 15, 2012 at 10:21 PM, Nick Dokos nicholas.do...@hp.com wrote:
 Stephen J. Barr stephenjb...@gmail.com wrote:

 Hello,

 I am working on blogging using org2blog, allowing me to update my
 wordpress blog with org-mode. All is working well except latex. I was
 expecting latex images but instead just get things like:

 $latex z * k^\theta$


 Not sure what that latex is doing in there. The following works as normal
 HTML for me:

 --8---cut here---start-8---
 * foo
 Here's a formula


 $\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}}\over{2}}$

 $latex z * k^\theta$
 --8---cut here---end---8---

 A few things: the default way to export fragments is through MathJax:
 there may be some sort of a setup problem that prevents MathJax from
 working with the blogging stuff.  You might want to fall back to
 png images and see if that works better for you (you'll need dvipng),
 although that's usually seen as a step back.

 I'd like to clarify that the initial implementation of org2blog, IIRC,
 did make use of the png images and upload them to the blog.  Sometime,
 later support was added to support Wordpress's LaTeX plugin. To render
 your LaTeX using this, in your wordpress blog, just set the variable
 `org2blog/wp-use-wp-latex`.  [Btw, I hope you are indeed talking about
 org to wordpress org2blog. There's another one that publishes to
 blogspot, with the same name.]

 The preferred way to enter math in latex (and in org) is with \(...\)
 for inline formulas and \[...\] for displayed ones. $...$ will work with
 certain restrictions noted in the org docs (see below) for the inline
 case, $$...$$ does *not* work for the displayed case (it's not even legal
 LaTeX).

 C-h v org-export-with-LaTeX-fragments RET has the details.

 (info (org) LaTeX fragments) has more on $...$, mathJax etc.

 Also, all of these ways which do work with HTML export should work
 with the org2blog.  Also, thanks Nick for the detailed answer. :)

 HTH,
 Puneeth



Re: [O] Is it possible to have a code fragment in a bulleted list?

2012-01-09 Thread Stephen J. Barr
Thank you for the suggestion. I'll take a look at it.

On Mon, Jan 9, 2012 at 2:13 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Stephen J. Barr stephenjb...@gmail.com writes:

 Quick question. Is it possible to have a code fragment in a bulleted
 list? For example, I would like to do

 - This is interesting
   - Level 2 for loop

 #+begin_src R
 for (i in 1:10) {
     ...
 }
 #+end_src

   - This should also be on level 2

 When I render this as HTML, the sentences Level 2 for loop and This
 should also be on level 2 to be at the same depth, with the source
 code block in the middle. How do I do this?

 You have to indent your whole code block so that it belongs to the list.
 In other words, the #+begin_src line has to start at the L of Level
 2.

 You may want to read the section 2.7 of the manual for more information.


 Regards,

 --
 Nicolas Goaziou



[O] Is it possible to have a code fragment in a bulleted list?

2012-01-08 Thread Stephen J. Barr
Hello fellow org-mode users,

Quick question. Is it possible to have a code fragment in a bulleted
list? For example, I would like to do

- This is interesting
  - Level 2 for loop
#+begin_src R
for (i in 1:10) {
...
}
#+end_src
  - This should also be on level 2

When I render this as HTML, the sentences Level 2 for loop and This
should also be on level 2 to be at the same depth, with the source
code block in the middle. How do I do this?

Thanks and sorry for the relatively simple question.

Stephen;



[O] bibtex bibliography exported to HTML

2012-01-04 Thread Stephen J. Barr
Hello,

I am using org-mode to work on some outlines of papers. I will
eventually export to LaTeX and edit the .tex itself, but during this
initial phase it is nice to have it in HTML form so I can send it in
an email. My question is, I want to include bibliography entries the
way I would with LaTeX, but then have a decent looking bibliography
when I export to HTML. Is this behaviour supported, and if so, how do
I do it?

Thank you in advance for the help.

Best regards,
-stephen



Re: [O] bibtex bibliography exported to HTML

2012-01-04 Thread Stephen J. Barr
Thank you Nicholas and Christian. I'll give them both a try.

On Wed, Jan 4, 2012 at 2:58 PM, Christian Moe m...@christianmoe.com wrote:
 On 1/4/12 11:35 PM, Nick Dokos wrote:

 The package mentioned there, org-exp-bibtex.el is in contrib/lisp.


 Right, I'd forgotten that. Stephen might want to try that out, rather than
 my Org-cite draft. It may be easier to use and is certainly more mature.

 I'll have a fresh look at it myself when I get the time: I was stumped
 before because it requires bibtex2html,  written in Objective Caml, which I
 never got to compile... but it looks like they've got OS X binaries now.

 Yours,
 Christian



Re: [O] regenerating agendas automatically if any .org files change

2011-11-16 Thread Stephen J. Barr
I think that that would also work. I will just have to disable emacs-server.

On Fri, Nov 11, 2011 at 6:30 PM, Herbert Sitz hes...@gmail.com wrote:
 Viktor Rosenfeld listuser36 at googlemail.com writes:


 AFAIK, there can only be one agenda view (an expert correct me, if I'm
 wrong). But you can multiple blocks in the agenda. Search for Office
 block agenda in:

 http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html

 Cheers,
 Viktor

 I assume an agenda view with multiple blocks would work for OP.

 But given his intended use could he not also just start up several independent
 Emacs instances on his B machine, each to show a different agenda view?

 -- Herb








Re: [O] regenerating agendas automatically if any .org files change

2011-11-11 Thread Stephen J. Barr
Okay, I will give custom agenda blocks a try. Thanks for the help. I
really appreciate it.

On Fri, Nov 11, 2011 at 2:01 AM, Viktor Rosenfeld
listuse...@googlemail.com wrote:
 Hi Stephen,

 AFAIK, there can only be one agenda view (an expert correct me, if I'm
 wrong). But you can multiple blocks in the agenda. Search for Office
 block agenda in:

 http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html

 Cheers,
 Viktor

 Stephen J. Barr wrote:

 Excellent. Thanks for the pointer. So, just to clarify, is it possible
 to have multiple simultaneous agenda views? I think it would be really
 cool to have my calendar and to-do-list and maybe another custom
 agenda view all dynamically refreshed every few minutes, just sitting
 on my second monitor. Then, as I add appointments, tasks, etc., they
 all start showing up.

 How can I make this happen? My lisp skills still introductory. I can
 modify lisp code, but I haven't really written my own from scratch
 yet.

 -stephen

 On Thu, Nov 10, 2011 at 7:09 PM, suvayu ali fatkasuvayu+li...@gmail.com 
 wrote:
  Hello Stephen,
 
  Welcome to the list. Hope you have fun using org-mode. :)
 
  On Fri, Nov 11, 2011 at 00:54, Stephen J. Barr stephenjb...@gmail.com 
  wrote:
  I would like B to simply regenerate 3 different agenda views
  whenever the .org files on Dropbox change.
 
  This is documented on our git based community wiki.
  http://orgmode.org/worg/org-hacks.html#sec-1-8-11
 
  --
  Suvayu
 
  Open source is the future. It sets us free.
 






[O] regenerating agendas automatically if any .org files change

2011-11-10 Thread Stephen J. Barr
Hello,

First of all, thank you for a wonderful mode and a wonderful mailing
list. This is my first posting. I have the following idea for a
workflow, and I am not sure if there is already functionality to do
this: I keep all my .org files in a Dropbox. On my desk I have my main
workstation A and a slow workstation B. Both A and B are synced to
Dropbox. Throughout the day, as I work with org-mode using workstation
A, I would like B to simply regenerate 3 different agenda views
whenever the .org files on Dropbox change. This would really add to
the functionality of workstation B. Is there any built-in
functionality to do this?

Thanks,
-stephen



Re: [O] regenerating agendas automatically if any .org files change

2011-11-10 Thread Stephen J. Barr
Excellent. Thanks for the pointer. So, just to clarify, is it possible
to have multiple simultaneous agenda views? I think it would be really
cool to have my calendar and to-do-list and maybe another custom
agenda view all dynamically refreshed every few minutes, just sitting
on my second monitor. Then, as I add appointments, tasks, etc., they
all start showing up.

How can I make this happen? My lisp skills still introductory. I can
modify lisp code, but I haven't really written my own from scratch
yet.

-stephen

On Thu, Nov 10, 2011 at 7:09 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote:
 Hello Stephen,

 Welcome to the list. Hope you have fun using org-mode. :)

 On Fri, Nov 11, 2011 at 00:54, Stephen J. Barr stephenjb...@gmail.com wrote:
 I would like B to simply regenerate 3 different agenda views
 whenever the .org files on Dropbox change.

 This is documented on our git based community wiki.
 http://orgmode.org/worg/org-hacks.html#sec-1-8-11

 --
 Suvayu

 Open source is the future. It sets us free.