Re: [O] porting guide from old to new beamer export?

2015-09-01 Thread Joseph Vidal-Rosset
2015-08-31 10:32 GMT+02:00 Loris Bennett :

> #+BEAMER_THEME: CambridgeUS
>
> If that doesn't work, you should post a minimal working example which
> illustrates the problem.
>


I must say to the list that the code that solves my problem is given in
Eric Fraga's tutorial:

#+latex_header:
\mode{\usetheme{CambridgeUS}\usepackage{beamer_udl_theme}}

where the last \usepackage refers to a personal customization of
CambridgeUS theme.

Now I meet a new problem : what is the org-mode code to export this Latex
code that customizes the frame of the title page? :

\begin{frame}
\titlepage
\begin{center}
\includegraphics[height=1cm,width=1cm]{cnrs_noir}~~
\includegraphics[height=1cm,width=1cm]{logo}~
\includegraphics[height=1cm,width=1cm]{logo-udl}
\end{center}
\end{frame}

Best wishes

Jo.


Re: [O] Bug: Can't export subtree with links to headlines outside of the subtree [8.3.1 (8.3.1-95-g1dbb25-elpa)]

2015-09-01 Thread Nicolas Goaziou
Hello,

Michael Behr  writes:

> I want to export a subtree of a file, but that subtree has links to
> headings in the file that are outside of the subtree. I expect the
> exporting process to produce some sort of valid result, but instead it
> throws an "Unable to resolve link" error. Here's a test file to
> reproduce:
>
> * Foo
> * Bar :export:
> [[*Foo][Foo]]
>
> Making a file with those contents and trying to export it to e.g.
> latex will fail, but if the :export: tag is removed, exporting
> succeeds. I can't easily get a backtrace because the error comes from
> user-error, but it happens in org-export-resolve-fuzzy-link.
>
> Of course the exported file can't link to a target that doesn't exist,
> but it's probably better to strip out the link in this case than to
> throw an error, right?

Actually, wrong. It was discussed already, and the current trend is to
throw an error instead of silently dropping the link.

Can't you just filter it out before exporting?


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Can't export subtree with links to headlines outside of the subtree [8.3.1 (8.3.1-95-g1dbb25-elpa)]

2015-09-01 Thread Marcin Borkowski

On 2015-09-01, at 20:14, Michael Behr  wrote:

> I want to export a subtree of a file, but that subtree has links to
> headings in the file that are outside of the subtree. I expect the
> exporting process to produce some sort of valid result, but instead it
> throws an "Unable to resolve link" error. Here's a test file to

This /might/ be helpful: https://github.com/mbork/org-one-to-many

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] Bug: Can't export subtree with links to headlines outside of the subtree [8.3.1 (8.3.1-95-g1dbb25-elpa)]

2015-09-01 Thread Michael Behr
I want to export a subtree of a file, but that subtree has links to
headings in the file that are outside of the subtree. I expect the
exporting process to produce some sort of valid result, but instead it
throws an "Unable to resolve link" error. Here's a test file to
reproduce:

* Foo
* Bar :export:
[[*Foo][Foo]]

Making a file with those contents and trying to export it to e.g.
latex will fail, but if the :export: tag is removed, exporting
succeeds. I can't easily get a backtrace because the error comes from
user-error, but it happens in org-export-resolve-fuzzy-link.

Of course the exported file can't link to a target that doesn't exist,
but it's probably better to strip out the link in this case than to
throw an error, right?

Emacs  : GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS
apple-appkit-1265.21)
 of 2014-10-20 on builder10-9.porkrind.org
Package: Org-mode version 8.3.1 (8.3.1-95-g1dbb25-elpa)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe
 org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
 org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook org-show-block-all
   append local]
  5]
#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook
   org-babel-show-result-all append local]
  5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
 org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
 org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


Re: [O] Default html export css styles?

2015-09-01 Thread Lawrence Bottorff
So this default stuff is located in ox-html.el I'm guessing. If I wanted to
override the default behavior of putting a border and a gray bar around a
source code block, there really isn't a specific Org Export HTML
customization entry for that. I'd just have to figure out how to override
the specific css in the generated default css at the top of my exported
HTML, correct? I'm not sure which thing I'm supposed to tweak per this
 but it must be one
of them. In the meantime, I stuck this into my stylesheet.css and it seemed
to work. Is the usual thing to simply turn off ox-html and roll your own?

pre {
border: none;
box-shadow: none;
  }


>


Re: [O] Bug: Can't export subtree with links to headlines outside of the subtree [8.3.1 (8.3.1-95-g1dbb25-elpa)]

2015-09-01 Thread Nicolas Goaziou
Michael Behr  writes:

> My use case is a large file of notes that I want to typeset frequently as I
> update it, so that won't work for me unless there's an easy way to pass a
> filtered version of the file to the exporter.

There are hooks, e.g. `org-export-before-processing-hook' where you can
comment out offending links.

> Personally I'd prefer a customization option to change this behavior, but
> if that's not doable I'll work around it. Might be worth putting a note
> about it in the manual, though.

A customizable option sounds reasonable, indeed. Do you want to provide
a patch?

> (I can't find the previous discussion of this, so sorry if I'm retreading
> old ground.)

This was introduced in commit dc08e98885015c27196843aeb62bde287da84873,
dating back to 11 March. You may want to browse the list archives around
that period if you're interested.


Regards,



Re: [O] Default html export css styles?

2015-09-01 Thread Thomas S . Dye

Lawrence Bottorff  writes:

> So this default stuff is located in ox-html.el I'm guessing. If I wanted to
> override the default behavior of putting a border and a gray bar around a
> source code block, there really isn't a specific Org Export HTML
> customization entry for that. I'd just have to figure out how to override
> the specific css in the generated default css at the top of my exported
> HTML, correct? I'm not sure which thing I'm supposed to tweak per this
>  but it must be one
> of them. In the meantime, I stuck this into my stylesheet.css and it seemed
> to work. Is the usual thing to simply turn off ox-html and roll your own?

Or, use a stylesheet designed for Org-mode, e.g.,
https://github.com/fniessen/org-html-themes.git

hth,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] porting guide from old to new beamer export?

2015-09-01 Thread Marko Schütz-Schmuck
Suvayu Ali  writes:

[..]
>   latex:\hoareTriple{V}{\(\textmath{merge}\) 
  latex:}{P}
> 
> See the help string for org-export-snippet-translation-alist.
> 
> Hope this helps,

Yes!! It does help a lot! Thank you very much.

Best regards,

Marko






Re: [O] Bug: Can't export subtree with links to headlines outside of the subtree [8.3.1 (8.3.1-95-g1dbb25-elpa)]

2015-09-01 Thread Michael Behr
My use case is a large file of notes that I want to typeset frequently as I
update it, so that won't work for me unless there's an easy way to pass a
filtered version of the file to the exporter.

Personally I'd prefer a customization option to change this behavior, but
if that's not doable I'll work around it. Might be worth putting a note
about it in the manual, though.

(I can't find the previous discussion of this, so sorry if I'm retreading
old ground.)

Thanks,
Michael

On Tue, Sep 1, 2015 at 2:29 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Michael Behr  writes:
>
> > I want to export a subtree of a file, but that subtree has links to
> > headings in the file that are outside of the subtree. I expect the
> > exporting process to produce some sort of valid result, but instead it
> > throws an "Unable to resolve link" error. Here's a test file to
> > reproduce:
> >
> > * Foo
> > * Bar :export:
> > [[*Foo][Foo]]
> >
> > Making a file with those contents and trying to export it to e.g.
> > latex will fail, but if the :export: tag is removed, exporting
> > succeeds. I can't easily get a backtrace because the error comes from
> > user-error, but it happens in org-export-resolve-fuzzy-link.
> >
> > Of course the exported file can't link to a target that doesn't exist,
> > but it's probably better to strip out the link in this case than to
> > throw an error, right?
>
> Actually, wrong. It was discussed already, and the current trend is to
> throw an error instead of silently dropping the link.
>
> Can't you just filter it out before exporting?
>
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Nicolas Goaziou
Eric Abrahamsen  writes:

> I agree 'org is pretty useless. But couldn't we just allow any symbol,
> and let the export process blow up if an invalid symbol is given?

Not if we allow latin1 or utf-8 as values, which are not valid export
back-ends. Otherwise, I do not mind.


Regards,



Re: [O] Default html export css styles?

2015-09-01 Thread Scott Randby

On 09/01/2015 11:52 AM, Lawrence Bottorff wrote:

When I do an HTML export of my org buffer, it produces a default css
section in the head:


Re: [O] Default html export css styles?

2015-09-01 Thread Eric S Fraga
On Tuesday,  1 Sep 2015 at 15:52, Lawrence Bottorff wrote:
> When I do an HTML export of my org buffer, it produces a default css
> section in the head:

[...]

> What is producing this default css styling and how can I change it directly?

It's a constant, ~org-html-style-default~, defined in ox-html.el.

Assuming you are using a recent enough org, you can override whether
this is included:

,[ C-h v org-html-head-include-default-style RET ]
| org-html-head-include-default-style is a variable defined in ‘ox-html.el’.
| Its value is t
| 
|   This variable is safe as a file local variable if its value
|   satisfies the predicate ‘booleanp’.
| 
| Documentation:
| Non-nil means include the default style in exported HTML files.
| The actual style is defined in ‘org-html-style-default’ and
| should not be modified.  Use ‘org-html-head’ to use your own
| style information.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.4 of Emacs.
`

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] gnuplot: plotting students' progress of grades

2015-09-01 Thread Robert Klein
Hi,

Tobias Frischholz  wrote:

> Hi List,
> 
> I have a table in org which looks like this (student’s grades):
> 
  [s.d.]
> I would like to use gnuplot to show me a line graph of each student’s
> single grades in order to resemble their progress during the school
> year. Can this be achieved with it?
> 

You can use something like this:

#+Name: grades
|---+++++--|
|   | Schüler| 1-fach | 1-fach | 1-fach | note |
|---+++++--|
| # | Wurm, Hans |  4 |  3 |  2 | 3.18 |
| # | Igel, Sepp |  1 |  2 |  3 | 3.28 |
|---+++++--|
| # | \o |   2.50 |   2.50 |   2.50 | 3.23 |
|---+++++--|

#+begin_src gnuplot :var data=grades :file noten.png
  put your gnuplot code here
#+end_src

Please see the worg page
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html
for more information.

Best regards
Robert



> Best regards,
> Tobias Frischholz
> 
> PGP PUBLIC KEY:
> http://pgp.mit.edu/pks/lookup?search=0xCD463AC1=index
> 




Re: [O] porting guide from old to new beamer export?

2015-09-01 Thread Suvayu Ali
On Tue, Sep 01, 2015 at 12:19:32AM +, Marko Schütz-Schmuck wrote:
> Suvayu Ali  writes:
> 
> > 
> > On Mon, Aug 31, 2015 at 05:23:52PM +, Marko Schütz-Schmuck wrote:
> > > 
> > > Thanks for the link. I had used all of the documentation that are 
> > > referenced
> > > on that page.
> > > 
> > > I have uploaded a typical file with slides to http://pastebin.com/L2ss0hXG
> > > and http://pastebin.com/D61eSkDq.
> > > 
> > > When I publish this to PDF with the new exporter the LaTeX file that is
> > > generated does not use any frames http://pastebin.com/8jN6XeuE
> > 
> > I think you are doing one of two things wrong.  Either your
> > org-latex-classes is incorrectly setup, or you are simply exporting to
> > latex instead of beamer (C-c C-e l b).  E.g. I get the following as the
> > first frame:
> 
> Thanks, that helps a lot!
> 
> I did not have an option to export to beamer. I wasn't aware that I had to
> require ox-beamer explicitly.

Okay good.

> Now I notice that the new exporter makes frame titles like this
> 
> \begin{frame}[label=sec-8]{proving 
> \hoareTriple{V}\{\(\textmath{merge}\)\}\{P\}}
> 
> where the old one generated this
> 
> \begin{frame}
> \frametitle{proving \hoareTriple{V}{\(\textmath{merge}\)}{P}}
> \label{sec-8}
> 
> The new exporter escaped some { and } that should not be escaped.

The new exporter tries to preserve special characters whenever it
doesn't recognise a latex snippet.  To ensure they are not escaped as
special characters, you should use export snippets.  Try:

  @@latex:\hoareTriple{V}{@@\(\textmath{merge}\)@@latex:}{P}@@

See the help string for org-export-snippet-translation-alist.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] gnuplot: plotting students' progress of grades

2015-09-01 Thread Loris Bennett
Hi Tobias,

Tobias Frischholz  writes:

> Hi List,
>
> I have a table in org which looks like this (student’s grades):
>
> |---++++++++++++++-|
> | | Schüler | 1-fach | 1-fach | 1-fach | 1-fach | 2-fach | 2-fach | 2-fach |
> 2-fach | 4-fach | 4-fach | 4-fach | 4-fach | Endnote |
> |---++++++++++++++-|
> | # | Wurm, Hans | 4 | 3 | 2 | 3 | 3 | | 3 | 1 | 3 | | 3 | 5 | 3.18 |
> | # | Igel, Sepp | 1 | 2 | 3 | 3 | | | | 3 | 2 | | 3 | 6 | 3.28 |
> |---++++++++++++++-|
> | # | \o | 2.50 | 2.50 | 2.50 | 3.00 | 3.00 | 0.00 | 3.00 | 2.00 | 2.50 | 
> 0.00 |
> 3.00 | 5.50 | 3.23 |
> |---++++++++++++++|
>
> I would like to use gnuplot to show me a line graph of each student’s single
> grades in order to resemble their progress during the school year.
> Can this be achieved with it?
>
> Best regards,
> Tobias Frischholz
>
> PGP PUBLIC KEY: http://pgp.mit.edu/pks/lookup?search=0xCD463AC1=index

I haven't used gnuplot for a couple of decades and in recent years have
used R with org for this sort of thing, but I'm sure it's possible

Have you looked at

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html

?

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] can't assign to hline relative reference

2015-09-01 Thread Nicolas Goaziou
Hello,

Luke Swart  writes:

> There seems to be an error when using hline-relative references in an
> org-mode table’s formula. For example, I have the following org-mode table:
>
> #+BEGIN: columnview :hlines 1 :id global
> | /Project/  | Mon | Tue | Wed |  Thu | Fri |  Sat | Sun | /Total/ |
> |+-+-+-+--+-+--+-+-|
> | AnotherProduct | | | |  | | 2.50 | | |
> | Prototype  | | | | 3.50 | |  | | |
> |+-+-+-+--+-+--+-+-|
> | /Daily/| | | |  | |  | | |
> #+TBLFM: @I$9..@II$9=vsum($2..$8);%.2f;::@II$2..@III$9='(format
> "%3.2f" (apply '+ '(@I..@II)));N;
>
> and I get the error can't assign to hline relative reference when I run M-x
> org-table-recalculate. I looked over the org-mode references documentation
>  and the gmane.org forums
> , but I did not find
> any reasons as to why the hline relative references could not be
> assigned.

This is a known limitation: hline relative references are not allowed on
the left hand side of a formula. The error message you get should be
explicit.

There are apparently subtle problems, IIRC, as pointed out in
.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Nicolas Goaziou
Hello,

Jon Miller  writes:

> Update to how org-mime constructs emails for the plain/text section of the
> mime email. I've found that using the 'ascii exporter produces a saner
> plain/text section than using the 'org exporter. Added a new custom variable
> to control which exporter is used. and changed the default behavior to use
> 'ascii. Below is my git formatted patch.

Thank you for the patch.

Is there any reason to keep using "org" exporter if "ascii" is superior?
I.e., what about simply replacing 'org with 'ascii?

Regards,

-- 
Nicolas Goaziou



Re: [O] refile whole files as headings?

2015-09-01 Thread Matt Price
Thank you so much Nick!

I am terrible with sed and with pipes, and ended up having two problems
when trying to use this code with sed; I ended up modifying it to the
following:

for f in *.org; do
echo "* $f" >> allofem.org
# cat $f
cat $f | sed 's/^\*/**/' >> allofem.org
done

not as elegant looking as yours, but it worked for me.

very helpful and much appreciated!
m


On Tue, Sep 1, 2015 at 4:03 PM, Nick Dokos  wrote:

> Matt Price  writes:
>
> > I am reorganizing my courses, consolidating many short files into longer
> ones. So, for instance, I have
> > a directory like:
> >
> > ✗ ls Assignments
> >
> > ClassProjectGuidelines.org
> > course-blog.org
> > essay-assignment.org
> > ProjectProposal.org
> > STA-01-CSS.org
> > STA-02-wordpress-themes.org
> > STA-03-Foundation.org
> > STA-04-maps.org
> >
> > I'd like to turn this into Assignments.org, with a structure like this:
> >
> > * ClassProjectGuidelines.org
> > * course-blog.org
> > * essay-assignment.org
> > * ProjectProposal.org
> > * STA-01-CSS.org
> > * STA-02-wordpress-themes.org
> > * STA-03-Foundation.org
> > * STA-04-maps.org
> >
> > It's sort of the reverse of Marcin's one-to-many export issue as
> described in another thread.  Best ways
> > to accomplish this? thx,
> > m
>
> A shell script:
>
> --8<---cut here---start->8---
> cd Assignments
> for f in *.org; do
>   echo "* $f"
>   cat $f
> done > Assignments.org
> --8<---cut here---end--->8---
>
> If you need to change the levels of the headings in the files,
> use a sed script instead of cat:
>
>sed '/^\*/s/&/**/' $f
>
> Nick
>
>
>


Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Eric Abrahamsen
Nicolas Goaziou  writes:

> Eric Abrahamsen  writes:
>
>> I agree 'org is pretty useless. But couldn't we just allow any symbol,
>> and let the export process blow up if an invalid symbol is given?
>
> Not if we allow latin1 or utf-8 as values, which are not valid export
> back-ends. Otherwise, I do not mind.

Of course, gotcha. I guess it would be better to have that full range of 
options.




Re: [O] refile whole files as headings?

2015-09-01 Thread Nick Dokos
Matt Price  writes:

> Thank you so much Nick!
>
> I am terrible with sed and with pipes, and ended up having two problems when 
> trying to use this code with sed; I ended up modifying it to the following:
>
> for f in *.org; do
>     echo "* $f" >> allofem.org
>     # cat $f
>     cat $f | sed 's/^\*/**/' >> allofem.org
> done
>
> not as elegant looking as yours, but it worked for me.
>

Except that I screwed up: the sed invocations was wrong:

--8<---cut here---start->8---
 cd Assignments
 for f in *.org; do
   echo "\* $f"
   sed '/^\*/s//**/' $f
 done > Assignments.org
--8<---cut here---end--->8---

should work (maybe I should try it out... nah, what could go wrong?)


> If you need to change the levels of the headings in the files,
> use a sed script instead of cat:
>
>    sed '/^\*/s/&/**/' $f
>

Sorry about that.

-- 
Nick




Re: [O] students, classes, assignments...

2015-09-01 Thread John Kitchin

scraw...@gmail.com writes:

> On Tue, Sep 01, 2015 at 06:13:00AM -0400, John Kitchin wrote:
>> It depends a lot on what you want to be able to do. Do you need reports
>> of what is completed? aggregated grades, etc...
>>
>> Here is what I do: https://www.youtube.com/watch?v=cRUCiF2MwP4
>>
>> Here is a talk I gave last year on using it.
>> https://www.youtube.com/watch?v=IsSMs-4GlT8=FLQp2VLAOlvq142YN3JO3y8w
>
> Thanks for the links. Reports would be great, aggregated grades not so
> much (at least not for the moment). A couple questions: are the buffer
> settings (#+ASSIGNMENT, #+POINTS, #+DUEDATE, #+RUBRIC) of your own

These are filetags I created for the application. They make it easy to
pull data from the files. the function to get a filetag is here:
https://github.com/jkitchin/jmax/blob/master/techela/techela-grade.el#L204
and to set a filetag is right above it.

> creation? This is just the kind of thing I'm looking for, but on a
> much less ambitious scale. This student took this test and earned this
> score on this day. But is this student in this subject or that
> subject? Which period? I was thinking about making a file per student,
> puting the particulars in a properties drawer, and linking to an
> assignments file. Pretty standard stuff, I think, but I'm working out
> how to make it all happen.
>
> * Fred Flinstone
> :PROPERTIES:
> :Class: Into to Cave Painting
> :Period: 2
> :Whatever: Blah blah blah
> :END:
>
> ** Homework [ / ]
> *** TODO [[path to assignment or description][This]]
> *** TODO [[path to assignment or description][That]]
>
> ** Classwork
>
> ** Assessment
>
> ** Concerns
>
> I'm sorry I'm not being more clear--I'm feeling like an idiot at the
> moment. I think I'll start with a file for each student like Fred's
> and go from there.
It is the only way to learn ;)
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] students, classes, assignments...

2015-09-01 Thread scrawler
On Tue, Sep 01, 2015 at 06:13:00AM -0400, John Kitchin wrote:
> It depends a lot on what you want to be able to do. Do you need reports
> of what is completed? aggregated grades, etc...
> 
> Here is what I do: https://www.youtube.com/watch?v=cRUCiF2MwP4
> 
> Here is a talk I gave last year on using it.
> https://www.youtube.com/watch?v=IsSMs-4GlT8=FLQp2VLAOlvq142YN3JO3y8w

Thanks for the links. Reports would be great, aggregated grades not so
much (at least not for the moment). A couple questions: are the buffer
settings (#+ASSIGNMENT, #+POINTS, #+DUEDATE, #+RUBRIC) of your own
creation? This is just the kind of thing I'm looking for, but on a
much less ambitious scale. This student took this test and earned this
score on this day. But is this student in this subject or that
subject? Which period? I was thinking about making a file per student,
puting the particulars in a properties drawer, and linking to an
assignments file. Pretty standard stuff, I think, but I'm working out
how to make it all happen.

* Fred Flinstone
:PROPERTIES:
:Class: Into to Cave Painting
:Period: 2
:Whatever: Blah blah blah
:END:

** Homework [ / ]
*** TODO [[path to assignment or description][This]]
*** TODO [[path to assignment or description][That]]

** Classwork

** Assessment

** Concerns

I'm sorry I'm not being more clear--I'm feeling like an idiot at the
moment. I think I'll start with a file for each student like Fred's
and go from there.



Re: [O] caption inside threeparttable

2015-09-01 Thread Vikas Rawal
> 
> Hi,
> 
> Vikas Rawal  writes:
> 
>> I have a table like below. How can I get the caption inside
>> threeparttable? Keeping caption outside threeparttable makes it go
>> wider than the table width.
> 
> Next time please also include desired output.
> 
> Anyway try this:
> 
> 0. (add-to-list 'org-latex-caption-above 'special-block)
> 


> Hope it's what you are looking for.
> 

Worked like a charm! Thank you.

Vikas




Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Jon Miller

Jon Miller writes:

> Nicolas Goaziou writes:
>
>> Hello,
>>
>> Jon Miller  writes:
>>
>>> Update to how org-mime constructs emails for the plain/text section of the
>>> mime email. I've found that using the 'ascii exporter produces a saner
>>> plain/text section than using the 'org exporter. Added a new custom variable
>>> to control which exporter is used. and changed the default behavior to use
>>> 'ascii. Below is my git formatted patch.
>>
>> Thank you for the patch.
>>
>> Is there any reason to keep using "org" exporter if "ascii" is superior?
>> I.e., what about simply replacing 'org with 'ascii?
>
> That's a good question. I personally don't think I'd ever need to keep the
> plain/text section as org syntax but I wasn't sure about others, so I just
> introduced the variable. I suppose the simple replacement would be a simpler
> patch. 

(My org ML subscription is daily digest but have read other replies regarding
the latin1 or utf-8 additional options)

After trying to include those options, I realized that the export options of
latin1 or utf-8 are actually using the same ascii exporter, correct? That is,
I can not use either value as-in in the call to (org-export-string-as ...)
To support the other options, it appears that we'd have to change the
function being used and I'm not sure which direction to take from there. I'd
be willing to hack on it further if I could get a hint as to what to use.

-- 
Jon Miller



Re: [O] refile whole files as headings?

2015-09-01 Thread Nick Dokos
Matt Price  writes:

> I am reorganizing my courses, consolidating many short files into longer 
> ones. So, for instance, I have
> a directory like:
>
> ✗ ls Assignments
>
> ClassProjectGuidelines.org
> course-blog.org
> essay-assignment.org
> ProjectProposal.org
> STA-01-CSS.org
> STA-02-wordpress-themes.org
> STA-03-Foundation.org
> STA-04-maps.org
>
> I'd like to turn this into Assignments.org, with a structure like this:
>
> * ClassProjectGuidelines.org
> * course-blog.org
> * essay-assignment.org
> * ProjectProposal.org
> * STA-01-CSS.org
> * STA-02-wordpress-themes.org
> * STA-03-Foundation.org
> * STA-04-maps.org
>
> It's sort of the reverse of Marcin's one-to-many export issue as described in 
> another thread.  Best ways
> to accomplish this? thx,
> m

A shell script:

--8<---cut here---start->8---
cd Assignments
for f in *.org; do
  echo "* $f"
  cat $f
done > Assignments.org
--8<---cut here---end--->8---

If you need to change the levels of the headings in the files,
use a sed script instead of cat:

   sed '/^\*/s/&/**/' $f

Nick




[O] Fwd: can't assign to hline relative reference

2015-09-01 Thread Luke Swart
I am re-sending because I didn't include everyone on the original message.

-- Forwarded message --
From: Luke Swart 
Date: Tue, Sep 1, 2015 at 1:10 AM
Subject: Re: can't assign to hline relative reference
To: Luke Swart , emacs-orgmode@gnu.org


Hi Nicolas Goaziou,

Thanks very much for your clarification:

hline relative references are not allowed on the left hand side of a formula

My error message was user-error: Can't assign to hline relative reference,
which now makes sense. Still, a lot of folks didn’t understand the original
message, myself included. I will update my SO post and the Github issue to
reflect this new information.

Still, I am confused because it seems like org-mode used to allow hline
references to be assigned, no? My code snippet was taken from a section in
the timesheet.el MELPA package, which was working fine until an org-mode
update broke it. I may be missing something, so I am not sure if this is
the case.

Anyway, your response is very much appreciated!

Thanks,

Luke

On Tue, Sep 1, 2015 at 12:47 AM, Nicolas Goaziou 
wrote:

Hello,
>
> Luke Swart  writes:
>
> > There seems to be an error when using hline-relative references in an
> > org-mode table’s formula. For example, I have the following org-mode
> table:
> >
> > #+BEGIN: columnview :hlines 1 :id global
> > | /Project/  | Mon | Tue | Wed |  Thu | Fri |  Sat | Sun |
> /Total/ |
> >
>  |+-+-+-+--+-+--+-+-|
> > | AnotherProduct | | | |  | | 2.50 | |
>|
> > | Prototype  | | | | 3.50 | |  | |
>|
> >
>  |+-+-+-+--+-+--+-+-|
> > | /Daily/| | | |  | |  | |
>|
> > #+TBLFM: @I$9..@II$9=vsum($2..$8);%.2f;::@II$2..@III$9='(format
> > "%3.2f" (apply '+ '(@I..@II)));N;
> >
> > and I get the error can't assign to hline relative reference when I run
> M-x
> > org-table-recalculate. I looked over the org-mode references
> documentation
> >  and the gmane.org forums
> > , but I did not
> find
> > any reasons as to why the hline relative references could not be
> > assigned.
>
> This is a known limitation: hline relative references are not allowed on
> the left hand side of a formula. The error message you get should be
> explicit.
>
> There are apparently subtle problems, IIRC, as pointed out in
> .
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
​


Re: [O] Exporting an org-file to multiple html pages

2015-09-01 Thread Marcin Borkowski

On 2015-09-01, at 11:07, Jarmo Hurri  wrote:

> Marcin Borkowski  writes:
>
>>> I am writing a relatively extensive document in org, and I am
>>> currently trying to figure out how to split the exported html into
>>> multiple html pages.
>
>> Does this help?
>>
>> https://github.com/mbork/org-one-to-many
>
> Greetings Marcin.
>
> Looks inviting. The built-in html exporter desperately needs something
> like this.
>
> I have to be prepared to share my org-file(s) of this project with other
> people, so I am avoiding code outside the standard org distribution. Now
> if only that famous *someone* would incorporate your solution into the
> core.

That is non-trivial due to licensing issues.  When (and if) I sign the
FSF papers, this might be easier.  I'll look into it.

> The one thing that would need to be added, if I understand your solution
> correctly, is an index and automatic links to index, prev, next etc.

If you prepare your file so that all headlines get split, the main file
"becomes" the index file.  (The =bullets= parameter should help with
that, but unfortunately it doesn't really work very well.)

I may try to add such a feature anyway.  It requires a bit of thinking,
though, since which headlines exactly are split into their own files is
rather general, so the very meaning of "next" might not really be
obvious.

> Thanks,
>
> Jarmo

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] Very slow execution, tangling and export with noweb and quick-and-dirty

2015-09-01 Thread Rainer M Krug
Rainer M Krug  writes:

> Hi
>
> I have a rather extensive literate programming document with several
> hundred code blocks. In two subtrees, I use :noweb. Each of these has one
> noweb block which is located onder the first level header, and used several
> times in the sub-sections of this tree.
>
> But even with the quick-and-dirty option
>
> ,
> | #+BIND: org-babel-use-quick-and-dirty-noweb-expansion "t"
> `
>

Hm - I just realised that despite having this #+BIND: in the file, the
variable was not set. I set it manually now, and it is fast again.

Shouldn't this BIND set the variable to true?

Rainer


> execution, tangling and export takes very long (one block about 12
> seconds, of which about 2 seconde=s max execution time of the code block).
>
> Is this a general problem of noweb expansion? How can I make this
> faster?
>
> I really want to use the noweb, because the block is rather dynamic and
> used several times in the subrtree.
>
> Below the report from the profiler.
>
> Any suggestions welcome,
>
> Rainer
>
>
> ,
> | - command-execute2024  90%
> |  - call-interactively2024  90%
> |   - org-ctrl-c-ctrl-c1966  88%
> |- run-hook-with-args-until-success1966  88%
> | - org-babel-execute-safely-maybe 1966  88%
> |  - org-babel-execute-maybe   1966  88%
> |   - org-babel-execute-src-block-maybe1966  88%
> |- org-babel-execute-src-block 1966  88%
> | - org-babel-expand-noweb-references  1890  84%
> |  - org-babel-get-src-block-info  1884  84%
> |   - org-babel-parse-src-block-match  1680  75%
> |- org-babel-params-from-properties1667  74%
> | - mapcar 1602  71%
> |  - #1601  71%
> |   - org-entry-get1598  71%
> |- org-entry-get-with-inheritance  1576  70%
> | - byte-code  1575  70%
> |  - org-up-heading-safe   1006  45%
> |   - org-back-to-heading   109   4%
> |- outline-back-to-heading   56   2%
> |   outline-on-heading-p  7   0%
> | org-outline-level  61   2%
> |  - org-property--local-values 515  23%
> |   - org-get-property-block351  15%
> |- org-back-to-heading   69   3%
> | - outline-back-to-heading  46   2%
> |outline-on-heading-p 9   0%
> |  org-before-first-heading-p45   2%
> |  member-ignore-case 5   0%
> |+ org-entry-properties   2   0%
> | + org-entry-get50   2%
> | + org-babel-parse-header-arguments 11   0%
> |   org-babel-combine-header-arg-lists1   0%
> |   byte-code 1   0%
> |+ org-babel-parse-header-arguments   5   0%
> |+ apply  4   0%
> |+ org-unescape-code-in-string2   0%
> |  generate-new-buffer1   0%
> |  match-string-no-properties 1   0%
> |   + org-babel-generate-file-param 201   9%
> |   + org-babel-where-is-src-block-head   1   0%
> |  + org-babel-ref-goto-headline-id   2   0%
> | + org-babel-execute:R  58   2%
> | + org-babel-get-src-block-info 10   0%
> | + run-hooks 7   0%
> | + org-babel-insert-result   1   0%
> |   + smex   58   2%
> | + ... 200   8%
> | + timer-event-handler   4   0%
> | + redisplay_internal (C function)   2   0%

Re: [O] Very slow execution, tangling and export with noweb and quick-and-dirty

2015-09-01 Thread Sebastien Vauban
Rainer M Krug  writes:
> Rainer M Krug  writes:
>> I have a rather extensive literate programming document with several
>> hundred code blocks. In two subtrees, I use :noweb. Each of these has
>> one noweb block which is located onder the first level header, and
>> used several times in the sub-sections of this tree.
>>
>> But even with the quick-and-dirty option
>>
>> ,
>> | #+BIND: org-babel-use-quick-and-dirty-noweb-expansion "t"
>> `
>
> Hm - I just realised that despite having this #+BIND: in the file, the
> variable was not set. I set it manually now, and it is fast again.
>
> Shouldn't this BIND set the variable to true?

IIUC, `BIND' sets the variable to the value you're giving to it at
export-time only (in the temporary buffer created for the export
process).

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Eric Abrahamsen
Nicolas Goaziou  writes:

> Hello,
>
> Jon Miller  writes:
>
>> Update to how org-mime constructs emails for the plain/text section of the
>> mime email. I've found that using the 'ascii exporter produces a saner
>> plain/text section than using the 'org exporter. Added a new custom variable
>> to control which exporter is used. and changed the default behavior to use
>> 'ascii. Below is my git formatted patch.
>
> Thank you for the patch.
>
> Is there any reason to keep using "org" exporter if "ascii" is superior?
> I.e., what about simply replacing 'org with 'ascii?

I'd say it might be nice to have the option there to customize. There
are several potential plain-text exportation options (I'd prefer utf8,
personally), and giving the user a choice seems nice




Re: [O] can't assign to hline relative reference

2015-09-01 Thread Luke Swart
Hi Nicolas Goaziou,

Thanks very much for your clarification:

hline relative references are not allowed on the left hand side of a formula

My error message was user-error: Can't assign to hline relative reference,
which now makes sense. Still, a lot of folks didn’t understand the original
message, myself included. I will update my SO post and the Github issue to
reflect this new information.

Still, I am confused because it seems like org-mode used to allow hline
references to be assigned, no? My code snippet was taken from a section in
the timesheet.el MELPA package, which was working fine until an org-mode
update broke it. I may be missing something, so I am not sure if this is
the case.

Anyway, your response is very much appreciated!

Thanks,

Luke

On Tue, Sep 1, 2015 at 12:47 AM, Nicolas Goaziou 
wrote:

Hello,
>
> Luke Swart  writes:
>
> > There seems to be an error when using hline-relative references in an
> > org-mode table’s formula. For example, I have the following org-mode
> table:
> >
> > #+BEGIN: columnview :hlines 1 :id global
> > | /Project/  | Mon | Tue | Wed |  Thu | Fri |  Sat | Sun |
> /Total/ |
> >
>  |+-+-+-+--+-+--+-+-|
> > | AnotherProduct | | | |  | | 2.50 | |
>|
> > | Prototype  | | | | 3.50 | |  | |
>|
> >
>  |+-+-+-+--+-+--+-+-|
> > | /Daily/| | | |  | |  | |
>|
> > #+TBLFM: @I$9..@II$9=vsum($2..$8);%.2f;::@II$2..@III$9='(format
> > "%3.2f" (apply '+ '(@I..@II)));N;
> >
> > and I get the error can't assign to hline relative reference when I run
> M-x
> > org-table-recalculate. I looked over the org-mode references
> documentation
> >  and the gmane.org forums
> > , but I did not
> find
> > any reasons as to why the hline relative references could not be
> > assigned.
>
> This is a known limitation: hline relative references are not allowed on
> the left hand side of a formula. The error message you get should be
> explicit.
>
> There are apparently subtle problems, IIRC, as pointed out in
> .
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
​


Re: [O] exporting multiple choice questions to Aiken or GIFT formats?

2015-09-01 Thread Eric S Fraga
On Monday, 31 Aug 2015 at 18:17, Marcin Borkowski wrote:
> I hope people liked it.  One of the good things that
> resulted from it was a short discussion, whose conclusion was an idea
> to write a series of blog posts explaining one of the Org exporters in
> detail.  (Since I know LaTeX fairly well, and I have studied most of the
> LaTeX exporter source code, I decided to use it for that.)  The first
> entry is almost ready, I'm going to work on the others soon.

Post a link to the blog when ready and add a link in Worg as well.  I'm
sure it will be very useful.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] Exporting an org-file to multiple html pages

2015-09-01 Thread Fabrice Popineau
If you want a fancier solution : http://renard.github.io/o-blog-v2/
It works pretty well.

Fabrice

2015-09-01 11:07 GMT+02:00 Jarmo Hurri :

> Marcin Borkowski  writes:
>
> >> I am writing a relatively extensive document in org, and I am
> >> currently trying to figure out how to split the exported html into
> >> multiple html pages.
>
> > Does this help?
> >
> > https://github.com/mbork/org-one-to-many
>
> Greetings Marcin.
>
> Looks inviting. The built-in html exporter desperately needs something
> like this.
>
> I have to be prepared to share my org-file(s) of this project with other
> people, so I am avoiding code outside the standard org distribution. Now
> if only that famous *someone* would incorporate your solution into the
> core.
>
> The one thing that would need to be added, if I understand your solution
> correctly, is an index and automatic links to index, prev, next etc.
>
> Thanks,
>
> Jarmo
>
>
>


-- 
Fabrice Popineau
-
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
--


[O] Very slow execution, tangling and export with noweb and quick-and-dirty

2015-09-01 Thread Rainer M Krug
Hi

I have a rather extensive literate programming document with several
hundred code blocks. In two subtrees, I use :noweb. Each of these has one
noweb block which is located onder the first level header, and used several
times in the sub-sections of this tree.

But even with the quick-and-dirty option

,
| #+BIND: org-babel-use-quick-and-dirty-noweb-expansion "t"
`

execution, tangling and export takes very long (one block about 12
seconds, of which about 2 seconde=s max execution time of the code block).

Is this a general problem of noweb expansion? How can I make this
faster?

I really want to use the noweb, because the block is rather dynamic and
used several times in the subrtree.

Below the report from the profiler.

Any suggestions welcome,

Rainer


,
| - command-execute2024  90%
|  - call-interactively2024  90%
|   - org-ctrl-c-ctrl-c1966  88%
|- run-hook-with-args-until-success1966  88%
| - org-babel-execute-safely-maybe 1966  88%
|  - org-babel-execute-maybe   1966  88%
|   - org-babel-execute-src-block-maybe1966  88%
|- org-babel-execute-src-block 1966  88%
| - org-babel-expand-noweb-references  1890  84%
|  - org-babel-get-src-block-info  1884  84%
|   - org-babel-parse-src-block-match  1680  75%
|- org-babel-params-from-properties1667  74%
| - mapcar 1602  71%
|  - #1601  71%
|   - org-entry-get1598  71%
|- org-entry-get-with-inheritance  1576  70%
| - byte-code  1575  70%
|  - org-up-heading-safe   1006  45%
|   - org-back-to-heading   109   4%
|- outline-back-to-heading   56   2%
|   outline-on-heading-p  7   0%
| org-outline-level  61   2%
|  - org-property--local-values 515  23%
|   - org-get-property-block351  15%
|- org-back-to-heading   69   3%
| - outline-back-to-heading  46   2%
|outline-on-heading-p 9   0%
|  org-before-first-heading-p45   2%
|  member-ignore-case 5   0%
|+ org-entry-properties   2   0%
| + org-entry-get50   2%
| + org-babel-parse-header-arguments 11   0%
|   org-babel-combine-header-arg-lists1   0%
|   byte-code 1   0%
|+ org-babel-parse-header-arguments   5   0%
|+ apply  4   0%
|+ org-unescape-code-in-string2   0%
|  generate-new-buffer1   0%
|  match-string-no-properties 1   0%
|   + org-babel-generate-file-param 201   9%
|   + org-babel-where-is-src-block-head   1   0%
|  + org-babel-ref-goto-headline-id   2   0%
| + org-babel-execute:R  58   2%
| + org-babel-get-src-block-info 10   0%
| + run-hooks 7   0%
| + org-babel-insert-result   1   0%
|   + smex   58   2%
| + ... 200   8%
| + timer-event-handler   4   0%
| + redisplay_internal (C function)   2   0%
| + flyspell-post-command-hook2   0%
`

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax 

Re: [O] gnuplot: plotting students' progress of grades

2015-09-01 Thread Eric S Fraga
On Tuesday,  1 Sep 2015 at 08:38, Robert Klein wrote:

[...]

> You can use something like this:

[...]

> #+begin_src gnuplot :var data=grades :file noten.png
>   put your gnuplot code here
> #+end_src

The problem for the OP will be that the data are in rows instead of
columns and gnuplot will only plot columns (selected using
"using").  The table needs to be transposed first (which is possible but
don't ask me how ;-).

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] students, classes, assignments...

2015-09-01 Thread John Kitchin
It depends a lot on what you want to be able to do. Do you need reports
of what is completed? aggregated grades, etc...

Here is what I do: https://www.youtube.com/watch?v=cRUCiF2MwP4

Here is a talk I gave last year on using it.
https://www.youtube.com/watch?v=IsSMs-4GlT8=FLQp2VLAOlvq142YN3JO3y8w

scraw...@gmail.com writes:

> Hey guys,
>
> What's an efficient way to keep track of students, classes, and assignments?
> I'm using org now, but I don't want to admit how badly I'm abusing it to make 
> my *cough* system work.
>
> How about something like this: a file per student with Classwork, Homework, 
> and Assessment headings, maybe checkboxes to indicate completion; A date-tree 
> in a file with the Homework and due dates--something along those lines.
>
> Any ideas would be appreciated. I know a bunch of you are teachers...

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] can't assign to hline relative reference

2015-09-01 Thread Nicolas Goaziou
Luke Swart  writes:

> Still, I am confused because it seems like org-mode used to allow hline
> references to be assigned, no?

As Carsten pointed out, that was a bug, as Org couldn't expand them
correctly anyway. As a consequence, an error is now thrown.

Regards,



Re: [O] Exporting an org-file to multiple html pages

2015-09-01 Thread Jarmo Hurri
Marcin Borkowski  writes:

>> I am writing a relatively extensive document in org, and I am
>> currently trying to figure out how to split the exported html into
>> multiple html pages.

> Does this help?
>
> https://github.com/mbork/org-one-to-many

Greetings Marcin.

Looks inviting. The built-in html exporter desperately needs something
like this.

I have to be prepared to share my org-file(s) of this project with other
people, so I am avoiding code outside the standard org distribution. Now
if only that famous *someone* would incorporate your solution into the
core.

The one thing that would need to be added, if I understand your solution
correctly, is an index and automatic links to index, prev, next etc.

Thanks,

Jarmo




Re: [O] gnuplot: plotting students' progress of grades

2015-09-01 Thread John Kitchin
You can transpose the table like this:
(org-table-transpose-table-at-point)

Alternatively (adapted from that code): this might get you where you
need to be:

#+name: my-data
| 1 | 2 | 3 | 4 |
| a | b | c | d |

#+BEGIN_SRC emacs-lisp
(defun get-transposed-table (tblname)
  (save-excursion
(org-open-link-from-string (format  "[[%s]]" tblname))
(while (not (org-table-p))
  (forward-line))
(let* ((table (delete 'hline (org-table-to-lisp)))
   (contents (mapcar (lambda (p)
   (let ((tp table))
 (mapcar
  (lambda (rown)
(prog1
(pop (car tp))
  (setq tp (cdr tp
  table)))
 (car table
  (mapconcat (lambda(x) (concat "| " (mapconcat 'identity x " | " ) "  |\n" 
))
 contents ""
#+END_SRC

#+RESULTS:
: get-transposed-table

#+BEGIN_SRC python :var data=(get-transposed-table "my-data")
print data
#+END_SRC

#+RESULTS:
: | 1 | a  |
: | 2 | b  |
: | 3 | c  |
: | 4 | d  |
:




Eric S Fraga writes:

> On Tuesday,  1 Sep 2015 at 08:38, Robert Klein wrote:
>
> [...]
>
>> You can use something like this:
>
> [...]
>
>> #+begin_src gnuplot :var data=grades :file noten.png
>>   put your gnuplot code here
>> #+end_src
>
> The problem for the OP will be that the data are in rows instead of
> columns and gnuplot will only plot columns (selected using
> "using").  The table needs to be transposed first (which is possible but
> don't ask me how ;-).

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Very slow execution, tangling and export with noweb and quick-and-dirty

2015-09-01 Thread Rainer M Krug
Sebastien Vauban  writes:

> Rainer M Krug  writes:
>> Rainer M Krug  writes:
>>> I have a rather extensive literate programming document with several
>>> hundred code blocks. In two subtrees, I use :noweb. Each of these has
>>> one noweb block which is located onder the first level header, and
>>> used several times in the sub-sections of this tree.
>>>
>>> But even with the quick-and-dirty option
>>>
>>> ,
>>> | #+BIND: org-babel-use-quick-and-dirty-noweb-expansion "t"
>>> `
>>
>> Hm - I just realised that despite having this #+BIND: in the file, the
>> variable was not set. I set it manually now, and it is fast again.
>>
>> Shouldn't this BIND set the variable to true?
>
> IIUC, `BIND' sets the variable to the value you're giving to it at
> export-time only (in the temporary buffer created for the export
> process).

OK - now I understand it. So I should also, in addition to the bind, use
a file local variable to set
org-babel-use-quick-and-dirty-noweb-expansion to true.

Done and working.

Thanks,

Rainer
>
> Best regards,
>   Seb

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] org-mode 3.5.1 emacs 24: invalid-functon 41

2015-09-01 Thread Martin Steffen




Hi Nicolas, and all.

I recently answered to a prior suggestion concerning the cause of a
problem (see below), basically I could not confirm the cause of the
error. In the meantime, I had the same problem (on different computer),
again with the newest org-mode with the same symptoms (org-mode
basically broken, with constant ``invalid function 41'' message).


I applied the suggested patch, and it made the symptoms go away. So it
seems that it cause of the error was located.

Thanks, Martin


> "Martin" == Martin Steffen  writes:

Martin> Hi,

Martin> thanks for the info. I tried to reproduce the error but
Martin> failed, which means, in the meantime org 3.5.1 works.

Martin> Note, however, that it's no longer the same
Martin> git-reversion. When I first stumbled upon it, it was
Martin> org-version 3.5.1 and the then latest pull from the
Martin> git-server. Since it basically made all of org unsusable
Martin> ("RETURN" did not work any longer), I decided to ``go back
Martin> in time'' and git-pulled an earlier version (namely the one
Martin> git-labeled "release 3.5").

Martin> Now, in order to reproduce the error (and try the patch), I
Martin> pulled the now latest one, and the ``41-error'' does _not_
Martin> show up. I also applied to small patch (because the 2 lines
Martin> you pointed at do appear in the org-element.el file), but
Martin> that does not lead to an immediately visible change (but as
Martin> said, the error was gone already).

Martin> Unfortunately, I don't know which exact revision it was that
Martin> showed that problem ---I think in the meantime I did not
Martin> also update emacs itself---, but if it disappeared in the
Martin> now latest version, I am content as well.


Martin> Thanks, Martin


Nicolas> Hello,

Nicolas> Martin Steffen  writes:

>>> org-element--set-regexps: Invalid function: 41

Nicolas> 41 is ?\) character. I think the problem lies in this
Nicolas> snippet from `org-element--set-regexps'

Nicolas> (case org-plain-list-ordered-item-terminator (?\) ")")
Nicolas> (?. "\\.") (otherwise "[.)]"))  ^^^




Nicolas> Could you try the following patch?

Nicolas> diff --git a/lisp/org-element.el b/lisp/org-element.el
Nicolas> index 8f41ab2..7b95e0d 100644 --- a/lisp/org-element.el +++
Nicolas> b/lisp/org-element.el @@ -177,8 +177,11 @@ specially in
Nicolas> `org-element--object-lex'.")  ;; Clock lines.
Nicolas> (regexp-quote org-clock-string) "\\|" ;; Lists.  - (let
Nicolas> ((term (case org-plain-list-ordered-item-terminator - (?\)
Nicolas> ")") (?. "\\.") (otherwise "[.)]")))  + (let ((term (if
Nicolas> (characterp + org-plain-list-ordered-item-terminator) +
Nicolas> (char-to-string + org-plain-list-ordered-item-terminator) +
Nicolas> "[.)]"))  (alpha (and org-list-allow-alphabetical
Nicolas> "\\|[A-Za-z]"))) (concat "\\(?:[-+*]\\|\\(?:[0-9]+" alpha
Nicolas> "\\)" term "\\)" "\\(?:[ \t]\\|$\\)"))


Nicolas> Regards,

Nicolas> -- Nicolas Goaziou



Re: [O] emacs & org mode for scholars questions

2015-09-01 Thread Erik Hetzner
Hi all,

Thanks for all your responses! They were a great help when putting
together my talk. I’ve posted my slides from EmacsConf 2015 here:

  http://www.e6h.org/talks/emacsconf-2015/index.html

I think the planners are planning to post videos as soon as they can
get them edited to

  http://emacsconf2015.org/

EmacsConf 2015 was a lot of fun. Almost everyone there was an Org mode
user, which was no great surprise.

One thing that I came out of the conference thinking was that a
curated meta-package for Emacs (like elpy) that brought together tools
for scholarly writers (in LaTeX and markdown and org-mode) might be a
great help for Emacs beginners.

best, Erik

On Mon, 24 Aug 2015 22:38:30 -0700,
Erik Hetzner  wrote:
> 
> Hi all,
> 
> I am going to be giving a talk on how Emacs can help support scholars,
> especially those who are using plain text and doing reproducible
> research, at “Emacsconf 2015” in San Francisco this Saturday (the
> 29th).
> 
> I have done some work on managing references using Emacs & pandoc, but
> what I’d like to focus on in this talk is why Emacs is a great tool
> for scholarly writers (both scientists and humanists) and what Emacs
> developers should be concentrating on to make it an even better tool
> for the scholarly community.
> 
> I’m wondering if you any of you might have any suggestions about what
> you would like to see Emacs do better to support the scholarly writing
> community.
> 
> Thanks for any help you can provide!
> 
> best, Erik Hetzner
> --
> Sent from my free software system .
> 
> 



[O] Org-Contacts skip archived contacts

2015-09-01 Thread Tory S. Anderson
It would be useful to mark a contact as "archived" so that it 
won't auto-fill in an email, as when I may want to look someone up 
in the future but don't need to contact them now. Judging by the 
docstring I thought the answer would be with 
`org-contacts-matcher` but I can't quite make sense of how this 
thing works. Is there a line I should add to this to tell it to 
ignore `:archive:` tags, or can someone think of an easier way? 


--8<---cut here---start->8---
(defcustom org-contacts-matcher
 (mapconcat 'identity (list org-contacts-email-property
 org-contacts-alias-property
 org-contacts-tel-property
 org-contacts-address-property
 org-contacts-birthday-property)
 "<>\"\"|")
 "Matching rule for finding heading that are contacts.
This can be a tag name, or a property check."
 :type 'string
 :group 'org-contacts)
--8<---cut here---end--->8---




[O] refile whole files as headings?

2015-09-01 Thread Matt Price
I am reorganizing my courses, consolidating many short files into longer
ones. So, for instance, I have a directory like:

✗ ls Assignments

ClassProjectGuidelines.org
course-blog.org
essay-assignment.org
ProjectProposal.org
STA-01-CSS.org
STA-02-wordpress-themes.org
STA-03-Foundation.org
STA-04-maps.org

I'd like to turn this into Assignments.org, with a structure like this:

* ClassProjectGuidelines.org
* course-blog.org
* essay-assignment.org
* ProjectProposal.org
* STA-01-CSS.org
* STA-02-wordpress-themes.org
* STA-03-Foundation.org
* STA-04-maps.org

It's sort of the reverse of Marcin's one-to-many export issue as described
in another thread.  Best ways to accomplish this? thx,
m


Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Eric Abrahamsen
I agree 'org is pretty useless. But couldn't we just allow any symbol, and let 
the export process blow up if an invalid symbol is given?

On September 1, 2015 11:26:14 PM GMT+08:00, Nicolas Goaziou 
 wrote:
>Eric Abrahamsen  writes:
>
>> I'd say it might be nice to have the option there to customize. There
>> are several potential plain-text exportation options (I'd prefer
>utf8,
>> personally), and giving the user a choice seems nice
>
>Then the option could offer a choice between "org", "ascii", "latin1"
>and utf-8. I'm still unsure that providing "org" is pertinent, however.
>
>Regards,

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

[O] Suggestions on sync algorithms

2015-09-01 Thread Tory S. Anderson
I'm planning to make a mode that allows me to manage my Pivotal 
Tracker projects from orgmode; Pivotal Tracker exposes a rich JSON 
API and the basic task of mapping Pivotal data types to Org syntax 
is conceptually straight forward. But I'm trying to decide on the 
best way to perform syncronization so that changes on pivotal 
(which may be made by team members) are correctly synced with my 
local changes, and vice versa. I'm hoping for suggestions (links 
OK) on a clean way to perform this synchronization. One option 
would be to convert local and remote to org and then ediff the 
products; is there a more automatic way of which I should be 
aware?


- Tory



Re: [O] Need help with HTML export custom postamble [SOLVED]

2015-09-01 Thread Nick Dokos
"David A. Gershman"  writes:

> *argh*  I remember that variation of postamble in my readings...didn't
> think to try it.  Thank you!!!
>
> I attempted the export as well and it worked as expected.  I appreciate
> your patience!
>
> FWIW, yes, I'm on the latest Org (8.3.1) and Emacs 24.4.1 (Debian Jessie).
>
> On 08/31/2015 06:36 PM, Thomas S. Dye wrote:
>> David A. Gershman  writes:
>>
 # Local Variables:
 # org-html-postamble: t
 # org-export-html-postamble-format: "Hello World"
 # End:
>>> Either typing C-c C-c, or just opening the file will ask me about the
>>> variables.  I answer 'y', but still get the default postamble.
>> Are you using an old Org mode, pre 8.0?  I believe that's when the old
>> org-export-* variables lost the "export" part.
>>
>> At any rate, the problem appears to be that org-html-postamble-format
>> (in Org mode > 8.0) is an association list, not a string.
>>
>> This works for me using a recent Org mode:
>>
>> # Local Variables:
>> # org-html-postamble: t
>> # eval: (add-to-list 'org-html-postamble-format (quote ("en" "Hello
>> World")))

This is probably more complicated than it needs to be: if you are just
setting the postamble, not appending to it, it would be preferable (and
simpler) to avoid the eval:

# org-html-postamble-format: (quote ("en" "Hello World"))

>> # End:

Nick






Re: [O] caption inside threeparttable

2015-09-01 Thread Rasmus
Hi,

Vikas Rawal  writes:

> I have a table like below. How can I get the caption inside
> threeparttable? Keeping caption outside threeparttable makes it go
> wider than the table width.

Next time please also include desired output.

Anyway try this:

0. (add-to-list 'org-latex-caption-above 'special-block)

1.  Example:

#+NAME: energy-cost-uk
#+begin_table
#+CAPTION: I have a long caption that is wider than the table and it goes 
beyond the table much to my dislike
#+begin_threeparttable
#+attr_latex: :environment tabulary :width \textwidth :align lC :center  
:font \small
|-+-|
| Food group  | Average |
|-+-|
| alskjd askjd askjdh |1.26 |
| d skdjhf s  |9.13 |
| mk dls hds  |4.75 |
| Meat, protein   |4.93 |
| Food and sugar  |3.11 |
|-+-|
#+attr_latex: :options [flushleft]
#+begin_tablenotes
#+begin_footnotesize

@@latex:\textit{Source}: \citet{nicholas2014}.@@

#+end_footnotesize

#+end_tablenotes
#+end_threeparttable
#+end_table

Output, which I did not test:

 \begin{table}
 \label{orgspecialblock1}

 \begin{threeparttable}
 \caption{I have a long caption that is wider than the table and it goes 
beyond the table much to my dislike}
 {\small
 \begin{tabulary}{\textwidth}{lC}
 \toprule
 Food group & Average\\
 \midrule
 alskjd askjd askjdh & 1.26\\
 d skdjhf s & 9.13\\
 mk dls hds & 4.75\\
 Meat, protein & 4.93\\
 Food and sugar & 3.11\\
 \bottomrule
 \end{tabulary}}
 \begin{tablenotes}[flushleft]
 \begin{footnotesize}


 \textit{Source}: \citet{nicholas2014}.
 \end{footnotesize}
 \end{tablenotes}
 \end{threeparttable}
 \end{table}

Hope it's what you are looking for.

Rasmus

-- 
If you can mix business and politics wonderful things can happen!




Re: [O] Do you like to have your TODOs at the same headline level?

2015-09-01 Thread cesar mena
i do the same; 4 char states - with box around them

(setq org-todo-keyword-faces
  '(("TODO" . (:foreground "pink"
   :box (:line-width 1 :style none)))
("NEXT" . (:foreground "green"
   :box (:line-width 1 :style none)))
("WAIT" . (:foreground "yellow"
   :box (:line-width 1 :style none)))
("HOLD" . (:foreground "light blue"
   :box (:line-width 1 :style none)))
("CNC!" . (:foreground "gray"
   :box (:line-width 1 :style none)))
("DONE" . (:box (:line-width 1 :style none)

-cm

On Wed, Aug 26, 2015 at 3:00 PM, Sebastien Vauban
 wrote:
> dbo...@mmm.com (J. David Boyd) writes:
>> Sebastien Vauban  writes:
>>> William Denton  writes:
 I'm trying to spend more time in a sparse tree view where I just see
 TODOs (C-c / t).  I didn't like having the TODOs at different levels
 of indentation, though.  I prefer seeing them all lined up, so
 I moved them all to be fourth-level headline.  It's visually
 pleasing, and I don't care if a second-level headline has
 a fourth-level child without a third-level one.

 Do other people do this?
>>>
>>> No, and I don't think that's sane.  It would be logical to expect
>>> problems at export time (to LaTeX, among others) and in Org-lint.
>>>
>>> I try to put all the tasks at the 2nd level, the 1st level being
>>> reserved for big sections such as "Administration", "Tasks", "Team",
>>> etc.
>>>
>>> I'm very rigorous about expecting that all my "project management"
>>> documents can be exported (without loosing subtrees or generating error)
>>> to HTML (as the very first goal) and to LaTeX (as the second one).
>>>
>>> OTOH, I don't deny your wish to get things aligned; that's why I've
>>> opted to 4-char todo states only!
>>
>> 4-char todo states?  How about a list? I can't picture how to
>> abbreviate some things...
>
> Sure. Here it is:
>
> - TODO :: Open, not (yet) started.
> - STRT :: In progress, working on, doing.
> - WAIT :: On hold, assigned, feedback.
> - SDAY :: Someday, maybe, perhaps, wish.
> - DONE :: Completed, closed, resolved.
> - CANX :: Wontfix, rejected.
>
> The only exception, but that's on purpose is "NEW" for things going to
> the CollectBox.
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>



[O] caption inside threeparttable

2015-09-01 Thread Vikas Rawal
I have a table like below. How can I get the caption inside threeparttable? 
Keeping caption outside threeparttable makes it go wider than the table width.

Vikas


#+NAME: energy-cost-uk
#+CAPTION: I have a long caption that is wider than the table and it goes 
beyond the table much to my dislike
#+begin_table
#+begin_threeparttable
#+attr_latex: :environment tabulary :width \textwidth :align lC :center  :font 
\small
|--+---|
| Food group   | Average |
|--+---|
| alskjd askjd askjdh |  1.26 |
| d skdjhf s|  9.13 |
| mk dls hds |  4.75 |
| Meat, protein |  4.93 |
| Food and sugar |  3.11 |
|--+---|
#+attr_latex: :options [flushleft]
#+begin_tablenotes
#+begin_footnotesize

\textit{Source}: \citet{nicholas2014}.

#+end_footnotesize
#+end_tablenotes
#+end_threeparttable
#+end_table




Re: [O] caption inside threeparttable

2015-09-01 Thread Eric S Fraga
On Tuesday,  1 Sep 2015 at 18:26, Vikas Rawal wrote:
> I have a table like below. How can I get the caption inside
> threeparttable? Keeping caption outside threeparttable makes it go
> wider than the table width.

One option would be to put the table and caption within a centred
minipage of the desired width using LaTeX directives?
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Jon Miller

Nicolas Goaziou writes:

> Hello,
>
> Jon Miller  writes:
>
>> Update to how org-mime constructs emails for the plain/text section of the
>> mime email. I've found that using the 'ascii exporter produces a saner
>> plain/text section than using the 'org exporter. Added a new custom variable
>> to control which exporter is used. and changed the default behavior to use
>> 'ascii. Below is my git formatted patch.
>
> Thank you for the patch.
>
> Is there any reason to keep using "org" exporter if "ascii" is superior?
> I.e., what about simply replacing 'org with 'ascii?

That's a good question. I personally don't think I'd ever need to keep the
plain/text section as org syntax but I wasn't sure about others, so I just
introduced the variable. I suppose the simple replacement would be a simpler
patch. 

-- 
Jon Miller



Re: [O] [bug] org-open-file: ignores browse-url settings

2015-09-01 Thread Nicolas Goaziou
Hello,

Rasmus  writes:

> From Emacs-devel:
>
>  From: ra...@google.com
>  Subject: org-open-file: ignores browse-url settings
>  Date: the 21st of August 2015 at 20:07
>  Archived-At: 
>
>  Function org-open-file uses customization variable org-file-apps to
>  decide how to open a file.
>  Unfortunately it's also making it difficult / impossible to set it up
>  so that  org files exported to HTML open in Emacs using EWW ---

  (add-to-list 'org-file-apps '("\\.x?html?\\'" . (eww-open-file file)))

should do the trick.

>  -specifically: the customization interface for org-file-apps claims to
>  let you provide a custom lisp form which in principle should let one
>  specify browse-url -- (admittedly convoluted ) but even that fails to
>  work -- mostly because the documentation is somewhat light with
>  respect to showing how one gets ones hands on the matched link.

We can improve documentation.

> My personal opinion would be to get rid of org-file-apps.  Opening files
> correctly is the job of either Emacs or the OS.

I'm not sure about it. 

Org can divert from Emacs when it comes to what to do with files. You
may want to view it from Org but edit it from Emacs. The OS doesn't know
about Lisp.

Note that you can force `org-open-file' to open it with Emacs,
effectively ignoring `org-file-apps' altogether.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] org-mime: make plain/text mime export a choice

2015-09-01 Thread Nicolas Goaziou
Eric Abrahamsen  writes:

> I'd say it might be nice to have the option there to customize. There
> are several potential plain-text exportation options (I'd prefer utf8,
> personally), and giving the user a choice seems nice

Then the option could offer a choice between "org", "ascii", "latin1"
and utf-8. I'm still unsure that providing "org" is pertinent, however.

Regards,



[O] Default html export css styles?

2015-09-01 Thread Lawrence Bottorff
When I do an HTML export of my org buffer, it produces a default css
section in the head: