Re: [O] [OT] Current website not very attractive
I'm inclined to agree with Marcelo. -- Sankalp *** If humans could mate with software, I'd have org-mode's babies. --- Chris League on Twitter. http://orgmode.org/worg/org-quotes.html *** On 10 August 2012 04:44, Jude DaShiell jdash...@shellworld.net wrote: Good, that probably means it's one of the more accessible and usable web sites on the internet. On Thu, 9 Aug 2012, Marcelo de Moraes Serpa wrote: Hey list, Don't want to be negative, but doesn't anyone else also think the current design is kind of amateurish and not very attractive? I also did not like the screenshot used, I preferred the previous one, it showed more org capabilities, and the colors and indentation looked better. My two cents and food for thought, - Marcelo. Support your local church or synagogue, worship at Bank Of America! Jude jdashiel-at-shellworld-dot-net http://www.shellworld.net/~jdashiel/nj.html
Re: [O] HTML Export Error : org-export-replace-src-segments-and-examples: Args out of range: 0, 0
Hi Bastien, I'm sorry I wasn't able to follow up on this back then. I notice the issue doesn't seem to be recurring with later/current versions of org-mode. Thanks for all the help though! -- Sankalp *** If humans could mate with software, I'd have org-mode's babies. --- Chris League on Twitter. http://orgmode.org/worg/org-quotes.html *** On 24 March 2012 03:20, Bastien b...@altern.org wrote: Hi Sankalp, Sankalp sankalpkh...@gmail.com writes: I'm not quite sure what we mean here by a minimal setup. Is it a stripped down version of my .emacs with no dependencies? or is it the publishing setup I'm using? I'm thinking of a test-file.org containing all the content you added in regex-python.org *and* a #+begin_src section loading Org and your setup. I tried to export your file and did not reproduce your problem. Assume every bit of your config might be useful, especially when it comes to testing Babel. Of course, if there are external dependancies such as python, just tell so. Please clarify and I'll send what is required. Thanks! -- Bastien
Re: [O] HTML Export Error : org-export-replace-src-segments-and-examples: Args out of range: 0, 0
Hi Bastien, On 21 March 2012 20:01, Bastien b...@gnu.org wrote: Hi, Sankalp sankalpkh...@gmail.com writes: I'm facing a strange issue. On exporting the attached .org file to HTML, I often have to do it in 2 passes. Can you share a minimal setup so that we can reproduce the problem with the regex-python.org file you provided? I'm not quite sure what we mean here by a *minimal setup*. Is it a stripped down version of my .emacs with no dependencies? or is it the publishing setup I'm using? Please clarify and I'll send what is required. Thanks, -- Bastien Thanks a lot for the help -- Sankalp *** If humans could mate with software, I'd have org-mode's babies. --- Chris League on Twitter. http://orgmode.org/worg/org-quotes.html ***
[O] HTML Export Error : org-export-replace-src-segments-and-examples: Args out of range: 0, 0
Hi, I'm facing a strange issue. On exporting the attached .org file to HTML, I often have to do it in 2 passes. Most of the times the 1st pass throws an error, and the output in the *Messages* buffer is like this : OVERVIEW Export buffer: Exporting... (New file) org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW [2 times] executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. org-babel-exp processing... OVERVIEW Position saved to mark ring, go back with C-c . OVERVIEW executing Python code block... Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying org-src-fontification:python-mode... (regexps..) Code block evaluation complete. Fontifying *temp*2... (regexps..) Code block evaluation complete. org-export-replace-src-segments-and-examples: Args out of range: 0, 0 i.e. at the end I get this error - Args out of range: 0, 0 Strangely, doing an export for the 2nd time, without deleting the output html file manages to do it successfully without throwing any errors. Could someone examine the attached file and throw some light on what I might be doing wrong? Thanks, -- Sankalp *** If humans could mate with software, I'd have org-mode's babies. --- Chris League on Twitter. http://orgmode.org/worg/org-quotes.html *** Ps: Sorry about the long output transcript... regex-python.org Description: Lotus Organizer
Re: [O] HTML Export Error : org-export-replace-src-segments-and-examples: Args out of range: 0, 0
Hi Achim, On 21 March 2012 01:01, Achim Gratz strom...@nexgo.de wrote: Sankalp sankalpkh...@gmail.com writes: i.e. at the end I get this error - Args out of range: 0, 0 Well, it tells you that the input to that function was unexpected. You could do M-: (setq debug-on-error) and see what the backtrace turns up. Here's what the backtrace says : Debugger entered--Lisp error: (args-out-of-range 0 0) replace-match(#(\n#+BEGIN_html\npre class=\src src-python\span style=\color: #a020f0;\import/span re span style=\color: #b2;\# import the module/span\n\nspan style=\color: #00; background-color: #ff;\match/span = re.search(rspan style=\color: #8b2252;\'iiit'/span,span style=\color: #8b2252;\'iiit hyderabad is in India'/span)\nspan style=\color: #7a378b;\print/span match.group()\n\nspan style=\color: #00; background-color: #ff;\match/span = re.search(rspan style=\color: #8b2252;\'iiit'/span,span style=\color: #8b2252;\'iiit is in India. IIIT offers CS degrees too.'/span)\nspan style=\color: #7a378b;\print/span match.group()\n\nspan style=\color: #00; background-color: #ff;\match/span = re.search(rspan style=\color: #8b2252;\'he'/span,span style=\color: #8b2252;\'this is the eiffel tower. The eiffel tower is in France.'/span)\nspan style=\color: #7a378b;\print/span match.group()\n\n/pre\n\n#+END_html\n 0 14 (original-indentation 3) 14 961 (org-native-text t org-example t org-protected t original-indentation 3) 961 973 (original-indentation 3)) t t) org-export-replace-src-segments-and-examples() org-export-preprocess-string(#(#+TITLE: Regular Expressions in Python\n#+STARTUP: overview (others are showall)\n#+STARTUP: hidestars\n#+OPTIONS: toc:nil\n\n* Introduction\n\n** Mathematical understanding of regular expressions\n\n\n** regular expressions and Operations\n - sequencing :: by default\n - grouping :: [abc] one of any characters in the group\n - alternation :: |\n - repetition :: a* and a+ and a?\n - complementation :: ^\n\n\n\n** From strings to Regular expressions in Python ::\n Using the 'r' keyword to indicate regular expressions\n instead of strings.\n\n\n** Metacharacters\n\n - $ ::\n - ^ :: inside a group, specifies complementation\n - \\ :: used to escape from the default meaning to a new meaning. Eg, \\w, \\[, , etc.\n - . ::\n\n** Special symbols ::\n\n - \\d :: matches any decimal\n - \\s :: any whitespace character [\\t\\n\\r\\f\\v]\n - \\w :: any alphanumeric character\n - . :: matches any character except newline\n - more\n\n\n** Compiling regexes\n\n - pat = re.compile(r\ab*\) :: This \compiles\ the regular\n expression =ab*=. The result is a pattern object.\n\n** Using regexes\n\n\n - re.match(rpattern, string) :: returns an object that contains\n a match at the BEGINNING of the string, else None.\n\n - re.search(rpattern, string) :: returns an object that contains a\n match ANYWHERE in the string, else None\n\n - re.findall(rpattern, string) :: returns a list that\n contains all the matches of the pattern in the string.\n\n - re.finditer(rpattern, string) :: returns an iterator that\n contains all the matches of the pattern in the string.\n\n\n** Operations on the matched object\n\n - group() :: returns the string matched\n - start() :: returns the start position of the match\n - end() :: returns the end position of the match\n - span() :: returns the group of starting and ending positions.\n\n* Examples\n\n We cover some simple examples of regular expressions\n\n** Basic examples\n\n #+begin_src python :results output :exports both\n import re # import the module\n\n match = re.search(r'iiit','iiit hyderabad is in India')\n print match.group()\n\n match = re.search(r'iiit','iiit is in India. IIIT offers CS degrees too.')\n print match.group()\n\n match = re.search(r'he','this is the eiffel tower. The eiffel tower is in France.')\n print match.group()\n\n #+end_src\n\n #+results:\n : iiit\n : iiit\n : he\n\n\n** Using special characters\n\n*** The =^= and =$=\n\n#+begin_src python :results output :exports both\n import re\n match = re.search(r'^t123','this t123')\n print match # match is None\n\n match = re.search(r'^t123','t123 the')\n print match.group()\n\n match = re.search(r't123$','this t123')\n print match.group()\n\n match = re.search(r't123$','t123 the')\n print match # match is None\n\n#+end_src\n\n#+results:\n: None\n : t123\n: t123\n: None\n\n*** The =*= and =+=\n\n#+begin_src python :results output :exports both\n import re\n\n match = re.search(r'a*','red box in red light')\n print match.group()# Null String, not None\n\n match = re.search(r'a+','red box in red light')\n print match# None\n\n match = re.search(r'a*','a red box in the red light')\n print match.group()\n#+end_src\n\n#+results:\n=\nNone\na\n=:\n
Re: [O] Unable to find contrib/
Hi Debaditya, On 11 March 2012 15:24, Jambunathan K kjambunat...@gmail.com wrote: Debaditya Mukhopadhyay debadi...@gmail.com writes: I have org 7.8.03. added to my .emacs (add-to-list 'load-path org-root-dir/contrib/lisp) (require 'org-mime) Make sure that org-root-dir has the same value M-x locate-library RET org RET You could also try M-x locate-library RET org-mime RET ideally this should output something like : Library is file ~/.emacs.d/org-7.8.03/contrib/lisp/org-mime.el (that's what it gives on my setup) If it doesn't give output, then you're either missing the contrib directory (as possible while using ELPA) or you've given the path wrong. Make sure contrib dir exists. AFAIK, ELPA, Vanilla Emacs doesn't have contrib dir as part of the distribution. Try git. getting File error: Cannot open load file, org-mime To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Any help will be appreciated. -- -- Sankalp *** If humans could mate with software, I'd have org-mode's babies. --- Chris League on Twitter. http://orgmode.org/worg/org-quotes.html ***
Re: [O] How do teachers use org-mode
Dear Brian, On 2 February 2012 23:24, brian powell briangpowel...@gmail.com wrote: * Dear Venkatesh Choppella: Thanks for the notes on teaching OrgMode etc.: While reviewing your class notes and emails to your class about OrgMode and TeX/LaTeX I came across your suggestion to students to play with: http://detexify.kirelabs.org/classify.html ** Detexify can be useful; but, this may give your students more traction/uses: http://webdemo.visionobjects.com/equation.html ^^ This is awesome! :D ---which not only suggests an equivalent TeX/LaTeX; it provides a MathML suggestion as well. *** Disclaimer: I have no relations to visionobjects.com that I know of (but the example site looks free to play with at least). On Thu, Feb 2, 2012 at 12:17 PM, Scott Randby sran...@gmail.com wrote: I use org-mode to keep track of grades and all other information I collect on students. I make great use of tables, table formulas, tags, headlines, and lists. I can compute a grade in milliseconds. Entering data is a snap. Since everything is plain text, I can add comments with ease and use git to keep track of everything. Scott Randby On 01/31/2012 11:10 PM, Venkatesh Choppella wrote: Dear Org-mode users: I am using org-mode this semester to host my course notes. For me ... We'll relay this to the class, and to the instructors too, while we're at it. Thanks a lot, -- Sankalp (Teaching Assistant for Dr.Choppella's IT Workshop course)
Re: [O] Excluding folders in org-publish with :exclude regexp. Not working. Fix?
Hi, This is in continuation with the message http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00053.html I'm facing the same issue. I want to exclude a particular file, and be able to specify it by its path. Say, for example, in the scenario presented below, . ├── notes │ └── file.tex ├── project1 │ └── file.tex └── project2 └── file.tex I want to exclude notes/file.tex but publish the others. Using :exclude notes/file.tex doesn't work, whereas :exclude file.tex excludes all the files with that name. Is this a feature that needs to be added, or is it a bug which I can fix somehow? Any help would be appreciated. Sincerely, --- Sankalp
Re: [O] org-version reported as 6.33x after upgrading to the latest and greatest with Emacs' Package Manager
On 30 January 2012 19:15, Jambunathan K kjambunat...@gmail.com wrote: Angel de Vicente ang...@iac.es writes: Hi, I'm running Emacs 23.2.1 (bundled with Ubuntu 11.04), and until now I was running the org-mode package that came with it (6.33x). Today I decided to update to the latest org version, and I followed the instructions at http://orgmode.org/worg/org-faq.html#installing-via-elpa When I do M-x locate-library RET org I get: Library is file ~/.emacs.d/elpa/org-20120129/org.elc which looks good, but if I do M-x org-version I get: Org-mode version 6.33x Try going to the *scratch* buffer, doing an M-x load-library org and evaluating the value of the sexp org-version (using C-j with the cursor placed immediately after it). Does that give you a different result, or is it still 6.33x? In my .emacs file I have ;; Org-mode ;; (require 'org-install) (add-to-list 'auto-mode-alist '(\\.org$ . org-mode)) (define-key global-map \C-cl 'org-store-link) (define-key global-map \C-ca 'org-agenda) (define-key global-map \C-cb 'org-iswitchb) (global-font-lock-mode 1) (setq org-log-done t) and at the end of the file (setq load-path (cons ~/Emacs-custom load-path)) (require 'package) (package-initialize) Did I miss something else that I should do? I was planning on getting rid of the version that comes with Emacs, but I thought I should ask first... If you get the newer org installed and running, I don't see a reason to manually remove the one that comes with Emacs, unless you've got space issues. 1. Did you restart Emacs? 2. If you remove (require 'org-install) does it help? 3. Emacs-24.1 (currently in pre-test) has the latest and greatest Org. Thanks, --
[O] Referring to the Last Row of a Remote Table using @
Hi, I have the following situation : #+TBLNAME: Totals |+| | Name | Amount | |+| | xyz| 90 | *-- should evaluate to 130, not 90* |+| | TOTAL || |+| #+TBLFM: @2$2=remote(xyz,@$4) *-- I'm trying to refer to the last row, 4th column in table xyz* #+TBLNAME: xyz |+--+--+| | Title | Description | Date | Amount | |+--+--+| | Trichy Tickets | Trichy Gig Travel| | 1200 | | PAID | | [2011-10-16 Sun] | -1000 | | Blah | Prior to Inorbit Gig | [2011-11-11 Fri] | 90 | | InOrbit Money | Payment for Gig | [2011-11-11 Fri] | -200 | | Biryani| Al-Saba | [2012-01-07 Sat] |120 | | Sub| Chicken Ham | [2012-01-12 Thu] |-75 | | Blah | I had asdad | [2012-01-12 Thu] | -5 | |+--+--+| | TOTAL | | |130 | |+--+--+| #+TBLFM: $4=vsum(@2..@-1) Instead of showing 130, the formula in the Totals table is showing 90. Upon some investigation, it becomes apparent that even though the formula * should* point to the last row in the remote table (value 130), @ in the remote table reference is actually evaluating to @3 (since the current table has 3 rows) instead of evaluating to @9 as expected (since the remote table has 9 rows). Is this a bug? or am I making some mistake in the formula. --- Sankalp
Re: [O] Referring to the Last Row of a Remote Table using @
Here's a screenshot, for those who cannot see the table spacing properly in the email http://imgur.com/4W75H --- Sankalp On 13 January 2012 07:42, Sankalp sankalpkh...@gmail.com wrote: Hi, I have the following situation : #+TBLNAME: Totals |+| | Name | Amount | |+| | xyz| 90 | *-- should evaluate to 130, not 90* |+| | TOTAL || |+| #+TBLFM: @2$2=remote(xyz,@$4) *-- I'm trying to refer to the last row, 4th column in table xyz* #+TBLNAME: xyz |+--+--+| | Title | Description | Date | Amount | |+--+--+| | Trichy Tickets | Trichy Gig Travel| | 1200 | | PAID | | [2011-10-16 Sun] | -1000 | | Blah | Prior to Inorbit Gig | [2011-11-11 Fri] | 90 | | InOrbit Money | Payment for Gig | [2011-11-11 Fri] | -200 | | Biryani| Al-Saba | [2012-01-07 Sat] |120 | | Sub| Chicken Ham | [2012-01-12 Thu] |-75 | | Blah | I had asdad | [2012-01-12 Thu] | -5 | |+--+--+| | TOTAL | | |130 | |+--+--+| #+TBLFM: $4=vsum(@2..@-1) Instead of showing 130, the formula in the Totals table is showing 90. Upon some investigation, it becomes apparent that even though the formula *should* point to the last row in the remote table (value 130), @ in the remote table reference is actually evaluating to @3 (since the current table has 3 rows) instead of evaluating to @9 as expected (since the remote table has 9 rows). Is this a bug? or am I making some mistake in the formula. --- Sankalp
Re: [O] Referring to the Last Row of a Remote Table using @
Hi, Just saw this : http://thread.gmane.org/gmane.emacs.orgmode/50991 Apologies for initiating a new thread when the issue was already being discussed. Sincerely, --- Sankalp On 13 January 2012 07:47, Sankalp sankalpkh...@gmail.com wrote: Here's a screenshot, for those who cannot see the table spacing properly in the email http://imgur.com/4W75H --- Sankalp On 13 January 2012 07:42, Sankalp sankalpkh...@gmail.com wrote: Hi, I have the following situation : #+TBLNAME: Totals |+| | Name | Amount | |+| | xyz| 90 | *-- should evaluate to 130, not 90* |+| | TOTAL || |+| #+TBLFM: @2$2=remote(xyz,@$4) *-- I'm trying to refer to the last row, 4th column in table xyz* #+TBLNAME: xyz |+--+--+| | Title | Description | Date | Amount | |+--+--+| | Trichy Tickets | Trichy Gig Travel| | 1200 | | PAID | | [2011-10-16 Sun] | -1000 | | Blah | Prior to Inorbit Gig | [2011-11-11 Fri] | 90 | | InOrbit Money | Payment for Gig | [2011-11-11 Fri] | -200 | | Biryani| Al-Saba | [2012-01-07 Sat] |120 | | Sub| Chicken Ham | [2012-01-12 Thu] |-75 | | Blah | I had asdad | [2012-01-12 Thu] | -5 | |+--+--+| | TOTAL | | |130 | |+--+--+| #+TBLFM: $4=vsum(@2..@-1) Instead of showing 130, the formula in the Totals table is showing 90. Upon some investigation, it becomes apparent that even though the formula *should* point to the last row in the remote table (value 130), @ in the remote table reference is actually evaluating to @3 (since the current table has 3 rows) instead of evaluating to @9 as expected (since the remote table has 9 rows). Is this a bug? or am I making some mistake in the formula. --- Sankalp
Re: [O] Using last row in remote table references
On 11 January 2012 23:04, Michael Brand michael.ch.br...@gmail.com wrote: Hi Phil On Tue, Jan 10, 2012 at 14:39, Phil (Philip) Mason phil.ma...@broadcom.com wrote: Should I be able to use @ in references to remote tables? Yes, this issue has been resolved by Carsten with release_7.7-420-g1432e4b I'm using org 7.8.03 but the issue is still there. Is there a syntax I should be using if I want to get all the entries in a table below a certain row without explicitly entering the number of the last row? The general solution for a Calc formula is e. g. with subvec as I described here: http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00562.html and in a similar sense as I described for subscr in the subsection Dynamic variation of ranges here: http://orgmode.org/worg/org-hacks.html#field-coordinates-in-formulas The general solution for a Lisp formula is e. g. with calc-subvector I guess. The following simpler solution is only possible when the range is relative to the field where the formula is evaluated in and when the offset to the range border is static: |---+-| | a | abc | | b | bcd | | c | cde | | d | | | e | | |---+-| #+TBLFM: @$2..@$2 = '(concat @0$1..@+2$1) With a remote table you can not use the simple solution. Michael As mentioned in my emails a while ago, @ still evaluates to the number of rows in the current table (from where the reference is being made) instead of the number of rows in the remote table being referenced. http://imgur.com/4W75H Sincerely, -- Sankalp
Re: [O] Using last row in remote table references
Hi Michael, On 13 January 2012 09:21, Michael Brand michael.ch.br...@gmail.com wrote: Hi Sankalp On Fri, Jan 13, 2012 at 04:30, Sankalp sankalpkh...@gmail.com wrote: I'm using org 7.8.03 but the issue is still there. I can not reproduce with release_7.8.02-13-g0c09a.dirty: || | Amount | || |130 | || || || #+TBLFM: @2$1=remote(xyz,@$1) #+TBLNAME: xyz || | -200 | |120 | |-75 | | -5 | |130 | || Maybe check your Org mode installation upgrade, make etc. Search for M-x locate-library RET org for more information. Turns out it was indeed the issue. I was working on one of the machines where I still had an older version of org. Thanks, --- Sankalp
Re: [O] Capitalisation and good taste ?
2012/1/11 Eric S Fraga e.fr...@ucl.ac.uk pin...@iro.umontreal.ca (François Pinard) writes: [...] Should I say, I notice a strong correlation between rotten software and the lack of attention to such details. I'm not saying that avoiding trailing white space is a guarantee of good software. But I'm saying that people unwilling to pay attention to details are not prone to pay attention for a lot of other things, which is not good for software. What is interesting, to me, is that some of these details come down to style preferences *and* that these preferences can change dramatically over time. I have been programming for 35+ years and it's scary to see how my preferences have changed, sometimes cycling several times with a period of 5 or more years! I am thinking especially about things like indentation rules, blank lines, multi-line versus single line comments, variable names, case (cf. this thread), etc. Of course, the language in use affects the choices available but there are always choices, none of which is automatically and permanently correct. cheers, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1 : using Org-mode version 7.8.03 (release_7.8.03.73.gd2b3d) Thanks for the awesome Donald Knuth Video François, a must watch for folks who love TeX and its wrappers. Don't have much to say for the Caps convention, except that the criterion suggested by Bastien seems fair enough. Regards, Sankalp
Re: [O] Bastiens talk
On 15 December 2011 08:22, Rustom Mody rustompm...@gmail.com wrote: On Wed, Dec 14, 2011 at 11:08 PM, Bastien b...@altern.org wrote: Hi Rustom, Rustom Mody rustompm...@gmail.com writes: I was wondering if there is any brief index into the talk? [I thought I saw something yesterday but cant seem to find it today :-) ] Not sure what you mean by index -- some timeline with timecodes and related topics? Yeah yeah... I remember seeing something like that a day ago -- just 3-4 lines Are you referring to the Google+ links Bastien posted? https://plus.google.com/u/0/102778904320752967064/posts/LQHZRPa1RJE https://plus.google.com/u/0/102778904320752967064/posts/C1PYiVKwGT8 HTH -- Bastien -- Sankalp
Re: [O] Including source code *from* a file in #+BEGIN_SRC blocks
On 11 December 2011 21:30, Eric Schulte eric.schu...@gmx.com wrote: Sankalp sankalpkh...@gmail.com writes: Hi, I've been using org mode's #+BEGIN_SRC ... code #+END_SRC feature to display source code. I was wondering if there's a way to include code from an external file. Like the *\lstinputlisting* feature in the LaTeX *listings* package. You could write a code block which when executed wraps the file's contents in a code block which is then inserted into the Org-mode buffer. For example if your external file is named foo.c and holds C code the following #+begin_src sh :exports results :results raw output echo #+BEGIN_SRC C cat foo.c echo #+END_SRC #+end_src will insert its contents into the buffer during every export. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/ Thanks a lot Eric, though I got it working with what Puneeth suggested earlier :) -- Sankalp
[O] Including source code *from* a file in #+BEGIN_SRC blocks
Hi, I've been using org mode's #+BEGIN_SRC ... code #+END_SRC feature to display source code. I was wondering if there's a way to include code from an external file. Like the *\lstinputlisting* feature in the LaTeX *listings* package. I have a source code file that keeps getting modified, and each time I publish my project to the web (htmlize), I'd like to have the latest version of it in my source code block instead of having to copy-paste its contents each time. --- Sankalp