Q: add contents of a property to LaTeX export?

2019-10-30 Thread Julius Dittmar
Hi folks,

I would like the org export to add a line containing one property entry
(ID for example) to the LaTeX export for every heading.

Ideally I'd like this to be added to the org-latex-classes
configuration. I'd like to call a macro \mysection{..content of ID
property..}{..heading line content..} there (instead of
\section{..heading line content..}.

Alternatively something like \renewcommand{\ID}{...contents of ID
property...} immediately before or after the sectioning command would
work, too.

My elisp skills are still near to non-existent, so I would not even know
where to start looking for something like that.

Any pointers?

Thanks in advance,
Julius



How to change the width of a latex exported inlinetask?

2019-10-30 Thread Alain . Cochard


Hello.

By default, the width of LaTeX exported inlinetasks is less than that
of regular text.

I would like to be able to change this default, ideally both on a
per-file basis and a per-inlinetask basis (but either way would
already very good!).

Despite some Internet searching, I could not find a way. I am aware of
org-latex-format-inlinetask-function, but I don't know how to use
it...

Thank you for any help.
Regards,
alain

-- 
EOST (École et Observatoire des Sciences de la Terre) 
IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 106] | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France| Fax:   +33 (0)3 68 85 01 25 



Re: Q: add contents of a property to LaTeX export?

2019-10-30 Thread John Kitchin
I would do something like this in a block like this. This hook runs on a
copy of the buffer. You can change  (org-id-get-create) to org-entry-get if
you want.


* build
 :noexport:

#+BEGIN_SRC emacs-lisp
(let ((org-export-before-processing-hook
   '((lambda (_backend)
  (org-map-entries (lambda ()
 (org-end-of-meta-data)
 (insert (format "\nID: %s\n" (org-id-get-create)

  (org-open-file (org-latex-export-to-pdf)))

#+END_SRC

#+RESULTS:
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



On Wed, Oct 30, 2019 at 7:47 AM Julius Dittmar 
wrote:

> Hi folks,
>
> I would like the org export to add a line containing one property entry
> (ID for example) to the LaTeX export for every heading.
>
> Ideally I'd like this to be added to the org-latex-classes
> configuration. I'd like to call a macro \mysection{..content of ID
> property..}{..heading line content..} there (instead of
> \section{..heading line content..}.
>
> Alternatively something like \renewcommand{\ID}{...contents of ID
> property...} immediately before or after the sectioning command would
> work, too.
>
> My elisp skills are still near to non-existent, so I would not even know
> where to start looking for something like that.
>
> Any pointers?
>
> Thanks in advance,
> Julius
>
>


Re: How to change the width of a latex exported inlinetask?

2019-10-30 Thread Fraga, Eric
On Wednesday, 30 Oct 2019 at 15:21, alain.coch...@unistra.fr wrote:
> Hello.
>
> By default, the width of LaTeX exported inlinetasks is less than that
> of regular text.
>
> I would like to be able to change this default, ideally both on a
> per-file basis and a per-inlinetask basis (but either way would
> already very good!).
>
> Despite some Internet searching, I could not find a way. I am aware of
> org-latex-format-inlinetask-function, but I don't know how to use
> it...

I have the following which, although it does not do what you want, it
may give you some pointers:

#+begin_src emacs-lisp
  (defun org-latex-format-inlinetask (todo type priority name tags contents 
info)
"Format an inline task element for LaTeX export."
(let ((theinlinetask (concat todo " " name "\n\n\\noindent " contents)))
  (if (and todo (not (equal todo "NOTE")))
  (format "\\footnote{%s}\\marginpar{\\fbox{\\tiny\\thefootnote. %s}}" 
theinlinetask todo)
(format "\\hl{%s}" contents
  (setq org-latex-format-inlinetask-function 'org-latex-format-inlinetask)
#+end_src

You can trim this down and replace the \\hl{%s} with, for instance, an
mdframed environment which allows you to control the width easily.

I will add that, for a number of reasons including advice from this
list, I have moved away from inline tasks almost completely and now use
drawers instead.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78



Anyone use 3rd party search tools w/org-mode?

2019-10-30 Thread Nathan Neff
Hello all,

I'm considering "indexing" my org-mode files and haven't done any research
into
this.  I'm sure there's 100 different ways to do this but wanted to ask the
list if anyone
is indexing their org-mode files and using a search tool like Solr, Elastic
or smaller indexing engines to search their org-files.

Emacs integration obviously would be a plus.

Thanks for any feedback,
--Nate


Re: Anyone use 3rd party search tools w/org-mode?

2019-10-30 Thread Jean Louis
* Nathan Neff  [2019-10-30 23:08]:
> Hello all,
> 
> I'm considering indexing my org-mode files and haven't done any research
> into
> this.  I'm sure there's 100 different ways to do this but wanted to ask the
> list if anyone
> is indexing their org-mode files and using a search tool like Solr, Elastic
> or smaller indexing engines to search their org-files.
> 
> Emacs integration obviously would be a plus.

Me using `M-x grep'

You may use tracker or any desktop search.







Re: Anyone use 3rd party search tools w/org-mode?

2019-10-30 Thread John Kitchin
I wrote https://github.com/jkitchin/scimax/blob/master/org-db.el to use
sqlite for this. It does not do full text search, I found that too slow
with my files and sqlite.

you might see https://github.com/emacs-helm/helm-recoll.

I have some blog posts with similar ideas:
https://kitchingroup.cheme.cmu.edu/blog/2017/01/03/Find-stuff-in-org-mode-anywhere/

you might find interesting.

Nathan Neff  writes:

> Hello all,
>
> I'm considering "indexing" my org-mode files and haven't done any research
> into
> this.  I'm sure there's 100 different ways to do this but wanted to ask the
> list if anyone
> is indexing their org-mode files and using a search tool like Solr, Elastic
> or smaller indexing engines to search their org-files.
>
> Emacs integration obviously would be a plus.
>
> Thanks for any feedback,
> --Nate


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



change to mail-list subject line?

2019-10-30 Thread adam


Has the emacs-orgmode  mail-list ceased including a  [O]  in the subject 
line of its mails?  Or, what has changed here? 

I was using  [O]  as a filter for my incoming mails, now they are 
turning up unsorted amongst my general mail.  

OK. I can filter on  and    Sorry for the noise.  

Any better suggestions for filtering gratefully received. 



 



Re: change to mail-list subject line?

2019-10-30 Thread Daniele Nicolodi
On 30/10/2019 23:03, adam wrote:
> 
> Has the emacs-orgmode  mail-list ceased including a  [O]  in the subject 
> line of its mails?  Or, what has changed here? 

Yes, as announced on the list a couple of days ago.

> I was using  [O]  as a filter for my incoming mails, now they are 
> turning up unsorted amongst my general mail.  
> 
> OK. I can filter on  and    Sorry for the noise.  
> 
> Any better suggestions for filtering gratefully received. 

The Lisd-Id header is there mostly for this.

Cheers,
Dan