Re: [O] elfeed and orgmode integaration?

2015-12-04 Thread Alan Schmitt
Hi,

On 2015-12-04 08:06, Xebar Saram  writes:

> I was wondering if anyone uses elfeed and org and how people integrate it into
> orgmode.
>
> It would be great if anyone can share code dealing with capturing from elfeed
> into org, linking and any other uses people are coming up with

I use elfeed, and I have minimal integration: a way to store the linked
page.

#+begin_src emacs-lisp
(defun as/elfeed-entry-as-html-link ()
  "Store an http link to an elfeed entry."
  (when (equal major-mode 'elfeed-show-mode)
(let ((description (elfeed-entry-title elfeed-show-entry))
  (link (elfeed-entry-link elfeed-show-entry)))
  (org-store-link-props
   :type "http"
   :link link
   :description description

(add-hook 'org-store-link-functions 'as/elfeed-entry-as-html-link)
#+end_src

Someone has proposed a better linking mechanism here
https://github.com/skeeto/elfeed/issues/34#issuecomment-158824561 where
you can link to an elfeed search or entry.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated November 29, 2015, Mauna Loa Obs.): 400.37 ppm


signature.asc
Description: PGP signature


Re: [O] Latex export: How to handle multiple authors, emails, institutes

2015-12-04 Thread Eric S Fraga
On Thursday, 26 Nov 2015 at 16:26, Fatma Başak Aydemir wrote:
> Hi all,
>
> I'm trying to write a conference paper which has multiple authors from 
> multiple institues. I tried to insert author infor by adding the 
> following block
>
> #+BEGIN_LaTeX
> \author{First Author\inst{1}, Second Author\inst{1}, Third Author\inst{2}}
> \authorrunning{Author et al.}
> \institute{University of X, Country\\
> \email{\{f.author, s.author\}@uX.edu}
> \and
> University of Y, CountryY\\
> \email{\{t.author\}@uY.edu}}
> #+END_LATEX

This does not work because LaTeX blocks are inserted *after* the
\begin{document} line.  You need to put this all in the preamble which
you can achieve using Tom's suggestion (define a new LaTeX class for
org) and/or using #+latex_header: lines.

I have a combination of these for articles for Springer
books/journals.  I define the following org LaTeX class, based on the
author.tex example I got from the Springer templates:

#+begin_src emacs-lisp
  (add-to-list 'org-latex-classes
   '("springer" "\\documentclass[graybox]{svmult}
  % choose options for [] as required from the list
  % in the Reference Guide
  \\usepackage{mathptmx}   % selects Times Roman as basic font
  \\usepackage{helvet} % selects Helvetica as sans-serif font
  \\usepackage{courier}% selects Courier as typewriter font
  \\usepackage{type1cm}% activate if the above 3 fonts are
  % not available on your system
  %
  \\usepackage{makeidx} % allows index generation
  \\usepackage{graphicx}% standard LaTeX graphics tool
   % when including figure files
  \\usepackage{multicol}% used for the two-column index
  \\usepackage[bottom]{footmisc}% places footnotes at page bottom

  % see the list of further useful packages
  % in the Reference Guide

  \\makeindex % used for the subject index
 % please use the style svind.ist with
 % your makeindex program
"
 ("\\section{%s}" . "\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
 ("\\paragraph{%s}" . "\\paragraph*{%s}")
 ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+end_src

and then use this in my org file for the publication as follows:

#+begin_src org
  ,#+latex_class: springer
  # Article/chapter specific information: title, authors, institution
  ,#+title: The full title of the chapter
  ,#+author: The authors
  ,#+latex_header: \titlerunning{The running title for long titles} 
  ,#+latex_header: \institute{The institute information}
  # I also include article/chapter specific requirements here
  # beyond those required by the Springer class
  ,#+latex_header: \usepackage{algorithm}
  ,* The paper starts here
#+end_src

I hope this helps.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-363-g5c13a6



Re: [O] Error "No :file header argument given" - minor bug?

2015-12-04 Thread Loris Bennett
Hi Aaron,

Aaron Ecay  writes:

> Hi Loris,
>
> It’s difficult to say without more context, but I think you might not
> need :results graphics on the code block that you are #+call-ing.
> :results graphics is intended for situations where Org should arrange
> for the plot to be written, whereas you have undertaken this yourself.

You're right.  I don't need ':results graphics'.  After removing it and
the ':file' header, just the file with the desired name is produced.  At
first I got the following error

org-babel-ref-resolve: Wrong type argument: consp, nil

but this was just due to not having updated the headers.

Thanks for the help,

Loris
-- 
This signature is currently under construction.




Re: [O] Citation processing via Zotero + zotxt

2015-12-04 Thread Eric S Fraga
On Thursday,  3 Dec 2015 at 18:31, John Kitchin wrote:
> I clearly had some super important academic work to do today, so instead
> I played around with citations ;)

Hey, I am doing just that right now ;-)

> I am not yet convinced a citation processor will get us where we want
> because of the complexity of the external dependencies, and the
> potential/probable need for us to define new CSL files for different
> backends, or at a minimum for org-formatted citations and
> bibliographies. Hacking bst files is no fun, and it doesn't look like
> CSL files are much better! Plus you have to find them and install them
> somehow.

I agree completely.

I've looked at your web page for this.  I like your solution.  It is not
complete but we know that a complete solution for citations, given all
the weird and wonderful formats journals etc. expect, requires a very
complex database of style information (witness bst and csl files).  For
a quick 'n' dirty solution, keeping to emacs lisp and org is very
appealing.

However, it is most appealing for those of us coming from the bibtex
world...

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-363-g5c13a6



Re: [O] Citation processing via Zotero + zotxt

2015-12-04 Thread John Kitchin
> > I am not yet convinced a citation processor will get us where we want
> > because of the complexity of the external dependencies, and the
> > potential/probable need for us to define new CSL files for different
> > backends, or at a minimum for org-formatted citations and
> > bibliographies. Hacking bst files is no fun, and it doesn't look like
> > CSL files are much better! Plus you have to find them and install them
> > somehow.
>
> As I understand it, we would not need to hack the CSL files to get org
> markup. With a good processor, such as citeproc-js, it should be trivial
> to modify the output format.[fn:1]
>

This is good. It still means adding each output somewhere.


>
> What CSL implementations do offer is the complexity to handle all the
> nuances of multiple citation styles, languages, etc. (e.g., something
> like Chicago Manual of Style footnotes). My suspicion is that it would
> take years to code something in emacs-lisp that offers all of the
> functionality of CSL processors.
>

That sounds right. bibtex was developed for a long time, and there are
still efforts to improve it!


>
> >
> http://kitchingroup.cheme.cmu.edu/blog/2015/12/03/Exporting-numbered-citations-in-html-with-unsorted-numbered-bibliography/
> >
> > I am pointing this out because I think the approach I used could allow
> > for plugins for different database backends, different ways to get the
> > replacements, etc... you could substitute org-ref links for the
> > citation syntax at some point with no real loss of generality. org-ref
> > could insert the new syntax as soon as it is available in a main org
> > branch. Some code will have to be rewritten to get the key under
> > point, but that probably won't be too hard.
>
> Thanks for sharing this. I use something like this myself for *basic*
> Chicago Manual of Style formatting when I can't rely on
> biblatex-chicago. Might I ask: What is org-ref syntax as opposed to
> citation syntax?
>

org-ref syntax for a citation is just a link such as
cite:some-key,another-key, All the cite types in bibtex and biblatex have a
link definition. Here is an example document with a citation with pre and
post text. A limitation is you can only currently put pre/post text on a
single citation.

Org-mode is great [[cite:Dominik201408][See page 20::for example]].

bibliographystyle:unsrt
bibliography:~/Dropbox/bibliography/references.bib

This exports to LaTeX as

\cite[See page 20][for example]{Dominik201408}.

\bibliographystyle{unsrt}
\bibliography{/Users/jkitchin/Dropbox/bibliography/references}

I looked at an alternative syntax for pre/post text a year ago, but there
doesn't seem to be much demand for it, and we don't use pre/post text.
http://kitchingroup.cheme.cmu.edu/blog/2014/06/26/Another-parsing-of-links-for-citations-with-pre-and-post-text/

 org-ref also provides links for labels, cross-references, index entries
and glossaries, and mostly supports biblatex too. See
https://github.com/jkitchin/org-ref/blob/master/org-ref.org for a pretty
good intro to it.


>
> >  Then other more advanced solutions could come along that would likely
> > be superior in output quality if they use real citation processors,
> > but only if there are CSLs for different backends (if I understand how
> > they work).
>
> I don't think modifying CSL styles would be necessary. A huge number
> already exist.[fn:2] I think all we would need to do is to convert the
> final CSL output to org syntax, which pandoc can already do and which
> citeproc-js could do with minor additions.
>
> Best,
> Matt
>
> Footnotes:
>
> [fn:1]
> See
> https://bitbucket.org/fbennett/citeproc-js/src/tip/src/formats.js?fileviewer=file-view-default
>
> [fn:2] https://github.com/citation-style-language/styles
>


Re: [O] win xp 7 where is init.el (or .emacs)

2015-12-04 Thread Renato Pontefice
I've just found it.
Following this tip
http://stackoverflow.com/questions/10112663/home-directory-and-emacs-file-in-windows-7

Renato

Il giorno ven 4 dic 2015 alle ore 12:02 Renato Pontefice <
renato.pontef...@gmail.com> ha scritto:

> Hi,
> I'm becoming crazy.
> I' m unable to reach that file on my emacs-bin-w64-20151110-9145e79
> installation on a win 7 64 bit pc.
>
> I read all the documentation about, googles everythings...but I'm unable
> to reach it.
>
> Do someone can help me?
>
> TIA
>
> Renato
>


Re: [O] win xp 7 where is init.el (or .emacs)

2015-12-04 Thread Loris Bennett
Renato Pontefice  writes:

> Hi,
> I'm becoming crazy.
> I' m unable to reach that file on my emacs-bin-w64-20151110-9145e79
> installation on a win 7 64 bit pc.
>
> I read all the documentation about, googles everythings...but I'm unable to
> reach it.
>
> Do someone can help me?
>
> TIA
>
> Renato
>

Did you look at this:

https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/Location-of-init-file.html

?

Cheers,

Loris

-- 
This signature is currently under construction.




[O] win xp 7 where is init.el (or .emacs)

2015-12-04 Thread Renato Pontefice
Hi,
I'm becoming crazy.
I' m unable to reach that file on my emacs-bin-w64-20151110-9145e79
installation on a win 7 64 bit pc.

I read all the documentation about, googles everythings...but I'm unable to
reach it.

Do someone can help me?

TIA

Renato


Re: [O] Latex export: How to handle multiple authors, emails, institutes

2015-12-04 Thread John Kitchin
I have also done something like this for different journals here:

https://github.com/jkitchin/jmax/blob/master/ox-manuscript.el#L64


Eric S Fraga writes:

> On Thursday, 26 Nov 2015 at 16:26, Fatma Başak Aydemir wrote:
>> Hi all,
>>
>> I'm trying to write a conference paper which has multiple authors from
>> multiple institues. I tried to insert author infor by adding the
>> following block
>>
>> #+BEGIN_LaTeX
>> \author{First Author\inst{1}, Second Author\inst{1}, Third Author\inst{2}}
>> \authorrunning{Author et al.}
>> \institute{University of X, Country\\
>> \email{\{f.author, s.author\}@uX.edu}
>> \and
>> University of Y, CountryY\\
>> \email{\{t.author\}@uY.edu}}
>> #+END_LATEX
>
> This does not work because LaTeX blocks are inserted *after* the
> \begin{document} line.  You need to put this all in the preamble which
> you can achieve using Tom's suggestion (define a new LaTeX class for
> org) and/or using #+latex_header: lines.
>
> I have a combination of these for articles for Springer
> books/journals.  I define the following org LaTeX class, based on the
> author.tex example I got from the Springer templates:
>
> #+begin_src emacs-lisp
>   (add-to-list 'org-latex-classes
>'("springer" "\\documentclass[graybox]{svmult}
>   % choose options for [] as required from the list
>   % in the Reference Guide
>   \\usepackage{mathptmx}   % selects Times Roman as basic font
>   \\usepackage{helvet} % selects Helvetica as sans-serif font
>   \\usepackage{courier}% selects Courier as typewriter font
>   \\usepackage{type1cm}% activate if the above 3 fonts are
>   % not available on your system
>   %
>   \\usepackage{makeidx} % allows index generation
>   \\usepackage{graphicx}% standard LaTeX graphics tool
>% when including figure files
>   \\usepackage{multicol}% used for the two-column index
>   \\usepackage[bottom]{footmisc}% places footnotes at page bottom
>
>   % see the list of further useful packages
>   % in the Reference Guide
>
>   \\makeindex % used for the subject index
>  % please use the style svind.ist with
>  % your makeindex program
> "
>  ("\\section{%s}" . "\\section*{%s}")
>  ("\\subsection{%s}" . "\\subsection*{%s}")
>  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>  ("\\paragraph{%s}" . "\\paragraph*{%s}")
>  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
> #+end_src
>
> and then use this in my org file for the publication as follows:
>
> #+begin_src org
>   ,#+latex_class: springer
>   # Article/chapter specific information: title, authors, institution
>   ,#+title: The full title of the chapter
>   ,#+author: The authors
>   ,#+latex_header: \titlerunning{The running title for long titles}
>   ,#+latex_header: \institute{The institute information}
>   # I also include article/chapter specific requirements here
>   # beyond those required by the Springer class
>   ,#+latex_header: \usepackage{algorithm}
>   ,* The paper starts here
> #+end_src
>
> I hope this helps.

--
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] win xp 7 where is init.el (or .emacs)

2015-12-04 Thread Loris Bennett
"Loris Bennett"  writes:

> Renato Pontefice  writes:
>
>> Hi,
>> I'm becoming crazy.
>> I' m unable to reach that file on my emacs-bin-w64-20151110-9145e79
>> installation on a win 7 64 bit pc.
>>
>> I read all the documentation about, googles everythings...but I'm unable to
>> reach it.
>>
>> Do someone can help me?
>>
>> TIA
>>
>> Renato
>>
>
> Did you look at this:
>
> https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/Location-of-init-file.html
>
> ?

However, don't necessarily expect to find .emacs in any of those
places.  If it is not already there, just create it somewhere emacs will
find it (see above).

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] problem with org-capture

2015-12-04 Thread Eric S Fraga
On Thursday,  3 Dec 2015 at 23:38, Nicolas Goaziou wrote:

[...]

> I pushed a commit which should fix these issues and the others mentioned
> in the thread. Thank you.

Hi Nicolas,

thank you very much for this.  The problems I was experiencing have all
gone away now!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-363-g5c13a6



Re: [O] org-reveal questions

2015-12-04 Thread Xebar Saram
Thx John

yes that works now. The issue that still stands is whether i can still
change specific headers and or specific lines to not be left aligned while
using the left alignment as the default presentation wide

best

Z
On Fri, Dec 4, 2015 at 4:55 PM, John Hendy  wrote:

> John


Re: [O] org-reveal questions

2015-12-04 Thread John Hendy
On Thu, Dec 3, 2015 at 3:07 AM, Xebar Saram  wrote:
> Thx John (again sorry for late response)
>
> the html block example dosent seem to work for me , i tried adding the block
> before the first header and below the first header with no success. does
> this go into the property drawer or literally as a html code block?'

Again, if I'm understanding what you want to do correctly (left-align
slides, right?), this is working for me:

#+begin_src min-config

;; set load paths
;; set load dirs and global config options
(add-to-list 'load-path "~/.elisp/org.git/lisp/")
(add-to-list 'load-path "~/.elisp/org.git/contrib/lisp")
(add-to-list 'load-path "~/.elisp/org-reveal/")

(require 'ox-reveal)

(setq org-reveal-root "file:///home/jwhendy/installed/reveal.js")

#+end_src


#+begin_src revea-test.org

#+title: org-reveal test
#+author: John Henderson
#+email:
#+reveal_hlevel: 1

#+begin_html

.reveal .slides { text-align: left; }
.reveal .slides .section>* { margin-left: 0; margin-right: 0; }

#+end_html

* Slide 1

Some stuff

* Slide 2

Some more stuff

** Sub slide

Even more stuff!

#+end_src

Can you give that a try?

Oh wow! I just scanned below to check for differences in the html
block... So sorry! It looks like I completely missed the 

Re: [O] something in between @@html:@@ and html blocks

2015-12-04 Thread Eric S Fraga
On Friday,  4 Dec 2015 at 10:43, John Kitchin wrote:
> I have an intermediate use case that isn't covered by html snippets or
> blocks, and I wondered if there is a solution to it.
>
> What I want is to put a large tooltip on a link in html output. The text
> for the tooltip is too large to fit on one line in a @@html:@@ snippet,
> and if I put it in an html block it adds line breaks in the html export.

Does #+HTML: work (i.e. does not introduce line breaks)?
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-363-g5c13a6



[O] something in between @@html:@@ and html blocks

2015-12-04 Thread John Kitchin
I have an intermediate use case that isn't covered by html snippets or
blocks, and I wondered if there is a solution to it.

What I want is to put a large tooltip on a link in html output. The text
for the tooltip is too large to fit on one line in a @@html:@@ snippet,
and if I put it in an html block it adds line breaks in the html export.

Is there a regular way to avoid this, e.g. to insert a large snippet?

Thanks,

-- 
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] something in between @@html:@@ and html blocks

2015-12-04 Thread Rasmus
John Kitchin  writes:

> I have an intermediate use case that isn't covered by html snippets or
> blocks, and I wondered if there is a solution to it.
>
> What I want is to put a large tooltip on a link in html output. The text
> for the tooltip is too large to fit on one line in a @@html:@@ snippet,
> and if I put it in an html block it adds line breaks in the html export.
>
> Is there a regular way to avoid this, e.g. to insert a large snippet?

How about a custom link type?  I thought that’s general solution to life,
the universe and everything ;)

If a lot of the width is due to html cruft you might be able to shorten
redundant parts via a macro, but I’m sure you thought about that...  You
can also add more snippets, one after the other:

 @@html:xx@@
 @@html:xx@@

Another hackish solutions would be to use a filter + footnotes with a
recognizable pattern, but I’m not sure I would go that way...

I doubt this help, but those were my 2 cents.

Rasmus

-- 
However beautiful the theory, you should occasionally look at the evidence




[O] README for bitbucket - export to which format?

2015-12-04 Thread Rainer M Krug
Hi

There are many formats available for READMEs on bitbucket, but
unfortunately not org mode (I am staying on bitbucket for private repos
and move them to github as soon as they can be made public - matter of
finances).

So what is the best export format from org for bitbucket READMEs? At the
moment I am using text (UTF8) Which works, but I would like to have
syntax highlighting and clickable links?

Thanks,

Rainer

-- 
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] README for bitbucket - export to which format?

2015-12-04 Thread Rasmus
Rainer M Krug  writes:

> There are many formats available for READMEs on bitbucket, but
> unfortunately not org mode (I am staying on bitbucket for private repos
> and move them to github as soon as they can be made public - matter of
> finances).

You could try Gitlab.  It supports Org.

> So what is the best export format from org for bitbucket READMEs? At the
> moment I am using text (UTF8) Which works, but I would like to have
> syntax highlighting and clickable links?

Probably Rst or markdown...

Rasmus

-- 
A clever person solves a problem. A wise person avoids it




Re: [O] README for bitbucket - export to which format?

2015-12-04 Thread Rainer M Krug
Rasmus  writes:

> Rainer M Krug  writes:
>
>> There are many formats available for READMEs on bitbucket, but
>> unfortunately not org mode (I am staying on bitbucket for private repos
>> and move them to github as soon as they can be made public - matter of
>> finances).
>
> You could try Gitlab.  It supports Org.

Interesting - looks like a alternative. Are there any other advantages
over BitBucket?

>
>> So what is the best export format from org for bitbucket READMEs? At the
>> moment I am using text (UTF8) Which works, but I would like to have
>> syntax highlighting and clickable links?
>
> Probably Rst or markdown...

I am using markdown - works, although I have to disable the toc.

Thanks,

Rainer
>
> Rasmus

-- 
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] README for bitbucket - export to which format?

2015-12-04 Thread Jeroen Tiebout
As far as I know markdown is the de facto standard for readme files on
both GitHub and BitBucket.
Org exporter does a fine job of translating your org file to .md

Hope that helps.

Jeroen

On Friday 2015-12-04 13:38:47 CET, Rainer M Krug  wrote:

> Hi
>
> There are many formats available for READMEs on bitbucket, but
> unfortunately not org mode (I am staying on bitbucket for private repos
> and move them to github as soon as they can be made public - matter of
> finances).
>
> So what is the best export format from org for bitbucket READMEs? At the
> moment I am using text (UTF8) Which works, but I would like to have
> syntax highlighting and clickable links?
>
> Thanks,
>
> Rainer



Re: [O] ox-latex

2015-12-04 Thread John Hendy
On Thu, Dec 3, 2015 at 10:36 AM, Thomas S. Dye  wrote:
> Aloha Raimund,
>
> Raimund  writes:
>
>> Hi,
>>
>> I'm a bloody beginner on org-mode so I still am searching my way through
>> the oceans of informations about getting along with org-mode.
>>
>> At the moment I am struggling with using latex-export and setting up (a)
>> latex-class(es).
>>
>> I found some great instructions on worg: Latex Export vor org-mode < 8.0
>> 
>>   and it says to make some changes in .emacs like:
>
> These instructions are for the old exporter.  The new exporter made many
> of the old instructions obsolete.
>
> I presume you're using Org mode 8?

The instructions are for Org < 8... but why would those instructions
mention ox-latex? I thought all the ox-* stuff came through only with
8.0? Or was the ox-* convention earlier than I realize?


>>
>>> (require  'ox-latex)
>>
>> If I do that and eval-buffer emacs it reads:
>>
>>
>>> eval-buffer: Cannot open load file: ox-latex
>>
>> Now I don't know if it means ox-latex doesn't exist at all ... however,
>> I thought to look out for ox-latex in the web to download and push it in
>> my .emacs.d ... hmmm ... even though there are bunches of
>> ox-whatsoever-files I failed to find ox-latex ... so I think I'm
>> thinking wrong ... :-(
>>
>> Can anyone help me out here?
>
> The manual is a good starting place.
>
> There are a couple of LaTeX export templates here:
> http://orgmode.org/worg/exporters/index.html
>
> There is one for annotated bibliographies and another for the Journal
> PLOS One.  They should give examples of how the LaTeX exporter can be
> customized.
>
> hth,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>



[O] Thunderlink fork

2015-12-04 Thread Simon Thum

Dear fellow Orgers,

to those of you using Thunderlink:

I created a small fork which fixes the problem that the email subject 
cannot be included in an Org-mode link description since subjects are 
prone to contain link-breaking characters.


Unfortunately thunderlink seems no longer maintained, and this fix is 
mostly for org-mode users, so in case you care, read on.


The fork:

https://github.com/simonthum/thunderlink

The XPI (Thundebird Add-on; just drag the link onto the add-on panel)

https://github.com/simonthum/thunderlink/raw/master/thunderlink-1.2.1-simon-tb.xpi

A nice Org-mode link template:

[[][Email: ]]

Brackets etc. in the subject will no longer break your link with 
filteredSubject.


I hope it's useful to someone.

Cheers,

Simon




Re: [O] Citation processing via Zotero + zotxt

2015-12-04 Thread Matt Lundin
Hi John,

John Kitchin  writes:

> > I am not yet convinced a citation processor will get us where we
> want
> > because of the complexity of the external dependencies, and the
> > potential/probable need for us to define new CSL files for
> different
> > backends, or at a minimum for org-formatted citations and
> > bibliographies. Hacking bst files is no fun, and it doesn't look
> like
> > CSL files are much better! Plus you have to find them and
> install them
> > somehow.
>
> As I understand it, we would not need to hack the CSL files to get
> org markup. With a good processor, such as citeproc-js, it should
> be trivial to modify the output format.[fn:1]
>
> This is good. It still means adding each output somewhere.
>

Do you mean adding html, odt, etc.? I don't think this would be
necessary. We could invoke the citation processor (e.g., citeproc-js,
pandoc, etc.) during export, feeding it an ordered list of citation
keys. It would then return the formatted citations in org markup, which
we could insert into at the appropriate locations before the final
export to the desired backend. Thus, all we would need to do is define
an single output format (org mode). Or we could parse JSON output
directly in emacs

> What CSL implementations do offer is the complexity to handle all
> the nuances of multiple citation styles, languages, etc. (e.g.,
> something like Chicago Manual of Style footnotes). My suspicion is
> that it would take years to code something in emacs-lisp that
> offers all of the functionality of CSL processors.
>
> That sounds right. bibtex was developed for a long time, and there are
> still efforts to improve it!

Yes. And CSL and biblatex are far more complex and robust than bibtex.
:) I use biblatex (biblatex-chicago), which finally gives those of us in
the humanities robust automation of complex footnote styles. One of my
dreams for citation processing in org mode is to be able to achieve in
org the same level of automation, thus allowing non-LaTeX backends. IMO,
the best hope of accomplishing this is to plug into the existing power
of CSL, which has emerged as the new standard for automated citations.

(A note: the other way to accomplish this right now it to export a file
to org or markdown --- evaluating code blocks, etc. and converting
citations to [@some_cite_key] --- and then running the output through
pandoc, which uses CSL.)

> org-ref syntax for a citation is just a link such as
> cite:some-key,another-key, All the cite types in bibtex and biblatex
> have a link definition. Here is an example document with a citation
> with pre and post text. A limitation is you can only currently put
> pre/post text on a single citation.

> I looked at an alternative syntax for pre/post text a year ago, but
> there doesn't seem to be much demand for it, and we don't use pre/post
> text.
> http://kitchingroup.cheme.cmu.edu/blog/2014/06/26/Another-parsing-of-links-for-citations-with-pre-and-post-text/
>
> org-ref also provides links for labels, cross-references, index
> entries and glossaries, and mostly supports biblatex too. See
> https://github.com/jkitchin/org-ref/blob/master/org-ref.org for a
> pretty good intro to it.

Thanks. This sounds great! I'll check it out. (I've obviously not been
hanging around on the list often enough to learn about all the recent
goodies.)

Best,
Matt



Re: [O] README for bitbucket - export to which format?

2015-12-04 Thread Rasmus
Rainer M Krug  writes:

>> You could try Gitlab.  It supports Org.
>
> Interesting - looks like a alternative. Are there any other advantages
> over BitBucket?

- You can share your private repos with as many people you want
- Built in CI including production of artifacts (e.g. produce pdf of commit)
- better web interface.
- git annex support
- you can install it on your own server when you no longer feel
  comfortable with the gitlab.com installation.

Rasmus

-- 
Enough with the bla bla!



Re: [O] README for bitbucket - export to which format?

2015-12-04 Thread Rainer M Krug
Jeroen Tiebout  writes:

> As far as I know markdown is the de facto standard for readme files on
> both GitHub and BitBucket.
> Org exporter does a fine job of translating your org file to .md

Thanks - I tried it before and it did not work, =but I realized that the
toc was the problem. disabled toc export and it works fine.

Thanks,

Rainer

>
> Hope that helps.
>
> Jeroen
>
> On Friday 2015-12-04 13:38:47 CET, Rainer M Krug  wrote:
>
>> Hi
>>
>> There are many formats available for READMEs on bitbucket, but
>> unfortunately not org mode (I am staying on bitbucket for private repos
>> and move them to github as soon as they can be made public - matter of
>> finances).
>>
>> So what is the best export format from org for bitbucket READMEs? At the
>> moment I am using text (UTF8) Which works, but I would like to have
>> syntax highlighting and clickable links?
>>
>> Thanks,
>>
>> Rainer
>

-- 
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] win xp 7 where is init.el (or .emacs)

2015-12-04 Thread John Hendy
On Fri, Dec 4, 2015 at 5:26 AM, Renato Pontefice
 wrote:
> I've just found it.
> Following this tip
> http://stackoverflow.com/questions/10112663/home-directory-and-emacs-file-in-windows-7

I didn't get to this in time, but would have suggested the same. Using
both Linux and Win7, it's quite frustrating figuring out the various
Windows definitions of "home."

I use the same trick, by doing C-x C-f ~/ and then pressing TAB
repeatedly. If that's not enough, I've opened up a File Explorer to
try and follow along, doing ~/.. TAB (looking at the parent dir). On
my system, this ends up being something in C:\Users\Username\AppData\
and I can't recall which (using Linux at the moment), Local or Roaming
perhaps...

Glad you found it.


John

>
> Renato
>
> Il giorno ven 4 dic 2015 alle ore 12:02 Renato Pontefice
>  ha scritto:
>>
>> Hi,
>> I'm becoming crazy.
>> I' m unable to reach that file on my emacs-bin-w64-20151110-9145e79
>> installation on a win 7 64 bit pc.
>>
>> I read all the documentation about, googles everythings...but I'm unable
>> to reach it.
>>
>> Do someone can help me?
>>
>> TIA
>>
>> Renato



[O] Straight recursive fact prints in floating-point in org-babel but not in REPL

2015-12-04 Thread Brian Beckman
Org-babel seems to print SLIME / SBCL bignums as floating point, at least in
this gist (please see
https://gist.github.com/rebcabin/f73cecd3c9b7da6218e9).  I'd like to be able
to control whether bignums are printed out in full.  Any advice for me?




[O] [PATCH] org-protocol: Allow key=val=value2-style URLs

2015-12-04 Thread Sacha Chua
Aaron Ecay  writes:

Hello, Aaron, Rasmus, all!

> better solution IMO would be to make org-protocol links valid urls in
> another way, using the query string format:
> org-protocol://store-link?url=[...]=[...]

Aaron: Great point! I've changed my code to support this style of
org-protocol link, and I think the tests I've added to
test-org-protocol.el double-check that old links are still supported.
I've added an extra argument to the functions defined in
org-protocol-protocol-alist and org-protocol-protocol-alist-default, but
I have a condition-case around the funcall so that old functions should
continue to work. I've updated the documentation to encourage new-style
links. What do you think of this patch? I've changed the subject to
reflect the new focus.

Rasmus: that means fiddling with ports is no longer needed, yay. I've
also added the test dependency and lexical binding cookie to
test-org-protocol, as you suggested. Since the missing-test-dependency
signal means that the test isn't run as part of make test, is there
anything I should do to get it to be included in automated tests, or is
it fine leaving it as is?

Sacha

>From aff151930a73c22bb3fdf3ae9b442cecc08aaa67 Mon Sep 17 00:00:00 2001
From: Sacha Chua 
Date: Wed, 2 Dec 2015 10:53:07 -0500
Subject: [PATCH] org-protocol: Allow key=val=val2-style URLs

* lisp/org-protocol.el: Update documentation.
  (org-protocol-parse-parameters): New function to simplify handling of
  old- or new-style links.
  (org-protocol-assign-parameters): New function to simplify handling of
  old- or new-style links.
  (org-protocol-store-link): Accept new-style links like
  org-protocol://store-link?title=TITLE=URL
  (org-protocol-capture): Accept new-style links like
  org-protocol://capture?title=TITLE=URL=x=BODY
  (org-protocol-do-capture): Update to accept new-style links.
  (org-protocol-open-source): Accept new-style links like
  org-protocol://open-source?url=URL
  (org-protocol-check-filename-for-protocol): Updated documentation.

  This allows the use of org-protocol on KDE 5 and makes org-protocol
  links more URI-like.

* testing/lisp/test-org-protocol.el: New file.
---
 lisp/org-protocol.el  | 194 +++---
 testing/lisp/test-org-protocol.el | 170 +
 2 files changed, 307 insertions(+), 57 deletions(-)
 create mode 100644 testing/lisp/test-org-protocol.el

diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el
index 339f2b7..7f301e4 100644
--- a/lisp/org-protocol.el
+++ b/lisp/org-protocol.el
@@ -49,7 +49,7 @@
 ;;   4.) Try this from the command line (adjust the URL as needed):
 ;;
 ;;   $ emacsclient \
-;; org-protocol://store-link://http:%2F%2Flocalhost%2Findex.html/The%20title
+;; org-protocol://store-link?url=http:%2F%2Flocalhost%2Findex.html=The%20title
 ;;
 ;;   5.) Optionally add custom sub-protocols and handlers:
 ;;
@@ -60,7 +60,7 @@
 ;;
 ;;   A "sub-protocol" will be found in URLs like this:
 ;;
-;;   org-protocol://sub-protocol://data
+;;   org-protocol://sub-protocol?key=val=val2
 ;;
 ;; If it works, you can now setup other applications for using this feature.
 ;;
@@ -94,20 +94,20 @@
 ;; You may use the same bookmark URL for all those standard handlers and just
 ;; adjust the sub-protocol used:
 ;;
-;; location.href='org-protocol://sub-protocol://'+
-;;   encodeURIComponent(location.href)+'/'+
-;;   encodeURIComponent(document.title)+'/'+
+;; location.href='org-protocol://sub-protocol?url='+
+;;   encodeURIComponent(location.href)+'='+
+;;   encodeURIComponent(document.title)+'='+
 ;;   encodeURIComponent(window.getSelection())
 ;;
 ;; The handler for the sub-protocol \"capture\" detects an optional template
 ;; char that, if present, triggers the use of a special template.
 ;; Example:
 ;;
-;; location.href='org-protocol://sub-protocol://x/'+ ...
+;; location.href='org-protocol://capture?template=x'+ ...
 ;;
-;;  use template ?x.
+;;  uses template ?x.
 ;;
-;; Note, that using double slashes is optional from org-protocol.el's point of
+;; Note that using double slashes is optional from org-protocol.el's point of
 ;; view because emacsclient squashes the slashes to one.
 ;;
 ;;
@@ -233,19 +233,21 @@ protocol - protocol to detect in a filename without trailing colon and slashes.
`org-protocol-the-protocol'.  Double and triple slashes are compressed
to one by emacsclient.
 
-function - function that handles requests with protocol and takes exactly one
-   argument: the filename with all protocols stripped.  If the function
+function - function that handles requests with protocol and takes two
+   arguments: the filename with all protocols stripped, and a new-style
+   argument that indicates whether new-style arguments (key=val=val2)
+   or old-style arguments (val/val2) were used.  

Re: [O] org latex/beamer math escape in a ``surrounding context'': $a$'s

2015-12-04 Thread John Hendy
On Fri, Dec 4, 2015 at 1:18 PM, Martin Steffen  wrote:
> Hi, I'd to have some math in beamer/latex. In LaTeX I'd write
>
>$a$'s
>
> The a is the math, the apostroph-s is the surrounding text. Math-escape
> works fine in org, but it seems the $ -- $ must be surrounded by blanks.
> In the above example, exporting to latex/beamer does not give the desired
> result. The immediately trailing "'s" get the $-signs interpreted
> verbatimely. Same applies for other surrounding contexts like
>
>``$a$''  $a$s
>
> but ($a$) and "$a$" do a math-escape. Is there a solution for the above (I
> don't want to write  $a$ 's)? Or is there a rationale behind that, so I know
> when to except an escape and when no?

Maybe not what you wanted to hear, but I've inquired about various
things like this before and due to issues with various things I've
opted primarily to just do \(math\). So:

\(a\)s

Does that work for you?


John

>
> Martin
>
>
>
>



Re: [O] org latex/beamer math escape in a ``surrounding context'': $a$'s

2015-12-04 Thread John Kitchin
does \(a\)'s work?

Martin Steffen writes:

> Hi, I'd to have some math in beamer/latex. In LaTeX I'd write
>
>$a$'s
>
> The a is the math, the apostroph-s is the surrounding text. Math-escape
> works fine in org, but it seems the $ -- $ must be surrounded by blanks.
> In the above example, exporting to latex/beamer does not give the desired
> result. The immediately trailing "'s" get the $-signs interpreted
> verbatimely. Same applies for other surrounding contexts like
>
>``$a$''  $a$s
>
> but ($a$) and "$a$" do a math-escape. Is there a solution for the above (I
> don't want to write  $a$ 's)? Or is there a rationale behind that, so I know
> when to except an escape and when no?
>
> Martin

--
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] something in between @@html:@@ and html blocks

2015-12-04 Thread Nicolas Goaziou
Hello,

John Kitchin  writes:

> I have an intermediate use case that isn't covered by html snippets or
> blocks, and I wondered if there is a solution to it.
>
> What I want is to put a large tooltip on a link in html output. The text
> for the tooltip is too large to fit on one line in a @@html:@@
> snippet,

Why would you need to fit on one line? Export snippets can span over
multiple lines, as long as you don't introduce a paragraph separator.

> and if I put it in an html block it adds line breaks in the html export.
>
> Is there a regular way to avoid this, e.g. to insert a large snippet?
>
> Thanks,

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] [BUG] org-table.el: Fix `org-table-eval-formula'

2015-12-04 Thread Nicolas Goaziou
Hello,

Piotr Gajewski  writes:

> I have found a little bug that results in formulas of a table being
> computed incorrectly. When there are tabs in front of a data row (instead of 
> spaces),
> the list of values extracted from the row contains superfluous items.
> All genuine values are shifted to the right. Consequently, when references
> to fields are resolved, a formula gets the wrong values.
>
> Example:
>
>     |---+--+--+---++-|
>     | ! |  sum |  | a |  b |   c |
>     |---+--+--+---++-|
>     | # | 1011 | 1000 | 1 | 10 | 100 |
>     |---+--+--+---++-|
>     #+TBLFM: $2=$a+$b+$c
>
> The list of extracted values is ("\t" "#" "" "1000" "1" "10" "100").
> Should be ("#" "" "1000" "1" "10" "100").
>
> Piotr Gajewski
>
> From 1c943f1ea833b9cdaa172fd96cf6bf6d86c4d86e Mon Sep 17 00:00:00 2001
> From: Piotr Gajewski 
> Date: Thu, 3 Dec 2015 16:46:32 +0100
> Subject: [PATCH] org-table.el: Fix `org-table-eval-formula'
>
> * lisp/org-table.el (org-table-eval-formula): Fix regexp used for
>   extracting values from fields of a table.
>
> TINYCHANGE

Thanks for the patch. 

However I eventually applied a slightly different one. In particular,
I don't think TAB should be a valid cell alignment character within
a table. IMO, it is only a special character when used in indentation.

Regards,

-- 
Nicolas Goaziou



Re: [O] something in between @@html:@@ and html blocks

2015-12-04 Thread Nicolas Goaziou
John Kitchin  writes:

> I tried putting an Emacs function docstring as a tooltip and it had a
> paragraph break in it.

As any inline element, an export snippet cannot contain an empty element
(which is a paragraph separator).  I assume the docstring contained one.

Regards,



Re: [O] something in between @@html:@@ and html blocks

2015-12-04 Thread John Kitchin
I tried putting an Emacs function docstring as a tooltip and it had a
paragraph break in it.

On Friday, December 4, 2015, Nicolas Goaziou  wrote:

> Hello,
>
> John Kitchin > writes:
>
> > I have an intermediate use case that isn't covered by html snippets or
> > blocks, and I wondered if there is a solution to it.
> >
> > What I want is to put a large tooltip on a link in html output. The text
> > for the tooltip is too large to fit on one line in a @@html:@@
> > snippet,
>
> Why would you need to fit on one line? Export snippets can span over
> multiple lines, as long as you don't introduce a paragraph separator.
>
> > and if I put it in an html block it adds line breaks in the html export.
> >
> > Is there a regular way to avoid this, e.g. to insert a large snippet?
> >
> > Thanks,
>
> Regards,
>
> --
> Nicolas Goaziou
>


-- 
John

---
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] org latex/beamer math escape in a ``surrounding context'': $a$'s

2015-12-04 Thread Martin Steffen
> "John" == John Hendy  writes:

John> \(a\)s

John> Does that work for you?

yes, great (I was not aware that this is an alternative to the
dollar-dollar math, I only knew \[ )


Martin



John> John

>> 
>> Martin
>> 
>> 
>> 
>> 



Re: [O] Citation processing via Zotero + zotxt

2015-12-04 Thread John Kitchin

>
> Yes. And CSL and biblatex are far more complex and robust than bibtex.
> :) I use biblatex (biblatex-chicago), which finally gives those of us in
> the humanities robust automation of complex footnote styles. One of my
> dreams for citation processing in org mode is to be able to achieve in
> org the same level of automation, thus allowing non-LaTeX backends. IMO,
> the best hope of accomplishing this is to plug into the existing power
> of CSL, which has emerged as the new standard for automated citations.
>
> (A note: the other way to accomplish this right now it to export a file
> to org or markdown --- evaluating code blocks, etc. and converting
> citations to [@some_cite_key] --- and then running the output through
> pandoc, which uses CSL.)

On this note, it is also possible to have org-ref either insert pandoc
syntax, or replace the org-ref links with pandoc syntax as a pre-filter.
Alternatively, when you export markdown documents with org-ref
citations, they export as pandoc syntax right now.

>
> Best,
> Matt

--
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



[O] Org mode export from a large file is slow since release 8.3

2015-12-04 Thread Viktor Rosenfeld
Hi,

I updated from 8.2.9 to 8.3.2 today and now the export has become very slow. 
Creating an HTML page or a LaTeX buffer used to be instantaneous but now takes 
up to 30 seconds.

It seems that this is mostly related to file size. For example, exporting a 
subtree from a large notes file (~8600 lines) is very slow (11 seconds) but if 
I truncate the file significantly (to ~3000 lines) the export is faster (<2 
seconds), and if I move the subtree to a fresh file (while still exporting the 
subtree only and not the file) it is again instantaneous.

It also seems that the maint branch has fixed this problem somewhat, although I 
can’t really quantify it, but the problem persists.

In the *Messages* buffer, I see a new message that hasn’t been there before:

org-babel-exp process C at line 7982...
org-babel-exp process C at line 7998...
org-babel-exp process C at line 8024...
org-babel-exp process C at line 8064...
org-babel-exp process patch at line 8103...
org-babel-exp process patch at line 8119...
org-babel-exp process patch at line 8132...
org-babel-exp process patch at line 8148...
org-babel-exp process C at line 8179...
30 unique files scanned for IDs [8 times]

Curiously, after trying to debug this issue, the problem went away for one file 
but persists for another.

I am also able to reproduce this problem with an init.el file containing only:

;; use own Org-mode installation
(setq load-path (cons "~/unix/src/org-mode/lisp" load-path))
(setq load-path (cons "~/unix/src/org-mode/contrib/lisp" load-path))
(require 'org-install)
(require 'org)
(require 'ox-html)

I’m using CocoaEmacs 24.4 (9.0) installed via Homebrew on OS X 10.11.1 (El 
Capitan).

Any idea what is causing this?

Best,
Viktor




signature.asc
Description: Message signed with OpenPGP using GPGMail


[O] syncing my life (orgmode :)) to a mobile (android) device..cant find a holistic reliable way..how do you guys manage to do it?

2015-12-04 Thread Xebar Saram
Hi all

I have been using emacs/orgmode for nearly 3 years now. since i cant really
code to save my life (im in the humanities field..i have an excuse :)) i
still feel like a newbie but i still use emacs/orgmode for nearly all
aspect of my computing life. With the help of the wonderful orgmode
community and #emacs IRC channel i now use mu4e for email, org-reveal to
prepare my classes, orgmode for all my academic/personal TODO's, i use
org-ref and helm to manage my references, use it for R analysis (we do
statistics in humanities to! ;-), I use it for my password management, and
then of course use orgmode to collect all possible information i can think
of: i use it to collect food recipes, linux tips etc. I am interested also
in using org-contact and or bbdb for contact management.

all this is great yet i travel alot to conferences and meeting and do rely
on a mobile device (in my case a android nexus 6) in many situations. I
check my emails on it as much as i do on my PC, look at upcoming and
schedule appointments, look at timed TODOS, add new contacts i meet and
collect info on the go (web links, food recipes etc).

Out of all the things i do only email (via offlineimap and mu4e) seems to
be able to Sync correctly.

I have tried various ways of syncing my calander/TODOS (via orgmobile) and
my notes (via git) with not much success. these methods with my crappy
coding skills are not rock solid and are quite cumbersome to setup and
maintain. also there dosent seem to be a solid way to sync contacts to the
mobile.

So my question is (sorry for the long intro :)) what do orgmode users (who
also are heavy mobile users) do? do they give up on contacts and
calendaring on the mobile? maintain 2 separate databases? what tools do
people use to overcome this issue?

I once had a nokia n900 which ran basically Debian linux, and thus emacs
could be run naively , these days it seems like all are android devices. I
still haven't found a gui friendly way to run emacs there.

thanks so much

best

Z


Re: [O] something in between @@html:@@ and html blocks

2015-12-04 Thread John Kitchin
it doesn't seem to work.

Eric S Fraga writes:

> On Friday,  4 Dec 2015 at 10:43, John Kitchin wrote:
>> I have an intermediate use case that isn't covered by html snippets or
>> blocks, and I wondered if there is a solution to it.
>>
>> What I want is to put a large tooltip on a link in html output. The text
>> for the tooltip is too large to fit on one line in a @@html:@@ snippet,
>> and if I put it in an html block it adds line breaks in the html export.
>
> Does #+HTML: work (i.e. does not introduce line breaks)?

--
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] org-reveal questions

2015-12-04 Thread John Hendy
On Fri, Dec 4, 2015 at 9:49 AM, Xebar Saram  wrote:
> Thx John
>
> yes that works now. The issue that still stands is whether i can still
> change specific headers and or specific lines to not be left aligned while
> using the left alignment as the default presentation wide

Sorry, I missed that this was the goal. I don't know. I tried Matt's
suggestion of the :HTML_CONTAINER_CLASS: property, but I think the
problem is that not all of the ox-html stuff translates to org-reveal.
For example, when I view the page source for my generated .html from
org-reveal export, there's no class passed to the target
section/slide/headline (whatever one wants to call it).

For example, I'm using this example:

#+begin_org

* Class test
  :PROPERTIES:
  :HTML_CONTAINER_CLASS: test
  :END:

Text here.
#+end_org

I get these results:

=C-c C-e h h= yields (note =test= class passed to div):


1 Class test


Text here.




=C-c C-e R R= yields:



1 Class test

Text here.




There's no "test" class added to the sections in reveal export, so
none of the targeted css is going to work. Super hokey, but if you
have the whole document left-aligned as with my previous 

[O] org latex/beamer math escape in a ``surrounding context'': $a$'s

2015-12-04 Thread Martin Steffen
Hi, I'd to have some math in beamer/latex. In LaTeX I'd write

   $a$'s

The a is the math, the apostroph-s is the surrounding text. Math-escape
works fine in org, but it seems the $ -- $ must be surrounded by blanks.
In the above example, exporting to latex/beamer does not give the desired
result. The immediately trailing "'s" get the $-signs interpreted
verbatimely. Same applies for other surrounding contexts like

   ``$a$''  $a$s 

but ($a$) and "$a$" do a math-escape. Is there a solution for the above (I
don't want to write  $a$ 's)? Or is there a rationale behind that, so I know
when to except an escape and when no?

Martin






Re: [O] something in between @@html:@@ and html blocks

2015-12-04 Thread John Kitchin

Rasmus writes:

> John Kitchin  writes:
>
>> I have an intermediate use case that isn't covered by html snippets or
>> blocks, and I wondered if there is a solution to it.
>>
>> What I want is to put a large tooltip on a link in html output. The text
>> for the tooltip is too large to fit on one line in a @@html:@@ snippet,
>> and if I put it in an html block it adds line breaks in the html export.
>>
>> Is there a regular way to avoid this, e.g. to insert a large snippet?
>
> How about a custom link type?  I thought that’s general solution to life,
> the universe and everything ;)

It works for a lot of things, but not this ;) Links do not work with
line breaks in them.

>
> If a lot of the width is due to html cruft you might be able to shorten
> redundant parts via a macro, but I’m sure you thought about that...  You
> can also add more snippets, one after the other:
>
>  @@html:xx@@
>  @@html:xx@@
>
> Another hackish solutions would be to use a filter + footnotes with a
> recognizable pattern, but I’m not sure I would go that way...

This is probably my solution. Replace the things prior to export with
uuids, export, and put then post filter to replace the uuids with the
html code. It turns out I did this once before to get matlab to post to
Wordpress
(https://github.com/jkitchin/matlab-wordpress/blob/master/blogpost.m#L177)
where I had to protect some text temporarily, and then deprotect it.

Thanks!

>
> I doubt this help, but those were my 2 cents.
>
> Rasmus

--
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