Re: [O] phone links...

2013-04-17 Thread Daimrod
Feng Shu tuma...@gmail.com writes:

 Daimrod daim...@gmail.com writes:


 I agree with you, it would be much better if org-contacts managed
 links
 within properties.
 I think the two format have less difference

 org-android and org-android-NG can't show properties like outline,
 I expect to see the implement of this feature

Hmm, I don't understand what you want.
Do you need the outline format:
- to use it with another application/mode?
- to quickly show/hide contacts information?
- to support links?
- something else?

Regards,

-- 
Daimrod/Greg


pgpa_kck71TLW.pgp
Description: PGP signature


Re: [O] Best practices for literate programming [was: Latex export of tables]

2013-04-17 Thread Suvayu Ali
Hi Vikas,

On Wed, Apr 17, 2013 at 03:40:22AM +0530, Vikas Rawal wrote:
 
  At one point I realised the problem and made the decision to
  split things into two kinds of files: static content (document
  structuring, text, plots, etc), and dynamic content (babel, TikZ blocks
  that generate tables, plots, figures, etc used by the static content
  files).  It is still reproducible research, but modular and less hacky
  (hence more stable).
 
 This is indeed a very neat approach. Would you kindly elaborate?
 
 Would it be too much work for you to get some illustrations from your
 work?

Well ... it was couple of years back, the Org version was quite
different, e.g. babel was rapidly evolving.  It might be a fair bit of
work to get it working again.  That said, last year I gave a talk in an
internal workshop, I made the plots with the attached file.  I didn't
spend time to make sure everything is pretty, so the legend and titles
might be a little wonky.  Just evaluating the two main source blocks
should give you two plots in pdf files.

 In your scheme of things, how do you finally combine the static and
 the dynamic content?
 
 Any chance that you could release the source of something like a
 chapter of your thesis for people to see? Or may be create something
 with dummy content?

The idea is to keep the dynamic content on separate org files which you
export less frequently during the course of your writing, e.g. any
tables that are inputs for source blocks.  Evaluating these blocks, or
exporting these dynamic files (whichever is your preference) generates
the graphic which is then used in the static file.  This is not limited
to plots, you could write org/LaTeX tables to separate files.  You can
then easily include those in your static files.

My main motivation for this was to make the export process simpler.  And
since the complicated interacting bits are all isolated and modularised,
there are fewer things that go wrong and many files are updated only
when required, hence faster too!

Anyway, this is all probably very vague without working examples.  I'll
try to come up with something, but I have been rather busy for the last
year or so and do not see any sign of respite in the near future :-/.
I'll get this fleshed out at some point, just don't know how soon.

Hope this was helpful in some way,

:)

-- 
Suvayu

Open source is the future. It sets us free.
#+STARTUP: overview
#+PROPERTY: noweb yes
#+PROPERTY: results silent
#+BIND: org-confirm-babel-evaluate nil


* Gnuplot source preamble   :src:
  :PROPERTIES:
  :VISIBILITY: folded
  :END:

#+name: gnuplot-preamble
#+begin_src gnuplot
  reset
  set terminal pdfcairo color size 21cm,14.8cm
  set termoption enhanced
  set encoding utf8
  set termoption font DejaVuSerif,8
  # set output '|display png:-'
  set grid back
  set style line 1 linewidth 9 pointtype 1  linecolor rgb 'orange'
  set style line 2 pointsize 1 pointtype 5  linecolor rgb 'forest-green'
  set style line 3 pointsize 1 pointtype 7  linecolor rgb 'red'
  set style line 4 pointsize 1 pointtype 9  linecolor rgb 'blue'
  set style line 5 pointsize 1 pointtype 11 linecolor rgb 'dark-gray'
  set style line 6 pointsize 1 pointtype 13 linecolor rgb 'brown'
  set style line 7 linewidth 7 pointtype 19 linecolor rgb 'black'
  set style line 10 linewidth 2 linecolor rgb 'black'
  set style line 11 linewidth 5 linecolor rgb 'red'
  set key outside
  set key box linestyle 10
#+end_src


* BF Upper Limit summary plots
** Gnuplot source   :src:
#+name: limits-preamble
#+begin_src gnuplot
  set log y
  set format y 10^{%L}
  set ylabel 'BF Upper Limit'
  set xtics nomirror rotate by 90 offset character 0,-3
#+end_src

*** B⁺ → h⁻l⁺l⁺ / D⁻l⁺l⁺  :Bplus:
#+begin_src gnuplot :noweb yes :var limits=Bpluslimits
  gnuplot-preamble
  limits-preamble
  set xrange [0:8]
  set yrange [1E-14:1E-5]
  set label 'BF Upper Limits:' at graph 1.02,0.55 font ',10'
  set label ' B⁺ → h⁻l⁺l⁺' at graph 1.02,0.5
  set label ' B⁺ → D⁽*⁾⁻l⁺l⁺' at graph 1.02,0.45
  set label 'LHCb limits \@ 95% C.L.' at graph 1.02,0.37 font ',7'
  set label 'Other limits \@ 90% C.L.' at graph 1.02,0.33 font ',7'
  set xtics (K⁻e⁺e⁺ 1, K⁻μ⁺μ⁺ 2, π⁻e⁺e⁺ 3, π⁻μ⁺μ⁺ 4, D⁻e⁺e⁺ 5, 
D⁻μ⁺μ⁺ 6, D*⁻μ⁺μ⁺ 7)
  set output Bpluslimits.pdf
  plot $limits using 1:2 title 'Theory' linestyle 1, \
   $limits using 1:3 title 'BaBar' linestyle 2, \
   $limits using 1:4 title 'Belle' linestyle 3, \
   $limits using 1:5 title 'LHCb' linestyle 4, \
   $limits using 1:6 title 'LHCb year-end' linestyle 5, \
   $limits using 1:7 title 'LHCb upgrade' linestyle 6
   # 1E-10 with lines linestyle 10 title ''
   # 3.1E-9 with lines linestyle 11
  set output
#+end_src

*** D⁺ → h⁻l⁺l⁺ / Dₛ⁺ → h⁻l⁺l⁺:Dplus:
#+begin_src gnuplot :noweb yes :var limits=Dpluslimits
  

Re: [O] MobileOrg for iOS approved and soon to be available in the app store

2013-04-17 Thread Guido Van Hoecke
Hi Sean,

Sean Escriva sean.escr...@gmail.com writes:

 For those interested in MobileOrg on iOS devices, it has been approved
 and will be back in the store soon, it can take up to 24 hours to
 become available.

Picked up and installed. Tunning fine (using Webdav)

Thanks,


Guido

--
Ten years of rejection slips is nature's
way of telling you to stop writing.
-- R. Geis



Re: [O] Bug: Error with standard exporter on Windows

2013-04-17 Thread Martin
Bastien bzg at altern.org writes:

 
 Hi Otto,
 
 Otto Pichlhoefer doc at nordrandklinik.at writes:
 
  With a minimal setup I get the following bug-report (backtrace is
  attached)
 
 This bug has been fixed in the maint branch, so I suggest
 upgrading (from ELPA, since you're using ELPA.)
 
 Thanks,
 

Hi Bastien,

I'm having the same problem, but I am using 

When trying to export the subtree to HTML or OpenDocument, I get the error
message:
OpenDocument export failed: Invalid function: org-if-unprotected-at
(or for HTML org-if-unprotected-1)

I'm already using org-mode 7.9.4.

What can I do?

Kind regards

Martin





Re: [O] agenda: personal priority for today

2013-04-17 Thread Daniel Clemente

 
 ** TODO This task second
:PROPERTIES:
:Sorting:  5029662198291
:END:
 

  As others said, this should be view-based, because the order in one agenda 
can be different to the order in other agenda.
  Each agenda view has some identifier (e.g. the letter you use to open it: 
a, a, t, …). You could use this to store different orders (one for each 
possible agenda view):

 ** TODO This task second
:PROPERTIES:
:Sorting:  a10_t80_c1_mm10
:END:

  Or a simpler solution:
  To me it would still be useful to be able to move things around in the agenda 
view, with M-up, M-down, even if the order is lost when I kill the agenda! That 
can help me decide a good task order which I can memorise or write down 
somewhere.




Re: [O] Bug: Error with standard exporter on Windows

2013-04-17 Thread Martin
Martin elwood151 at web.de writes:


 I'm having the same problem, but I am using 
 
 When trying to export the subtree to HTML or OpenDocument, I get the error
 message:
 OpenDocument export failed: Invalid function: org-if-unprotected-at
 (or for HTML org-if-unprotected-1)
 
 I'm already using org-mode 7.9.4.

I'm sorry - I finally found an old post of Carsten Dominik and the following
helped:
closing emacs
executing make clean in the org-mode directory (with CYGWIN)
opening emacs again.
:-)

Regards

Martin




Re: [O] MobileOrg for iOS approved and soon to be available in the app store

2013-04-17 Thread Carsten Dominik

On 17.4.2013, at 01:59, Sean Escriva sean.escr...@gmail.com wrote:

 For those interested in MobileOrg on iOS devices, it has been approved
 and will be back in the store soon, it can take up to 24 hours to
 become available.
 
 See this github issue for further info:
 https://github.com/MobileOrg/mobileorg/issues/24
 
 Enjoy!
 -sean

Dear Sean and the rest of the team,

thanks for picking up MobileOrg and keeping it alive!

- Carsten



Re: [O] Best practices for literate programming [was: Latex export of tables]

2013-04-17 Thread Rainer M. Krug
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 Hi Vikas,

 On Wed, Apr 17, 2013 at 03:40:22AM +0530, Vikas Rawal wrote:
 
  At one point I realised the problem and made the decision to
  split things into two kinds of files: static content (document
  structuring, text, plots, etc), and dynamic content (babel, TikZ blocks
  that generate tables, plots, figures, etc used by the static content
  files).  It is still reproducible research, but modular and less hacky
  (hence more stable).
 
 This is indeed a very neat approach. Would you kindly elaborate?
 
 Would it be too much work for you to get some illustrations from your
 work?

 Well ... it was couple of years back, the Org version was quite
 different, e.g. babel was rapidly evolving.  It might be a fair bit of
 work to get it working again.  That said, last year I gave a talk in an
 internal workshop, I made the plots with the attached file.  I didn't
 spend time to make sure everything is pretty, so the legend and titles
 might be a little wonky.  Just evaluating the two main source blocks
 should give you two plots in pdf files.

 In your scheme of things, how do you finally combine the static and
 the dynamic content?
 
 Any chance that you could release the source of something like a
 chapter of your thesis for people to see? Or may be create something
 with dummy content?

 The idea is to keep the dynamic content on separate org files which you
 export less frequently during the course of your writing, e.g. any
 tables that are inputs for source blocks.  Evaluating these blocks, or
 exporting these dynamic files (whichever is your preference) generates
 the graphic which is then used in the static file.  This is not limited
 to plots, you could write org/LaTeX tables to separate files.  You can
 then easily include those in your static files.

 My main motivation for this was to make the export process simpler.  And
 since the complicated interacting bits are all isolated and modularised,
 there are fewer things that go wrong and many files are updated only
 when required, hence faster too!

 Anyway, this is all probably very vague without working examples.  I'll
 try to come up with something, but I have been rather busy for the last
 year or so and do not see any sign of respite in the near future :-/.
 I'll get this fleshed out at some point, just don't know how soon.

 Hope this was helpful in some way,

 :)
#secure method=pgpmime mode=sign
I did not follow the initial thread, but the new header caught my
attentian, as I am doing something similar with papers. Nothing against
org for writing papers, but I prefer LyX [1]. But for doing the analysis,
org together, nothing beats org. So in my org file I have the
analysis which creates graphs on export (and a basic report of the
analysis, including all the source code necessary, which I can then use
as an appendix for the paper).

These graphs are then inserted in the lyx file. I assume, you used
something similar, only that the oputput can then be used in the org
file (thesis) - correct?

Cheers,

Rainer

Footnotes: 
[1]  http://www.lyx.org - very nice LaTeX frontend.

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



Re: [O] Best practices for literate programming [was: Latex export of tables]

2013-04-17 Thread Suvayu Ali
Hi Rainer,

On Wed, Apr 17, 2013 at 11:55:50AM +0200, Rainer M. Krug wrote:
 
 I did not follow the initial thread, but the new header caught my
 attentian, as I am doing something similar with papers. Nothing against
 org for writing papers, but I prefer LyX [1]. But for doing the analysis,
 org together, nothing beats org. So in my org file I have the
 analysis which creates graphs on export (and a basic report of the
 analysis, including all the source code necessary, which I can then use
 as an appendix for the paper).
 
 These graphs are then inserted in the lyx file. I assume, you used
 something similar, only that the oputput can then be used in the org
 file (thesis) - correct?

Yes something like that; usually for me analysis code is so complicated
that doing it inside Org would be madness :-p, I have dedicated software
projects for that.  I only use Org for simple spreadsheet operations in
tables and eventually plotting them.  These then get included in the
final thesis file.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Latex export of tables

2013-04-17 Thread Myles English

Hi Suvayu,

Suvayu Ali writes:

 Actually, I am working on a workflow for large writing projects, my PhD
 thesis in this case :-p.  What I have in mind is have a Makefile based
 build system that uses `emacs --batch' to export to LaTeX and html.  The
 images are generated separately using babel blocks or standalone TeX
 files with TikZ code.  I intend to make pdf images for LaTeX and convert
 them to png/svg with imagemagick/inkscape.  Of course all of this is
 still a pipe dream; if I get it working, I'll definitely write a Worg
 page on it.  Of course it will be great if people with interesting ideas
 pitch in :).  I expect to have an early working environment in a couple
 of months.

I am looking forward to seeing what you come up with.  (I have mentioned
this before, however) I have been using a CMake system for LaTeX export:

http://cmake.org/Wiki/images/8/80/UseLATEX.cmake

This allows (amongst other things) generating graphics from stand alone
R scripts that get their own data from a database.  I believe the new
version has some kind of support for SVG.  I used this system for
several papers and my thesis and it has three main advantages:

1) out-of-source builds, so my working dir doesn't get cluttered with
LaTeX files

2) asynchronous export of org to LaTeX (although this is now available
with the new exporter)

3) the graphics are regenerated every time so I know it all still
works

I tangle a CMakeList.txt from every org file that I want to export, then
run cmake ~/path; make from the commandline.

(Version control as part of this workflow is possibly another topic: I
have been using git subtrees to make project-local copies of files such
as mystyle.sty and mybiblatex.bib and then update the main git repo with
the changes, and pull the changes down to another project.)

I'll just paste the whole CMakeList.txt so you can see what it looks
like, but the most interesting part is the emacs --batch command:

#+BEGIN_SRC sh :tangle CMakeLists.txt
  cmake_minimum_required(VERSION 2.8)

  project(relk NONE)

  include(/usr/share/cmake-2.8/Modules/UseLATEX.cmake)

  # export the .tex file from the .org file
  # using the emacs orgmode exporter
  latex_get_output_path(OUTPUT_DIR)

  file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/relkpaper.org DESTINATION 
${OUTPUT_DIR}/ )
  file(COPY /home/myles/lib/lisp/my-export.el DESTINATION ${OUTPUT_DIR}/ )
  
  add_custom_target( orgfile ALL
  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/relkpaper.org )
  
  add_custom_target( elfile ALL
  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/my-export.el )
  
  add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/relkpaper.tex
  COMMAND emacs --batch --eval \(progn
  (add-to-list 'load-path
  (expand-file-name \\~/.emacs.d/plugins/org-mode/lisp/\\))
(add-to-list 'load-path
  (expand-file-name \\~/.emacs.d/plugins/org-mode/contrib/lisp/\\ 
t))
  (require 'org)
(require 'ox)
  (require 'org-exp)
(require 'org-inlinetask)
  (org-babel-do-load-languages
  'org-babel-load-languages
  '((emacs-lisp . t)
  (sh . t)))
  (setq org-confirm-babel-evaluate nil)
  (setq org-export-with-todo-keywords nil)
  (setq org-export-babel-evaluate nil)
  (load-file \\my-export.el\\)
  (add-to-list 'org-export-before-parsing-hook 
'my-export-delete-headlines-tagged-noheading)
  (add-to-list 'org-export-filter-link-functions
  'my-autoref-filter-link-func)
  (find-file \\${CMAKE_CURRENT_BINARY_DIR}/relkpaper.org\\)
  (org-latex-export-to-latex))\
  DEPENDS orgfile elfile
  COMMENT Exporting orgmode file to LaTeX using emacs)
  
  add_custom_target( mainfile ALL
  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/relkpaper.tex )

  # Set R executable
  set(R_COMPILE /usr/bin/Rscript)
  # Set the location of data files
  ##set(DATA_DIR data)
  # Set the location of the directory for image files
  set(IMAGE_DIR graphicsauto)

  # Get a list of R files
  file(GLOB_RECURSE R_FILES *.R)

  # Copy over all R scripts
  # add_custom_command(
  #   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/R
  #   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/R
  #   COMMAND ${CMAKE_COMMAND} -E copy_directory
  # ${CMAKE_CURRENT_SOURCE_DIR}/R
  # ${CMAKE_CURRENT_BINARY_DIR}/R
  # )
  file( COPY ${CMAKE_CURRENT_SOURCE_DIR}/R
  DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
  file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${IMAGE_DIR})

  foreach(file ${R_FILES})
  message(processing ${file})
  get_filename_component(basename ${file} NAME_WE)
  #file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/R/${file} DESTINATION 
${CMAKE_CURRENT_BINARY_DIR}/R/${file})
  # # Replace strings in R files so data files can be found
  # file(READ
  # ${CMAKE_CURRENT_SOURCE_DIR}/${IMAGE_DIR}/${basename}.R
  # file_contents
  # )
  # string(REPLACE ${DATA_DIR} 

Re: [O] phone links...

2013-04-17 Thread Michael Strey
Hi Greg,

Thank you for looking into my debut feature!

On Wed, Apr 17, 2013 at 12:22:14AM +0200, Daimrod wrote:
 Michael Strey mst...@strey.biz writes:

[...]

  It allows entries like in the following example without effecting
  org-contacts current functions.
 
  #+BEGIN_SRC org
  * Surname, Name
  :PROPERTIES:
  :EMAIL:mailto:te...@test.de; [[mailto:n...@test.de]] f...@bar.biz
  :PHONE:[[tel:+49 351 4129535]], +491766626196 [[+49 (351) 41295-35]]
^
should be
:PHONE:[[tel:+49 351 4129535]], +491766626196 [[tel:+49 (351) 41295-35]]
  :END:
  #+END_SRC

[...]

 Thank you for your patch, though here are a few suggestions:
 - It looks like `chomp' does the same thing the `org-trim' (in `org.el')
   if so you should use it.

Done.  Thanks for the hint.

 - You should use `org-link-display-format' instead of
   `org-contacts-strip-link'.

I don't think so.  `org-link-display-format' returns the description of
the link if there is one.  My `org-contacts-strip-link' always returns
the target.  Using `org-link-display-format' would lead to wrong results
with links like
 [[mailto:f...@bar.com][foo (at) bar (dot) com]]
 [[tel:+49 351 4129535][+49 (0)351 4129535]]

 - You have done some unrelated changes (fix some typos, ...), could you
   provide a separated patches for them?

Oh =:-|, another struggle with Git.  I'm still learning and will do my best.

 Regarding `org-contacts-split-property', I haven't found anything about
 multiple values within a node property in `org-element' and the syntax
 description doesn't mention it, so you were right to roll your own. :)

That wasn't me.  This (disputable) feature was already there for the
:EMAIL: proprerty.  Actually, I don't like multiple values within a node
property and would prefer a VCard-like syntax like

#+BEGIN_SRC org
*** Strey, Michael
:PROPERTIES:
:KIND: individual
:ORG:  STREY Consult
:FN:   Michael Strey
:N:Strey;Michael;;
:ADR;TYPE=home:;;my street;my city;federal state;post code;my country
:EMAIL:   mailto:st...@myprovider.de
:EMAIL;PREF=1:mailto:m...@mycompany.biz
:TEL;TYPE=fax,work:[[tel:0321 21104568]]
:TEL;TYPE=fax,home:[[tel:0351 4129535]]
:TEL;TYPE=voice,home:[[tel:0351 4129535]]
:LANG: de
:ICON: ~/GTD/Icons/icon-strey_michael.jpg
:END:
#+END_SRC

 However, I think it would be better to store the separators in a
 variable (like `org-contacts-property-values-separator') and maybe even
 to use it by default instead of `split-string-default-separators'
 because we use it more and because it's easy to forget.

That was already hard-coded before in Feng's
`org-contacts-vcard-format'.  But yes, you are right.  Since it is
limited by some constraints we should make it an extra variable.

 
  +(loop for email in (org-contacts-split-property email-list)

 
  +  for gravatar = (gravatar-retrieve-synchronously 
  (org-contacts-strip-link email))

This should be correctly and worked for me during my tests.
Confusingly `email-list' is not a list but a string here.

Regards
-- 
Michael Strey
http://www.strey.biz



[O] Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)]

2013-04-17 Thread Shihpin Tseng
 To reproduce it

1. M-x org-capture
2. select todo template
3. `C-c C-q' 


Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  mouse-avoidance-point-position()
  mouse-avoidance-too-close-p((#frame GNU Emacs 24.3.50.1@.local: 
CAPTURE-2-GTD.org 0x10a84d448 89 . 18))
  mouse-avoidance-fancy()
  apply(mouse-avoidance-fancy nil)
  byte-code(r\301\302H\303H\\210)\301\207 [timer apply 5 6] 4)
  timer-event-handler([t 0 0 10 t mouse-avoidance-fancy nil idle 0])
  read-char-exclusive()
  byte-code( [groups expert exit-after-next inhibit-quit c 
org-last-tag-selection-key message [a-z..]:Toggle [SPC]:clear [RET]:accept 
[TAB]:free [!] %sgroups%s no[C-c]:window  [C-c]:single  
[C-c]:multi t read-char-exclusive 13 throw exit 33 re-search-forward [{}] 
nil replace-match   3 org-fast-tag-show-exit delete-other-windows 
set-window-buffer split-window-vertically  *Org tags* 
org-switch-to-buffer-other-window org-fit-window-to-buffer 7 113 rassoc 
org-detach-overlay 32 now 9 (byte-code \303\304\206
r  q\210\305 )\\303\207 [buffer-tags buf tg org-icompleting-read Tag: 
 org-get-buffer-tags] 3) ((quit (byte-code \301\302\207 [tg  nil] 1))) 
string-match \\S- add-to-list buffer-tags delete org-todo mapc #[(x) \302   
\\211\207 [x current delete] 3] sort ...] 8)
  org-fast-tag-selection(nil nil ((DAILY . 100) (HACKING . 104) (PROJECT 
. 112) (READING . 114) (HASKELL . 72) (CLASS . 67)) nil)
  org-set-tags(nil nil)
  org-set-tags-command(nil)
  call-interactively(org-set-tags-command nil nil)
  command-execute(org-set-tags-command)
  
Emacs  : GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS 
apple-appkit-1187.37)
 of 2013-04-17 on .local
Package: Org-mode version 8.0-pre (release_8.0-pre-487-gd68744 @ 
~/.emacs.d/el-get/org-mode/lisp/)




Re: [O] [Bug] Removing scheduled/deadline shows Entry repeats:... which is not true

2013-04-17 Thread Karl Voit
* Bastien b...@gnu.org wrote:
 Hi Karl,

Hi!

 Karl Voit devn...@karl-voit.at writes:

 I just checked out the most current Org from git (1af215bb4668bf)
 and found out that with removing SCHEDULED or DEADLINE using C-u C-c
 C-(s|d) I get:

 Entry repeats: DEADLINE: 2013-04-15 Mon +1w -0d

 I can't reproduce this.  Can you share a minimal example/recipe?

Sorry for the late reply. This is because I do have troubles to come
up with a minimal example. Starting Emacs with debug-init does not
show this issue. I guess I have to strip down my config until this
behavior changes (or add el-configs step by step). I'll report.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] Colour themes suggestions?

2013-04-17 Thread François Allisson

Suvayu Ali fatkasuvayu+li...@gmail.com a écrit:
 Completely opposite of what you asked, you could checkout dark-emacs[1].
 It is a very dark theme, designed to emulate emacs -nw in a black
 background terminal.  It has some org related customisations in
 (custom-theme-set-variables ...) and some of the org faces are built up
 on other basic faces; all in all it might give you some ideas to write
 your own theme.

 [1] 
 https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el

I really like your dark-emacs. Just adopted it.
Perfect for org-mode (and for mu4e, by the way).
Thanks Suvayu Ali!

François



Re: [O] Colour themes suggestions?

2013-04-17 Thread Fabrice Popineau
This one is cool too :
(color-theme-sanityinc-tomorrow-night)

Fabrice


2013/4/17 François Allisson franc...@allisson.co

 Suvayu Ali fatkasuvayu+li...@gmail.com a écrit:
  Completely opposite of what you asked, you could checkout dark-emacs[1].
  It is a very dark theme, designed to emulate emacs -nw in a black
  background terminal.  It has some org related customisations in
  (custom-theme-set-variables ...) and some of the org faces are built up
  on other basic faces; all in all it might give you some ideas to write
  your own theme.
 
  [1] 
 https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el

 I really like your dark-emacs. Just adopted it.
 Perfect for org-mode (and for mu4e, by the way).
 Thanks Suvayu Ali!

 François




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


Re: [O] Colour themes suggestions?

2013-04-17 Thread Suvayu Ali
On Wed, Apr 17, 2013 at 04:03:15PM +0200, Fabrice Popineau wrote:
 This one is cool too :
 (color-theme-sanityinc-tomorrow-night)

From the name I would guess it uses the color theme package?  If that is
the case, then it will not work with Emacs 24.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Colour themes suggestions?

2013-04-17 Thread Suvayu Ali
On Wed, Apr 17, 2013 at 03:52:59PM +0200, François Allisson wrote:
 
 Suvayu Ali fatkasuvayu+li...@gmail.com a écrit:
  Completely opposite of what you asked, you could checkout dark-emacs[1].
  It is a very dark theme, designed to emulate emacs -nw in a black
  background terminal.  It has some org related customisations in
  (custom-theme-set-variables ...) and some of the org faces are built up
  on other basic faces; all in all it might give you some ideas to write
  your own theme.
 
  [1] 
  https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el
 
 I really like your dark-emacs. Just adopted it.
 Perfect for org-mode (and for mu4e, by the way).
 Thanks Suvayu Ali!

Glad that you like it.  :)

My eventual goal with this is to make it fairly complete in terms of
supported terminals, and request for inclusion with Emacs.  At the
moment it supports gui/X-window, 8 bit, and 256 bit colour terminals.

 
 François

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Colour themes suggestions?

2013-04-17 Thread Fabrice Popineau
2013/4/17 Suvayu Ali fatkasuvayu+li...@gmail.com

 On Wed, Apr 17, 2013 at 04:03:15PM +0200, Fabrice Popineau wrote:
  This one is cool too :
  (color-theme-sanityinc-tomorrow-night)

 From the name I would guess it uses the color theme package?  If that is
 the case, then it will not work with Emacs 24.


The name stayed this way, but it has been updated for newer Emacs.

https://github.com/purcell/color-theme-sanityinc-tomorrow

-- 
Fabrice


Re: [O] Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)]

2013-04-17 Thread Suvayu Ali
On Wed, Apr 17, 2013 at 07:51:18PM +0800, Shihpin Tseng wrote:
  To reproduce it
 
 1. M-x org-capture
 2. select todo template
 3. `C-c C-q' 
 
 
 Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
   mouse-avoidance-point-position()
   mouse-avoidance-too-close-p((#frame GNU Emacs 24.3.50.1@.local: 
 CAPTURE-2-GTD.org 0x10a84d448 89 . 18))
   mouse-avoidance-fancy()
   apply(mouse-avoidance-fancy nil)
   byte-code(r\301\302H\303H\\210)\301\207 [timer apply 5 6] 4)
   timer-event-handler([t 0 0 10 t mouse-avoidance-fancy nil idle 0])
   read-char-exclusive()
   byte-code( [groups expert exit-after-next inhibit-quit c 
 org-last-tag-selection-key message [a-z..]:Toggle [SPC]:clear [RET]:accept 
 [TAB]:free [!] %sgroups%s no[C-c]:window  [C-c]:single  
 [C-c]:multi t read-char-exclusive 13 throw exit 33 re-search-forward [{}] 
 nil replace-match   3 org-fast-tag-show-exit delete-other-windows 
 set-window-buffer split-window-vertically  *Org tags* 
 org-switch-to-buffer-other-window org-fit-window-to-buffer 7 113 rassoc 
 org-detach-overlay 32 now 9 (byte-code \303\304\206
 
   org-set-tags(nil nil)
   org-set-tags-command(nil)
   call-interactively(org-set-tags-command nil nil)
   command-execute(org-set-tags-command)
   
 Emacs  : GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS 
 apple-appkit-1187.37)
  of 2013-04-17 on .local
 Package: Org-mode version 8.0-pre (release_8.0-pre-487-gd68744 @ 
 ~/.emacs.d/el-get/org-mode/lisp/)

I believe this is a problem with mouse avoidance mode.  I have been
seeing similar tracebacks for multiple other cases, outside of Org,
where it involves creating a new frame or visiting a new file in a new
frame.  Sadly I see it when I'm using emacsclient, and it disappears
when I try to replicate it with emacs -Q.

If you can reproduce this, I would urge you to file a bug against mouse
avoidance mode on the Emacs bug tracker.

GL

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Colour themes suggestions?

2013-04-17 Thread Suvayu Ali
On Wed, Apr 17, 2013 at 04:31:33PM +0200, Fabrice Popineau wrote:
 2013/4/17 Suvayu Ali fatkasuvayu+li...@gmail.com
 
  On Wed, Apr 17, 2013 at 04:03:15PM +0200, Fabrice Popineau wrote:
   This one is cool too :
   (color-theme-sanityinc-tomorrow-night)
 
  From the name I would guess it uses the color theme package?  If that is
  the case, then it will not work with Emacs 24.
 
 
 The name stayed this way, but it has been updated for newer Emacs.
 
 https://github.com/purcell/color-theme-sanityinc-tomorrow

Okay, thanks.  :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Suvayu Ali
On Tue, Apr 16, 2013 at 11:01:00PM +0100, Angel de Vicente wrote:
 Hi,
 
 John Hendy jw.he...@gmail.com writes:
  Sorry if that's not what you're looking for! The recipe page you
  posted will show you how to do some various columns and layouts, but
  again, this is just doing in Org what you can do manually in Beamer.
  The appearance is all going to come from the theme.
 
 thanks a lot, but more than the appearance itself I was looking for
 examples of how to do things, for example, how to make items in a
 frame appear one by one, while the other ones are greyed out, how to
 remove the transition buttons, how to customize the short title,
 etc. that appears in the infoline in some themes, etc.

Did you look at the beamer user guide[1]?  I realise it is formidable,
but it is also complete.

Hope this helps,


Footnotes:

[1] 
http://www.TeX.ac.uk/TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Carsten Dominik

On 17.4.2013, at 16:42, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 On Tue, Apr 16, 2013 at 11:01:00PM +0100, Angel de Vicente wrote:
 Hi,
 
 John Hendy jw.he...@gmail.com writes:
 Sorry if that's not what you're looking for! The recipe page you
 posted will show you how to do some various columns and layouts, but
 again, this is just doing in Org what you can do manually in Beamer.
 The appearance is all going to come from the theme.
 
 thanks a lot, but more than the appearance itself I was looking for
 examples of how to do things, for example, how to make items in a
 frame appear one by one, while the other ones are greyed out, how to
 remove the transition buttons, how to customize the short title,
 etc. that appears in the infoline in some themes, etc.
 
 Did you look at the beamer user guide[1]?  I realise it is formidable,
 but it is also complete.

and it is a very pleasant read, highly recommended.

- Carsten

 
 Hope this helps,
 
 
 Footnotes:
 
 [1] 
 http://www.TeX.ac.uk/TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf
 
 -- 
 Suvayu
 
 Open source is the future. It sets us free.
 




Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Eric Schulte

Here's an Org-mode Beamer example including the required Emacs/Org-mode
customization, the Org file and the resulting pdf.

http://cs.unm.edu/~eschulte/data/org-beamer-example/

Hope it is helpful,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Thorsten Jolitz
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 Footnotes:

 [1] 
 http://www.TeX.ac.uk/TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf

url out-of-date?

,-
| Not Found
| 
| The requested URL
| /TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf was not
| found on this server. Apache/2.2.3 (CentOS) Server at www.tex.ac.uk Port
| 80
`-


-- 
cheers,
Thorsten




Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread John Hendy
On Tue, Apr 16, 2013 at 5:01 PM, Angel de Vicente ang...@iac.es wrote:
 Hi,

 John Hendy jw.he...@gmail.com writes:
 Sorry if that's not what you're looking for! The recipe page you
 posted will show you how to do some various columns and layouts, but
 again, this is just doing in Org what you can do manually in Beamer.
 The appearance is all going to come from the theme.

 thanks a lot, but more than the appearance itself I was looking for
 examples of how to do things, for example, how to make items in a
 frame appear one by one, while the other ones are greyed out, how to
 remove the transition buttons, how to customize the short title,
 etc. that appears in the infoline in some themes, etc.


Gotcha. Some of that is in Beamer, but you're correct that some of
this involves figuring out the Org-mode analog to the Beamer syntax.
Transitions, for example, go in the frame property drawer, and the
possible properties/values are listed in the manual.

Transition buttons are typically at the theme level, and that's
documented countless places online.

I've had a lot of trouble getting infolines to do what I want. I just
gave up on using themes that have them because I find the mini TOC
distracting and of little value to the presentation. Honestly, I
wonder if the audience is looking at those dots trying to gauge how
much presentation is left to go.

 Googling, I managed to do most of this stuff (though I didn't figure out
 yet how to grey out images), but I thought it would be nice to have a
 real (or a mock one) presentation available somewhere, which uses a lot
 of the usual stuff that we do for presentations, together with the
 source code, so that customizing my own presentation could be probably
 easier.

Looking around, there aren't *that* many options to do this in
straight Beamer. TikZ came up as one way, and others seemed to simply
use a second image (create two duplicate frames, one with the grayed
version and the second with the real image). Neither would be
particularly difficult via Org.


John


 Ista Zahn's sample presentation was more or less what I was looking for,
 though obviously it didn't address all the issues I wanted to solve.

 Thanks,
 --
 Ángel de Vicente
 http://www.iac.es/galeria/angelv/
 -
 ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de 
 Datos, acceda a http://www.iac.es/disclaimer.php
 WARNING: For more information on privacy and fulfilment of the Law concerning 
 the Protection of Data, consult http://www.iac.es/disclaimer.php?lang=en




Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread John Hendy
On Wed, Apr 17, 2013 at 10:44 AM, Thorsten Jolitz tjol...@gmail.com wrote:
 Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 Footnotes:

 [1] 
 http://www.TeX.ac.uk/TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf

 url out-of-date?

 ,-
 | Not Found
 |
 | The requested URL
 | /TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf was not
 | found on this server. Apache/2.2.3 (CentOS) Server at www.tex.ac.uk Port
 | 80
 `-

Works for me (I think it's identical except for the capitalization
(just googled latex beamer manual):
- 
http://www.tex.ac.uk/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf


John



 --
 cheers,
 Thorsten





Re: [O] Effort Per Day

2013-04-17 Thread Bernt Hansen
daya atapat...@gmail.com writes:

 There are some tasks on which I would like spend a specified time of the day. 
  I
 would like to set a per-day effort on these tasks.  The current effort system
 seem to support effort per task, not effort per day.  What is the recommended
 way of doing this?

 - daya

Hi daya,

For this I use a habit that tracks this work

* TODO Some project
** TODO Work on Some project at least 3 hours per day
   SCHEDULED: 2013-04-17 Wed .+1d/3d
   :PROPERTIES:
   :STYLE: habit
   :LAST_REPEAT: [2013-04-16 Tue 17:00]
   :END:
** TODO Tasks one...

Near the end of the day I just do an agenda clock report (C-c a a R) and
see if Some project has the required amount of time on it or not.
If it does I mark the habit task complete.

For individual (non-project) tasks the habit is enough and I give it an
effort so the modeline shows time clocked so far today and the limit

* TODO Some task I need to do for an hour everyday
  SCHEDULED: 2013-04-17 Wed .+1d/3d
  :PROPERTIES:
  :LAST_REPEAT: [2013-04-16 Tue 13:27]
  :Effort:   1:00
  :CLOCK_MODELINE_TOTAL: today
  :END:

Regards,
Bernt




Re: [O] Different fonts in inline equation in latex pdf export

2013-04-17 Thread Nicolas Goaziou
Hello,

Sanjib Sikder sanjibju2...@gmail.com writes:

 While pdf exporting an inline equation from org-mode, I am getting two
 different fonts in the equation. I have attached an example .org file
 with the equation and the generated output files (.pdf and .tex). In
 the .tex file I can see \mathrm which is causing the problem it seems.
 How to fix the issue ?

 #+Author: 
 #+Date:
 A_{x}B_{1-x}

This should be fixed in 8.0.


Regards,

-- 
Nicolas Goaziou



Re: [O] [BUG] Problems with perl babel output

2013-04-17 Thread Achim Gratz
Rick Frankel writes:
 Overall, Achim's updates to perl babel processing have been
 fantastic. But there seems to be a problem with :result output --
 there is no way to get a table.

Yes, that was not yet handled at all.

 Also, if the results are :value, the stdout is mixed in with the
 returned results.

Both issues should be fixed in master.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Angel de Vicente
Hi,

thanks everybody for the tips and suggestions. In the end, I mostly
googled around, took what I liked from here and there, and ended up with
something good enough for the time being (later on I will tweak it
again, mainly for the greying-out of images, which I didn't do it right
now, but should be easy replicating frames).

In case it can be useful to someone else, I put the example here:
http://angel-de-vicente.blogspot.com.es/2013/04/presentations-with-org-mode-beamer.html

(in Linux to view the embedded video you need Acroread 9.4.1 or later
(or so I think). In Windows or Mac, I have no idea if the embedded video
will work.

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] mixing subscripts with superscripts

2013-04-17 Thread Daniel Mahler
Mixing subscripts with superscripts, like \Gamma^{a}_{bc},
exports correctly to pdf, but the subscripts are not interpreted in the
buffer for me.
Is there a way around that? I am using org 7.9.2 and emacs 24.1.1.

thanks
Daniel


[O] Fwd: mixing subscripts with superscripts

2013-04-17 Thread Daniel Mahler
Yes that is what I mean. Subscripts and superscripts both render correctly
in the Org buffer when used separately, but not together.
I would like to type up some tensor notes in Org so being able to mix them
would be very desireable :)
I tried various tricks with inserting {}s and $s but it did not help.

Daniel


On Wed, Apr 17, 2013 at 4:49 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Apr 17, 2013 at 4:43 PM, Daniel Mahler dmah...@gmail.com wrote:
  Mixing subscripts with superscripts, like \Gamma^{a}_{bc},
  exports correctly to pdf, but the subscripts are not interpreted in the
  buffer for me.
  Is there a way around that? I am using org 7.9.2 and emacs 24.1.1.

 Can you elaborate on that? Do you mean for them to show as subscripts
 (below the baseline) in the Org buffer? If so, that doesn't happen for
 me either.

 John

 
  thanks
  Daniel



Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Suvayu Ali
Hi Angel,

On Wed, Apr 17, 2013 at 10:07:39PM +0100, Angel de Vicente wrote:
 Hi,
 
 thanks everybody for the tips and suggestions. In the end, I mostly
 googled around, took what I liked from here and there, and ended up with
 something good enough for the time being (later on I will tweak it
 again, mainly for the greying-out of images, which I didn't do it right
 now, but should be easy replicating frames).

Did you look at the Org beamer tutorial on Worg[1]?  It is still a work in
progress, so feel free to add stuff or suggest something you feel would
be useful.

Cheers,


Footnotes:

[1] http://orgmode.org/worg/exporters/beamer/ox-beamer.html


-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Suvayu Ali
On Wed, Apr 17, 2013 at 10:47:04AM -0500, John Hendy wrote:
 On Wed, Apr 17, 2013 at 10:44 AM, Thorsten Jolitz tjol...@gmail.com wrote:
  Suvayu Ali fatkasuvayu+li...@gmail.com writes:
 
  Footnotes:
 
  [1] 
  http://www.TeX.ac.uk/TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf
 
  url out-of-date?
 
  ,-
  | Not Found
  |
  | The requested URL
  | /TeX-archive/macros/LaTeX/contrib/beamer/doc/beameruserguide.pdf was not
  | found on this server. Apache/2.2.3 (CentOS) Server at www.tex.ac.uk Port
  | 80
  `-
 
 Works for me (I think it's identical except for the capitalization
 (just googled latex beamer manual):
 - 
 http://www.tex.ac.uk/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf

Sorry, my abbrev expanded changed the capitalisation when I pasted.
Should have checked.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread shripad sinari
Hello all,
A quick update. Only the named block solution from Jay Kerns currently
works. I have tried out variants of other proposed solutions here but none
worked.
Thanks for your help and sorry for the delay in getting back on this one.
Shripad.

Shripad
Tucson, AZ

Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 5:55 PM, Eric Abrahamsen e...@ericabrahamsen.netwrote:

 You only sent this to me! :)

 On 04/18/13 01:24 AM, shripad sinari wrote:
  Hello all,
  A quick update. Only the named block solution from Jay Kerns currently
  works. I have tried out variants of other proposed solutions here but
  none worked.
  Thanks for your help and sorry for the delay in getting back on this
  one.
  Shripad.
 
  Shripad
  Tucson, AZ
 
  On Wed, Mar 20, 2013 at 6:49 PM, Eric Abrahamsen
  e...@ericabrahamsen.net wrote:
 
  Hi Shripad,
 
  My solution still requires named code blocks! That's the only way
  you
  can make sure the results are put where you want them: between
  certain
  Latex fragments.
 
  I'm not quite understanding what's going wrong with what you
  pasted
  below -- do you mean that all the file names are prepended with
  :? In
  that case, try using raw instead of verbatim as a value for
  the
  :results key.
 
  Good luck!
 
  E
 
 
 
  On 03/20/13 05:25 AM, shripad sinari wrote:
   Hello Eric,
   I am experimenting with your solution and I like it better than
  named
   code blocks because it does not interfere with HTML or MD
  export.
   However it is not working. Is there something like this that can
  be
   done that you know of and how?
  
   #+RESULTS: Files
   #+BEGIN_LaTeX \resizebox{\textwidth}{!}{%
   [1] Clinical spreadsheet_20130215 diabetes1212-v7_OT edited for
   sample classification.xls
   [2] Data spreadsheet_031813 Diabetes study samples set
  corrected_ALL
   assays to date_OT.xlsx
   }
   #+END_LaTeX
  
   because you solution currently produces this output.
  
   here is my code, I have tried the various arguments to the
  :results
   plist as well:
  
   #+NAME: Files
   #+BEGIN_SRC R :session :exports results :results value verbatim
   replace :tangle yes
   print(list.files(recursive = T, pattern = *.xls*))
   #+END_SRC
  
   #+LATEX: \resizebox{\textwidth}{!}{%
   #+RESULTS: Files
   : Clinical spreadsheet_20130215 diabetes1212-v7_OT edited for
  sample
   classification.xls
   : Data spreadsheet_031813 Diabetes study samples set
  corrected_ALL
   assays to date_OT.xlsx
  
   #+Latex: }
  
   Thanks for your help.
  
   Shripad
   Tucson, AZ
  
   On Mon, Mar 18, 2013 at 5:57 PM, Eric Abrahamsen
   e...@ericabrahamsen.net wrote:
  
  
   shripad sinari shripad.sin...@gmail.com writes:
  
Hello all,
Is there a way to scale the text in the latex export of a
   results
block produced by a code chunk?
   
Here is the code chunk i am trying to evaluate and export:
   
#+BEGIN_SRC R :session :exports results :results output org
   replace :
tangle yes
print(list.files(recursive = T, pattern = *.xls*))
#+END_SRC
   
This prints a list of filenames that are quite long. I need to
preserve them as is. Here is the results block:
   
#+END_SRC
   
#+Results:
#+BEGIN_SRC org
[1] 20130304 Some Spreadsheet/20130215 XXX_CB edited
   for
sample classification.xls
[2] 20130304 Some Spreadsheet/20130215 XXX_CB edited
   for
sample classification.xls
[4] 20130304 Some Spreadsheets/20130215 
   samples
results final.xlsx
[5] 20130304 Some Spreadsheets/20130215 
   results
final_formatted.xlsx
[6] 20130304 Some Spreadsheets/20130304 
   samples
results 121109_Rep Aliqs Highlighted.xlsx
   
#+END_SRC
   
Is there a way for me to define the scaling of the text within
   the
results block when this is exported using latex?
  
  
   Jay mentioned how to repeatably wrap the results in latex
  markup;
   I'd
   look into the \resizebox in the graphicsx package to make sure
  the
   block
   of filenames fits the page. Something like:
  
   #+LATEX: \resizebox{\textwidth}{!}{%
   #+RESULTS: foo
   #+BEGIN_SRC org
   etc...
   #+END_SRC
   #+LATEX: }
  
   Untested, but something like that ought to work...
  
   E
  
  
 



Re: [O] Superscripts and subscripts

2013-04-17 Thread Daniel Mahler
This works for me in org 7.9.2 and emacs 24.1.1, but chaining  as in
'x^{y}_{z}' will only fontify the ^{y} but not the _{z}, as I reported
earlier today, but 'x^{y} _{z}' will fontify both, just with an ugly gap in
the middle.

cheers
Daniel


On Tue, Apr 16, 2013 at 1:29 AM, Bastien b...@gnu.org wrote:

 Hi Thomas,

 t...@tsdye.com (Thomas S. Dye) writes:

  With a recent git pull and #+OPTIONS: ^:{}, `C^{14}' is interpreted
  correctly but ` ^{14}C' is not, both in the Org buffer and in LaTeX
  export. The space before the caret appears to be the problem.

 Confirmed -- this was reported already once.  I don't have a fix for
 this at the moment, hopefully Nicolas can have a look sometime.

 --
  Bastien




Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread John Hendy
On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari
shripad.sin...@gmail.com wrote:
 Hello all,
 A quick update. Only the named block solution from Jay Kerns currently
 works. I have tried out variants of other proposed solutions here but none
 worked.
 Thanks for your help and sorry for the delay in getting back on this one.
 Shripad.


I didn't really follow this thread, but I resize things a decent
amount, but not with \resizebox. It's true that you need named source
blocks so that after the first C-c C-c on the babel block, you can add
options and still have it recognized as the results container for that
particular block. Something like this:

#+name: test
#+begin_src R :exports results :results output :wrap latex

a - 1:10
a

#+end_src

#+latex: \LARGE
#+RESULTS: test
#+BEGIN_latex
 [1]  1  2  3  4  5  6  7  8  9 10
#+END_latex
#+latex: \normalsize

I don't actually use the above that much, but tend to size plots
appropriately with something like the following, which is essentially
the same principle (how to pass latex options to the results of code
block results while having Org still recognize where to put updated
results):

#+begin_center
#+attr_latex: :width 8cm
#+RESULTS: test
[[file.pdf]]
#+end_center

Just thought I'd add another option...

John


 Shripad
 Tucson, AZ

 Shripad
 Tucson, AZ




Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread shripad sinari
Hello John,
I have tried this with text but it does not seem to resize the text. Infact
what gets resized is the #+RESULTS: test and the rest of the stuff after
that to the #+end_center. It might work for images but does not for text.
Regards,
Shripad.

Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 8:13 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari
 shripad.sin...@gmail.com wrote:
  Hello all,
  A quick update. Only the named block solution from Jay Kerns currently
  works. I have tried out variants of other proposed solutions here but
 none
  worked.
  Thanks for your help and sorry for the delay in getting back on this one.
  Shripad.
 

 I didn't really follow this thread, but I resize things a decent
 amount, but not with \resizebox. It's true that you need named source
 blocks so that after the first C-c C-c on the babel block, you can add
 options and still have it recognized as the results container for that
 particular block. Something like this:

 #+name: test
 #+begin_src R :exports results :results output :wrap latex

 a - 1:10
 a

 #+end_src

 #+latex: \LARGE
 #+RESULTS: test
 #+BEGIN_latex
  [1] 1 2 3 4 5 6 7 8 9 10
 #+END_latex
 #+latex: \normalsize

 I don't actually use the above that much, but tend to size plots
 appropriately with something like the following, which is essentially
 the same principle (how to pass latex options to the results of code
 block results while having Org still recognize where to put updated
 results):

 #+begin_center
 #+attr_latex: :width 8cm
 #+RESULTS: test
 [[file.pdf]]
 #+end_center

 Just thought I'd add another option...

 John


  Shripad
  Tucson, AZ
 
  Shripad
  Tucson, AZ
 



Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread Eric Schulte
 Hello all,
 A quick update. Only the named block solution from Jay Kerns currently
 works. I have tried out variants of other proposed solutions here but none
 worked.

One option I used recently was to resize *all* verbatim blocks using the
fancyvrb package.  The following export filter converts all verbatim
environments to Verbatim environments.

(defun org-latex-filter-fancyvrb (text backend info)
  Convert begin/end{verbatim} to begin/end{Verbatim}.
Allows use of the fancyvrb latex package.
  (when (org-export-derived-backend-p backend 'latex)
(replace-regexp-in-string
 \\(begin\\|end\\){verbatim}
 \\1{Verbatim}
 text)))

(add-to-list 'org-export-filter-final-output-functions
 'org-latex-filter-fancyvrb)

Then adding the following to the top of your file will change the font
size for these blocks.

\usepackage{fancyvrb}
\fvset{fontsize=\scriptsize}

Hope this helps,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Superscripts and subscripts

2013-04-17 Thread Daniel Mahler
In my .emacs I have

(custom-set-variables
 ;;...
 '(org-pretty-entities t)
 '(org-use-sub-superscripts (quote {}))
;;...
)

but I get the opposite result ' ^{14}C' works , but 'x^{y}_{z}' does not,



On Wed, Apr 17, 2013 at 10:18 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Apr 17, 2013 at 9:57 PM, Daniel Mahler dmah...@gmail.com wrote:
  This works for me in org 7.9.2 and emacs 24.1.1, but chaining  as in
  'x^{y}_{z}' will only fontify the ^{y} but not the _{z}, as I reported
  earlier today, but 'x^{y} _{z}' will fontify both, just with an ugly gap
 in
  the middle.

 Ah. Googled around a bit. Are you sure you don't have something in
 .emacs to set this? If not, perhaps the default settings just changed
 since 7.9.2 and the current master branch, 8.0-pre. I found this upon
 googling fontify subscripts orgmode:
 - http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00358.html

 I added this to my buffer:

 #+startup: entitiespretty

 Now I get the attached. Indeed = ^{14}C= does not work for me, but
 =x^{y}_{z}= does.


 John



 
  cheers
  Daniel
 
 
  On Tue, Apr 16, 2013 at 1:29 AM, Bastien b...@gnu.org wrote:
 
  Hi Thomas,
 
  t...@tsdye.com (Thomas S. Dye) writes:
 
   With a recent git pull and #+OPTIONS: ^:{}, `C^{14}' is interpreted
   correctly but ` ^{14}C' is not, both in the Org buffer and in LaTeX
   export. The space before the caret appears to be the problem.
 
  Confirmed -- this was reported already once.  I don't have a fix for
  this at the moment, hopefully Nicolas can have a look sometime.
 
  --
   Bastien
 
 



Re: [O] Bug: org-capture 'C-c C-q' conflict with mouse avoidance [8.0-pre (release_8.0-pre-487-gd68744 @ ~/.emacs.d/el-get/org-mode/lisp/)]

2013-04-17 Thread Shihpin Tseng

 On Wed, Apr 17, 2013 at 07:51:18PM +0800, Shihpin Tseng wrote:
   To reproduce it
  
  1. M-x org-capture
  2. select todo template
  3. `C-c C-q' 
  
  
  Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
mouse-avoidance-point-position()
mouse-avoidance-too-close-p((#frame GNU Emacs address@hidden: 
   CAPTURE-2-GTD.org 0x10a84d448 89 
 . 18))
mouse-avoidance-fancy()
apply(mouse-avoidance-fancy nil)
byte-code(r\301\302H\303H\\210)\301\207 [timer apply 5 6] 4)
timer-event-handler([t 0 0 10 t mouse-avoidance-fancy nil idle 0])
read-char-exclusive()
byte-code( [groups expert exit-after-next inhibit-quit c 
   org-last-tag-selection-key message 
 [a-z..]:Toggle [SPC]:clear [RET]:accept 
  [TAB]:free [!] %sgroups%s no[C-c]:window  [C-c]:single  
  [C-c]:multi t read-char-exclusive 13 throw exit 33 re-search-forward 
  [{}] 
  nil replace-match   3 org-fast-tag-show-exit delete-other-windows 
  set-window-buffer split-window-vertically  *Org tags* 
  org-switch-to-buffer-other-window org-fit-window-to-buffer 7 113 rassoc 
  org-detach-overlay 32 now 9 (byte-code \303\304\206
  
org-set-tags(nil nil)
org-set-tags-command(nil)
call-interactively(org-set-tags-command nil nil)
command-execute(org-set-tags-command)

  Emacs  : GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.3.0, NS 
  apple-appkit-1187.37)
   of 2013-04-17 on .local
  Package: Org-mode version 8.0-pre (release_8.0-pre-487-gd68744 @ 
  ~/.emacs.d/el-get/org-mode/lisp/)
 
 I believe this is a problem with mouse avoidance mode.  I have been
 seeing similar tracebacks for multiple other cases, outside of Org,
 where it involves creating a new frame or visiting a new file in a new
 frame.  Sadly I see it when I'm using emacsclient, and it disappears
 when I try to replicate it with emacs -Q.
 

emacs -Q,  if eval  (mouse-avoidance-mode 'animate) the problem still exit

I did some debug, found that in the following function,  `posh-at-point' will 
return nil .

(defun mouse-avoidance-point-position ()
  Return the position of point as (FRAME X . Y).
Analogous to `mouse-position'.
  (let ((edges (window-inside-edges))
(x-y (posn-x-y (posn-at-point
(cons (selected-frame)
  (cons (+ (car edges)
   (/ (car x-y) (frame-char-width)))
(+ (car (cdr edges))
   (/ (cdr x-y) (frame-char-height)))

I'm not sure it's the bug of org-mode or emacs.

 If you can reproduce this, I would urge you to file a bug against mouse
 avoidance mode on the Emacs bug tracker.


Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread shripad sinari
Hello John,
I am able to get your test.org to do size change but not my test file.
Please find it attached herewith. I am sure it is setup issue now.
Thanks,
Shripad.

Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 8:53 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Apr 17, 2013 at 10:43 PM, shripad sinari
 shripad.sin...@gmail.com wrote:
  Hello John,
  I have tried this with text but it does not seem to resize the text.
 Infact
  what gets resized is the #+RESULTS: test and the rest of the stuff
 after
  that to the #+end_center. It might work for images but does not for text.

 You must have a setup or installation issue. See the attached .org and
 resultant .pdf for me.

 What's in your #+options line (or setupfile)? I'm wondering if you
 don't have something like =tex:t= or =LaTeX:t= which might be required
 to pass the commands through?


 Best regards,
 John


  Regards,
  Shripad.
 
  Shripad
  Tucson, AZ
 
 
  On Wed, Apr 17, 2013 at 8:13 PM, John Hendy jw.he...@gmail.com wrote:
 
  On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari
  shripad.sin...@gmail.com wrote:
   Hello all,
   A quick update. Only the named block solution from Jay Kerns currently
   works. I have tried out variants of other proposed solutions here but
   none
   worked.
   Thanks for your help and sorry for the delay in getting back on this
   one.
   Shripad.
  
 
  I didn't really follow this thread, but I resize things a decent
  amount, but not with \resizebox. It's true that you need named source
  blocks so that after the first C-c C-c on the babel block, you can add
  options and still have it recognized as the results container for that
  particular block. Something like this:
 
  #+name: test
  #+begin_src R :exports results :results output :wrap latex
 
  a - 1:10
  a
 
  #+end_src
 
  #+latex: \LARGE
  #+RESULTS: test
  #+BEGIN_latex
   [1] 1 2 3 4 5 6 7 8 9 10
  #+END_latex
  #+latex: \normalsize
 
  I don't actually use the above that much, but tend to size plots
  appropriately with something like the following, which is essentially
  the same principle (how to pass latex options to the results of code
  block results while having Org still recognize where to put updated
  results):
 
  #+begin_center
  #+attr_latex: :width 8cm
  #+RESULTS: test
  [[file.pdf]]
  #+end_center
 
  Just thought I'd add another option...
 
  John
 
 
   Shripad
   Tucson, AZ
  
   Shripad
   Tucson, AZ
  
 
 



t2.org
Description: Binary data


Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread shripad sinari
Hello John,
I think I figured out what the issue is. Whenever I have the code chunks
outside a headline for example:

### This does not work ###

#+TITLE: *scratch*
#+AUTHOR:Shripad Sinari
#+DATE:  2013-04-17 Wed
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:6 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:
http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+XSLT:


#+NAME: test1
#+BEGIN_SRC R :results output latex :exports results
  a - 1:10
  a
#+END_SRC


#+LATEX: \tiny
#+RESULTS: test1
#+LATEX: \normalsize



However just placing the code chunks under a headline works:

 The following works 
#+TITLE: *scratch*
#+AUTHOR:Shripad Sinari
#+DATE:  2013-04-17 Wed
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:6 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:
http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+XSLT:

* N1

#+NAME: test1
#+BEGIN_SRC R :results output latex :exports results
  a - 1:10
  a
#+END_SRC


#+LATEX: \tiny
#+RESULTS: test1
#+LATEX: \normalsize

##

Note the headline =* N1= is the only change between the two codes.
Regards,

Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 8:57 PM, shripad sinari shripad.sin...@gmail.comwrote:

 Hello John,
 I am able to get your test.org to do size change but not my test file.
 Please find it attached herewith. I am sure it is setup issue now.
 Thanks,
 Shripad.

 Shripad
 Tucson, AZ


 On Wed, Apr 17, 2013 at 8:53 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Apr 17, 2013 at 10:43 PM, shripad sinari
 shripad.sin...@gmail.com wrote:
  Hello John,
  I have tried this with text but it does not seem to resize the text.
 Infact
  what gets resized is the #+RESULTS: test and the rest of the stuff
 after
  that to the #+end_center. It might work for images but does not for
 text.

 You must have a setup or installation issue. See the attached .org and
 resultant .pdf for me.

 What's in your #+options line (or setupfile)? I'm wondering if you
 don't have something like =tex:t= or =LaTeX:t= which might be required
 to pass the commands through?


 Best regards,
 John


  Regards,
  Shripad.
 
  Shripad
  Tucson, AZ
 
 
  On Wed, Apr 17, 2013 at 8:13 PM, John Hendy jw.he...@gmail.com wrote:
 
  On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari
  shripad.sin...@gmail.com wrote:
   Hello all,
   A quick update. Only the named block solution from Jay Kerns
 currently
   works. I have tried out variants of other proposed solutions here but
   none
   worked.
   Thanks for your help and sorry for the delay in getting back on this
   one.
   Shripad.
  
 
  I didn't really follow this thread, but I resize things a decent
  amount, but not with \resizebox. It's true that you need named source
  blocks so that after the first C-c C-c on the babel block, you can add
  options and still have it recognized as the results container for that
  particular block. Something like this:
 
  #+name: test
  #+begin_src R :exports results :results output :wrap latex
 
  a - 1:10
  a
 
  #+end_src
 
  #+latex: \LARGE
  #+RESULTS: test
  #+BEGIN_latex
   [1] 1 2 3 4 5 6 7 8 9 10
  #+END_latex
  #+latex: \normalsize
 
  I don't actually use the above that much, but tend to size plots
  appropriately with something like the following, which is essentially
  the same principle (how to pass latex options to the results of code
  block results while having Org still recognize where to put updated
  results):
 
  #+begin_center
  #+attr_latex: :width 8cm
  #+RESULTS: test
  [[file.pdf]]
  #+end_center
 
  Just thought I'd add another option...
 
  John
 
 
   Shripad
   Tucson, AZ
  
   Shripad
   Tucson, AZ
  
 
 





Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread John Hendy
On Wed, Apr 17, 2013 at 10:57 PM, shripad sinari
shripad.sin...@gmail.com wrote:
 Hello John,
 I am able to get your test.org to do size change but not my test file.
 Please find it attached herewith. I am sure it is setup issue now.
 Thanks,
 Shripad.


I may have confused you. Your file contains text results, but you have:

#+BEGIN_CENTER
#+ATTR_LATEX: :width 20cm
#+RESULTS: test1
#+BEGIN_LaTeX

You need:

#+BEGIN_CENTER
#+LATEX: \LARGE
#+RESULTS: test1
#+BEGIN_LaTeX

Best regards,
John

 Shripad
 Tucson, AZ


 On Wed, Apr 17, 2013 at 8:53 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Apr 17, 2013 at 10:43 PM, shripad sinari
 shripad.sin...@gmail.com wrote:
  Hello John,
  I have tried this with text but it does not seem to resize the text.
  Infact
  what gets resized is the #+RESULTS: test and the rest of the stuff
  after
  that to the #+end_center. It might work for images but does not for
  text.

 You must have a setup or installation issue. See the attached .org and
 resultant .pdf for me.

 What's in your #+options line (or setupfile)? I'm wondering if you
 don't have something like =tex:t= or =LaTeX:t= which might be required
 to pass the commands through?


 Best regards,
 John


  Regards,
  Shripad.
 
  Shripad
  Tucson, AZ
 
 
  On Wed, Apr 17, 2013 at 8:13 PM, John Hendy jw.he...@gmail.com wrote:
 
  On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari
  shripad.sin...@gmail.com wrote:
   Hello all,
   A quick update. Only the named block solution from Jay Kerns
   currently
   works. I have tried out variants of other proposed solutions here but
   none
   worked.
   Thanks for your help and sorry for the delay in getting back on this
   one.
   Shripad.
  
 
  I didn't really follow this thread, but I resize things a decent
  amount, but not with \resizebox. It's true that you need named source
  blocks so that after the first C-c C-c on the babel block, you can add
  options and still have it recognized as the results container for that
  particular block. Something like this:
 
  #+name: test
  #+begin_src R :exports results :results output :wrap latex
 
  a - 1:10
  a
 
  #+end_src
 
  #+latex: \LARGE
  #+RESULTS: test
  #+BEGIN_latex
   [1] 1 2 3 4 5 6 7 8 9 10
  #+END_latex
  #+latex: \normalsize
 
  I don't actually use the above that much, but tend to size plots
  appropriately with something like the following, which is essentially
  the same principle (how to pass latex options to the results of code
  block results while having Org still recognize where to put updated
  results):
 
  #+begin_center
  #+attr_latex: :width 8cm
  #+RESULTS: test
  [[file.pdf]]
  #+end_center
 
  Just thought I'd add another option...
 
  John
 
 
   Shripad
   Tucson, AZ
  
   Shripad
   Tucson, AZ
  
 
 





Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread shripad sinari
Thanks John,
But I have corrected the width attribute to the correct \tiny in my latest
file. It was a bit too fast copy and paste error.
Regards,

Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 9:18 PM, John Hendy jw.he...@gmail.com wrote:

 On Wed, Apr 17, 2013 at 10:57 PM, shripad sinari
 shripad.sin...@gmail.com wrote:
  Hello John,
  I am able to get your test.org to do size change but not my test file.
  Please find it attached herewith. I am sure it is setup issue now.
  Thanks,
  Shripad.
 

 I may have confused you. Your file contains text results, but you have:

 #+BEGIN_CENTER
 #+ATTR_LATEX: :width 20cm
 #+RESULTS: test1
 #+BEGIN_LaTeX

 You need:

 #+BEGIN_CENTER
 #+LATEX: \LARGE
 #+RESULTS: test1
 #+BEGIN_LaTeX

 Best regards,
 John

  Shripad
  Tucson, AZ
 
 
  On Wed, Apr 17, 2013 at 8:53 PM, John Hendy jw.he...@gmail.com wrote:
 
  On Wed, Apr 17, 2013 at 10:43 PM, shripad sinari
  shripad.sin...@gmail.com wrote:
   Hello John,
   I have tried this with text but it does not seem to resize the text.
   Infact
   what gets resized is the #+RESULTS: test and the rest of the stuff
   after
   that to the #+end_center. It might work for images but does not for
   text.
 
  You must have a setup or installation issue. See the attached .org and
  resultant .pdf for me.
 
  What's in your #+options line (or setupfile)? I'm wondering if you
  don't have something like =tex:t= or =LaTeX:t= which might be required
  to pass the commands through?
 
 
  Best regards,
  John
 
 
   Regards,
   Shripad.
  
   Shripad
   Tucson, AZ
  
  
   On Wed, Apr 17, 2013 at 8:13 PM, John Hendy jw.he...@gmail.com
 wrote:
  
   On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari
   shripad.sin...@gmail.com wrote:
Hello all,
A quick update. Only the named block solution from Jay Kerns
currently
works. I have tried out variants of other proposed solutions here
 but
none
worked.
Thanks for your help and sorry for the delay in getting back on
 this
one.
Shripad.
   
  
   I didn't really follow this thread, but I resize things a decent
   amount, but not with \resizebox. It's true that you need named source
   blocks so that after the first C-c C-c on the babel block, you can
 add
   options and still have it recognized as the results container for
 that
   particular block. Something like this:
  
   #+name: test
   #+begin_src R :exports results :results output :wrap latex
  
   a - 1:10
   a
  
   #+end_src
  
   #+latex: \LARGE
   #+RESULTS: test
   #+BEGIN_latex
[1] 1 2 3 4 5 6 7 8 9 10
   #+END_latex
   #+latex: \normalsize
  
   I don't actually use the above that much, but tend to size plots
   appropriately with something like the following, which is essentially
   the same principle (how to pass latex options to the results of code
   block results while having Org still recognize where to put updated
   results):
  
   #+begin_center
   #+attr_latex: :width 8cm
   #+RESULTS: test
   [[file.pdf]]
   #+end_center
  
   Just thought I'd add another option...
  
   John
  
  
Shripad
Tucson, AZ
   
Shripad
Tucson, AZ
   
  
  
 
 



Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX

2013-04-17 Thread shripad sinari
Thanks!

Shripad
Tucson, AZ


On Wed, Apr 17, 2013 at 9:25 PM, John Hendy jw.he...@gmail.com wrote:

 It works correctly for me (see attached). Make sure your buffer is
 exactly as shown below (:width 20cm - \tiny is not the only change.
 You also need to change #+attr_latex - #+latex).

 #+NAME: test1
 #+BEGIN_SRC R :results output latex :exports results
   list.files(recursive=F)
 #+END_SRC

 #+BEGIN_CENTER
 #+latex: \tiny
 #+RESULTS: test1
 #+BEGIN_LaTeX
  [1] Desktop Documents   Downloads
  [4] Dropbox Library Mail
  [7] Movies  Music   MyDropBox
 [10] NewsPicturesPublic
 [13] local   m.org   org
 [16] org.ics orgmode-accessories projects
 [19] t2.html t2.org  t2.pdf
 [22] t2.tex  tools   worg
 #+END_LaTeX
 #+END_CENTER


 Best regards,
 John

 On Wed, Apr 17, 2013 at 11:20 PM, shripad sinari
 shripad.sin...@gmail.com wrote:
  Thanks John,
  But I have corrected the width attribute to the correct \tiny in my
 latest
  file. It was a bit too fast copy and paste error.
  Regards,
 
  Shripad
  Tucson, AZ
 
 
  On Wed, Apr 17, 2013 at 9:18 PM, John Hendy jw.he...@gmail.com wrote:
 
  On Wed, Apr 17, 2013 at 10:57 PM, shripad sinari
  shripad.sin...@gmail.com wrote:
   Hello John,
   I am able to get your test.org to do size change but not my test
 file.
   Please find it attached herewith. I am sure it is setup issue now.
   Thanks,
   Shripad.
  
 
  I may have confused you. Your file contains text results, but you have:
 
  #+BEGIN_CENTER
  #+ATTR_LATEX: :width 20cm
  #+RESULTS: test1
  #+BEGIN_LaTeX
 
  You need:
 
  #+BEGIN_CENTER
  #+LATEX: \LARGE
  #+RESULTS: test1
  #+BEGIN_LaTeX
 
  Best regards,
  John
 
   Shripad
   Tucson, AZ
  
  
   On Wed, Apr 17, 2013 at 8:53 PM, John Hendy jw.he...@gmail.com
 wrote:
  
   On Wed, Apr 17, 2013 at 10:43 PM, shripad sinari
   shripad.sin...@gmail.com wrote:
Hello John,
I have tried this with text but it does not seem to resize the
 text.
Infact
what gets resized is the #+RESULTS: test and the rest of the
 stuff
after
that to the #+end_center. It might work for images but does not for
text.
  
   You must have a setup or installation issue. See the attached .org
 and
   resultant .pdf for me.
  
   What's in your #+options line (or setupfile)? I'm wondering if you
   don't have something like =tex:t= or =LaTeX:t= which might be
 required
   to pass the commands through?
  
  
   Best regards,
   John
  
  
Regards,
Shripad.
   
Shripad
Tucson, AZ
   
   
On Wed, Apr 17, 2013 at 8:13 PM, John Hendy jw.he...@gmail.com
wrote:
   
On Wed, Apr 17, 2013 at 9:46 PM, shripad sinari
shripad.sin...@gmail.com wrote:
 Hello all,
 A quick update. Only the named block solution from Jay Kerns
 currently
 works. I have tried out variants of other proposed solutions
 here
 but
 none
 worked.
 Thanks for your help and sorry for the delay in getting back on
 this
 one.
 Shripad.

   
I didn't really follow this thread, but I resize things a decent
amount, but not with \resizebox. It's true that you need named
source
blocks so that after the first C-c C-c on the babel block, you can
add
options and still have it recognized as the results container for
that
particular block. Something like this:
   
#+name: test
#+begin_src R :exports results :results output :wrap latex
   
a - 1:10
a
   
#+end_src
   
#+latex: \LARGE
#+RESULTS: test
#+BEGIN_latex
 [1] 1 2 3 4 5 6 7 8 9 10
#+END_latex
#+latex: \normalsize
   
I don't actually use the above that much, but tend to size plots
appropriately with something like the following, which is
essentially
the same principle (how to pass latex options to the results of
 code
block results while having Org still recognize where to put
 updated
results):
   
#+begin_center
#+attr_latex: :width 8cm
#+RESULTS: test
[[file.pdf]]
#+end_center
   
Just thought I'd add another option...
   
John
   
   
 Shripad
 Tucson, AZ

 Shripad
 Tucson, AZ