Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX
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] scaling the text in the results block of some code chunk when exported using LaTeX
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
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
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] scaling the text in the results block of some code chunk when exported using LaTeX
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
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
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
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
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
[O] scaling the text in the results block of some code chunk when exported using LaTeX
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? Thank you and regards, Shripad Tucson, AZ
Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX
Hello Shripad, On Mon, Mar 18, 2013 at 7:44 PM, shripad sinari shripad.sin...@gmail.com wrote: [snip] Is there a way for me to define the scaling of the text within the results block when this is exported using latex? [snip] I don't know of a way to scale /within/ the code block, but does this work instead? #+NAME: foo #+BEGIN_SRC R :session :exports results :results output org replace :tangle yes print(list.files(recursive = T, pattern = *.xls*)) #+END_SRC \scriptsize #+RESULTS: foo #+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 \normalsize I learned just yesterday that the 'naming code blocks' trick is very handy for things like this. Here is halfway through the thread where this was discussed: http://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg01268.html See also John Hendy's comments later in the thread. I hope this helps, -- Jay
Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX
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] scaling the text in the results block of some code chunk when exported using LaTeX
Jay Kerns gjkerns...@gmail.com writes: I don't know of a way to scale /within/ the code block, but does this work instead? #+NAME: foo #+BEGIN_SRC R :session :exports results :results output org replace :tangle yes cat(\\scriptsize) print(list.files(recursive = T, pattern = *.xls*)) cat(\\normalsize) #+END_SRC hth, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] scaling the text in the results block of some code chunk when exported using LaTeX
Thanks you all for the suggestions! Let me try out the suggestions and I will report back on what worked. Thanks again! Shripad. Shripad Tucson, AZ On Mon, Mar 18, 2013 at 6:07 PM, Thomas S. Dye t...@tsdye.com wrote: Jay Kerns gjkerns...@gmail.com writes: I don't know of a way to scale /within/ the code block, but does this work instead? #+NAME: foo #+BEGIN_SRC R :session :exports results :results output org replace :tangle yes cat(\\scriptsize) print(list.files(recursive = T, pattern = *.xls*)) cat(\\normalsize) #+END_SRC hth, Tom -- Thomas S. Dye http://www.tsdye.com