Re: [O] Export all radio tables off a document
Hi, I asked the same question sometimes ago http://www.mail-archive.com/emacs-orgmode@gnu.org/msg64189.html and Carsten posted this answer which is still working for me (defun my-org-send-all-tables () (interactive) (org-table-map-tables (lambda () (orgtbl-send-table 'maybe Cheers, Xavier Le 05/12/2013 14:31, Thorsten Grothe a écrit : Hi all, this is my first post to this list, so please be patient with me :-) I have many radio tables in my document with this structure: \begin{comment} #+TBLNAME: sec-10 #+ORGTBL: SEND sec-10 orgtbl-to-latex :skip 3 :splice t |+---+---| | Anschaffungskosten | Nutzungsdauer | AfA in €/Std. | |+---+---| | 72 | 36000 |20 | |+---+---| \end{comment} A C-c C-c exports the table to Latex like this: \begin{tabular}{lll} % BEGIN RECEIVE ORGTBL sec-10 72 36000 20\\ % END RECEIVE ORGTBL sec-10 \end{tabular} It would be very nice to automatically export *all* tables of the document to their corresponding latex tables in the same document. I found a function that does this for calculations in org-tables: M-x org-table-recalculate-buffer-tables but I found nothing similar for updating and exporting them automatically. Is this possible? Thanks in advance! Regards Th. Grothe -- | |__ GARRIDO Xavier Laboratoire de l'Accélérateur Linéaire /\ NEMO Université Paris-Sud 11 /--\garr...@lal.in2p3.fr UMR 8607 | garr...@in2p3.fr Batiment 200 |__ +33 1.64.46.84.2891898 Orsay Cedex, France
Re: [O] Makefile to export to html/pdf using emacsclient
Le 09/10/2013 16:34, Nick Dokos a écrit : Garrido Xavier garr...@lal.in2p3.fr writes: Dear orgers, Sometimes ago Eric Schulte posted a Makefile to run the exporter in a asynchronous way (see http://lists.gnu.org/archive/html/emacs-orgmode/2012-11/msg00788.html). I am wondering if it is possible to use =emacsclient= in order not to load any special init file but the current emacs settings. I have tried to setup something like that emacsclient -n --eval '(org-beamer-export-to-pdf)' talk.org but then I get stuck inside my current emacs frame waiting for an output file. Can someone helps me on this issue. Maybe the solution is trivial and I'm too noob to catch it. Shot in the dark: what happens if you use (org-beamer-export-to-pdf t)? The same, it is still waiting for an output file. Following Myles answer I get something almost working by doing emacsclient -n --eval '(progn (find-file talk.org)(org-beamer-export-to-pdf))' It switches the buffer to the talk.org in my current emacs frame but it is almost working. Xavier -- Nick -- | |__ GARRIDO Xavier Laboratoire de l'Accélérateur Linéaire /\ NEMO Université Paris-Sud 11 /--\garr...@lal.in2p3.fr UMR 8607 | garr...@in2p3.fr Batiment 200 |__ +33 1.64.46.84.2891898 Orsay Cedex, France
[O] Makefile to export to html/pdf using emacsclient
Dear orgers, Sometimes ago Eric Schulte posted a Makefile to run the exporter in a asynchronous way (see http://lists.gnu.org/archive/html/emacs-orgmode/2012-11/msg00788.html). I am wondering if it is possible to use =emacsclient= in order not to load any special init file but the current emacs settings. I have tried to setup something like that emacsclient -n --eval '(org-beamer-export-to-pdf)' talk.org but then I get stuck inside my current emacs frame waiting for an output file. Can someone helps me on this issue. Maybe the solution is trivial and I'm too noob to catch it. Thanks for your help, Xavier -- | |__ GARRIDO Xavier Laboratoire de l'Accélérateur Linéaire /\ NEMO Université Paris-Sud 11 /--\garr...@lal.in2p3.fr UMR 8607 | garr...@in2p3.fr Batiment 200 |__ +33 1.64.46.84.2891898 Orsay Cedex, France
[O] Using different image format given the export backend
Dear Orgers, As explain is this forum thread http://stackoverflow.com/questions/13611837/how-can-i-use-different-image-formats-for-different-exports-in-org-mode, I'd also like to use different image format given the export backend. I have used the answer provided in the forum to have something like that #+CAPTION: Toto figure #+NAME: fig::toto #+ATTR_LATEX: :width 0.38\textwidth #+BEGIN_SRC emacs-lisp :exports results :results value raw (case (and (boundp 'backend) backend) (nil ) (latex [[file:./toto.pdf]] (html [[file:./toto.png]])) #+END_SRC While the export is fine with html, when I export to latex-pdf, it gives me : \includegraphics[width=.9\linewidth]{./toto.pdf} not respecting the latex width attribute nor caption. I am using the new exporter and I wonder if I can get something working in the same way. Thanks a lot for your help, Xavier -- | |__ GARRIDO Xavier Laboratoire de l'Accélérateur Linéaire /\ NEMO Université Paris-Sud 11 /--\garr...@lal.in2p3.fr UMR 8607 | garr...@in2p3.fr Batiment 200 |__ +33 1.64.46.84.2891898 Orsay Cedex, France
Re: [O] Automagically send all org table
Thank you all, Xavier Le lun. 14 janv. 2013 14:58:32 CET, Jambunathan K a écrit : Jambunathan K kjambunat...@gmail.com writes: Suvayu Ali fatkasuvayu+li...@gmail.com writes: On Mon, Jan 14, 2013 at 11:25:27AM +0100, Xavier Garrido wrote: Hi orgmoders, I am looking for a simple way to SEND all org tables in a given document to their RECEIVER counterparts. Of course, I can go through the whole document and do `org-table-send` one-by-one but I would like to do it without opening the document and for all tables at the same time. Is there a way ? Thanks for your help and advices, I do not see any other way There is a way but writing some elisp code of your own. Why not have Emacs write it for you? You dictate and Emacs will type out the elisp code. It should be simple to do, I think. Not simpler than resorting to macros. Here is how. Just hints. OP should help himself. Here is what I (or rather Emacs) came up with. The Elisp snippet has control characters, so see the attachment. Put that in to your .emacs or C-x C-e it. Then, if you know that your file has no more than N (say 100) tables, do C-x C-f myfile.html C-u 100 M-x send-table RET You are done. -- Begin macro, do stuff, end macro, C-x (, do stuff, C-x ) Execute macro C-x e Or provide a local, on-the-move binding and execute it. C-x C-k b Name the macro and store it as a command in your .emacs. C-x C-k n, M-x insert-kbd-macro Run the stored macro from batch script (Hint: C-h v org-export-as-html-batch) emacs --batch --load=~/MyInitStuff.el --visit=MyFile --funcall MyNamedMacro -- For help with jumping to relevant Info portions, do C-h K C-x ( C-h K C-x C-k n (Note the CAPITAL `K' above) -- -- | |__ GARRIDO Xavier Laboratoire de l'Accélérateur Linéaire /\ NEMO Université Paris-Sud 11 /--\garr...@lal.in2p3.fr UMR 8607 | garr...@in2p3.fr Batiment 200 |__ +33 1.64.46.84.2891898 Orsay Cedex, France
Re: [O] Automagically send all org table
It works perfectly ! Thanks a lot. Le lun. 14 janv. 2013 13:56:50 CET, Carsten Dominik a écrit : On 14 jan. 2013, at 11:25, Xavier Garrido xavier.garr...@gmail.com wrote: Hi orgmoders, I am looking for a simple way to SEND all org tables in a given document to their RECEIVER counterparts. Of course, I can go through the whole document and do `org-table-send` one-by-one but I would like to do it without opening the document and for all tables at the same time. Is there a way ? Thanks for your help and advices, Xavier Hi Xavier, this should do the trick (untested): (defun my-org-send-all-tables () (interactive) (org-table-map-tables (lambda () (orgtbl-send-table 'maybe HTH - Carsten -- | |__ GARRIDO Xavier Laboratoire de l'Accélérateur Linéaire /\ NEMO Université Paris-Sud 11 /--\garr...@lal.in2p3.fr UMR 8607 | garr...@in2p3.fr Batiment 200 |__ +33 1.64.46.84.2891898 Orsay Cedex, France