Re: [O] using org-refile to sort research notes?
Richard and Alan, Thanks for the feedback. It looks like this is turning into a larger discussion of how to organize a workflow for writing a book. Which is great - I could use some insight. My problem is I have dozens of disparate files, each created in a different moment of inspiration and each containing notes, strategizing, or actual writing for the book. Richard: You have all your notes in one notes.org file, and you have another file e.g. writing.org for actual writing? How do you then work - do you, say, split your frame into side-by-side windows, writing in the right window while working off of notes from the left? And to anyone using org-mode for book writing: Do you put thoughts about structure, tone, and objectives for each section along with the research notes? Do you make use commenting at all? If this is off-topic for the list, I'd be happy to discuss them off-list via email. Or if there's interest, I could create a separate list for 'org-mode for writers.' Thanks again, Jay --- Jay Dixit jaydixit.com (646) 355-8001 ᐧ
Re: [O] Keyboard macro and org-mode
On Mon, May 05, 2014 at 02:47:23PM +1000, Alan Tyree wrote: I was trying to build a keyboard macro to remove targets of the form sec:some_title When in org-mode, emacs hangs after C-s . If I turn off org mode and use a simple text mode, the keyboard macro works ok. Is this a bug or am I doing something pretty dumb? Would help if you shared the macro. Some ideas for troubleshooting: 1. you can inspect and re-edit the macro by calling `edit-last-kbd-macro', 2. you can name the last macro with `name-last-kbd-macro', you can then get the lisp source and save it in .emacs with `insert-kbd-macro' (see: (info (emacs) Save Keyboard Macro)). Hope this helps, -- Suvayu Open source is the future. It sets us free.
[O] Export Agenda to Google Calendar ICS Format
Cross-posted from http://stackoverflow.com/questions/23463962/emacs-export-calendar-bad-timezone-format-in-ics Using orgmode I export my agenda to an ics file, upload it to my site, and import it into Google calendar. This seems like an easy ideal solution, but when I check the calendar I find that it is not recognizing the time zone of my ics file and so is assuming GMT, making my imported times uselessly off. The problem seems to be the same as the one described here: http://blog.jonudell.net/2011/10/17/x-wr-timezone-considered-harmful/ Checking my exported ics, sure enough, it is using X-WR-TIMEZONE:EST, which Google calendar does not respect. This must be a well-known problem, but I haven't been able to locate a solution anywhere. Help would be appreciated: how can I get the right time on my events (and they must be a feed; the add to calendar trick is no good)?
Re: [O] [RFC] Rewrite indentation functions
Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: One last thing! In the course of this I also noticed that, in a buffer that contains a broken property drawer, you can't set properties on *any* other heading. When `org-buffer-property-keys' goes looking for valid keys used elsewhere in the current buffer, it calls `org-get-property-block' on the broken drawer, and errors when that function returns nil. I tried changing the call to (org-get-property-block nil nil t), and that seems to solve it: at least the broken drawer is repaired, and I can successfully set properties. Dunno if that's the right way to handle it, though. IIUC, this problem is unrelated to indentation. Would you mind starting a new thread for this, with an ECM? Thank you. Regards, -- Nicolas Goaziou
Re: [O] using org-refile to sort research notes?
Hi Jay, Regarding org-refile: I just keep all my current projects in my agenda list. I then set up org-refile-targets to (org-agenda-files :maxlevel . 6). This allows me to quickly refile a subtree to any subtree in any project that I am currently working on. (I use this frequently to organize my reading list, but I also use it to organize todos and reorganize sections in my thesis). I also found that setting org-outline-complete-in-steps to nil and setting org-agenda-use-outline-path to t makes refile much quicker. I just call org-refile and then begin typing the name of the top-level header that I want. I can then use tab completion to get to any subtree I want. If you have many identical top level headers this may not be an ideal setup, but for me it works well. To make this process faster I use org-speed-commands, and I have even added a key-chord shortcut for org-refile so I do not have to be at the beginning of the headline to refile. One of my projects for today is to organize some free writing I did before I developed my current system, and this setup will make the process much quicker. Now regarding workflow. I use four files to organize my thesis and other projects. I have a Readinglist.org file that contains all of the sources for research. This is organized by topic, and tagged with various todo states (FIND READ ANNO | NOTES). I keep many of my generic notes on the topics in a few notes headlines at the beginning of each topic. A subtree view of a headline from this file might look something like this: * Moral Responsibility ** Goals for these Texts ** Important Claims Supported by Multiple Sources *** Claim 1... *** Claim 2 ... ** Important Quotes . . . ** Other Notes . . . ** Sources *** READ Kant's Account of Imputation, By Famous Kant Scholar. . . . I also use org-bibtex to keep bibtex info in each source subtree, and I can create a current bibtex file whenever I need. Then I have my Thesis-projects.org file. It has an outline of my thesis and todo states for each section. I set up an org capture template for this file, so if I think of something that I need to do while I am writing I can quickly capture a todo that links to the subtree I am working in. It goes into the inbox for this file and then at the end of the week, I organize these todos into the appropriate subtree with org-refile. I also have a GTD.org fil. It contains all the projects and todos that are not directly related to the thesis, and I have an org-capture template set up to the inbox of this file. It is not technically part of my writing workflow, but if I remember that I have to pick up groceries after my workday, I allows me to quickly capture a todo, and get back to work with a clear mind. Finally I have my Thesis.org file. It contains my thesis as well as notes specific to each chapter, and old drafts of chapters that I have not yet completely rewritten. The notes go in a COMMENT subtree at the beginning of each chapter, and the old drafts go in an Old Drafts tree tagged :noexport:. (I find it most useful to have my notes and old drafts right at hand for writing, but Richard's solution seems reasonable as well.) When it comes to actual drafting I use indirect buffers to put my notes for the chapter, or an earlier draft on one side of the screen and my current draft on the other. This allows me to keep distractions at a minimum. Additionally, I tag all todos and readings associated with a particular chapter :chap1:, :chap2:, etc. This allows me to quickly call an agenda that gives me a clear idea of what still needs done for each chapter. Hope that is helpful. All Best, Leonard ᐧ
[O] Bibliography woes!
I'm having no success in getting the bibliography to display in my document, so these are my relevant settings - ╭ │#+LaTeX_HEADER: \usepackage{biblatex} │#+LaTeX_HEADER: \bibliography{/home/boudiccas/.emacs.d/research/references.bib} │#+LaTeX_HEADER: \bibliography{references} ╰ and I'm using XeTeX, Version 3.1415926-2.5-0..3 (TeX Live 2013/Debian) Where I want to have the bibliography is - ╭ │* Bibliography │\printbibliography ╰ and I generate my .tex and .pdf files by C-c C-e l p but the bibliography is not displayed in the pdf. In the *messages* pane, is shown Process completed with errors: [undefined citation] [LaTeX error] And in org-pdf-latex-output it shows this - --8---cut here---start-8--- LaTeX Warning: Citation '4' on page 3 undefined on input line 139. LaTeX Warning: Citation '5' on page 3 undefined on input line 141. LaTeX Warning: Citation '4' on page 3 undefined on input line 149. LaTeX Warning: Citation '6' on page 3 undefined on input line 158. [3] LaTeX Warning: Citation '7' on page 4 undefined on input line 171. --8---cut here---end---8--- But page 3 of what? input line 139 of what? Citation 3 is here --8---cut here---start-8--- @Article{, author = {MacRae K. Pattison J.}, title ={Home chemotherapy.}, journaltitle = {Nursing Times}, year = {2002}, key = {3}, volume = {98}, number = {35}, pages ={34-35}, } --8---cut here---end---8--- It all looks okay to me, except I cant see what the latex warnings relate to. Any ideas folks please? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.4.50.19 signature.asc Description: PGP signature
[O] Change default latex packages
Hello, How can I change the default packages that are used in LaTeX export? I'm running Org-mode version 8.2.6 (release_8.2.6-937-g60502a). Thanks, Roger
Re: [O] Bibliography woes!
I'm having no success in getting the bibliography to display in my document, so these are my relevant settings - ╭ │#+LaTeX_HEADER: \usepackage{biblatex} │#+LaTeX_HEADER: \bibliography{/home/boudiccas/.emacs.d/research/references.bib} │#+LaTeX_HEADER: \bibliography{references} ╰ Although I cannot be sure, it seems to me that the problem may be that biblatex is not looking for references.bib in the right place. I had similar trouble when I started using citations (then with bibtex). I then solved it by create a link to the bib file in the working directory, and continue to use that solution for everything I write. In your working directory, where you org file is, just create a symbolic link: ln -s /home/boudiccas/.emacs.d/research/references.bib references.bib If my diagnosis is correct, that should solve the problem. Vikas
[O] [BUG] [babel] in :eval never with :session
The error is back: When one header in a subtree which has the header argument :eval never has the same name as in a following subtree which should be evaluated on export, the second subtree is not exported. When the name of the header is changed, the subtree is exported as expected. --8---cut here---start-8--- #+PROPERTY: exports both #+PROPERTY: session *tmp_R* * Some non-evaluated code :PROPERTIES: :eval: never :END: ** This is the same header #+BEGIN_SRC R cat(\ntwo\n) #+END_SRC * Data Assessment Results ** This is the same header If the name of the header is changed, the subtree is evaluated on export. #+begin_src R cat(\nhere it is \n) #+end_src --8---cut here---end---8--- Org-mode version 8.2.6 (release_8.2.6-920-gc6d698 @ /Users/rainerkrug/.emacs.d/org-mode/lisp/) GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 AppKit 1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local Cheers, Rainer -- 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 PGP: 0x0F52F982 pgpf4sluezPar.pgp Description: PGP signature
Re: [O] Bibliography woes!
Hi, Sharon Kimble wrote: But page 3 of what? input line 139 of what? Page 3 of the PDF and input line 139 of the .tex file. It all looks okay to me, except I cant see what the latex warnings relate to. Any ideas folks please? The most likely problem is that you have you have not called bibtex (or biber) the appropriate number of times and so your references have not been processed correctly. The way to check this is to run bibtex or biber (whichever you use, your setup looks like it was designed for bibtex so bibtex is probably the one you want) on your .tex file and then call xelatex again, and see if the errors go away. If that is the problem. You should look at how you have set up org-latex-pdf-process to make sure that it calls xelatex and bibtex the appropriate number of times. (another option is to use latexmk, it is really convenient, but it takes a bit of work to configure it properly). All best, Leonard
[O] Folding in iESS R buffer
Hi I have modified the variable transfer in ob-R.el so that the variable transfer code is enclosed as can be seen below. My idea is that I can fold the R output so that the variable transfer is collapsed. I understand that I can use one of the org-outside-org minor modes [1] (presumibly utshine?) - but I can't figure out how. My questions are: 1) which enclosing should I use to fold the transfer code away? 2) which minor mode should I use for this and how can I configure it? Cheers, Rainer --8---cut here---start-8--- ## ## Beginning org variable transfer try(detach(.org_variables_), silent=TRUE) .org_variables_ - new.env() assign( 'COLUMNS', read.table(/var/folders/50/wcr5bjwn75q595n6x82gxj28gn/T/babel-74428N93/R-import-74428U4A, header=TRUE, row.names=1, sep=\t, as.is=TRUE ), envir = .org_variables_ ); lockBinding('COLUMNS', .org_variables_) assign( 'COLS_TO_EVAL', read.table(/var/folders/50/wcr5bjwn75q595n6x82gxj28gn/T/babel-74428N93/R-import-74428hCH, header=TRUE, row.names=1, sep=\t, as.is=TRUE ), envir = .org_variables_ ); lockBinding('COLS_TO_EVAL', .org_variables_) assign( 'ALLSPECIES', read.table(/var/folders/50/wcr5bjwn75q595n6x82gxj28gn/T/babel-74428N93/R-import-74428uMN, header=TRUE, row.names=1, sep=\t, as.is=TRUE ), envir = .org_variables_ ); lockBinding('ALLSPECIES', .org_variables_) assign( 'SPECIES', read.table(/var/folders/50/wcr5bjwn75q595n6x82gxj28gn/T/babel-74428N93/R-import-744287WT, header=TRUE, row.names=1, sep=\t, as.is=TRUE ), envir = .org_variables_ ); lockBinding('SPECIES', .org_variables_) assign( 'YEARS', read.table(/var/folders/50/wcr5bjwn75q595n6x82gxj28gn/T/babel-74428N93/R-import-74428IhZ, header=TRUE, row.names=1, sep=\t, as.is=TRUE ), envir = .org_variables_ ); lockBinding('YEARS', .org_variables_) assign('PRESENT', 2008, envir = .org_variables_); lockBinding('PRESENT', .org_variables_) assign('MINEFFORT', 3, envir = .org_variables_); lockBinding('MINEFFORT', .org_variables_) assign('PROPTRAIN', 0.6, envir = .org_variables_); lockBinding('PROPTRAIN', .org_variables_) assign('RNGSEED', 13, envir = .org_variables_); lockBinding('RNGSEED', .org_variables_) assign('RNGKIND', Mersenne-Twister, envir = .org_variables_); lockBinding('RNGKIND', .org_variables_) assign('RNGNORMALKIND', Inversion, envir = .org_variables_); lockBinding('RNGNORMALKIND', .org_variables_) assign('REFGRID', ./refGrid_8km.rds, envir = .org_variables_); lockBinding('REFGRID', .org_variables_) assign('IFN', ./__BOX__/IFN/DB_IFN/rds/tabplot.rds, envir = .org_variables_); lockBinding('IFN', .org_variables_) assign('IFNCOUNT', ./__BOX__/IFN/DB_IFN/rdsRasterized/tabplot.count.8km.rds, envir = .org_variables_); lockBinding('IFNCOUNT', .org_variables_) assign('IFNMEAN', ./__BOX__/IFN/DB_IFN/rdsRasterized/tabplot.mean.8km.rds, envir = .org_variables_); lockBinding('IFNMEAN', .org_variables_) assign('IFNPRES', ./__BOX__/IFN/DB_IFN/rdsRasterized/tabplot.pres.8km.rds, envir = .org_variables_); lockBinding('IFNPRES', .org_variables_) assign('IFNSD', ./__BOX__/IFN/DB_IFN/rdsRasterized/tabplot.sd.8km.rds, envir = .org_variables_); lockBinding('IFNSD', .org_variables_) assign('IFNTABTREE', ./__BOX__/IFN/DB_IFN/rds/tabtree.rds, envir = .org_variables_); lockBinding('IFNTABTREE', .org_variables_) lockEnvironment(.org_variables_) attach(.org_variables_) save(.org_variables_, file='org_variables.RData') ## end org variable transfer ## --8---cut here---end---8--- Footnotes: [1] http://orgmode.org/worg/org-tutorials/org-outside-org.html -- 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 PGP: 0x0F52F982 pgpaSFaqalLVc.pgp Description: PGP signature
[O] Follow up on bug
Hi all, I just wanted to follow up on a bug that I posted. It was caused by a series of changes to org-insert-headline. My original post was buried in a particularly long exchange (http://thread.gmane.org/gmane.emacs.orgmode/84564/focus=85798), so it may have been missed. The problem is that if you call M-RET at the beginning of a blank line, it will always give you a first level header. This was caused by a fix to a previous more minor bug that I reported (Calling M-RET at the beginning of a regular line would put a header above this line rather than turning the line itself into a header). Anyway the bug can be fixed by reverting commit 0ca4092. Reverting the fourth hunk of commit b8c85a1 should fix the original bug that commit 0ca4092 was trying to address. All best, Leonard
Re: [O] Including headlines in export with specific tags AND no tags?
Hi Leonard Thanks for the tip. I am exporting via Emacs's batch mode so I wrote a short elisp function: (defun org-export-non-greedy-select-tags (lst) Workaround to export a .org file with headlines that contain tags in `lst` AND headlines that have no tags (let (all-buffer-tags) (setq all-buffer-tags (apply #'append (org-get-buffer-tags))) (dolist (tag lst) (delete tag all-buffer-tags) ) (setq org-export-exclude-tags all-buffer-tags) ) ) On Sun, May 4, 2014 at 2:49 PM, Leonard Avery Randall leonard.a.rand...@gmail.com wrote: Hi Rehan, Rehan Iftikhar wrote: I'd like to export a .org file which includes all headlines without any tags AND headlines with selected tags. Headlines with tags which do not match the specified list are skipped. I am not sure exactly how to elegantly do what you wish to do, but if your tag list is not too extensive, you may be able to simply exclude all the tags you don't want. If you do not currently have a complete list of tags, you can get one by attempting to add a tag to headline by calling C-q and then pressing tab. That should give you a completions buffer with a list that includes all tags in the current .org file. Then just add all the tags you don't want to org-export exclude tags or to an #+EXCLUDE_TAGS line. It's not elegant but it should work. Hope this helps, All the best, Leonard Rehan Iftikhar rehan.iftik...@gmail.com May 4, 2014 at 10:06 PM Hello I'd like to export a .org file which includes all headlines without any tags AND headlines with selected tags. Headlines with tags which do not match the specified list are skipped. My testing so far reveals that setting org-export-select-tags only selects headlines which strictly match the specified tag list. I have tried including nil, an empty string, and an empty string with a space in the specified tag list without any luck. Does anyone know if this is currently possible? Thanks, -Rehan -- -Rehan
[O] Non-scheduled repeating tasks
Hi, I've been thinking about how to integrate tasks which are to some extent tracked elsewhere into my org-mode workflow, such as for example read N chapter of book A or watch K video lectures at X. I'd like a way to describe in org-mode that a task should be completed a number of times, and then have org-mode let the task recur a number of times, possibly with a cool-down period (but that's not really necessary). The normal progress cookies % and / would preferrably be used to indicate progress in the TODO headings themselves. 1. Has something like this been attempted by anyone else before? 2. Which org-mode hooks would be a good place to start integrating something that would both potentially block TODO transitions and have to read/write properties and/or special drawers in org-mode? At first, I thought that the problem could be trivially solved with the org-blocker-hook, but I realised that it said it shouldn't update the org buffers, and my function needs to in order to update the state for blocked tasks (e.g. increment the counter). Thanks in advance! Albin
Re: [O] Bibliography woes!
Leonard Avery Randall leonard.a.rand...@gmail.com writes: Hi, Sharon Kimble wrote: But page 3 of what? input line 139 of what? Page 3 of the PDF and input line 139 of the .tex file. It all looks okay to me, except I cant see what the latex warnings relate to. Any ideas folks please? The most likely problem is that you have you have not called bibtex (or biber) the appropriate number of times and so your references have not been processed correctly. The way to check this is to run bibtex or biber (whichever you use, your setup looks like it was designed for bibtex so bibtex is probably the one you want) on your .tex file and then call xelatex again, and see if the errors go away. If that is the problem. You should look at how you have set up org-latex-pdf-process to make sure that it calls xelatex and bibtex the appropriate number of times. (another option is to use latexmk, it is really convenient, but it takes a bit of work to configure it properly). Still not getting it right. This is in my setup-testbed.el --8---cut here---start-8--- ;; org to latex customisations, -shell-escape needed for minted (setq org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch org-latex-pdf-process ; for regular export '(xelatex -shell-escape -interaction nonstopmode -output-directory %o %f bibtex %b xelatex -shell-escape -interaction nonstopmode -output-directory %o %f xelatex -shell-escape -interaction nonstopmode -output-directory %o %f xelatex -shell-escape -interaction nonstopmode -output-directory %o %f xelatex -shell-escape -interaction nonstopmode -output-directory %o %f)) --8---cut here---end---8--- and the partial transcript of the output log --8---cut here---start-8--- LaTeX Warning: Citation '4' on page 3 undefined on input line 135. LaTeX Warning: Citation '5' on page 3 undefined on input line 137. LaTeX Warning: Citation '4' on page 3 undefined on input line 145. LaTeX Warning: Citation '6' on page 3 undefined on input line 154. LaTeX Warning: Citation '7' on page 4 undefined on input line 167. LaTeX Warning: Citation '8' on page 4 undefined on input line 175. LaTeX Warning: Citation '12' on page 4 undefined on input line 204. LaTeX Warning: Citation '7' on page 4 undefined on input line 209. LaTeX Warning: Citation '9' on page 4 undefined on input line 222. LaTeX Warning: Citation '1' on page 5 undefined on input line 259. LaTeX Warning: Citation '3' on page 6 undefined on input line 285. LaTeX Warning: Citation '10' on page 7 undefined on input line 349. LaTeX Warning: Citation '10' on page 7 undefined on input line 400. LaTeX Warning: Citation '13' on page 9 undefined on input line 458. LaTeX Warning: Citation '11' on page 9 undefined on input line 475. LaTeX Warning: Citation '14' on page 9 undefined on input line 495. LaTeX Warning: Citation '14' on page 10 undefined on input line 527. LaTeX Warning: Citation '2' on page 11 undefined on input line 569. LaTeX Warning: Empty bibliography on input line 576. [11] (./uh2014.aux) LaTeX Warning: There were undefined references. Package biblatex Warning: Please (re)run Biber on the file: (biblatex)uh2014 (biblatex)and rerun LaTeX afterwards. --8---cut here---end---8--- and in my org-mode file I have these headers --8---cut here---start-8--- #+LaTeX_HEADER: \usepackage{biblatex} #+LaTeX_HEADER: \usepackage[backend=biber,style=verbose]{biblatex} #+LaTeX_HEADER: \bibliography{/home/boudiccas/.emacs.d/research/references.bib} #+LaTeX_HEADER: \bibliography{references} --8---cut here---end---8--- I have created the link to the reference file in my $USER/.emacs.d/org/ directory using this command ╭ │ln -s /home/boudiccas/.emacs.d/research/references.bib references.bib ╰ Any ideas please folks, or some code to try please? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.4.50.19 signature.asc Description: PGP signature
Re: [O] Change default latex packages
I do not know if this is the best practice, but I do it like this. (setq org-latex-default-packages-alist '((AUTO inputenc t) ( lmodern nil) (T1 fontenc t) ( fixltx2e nil) ;( charter nil) ;; a decent font ;(expert mathdesign nil) ( graphicx t) ( longtable nil) ( float nil) ( wrapfig nil) ( rotating nil) (normalem ulem t) ( amsmath t) ( textcomp t) ( marvosym t) ( wasysym t) ( amssymb t) ( amsmath t) (version=3 mhchem t) (numbers,super,sortcompress natbib t) ( natmove nil) ( url t) ( minted nil) ( underscore t) (linktocpage,pdfstartview=FitH,colorlinks, linkcolor=blue,anchorcolor=blue, citecolor=blue,filecolor=blue,menucolor=blue,urlcolor=blue hyperref nil) ( attachfile nil))) John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Mon, May 5, 2014 at 8:13 AM, Roger Mason rma...@mun.ca wrote: Hello, How can I change the default packages that are used in LaTeX export? I'm running Org-mode version 8.2.6 (release_8.2.6-937-g60502a). Thanks, Roger
Re: [O] exporting α/β to latex/pdf
Hi Nick, On Sun, May 04, 2014 at 06:14:34PM -0400, Nick Dokos wrote: Suvayu Ali fatkasuvayu+li...@gmail.com writes: On Sun, May 04, 2014 at 04:13:45PM +0100, Sharon Kimble wrote: I have these two symbols showing in my org-mode buffer with no problems ╭ │ alpha (ER-α) and beta (ER-β) ╰ but they are not exported to latex/pdf. How then can I do so please? The easiest solution is to use a modern TeX engine like XeTeX or LuaTeX along with a font with the required glyphs. The *easiest* solution is to just say \alpha and \beta in the org file instead of α and β. But biting the bullet and adopting XeTeX or LuaTeX is probably the *best* way to go (he says without ever having used either...) Well put! I really recommend using XeTeX for most things. There are some caveats though. Clipping is a bit iffy, sometimes it warns as not supported but works anyway :-p. Sometimes it has trouble including slightly non-standard pdf images whereas pdfTeX works fine. There are also a few packages here and there that are still not completely supported. IIRC, either one of the TikZ math libraries or a 3rd-party TikZ library (maybe tikz-3dplot) is incompatible. That said, I attached a sample pdf with lots of unicode produced with XeLaTeX and Linux Libertine. As you can see, some glyphs are missing from Linux Libertine, but otherwise it looks pretty good! I personally use XeTeX with Linux libertine fonts. You can find my setup here: https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L176 That is a nice resource - thanks! Glad you like it. :) -- Suvayu Open source is the future. It sets us free. * Unicode with \XeLaTeX :PROPERTIES: :EXPORT_FILE_NAME: unicode.pdf :EXPORT_OPTIONS: texht:t toc:nil :EXPORT_LATEX_CLASS: article :EXPORT_LATEX_HEADER: \usepackage{metalogo} :END: - Particle names: π, Λ_{b}, D^{±}, K₁, K₂, K⁺, K⁻, μ⁻, e⁺ - Decays: B_{s} → D_{s}K, B_{s} → D_{s}π, B_{s} → D_{s}^{*}π - parameters: Γ, ΔΓ, Δm_{s} - Math symbols: ≃, ≥, ≤, ∃, ∈ - Diacritics and characters from other alphabets: naïve, Genève, Åkerman, þingvellir - Currencies: £, €, ¢, ₹, ¥ unicode.pdf Description: Adobe PDF document
Re: [O] Bibliography woes!
Any ideas please folks, or some code to try please? I use #+LATEX_HEADER: \usepackage[citestyle=authoryear-icomp,bibstyle=authoryear,hyperref=true,backref=true,maxcitenames=3,url=true,backend=biber,natbib=true]{biblatex} Can you try this, and if it works, modify as you prefer. Also, as Leonard suggested, I would create a tex file, and work on it from the terminal to see what is wrong. Compile the tex file, run biber and then compile the tex file again. This would help identify what is wrong. Vikas
Re: [O] Bibliography woes!
Hi Sharon, Your setup seems to only call bibtex once. I find that with biblatex this is usually not enough to resolve references. I would call bibtex a second time after the second run of biblatex. All best, Leonard
[O] Bug with subscripts and superscripts
Hi. I think there's a bug in org-mode, related with subscripts and superscripts. This is the problem: pastie.org/9142947 And here's the related documentation page: http://www.gnu.org/software/emacs/manual/html_node/org/Subscripts-and-superscripts.html To avoid interpretation as raised or lowered text, you can quote ‘^’ and ‘_’ with a backslash: ‘\^’ and ‘\_’. I think that's not working (adding a backlash to avoid interpretation of raised or lowered text). I'm using 24.3.50.1 with Xubuntu.
Re: [O] Change default latex packages
On Monday, 5 May 2014 at 09:43, Roger Mason wrote: Hello, How can I change the default packages that are used in LaTeX export? If you want to add some to the default, you can modify org-latex-packages-alist. If you want to remove some from the default list (not recommended), check out org-latex-default-packages-alist. C-h v org-latex-packages-alist RET is your friend here! HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] First attempt at exporting to PDF.
On Saturday, 3 May 2014 at 16:55, Sharon Kimble wrote: [...] Secondly, none of my bibliographic references show in the pdf except as ?, although I cite them like this males have more testosterone \cite{6}. which correlates with this - @Article{, Your problem (both in this email and in the other thread you have started related to bibtex) is that you have not given the bibtex entry a label. This is the bit that goes between the { and the , in the line above and is what is used to cite the article in LaTeX. You should have something like this: @Article{paperbyjoebloggs2014, [...] } which you then refer to in your LaTeX with \cite{paperbyjoebloggs2014}. If you sort this out, you will find that everything else should be fine (given the various emails in this and the other thread). author = {MacRae K. Pattison J.}, title = {Home chemotherapy.}, journaltitle = {Nursing Times}, ALTyear ={2002}, OPTkey = {6}, OPTvolume = {98}, OPTnumber = {35}, OPTpages = {34-35}, I assume you have been using bibtex mode in Emacs to define these? If so, you need to C-c C-c on each entry to get rid of the OPT bit automatically. The actual entries are key, volume, number and pages... HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] exporting α/β to latex/pdf
The *easiest* solution is to just say \alpha and \beta in the org file instead of α and β. But biting the bullet and adopting XeTeX or LuaTeX is probably the *best* way to go (he says without ever having used either...) For those who stick with pdflatex, you can also use α directly in the org document, and define #+latex_header: \usepackage[utf8]{inputenc} #+latex_header: \declareunicodecharacter{03b1}{α} Provided your file is indeed encoded in utf-8 (but why would you use any other encoding?) This simply tells the compiler to bind α to the unicode character greek small letter alpha (U+03B1). If there is a lot of unicode in the document, XeTeX/LuaTeX are definitely better choices. Clément
Re: [O] Seeking advice on a worg contribution
On Sunday, 4 May 2014 at 09:38, James Harkins wrote: I finally finished a draft (attached, and not carefully proofread yet) of a new worg page to outline what I had to do for a big Beamer publishing project. Interesting and very useful document. Thanks! Could somebody look it over and advise of any formatting problems? I guess it should be basically OK; I copied the standard worg header, and I stuck to normal org markup throughout. The only thing I would suggest is changing H:2 to H:3 as your 3rd level headings are being converted into bullet list items. A specific formatting question: I have several source code blocks with captions. The captions are formatted exactly the same as normal paragraphs. Will worg use a different CSS style for captions? If not, what do I have to do to make it do that? (At least, display the captions slightly smaller.) The HTML code produced by the normal HTML export, which is what I assume Worg uses, has the captions as special label classes (org-src-name) so CSS could easily be defined if not there already. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] Bibliography woes!
Vikas Rawal vikasli...@agrarianresearch.org writes: Any ideas please folks, or some code to try please? I use #+LATEX_HEADER: \usepackage [citestyle=authoryear-icomp,bibstyle=authoryear,hyperref=true,backref=true,maxcitenames=3,url=true,backend=biber,natbib=true]{biblatex} Can you try this, and if it works, modify as you prefer. Also, as Leonard suggested, I would create a tex file, and work on it from the terminal to see what is wrong. Compile the tex file, run biber and then compile the tex file again. This would help identify what is wrong. How do I do it from the command-line please? Using what commands? I can do it from inside org-mode, and I've created a test file and bib references, details now. This is the test file --8---cut here---start-8--- # -*- mode:org; mode:reftex; indent-tabs-mode:nil; tab-width:2 -*- #+OPTIONS: toc:nil num:nil #+OPTIONS: ^:{} #+TITLE: Cat on the mat - 2014 #+AUTHOR: Sharon Kimble Sarah ? #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [a4paper] #+LATEX_HEADER: \usepackage [citestyle=authoryear-icomp,bibstyle=authoryear,hyperref=true,backref=true,maxcitenames=3,url=true,backend=biber,natbib=true]{biblatex} # #+LATEX_HEADER: \usepackage[hyperref,x11names]{xcolor} # #+LATEX_HEADER: \usepackage[colorlinks=true]{hyperref} #+LaTeX_HEADER: \usepackage{bussproofs} #+LaTeX_HEADER: \usepackage{amsmath,amssymb,amsopn} #+LaTeX_HEADER: \usepackage{graphicx} #+LaTeX_HEADER: \usepackage{makeidx} %robustindex % Indexing #+LaTeX_HEADER: \usepackage[british]{babel} % For british english hyphenation patterns #+LaTeX_HEADER: \usepackage{fancyhdr} % Change caption style; changes headers and page styles # #+LaTeX_HEADER: \usepackage{biblatex} # #+LaTeX_HEADER: \usepackage[backend=bibtex,style=verbose]{biblatex} #+LaTeX_HEADER: \bibliography{/home/boudiccas/.emacs.d/research/cat.bib} #+LaTeX_HEADER: \bibliography{references} \pagebreak * Chapter 1 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius \cite{1}. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. * Chapter 2 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. * Bibliography \printbibliography * Index --8---cut here---end---8--- and this is the bibliography file --8---cut here---start-8--- @Article{, author = {MacRae K. Pattison J.}, title ={Home chemotherapy.}, journaltitle = {Nursing Times}, year = {2002}, key = {1}, volume = {98}, number = {35}, pages ={34-35}, } --8---cut here---end---8--- and this is the pdf output file --8---cut here---start-8--- This is XeTeX, Version
[O] Using KOMA and Memoir?
I have tried to get KOMA and Memoir work in Org-mode. In short: I only get error messages telling me they are unknown LaTeX classes. I have looked in the archives with little success. All I find is a KOMA letter thing. I have looked all over the web (no, not really) but with little success. I am in the middle of a small project for which I think KOMA's article class is a better choice than the ordinary article class. How do I make it work? Is it even possible? This hobby, not work, so don't drop everything you are doing to help me. -- Martin Schöön http://hem.bredband.net/b262106/index.html
Re: [O] Change default latex packages
Thanks John, I now have what I want. Roger
Re: [O] Change default latex packages
Thanks Eric. Filed away for future reference. Roger
[O] enumerate in LaTeX export
Hello, I don't understand why this text: === case. The University requests that all medical notes be on letterhead, be signed by the physician and include details on the following: 1. confirmation of the specific dates on which the student visited the physician. 2. the degree to which the illness (or treatment, in the case of medication, for example) is likely to have affected the student's ability to study, attend classes, or sit examination. == Results in this LaTeX output: == \begin{enumerate} \item confirmation of the specific dates on which the student visited \end{enumerate} the physician. \begin{enumerate} \item the degree to which the illness (or treatment, in the case of \end{enumerate} medication, for example) is likely to have affected the student's ability to study, attend classes, or sit examination. \begin{enumerate} == I'm running release_8.2.6-937-g60502a in GNU Emacs 24.3.1 (amd64-portbld-freebsd10.0, GTK+ Version 2.24.22). Thanks for any help. Roger
Re: [O] enumerate in LaTeX export
On Monday, 5 May 2014 at 15:33, Roger Mason wrote: Hello, I don't understand why this text: === case. The University requests that all medical notes be on letterhead, be signed by the physician and include details on the following: 1. confirmation of the specific dates on which the student visited the physician. Continuation lines of a list item need to be indented so you should have: 1. confirmation of the specific dates on which the student visited the physician. 2. the degree to which the illness (or treatment, in the case of medication, for example) is likely to have affected the student's ability to study, attend classes, or sit examination. for instance. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] Bibliography woes!
On Monday, 5 May 2014 at 18:08, Sharon Kimble wrote: [...] How do I do it from the command-line please? Using what commands? I can do it from inside org-mode, and I've created a test file and bib references, details now. Sharon, have you not seen my other email? Your problem is the actual bibtex entry is wrong, missing the label that is needed to be able to cite it in LaTeX. [...] lectores legere me lius quod ii legunt saepius \cite{1}. Claritas est etiam processus [...] and this is the bibliography file @Article{, change this line to @Article{1, although I would recommend a more description label personally... -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] Using KOMA and Memoir?
On Monday, 5 May 2014 at 19:36, Martin Schöön wrote: I have tried to get KOMA and Memoir work in Org-mode. In short: I only get error messages telling me they are unknown LaTeX classes. It would help to know what you have actually tried. I have the following in my org customisation files: #+begin_src emacs-lisp (add-to-list 'org-latex-classes '(komaarticle \\documentclass{scrartcl} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) #+end_src which defines the komaarticle class to use scrartcl from koma. In the org file, I then have #+begin_src org ,#+latex_class: komaarticle #+end_src HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] enumerate in LaTeX export
Thanks for sharing that. I've been letting long-lines wrap so that they are exported correctly. Not the worst solution what you describe is nicer. Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi gret...@acm.org | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Mon, May 5, 2014 at 1:23 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Monday, 5 May 2014 at 15:33, Roger Mason wrote: Hello, I don't understand why this text: === case. The University requests that all medical notes be on letterhead, be signed by the physician and include details on the following: 1. confirmation of the specific dates on which the student visited the physician. Continuation lines of a list item need to be indented so you should have: 1. confirmation of the specific dates on which the student visited the physician. 2. the degree to which the illness (or treatment, in the case of medication, for example) is likely to have affected the student's ability to study, attend classes, or sit examination. for instance. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] enumerate in LaTeX export
Many thanks, Eric. That did indeed fix the problem. Roger
Re: [O] exporting α/β to latex/pdf
Your example is quite motivating. With so many LaTeX sitting around its been hard to justify switching to the seemingly awesome XeTeX and LuaTeX despite the niceties. Being able to just do Unicode though... very nice especially from Org to TeX! Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi gret...@acm.org | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Mon, May 5, 2014 at 10:06 AM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: Hi Nick, On Sun, May 04, 2014 at 06:14:34PM -0400, Nick Dokos wrote: Suvayu Ali fatkasuvayu+li...@gmail.com writes: On Sun, May 04, 2014 at 04:13:45PM +0100, Sharon Kimble wrote: I have these two symbols showing in my org-mode buffer with no problems ╭ │ alpha (ER-α) and beta (ER-β) ╰ but they are not exported to latex/pdf. How then can I do so please? The easiest solution is to use a modern TeX engine like XeTeX or LuaTeX along with a font with the required glyphs. The *easiest* solution is to just say \alpha and \beta in the org file instead of α and β. But biting the bullet and adopting XeTeX or LuaTeX is probably the *best* way to go (he says without ever having used either...) Well put! I really recommend using XeTeX for most things. There are some caveats though. Clipping is a bit iffy, sometimes it warns as not supported but works anyway :-p. Sometimes it has trouble including slightly non-standard pdf images whereas pdfTeX works fine. There are also a few packages here and there that are still not completely supported. IIRC, either one of the TikZ math libraries or a 3rd-party TikZ library (maybe tikz-3dplot) is incompatible. That said, I attached a sample pdf with lots of unicode produced with XeLaTeX and Linux Libertine. As you can see, some glyphs are missing from Linux Libertine, but otherwise it looks pretty good! I personally use XeTeX with Linux libertine fonts. You can find my setup here: https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L176 That is a nice resource - thanks! Glad you like it. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] Using KOMA and Memoir?
On 5 May 2014 20:31, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Monday, 5 May 2014 at 19:36, Martin Schöön wrote: I have tried to get KOMA and Memoir work in Org-mode. In short: I only get error messages telling me they are unknown LaTeX classes. It would help to know what you have actually tried. I have the following in my org customisation files: #+begin_src emacs-lisp (add-to-list 'org-latex-classes '(komaarticle \\documentclass{scrartcl} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) #+end_src which defines the komaarticle class to use scrartcl from koma. In the org file, I then have #+begin_src org ,#+latex_class: komaarticle #+end_src HTH, eric Thanks Eric, that was quick. I will try it but not tonight, too tired. And I have to figure out what an org customisation file is. So far I have only modified my .emacs. Sorry for my brevity. What I tried was the first thing I could think of: #+LATEX_CLASS: memoir end #+LATEX_CLASS: scrartcl neithor of which worked. -- Martin Schöön http://hem.bredband.net/b262106/index.html
[O] epstopdf dependency for ob-lilypond
Org mode hackers, I'd like to suggest that epstopdf (or the containing package, which is texlive-font-utils on Debian) be listed as a dependency for Org-Babel LilyPond. Without epstopdf, the results of evaluating LilyPond code blocks appear in an exported PDF as boxes containing the text `NAME-eps-converted-to.pdf'. Thanks, Thomas
Re: [O] Export to iCalendar only not DONE, scheduled tasks?
Hi I've been searching round the manual, and blogs, to find a way to do this. I want to export all of the scheduled/deadline tasks that are not in a DONE state to an iCalendar file. Can this be done? pretty sure this can be done. I export only events to an ics file that have a start and an end date and are not in a certain category. For this I use (defun org-mycal-export-limit (content backend info) Limit the export to items that have a date, time and a range. Also exclude certain categories. (when (eq backend 'icalendar) (setq org-tst-regexp \\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} ... [0-9]\\{2\\}:[0-9]\\{2\\}[^\r\n]*?\\)) (setq org-tstr-regexp (concat org-tst-regexp --?-? org-tst-regexp)) (save-excursion ; get categories (setq mycategory (org-get-category)) ; get start and end of tree (org-back-to-heading t) (setq mystart(point)) (org-end-of-subtree) (setq myend (point)) (goto-char mystart) ; search for timerange (setq myresult (re-search-forward org-tstr-regexp myend t)) ; search for categories to exclude (setq mycatp (member mycategory org-export-exclude-category)) ; return text if ok, nil when not ok (if (and myresult (not mycatp)) content nil (defun org-mycal-export () (let ((org-export-filter-final-output-functions '(org-mycal-export-limit))) (org-icalendar-combine-agenda-files))) NB org-export-exclude-category is defined somewhere else You can look up org-export-filter-final-output-functions and other hooks at http://orgmode.org/worg/doc.html. I overwrite that hook and have it return the content if I like the item and skip it by returning nil if I don't like it. You can probably use org-entry-is-done-p or org-get-todo-state to figure out if your entry is DONE or not and org-get-scheduled-time/ org-get-deadline-time to figure out if it's scheduled. HTH Arun
Re: [O] Export Agenda to Google Calendar ICS Format
Hi On 05/05/2014 02:24 AM, Tory S. Anderson wrote: Cross-posted from http://stackoverflow.com/questions/23463962/emacs-export-calendar-bad-timezone-format-in-ics Using orgmode I export my agenda to an ics file, upload it to my site, and import it into Google calendar. This seems like an easy ideal solution, but when I check the calendar I find that it is not recognizing the time zone of my ics file and so is assuming GMT, making my imported times uselessly off. The problem seems to be the same as the one described here: http://blog.jonudell.net/2011/10/17/x-wr-timezone-considered-harmful/ Checking my exported ics, sure enough, it is using X-WR-TIMEZONE:EST, which Google calendar does not respect. This must be a well-known problem, but I haven't been able to locate a solution anywhere. Help would be appreciated: how can I get the right time on my events (and they must be a feed; the add to calendar trick is no good)? I have this in my .emacs file to set the timezone. (setq org-icalendar-timezone America/Los_Angeles) HTH Arun
Re: [O] Keyboard macro and org-mode
Hi Alan, You forgot to cc the list! On Tue, May 06, 2014 at 05:19:05AM +1000, Alan Tyree wrote: Can't do it since I could never get past the first step of the macro. It was intended to be a dead simple throw away: Search for ssec: (this is where emacs hangs when defining the macro) Go to beginning of line Delete line. (All of the targets are on a single line). Emacs hangs like it is searching, the little circle thingie just keeps going. I can kill the process with multiple punches of C-g. Do you have lots of minor-modes enabled? Maybe one of them is interfering. Is your file very big? Can you replicate with an ECM? Does it have source blocks? Have you tried turning off font-lock-mode; does it succeed then? Just some questions that I could think of. Maybe the answer is lurking here. As I said, no problem in a normal text-mode file. Another nice test would be to record and save the keyboard macro from text-mode and try executing it from org-mode. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] Bibliography woes!
Eric S Fraga e.fr...@ucl.ac.uk writes: On Monday, 5 May 2014 at 18:08, Sharon Kimble wrote: [...] How do I do it from the command-line please? Using what commands? I can do it from inside org-mode, and I've created a test file and bib references, details now. Sharon, have you not seen my other email? Your problem is the actual bibtex entry is wrong, missing the label that is needed to be able to cite it in LaTeX. I'd sent my reply before getting and reading your email, sorry Eric. [...] lectores legere me lius quod ii legunt saepius \cite{1}. Claritas est etiam processus [...] and this is the bibliography file @Article{, change this line to @Article{1, although I would recommend a more description label personally... I've set it up with the articles author and year, but it is still failing. I'm attaching the original org file, the generated tex and pdf, and the bib file. Hopefully this will help find a solution? Thanks Sharon. --8---cut here---start-8--- Attachments % Created 2014-05-05 Mon 23:14 \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage[nointegrals]{wasysym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage{libertine} \usepackage{xltxtra} \usepackage{amsmath} \usepackage{bussproofs} \usepackage{amsmath,amssymb,amsopn} \usepackage{graphicx} \usepackage{makeidx} %robustindex % Indexing \usepackage[british, english]{babel} % For british english hyphenation patterns \usepackage{fancyhdr} % Change caption style; changes headers and page styles \usepackage{biblatex} \bibliography{/home/boudiccas/.emacs.d/research/cat.bib} \usepackage[citestyle=authoryear-icomp,bibstyle=authoryear,hyperref=true,backref=true,maxcitenames=3,url=true,backend=biber,natbib=true]{biblatex} \bibliography{references} \author{Sharon Kimble \ Sarah ?} \date{\today} \title{Cat on the mat - 2014} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.4.50.19 (Org mode 8.2.6)}} \begin{document} \maketitle \pagebreak \section*{Chapter 1} \label{sec-1} Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius \cite{MacRae K, et al;2002}. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. \section*{Chapter 2} \label{sec-2} Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. \section*{Bibliography} \label{sec-3} \printbibliography \section*{Index} \label{sec-4} % Emacs 24.4.50.19 (Org mode 8.2.6) \end{document} cat.pdf Description: Adobe PDF document @Article{MacRae K, et al;2002, author = {MacRae K. Pattison J.}, title = {Home chemotherapy.},
Re: [O] Bibliography woes!
Hi, As Henry just noted, one of your main problem is your bibtex key. It should not contain spaces, commas, backslashes, semicolons, or other special characters that might mess up the syntax of the bibtex file. A common convention is to use author:year or if you have many articles by the same authors in the same year you can use author:yeara, author:yearb etc. All best, Leonard
Re: [O] Bibliography woes!
On 2014-05-05 at 19:39, John Hendy wrote: If this works, someone can chime in regarding how to modify Org so that it will run the necessary biber/biblatex commands so you don't have to jump to a command line every time. Or perhaps that's a one time thing -- maybe as long as biber generates the .bbl file, you can refer to anything you want in that file from then on? I've found latexmk to be the best tool for compiling LaTeX documents. It runs all necessary commands as many times as needed, including pdflatex, bibtex, biblatex, etc.. It is fairly smart and will run the command to make the index if you load the index, for example. It can run in daemon mode and monitor the included files (and graphics) so if one of those changes, the PDF is regenerated. I prefer daemon mode, so I bring up a terminal and run latexmk file.tex in the folder where I'm working on file.org. This also speeds things up, since exporting to latex is fast, but compiling is slow. I can export and still use emacs, rather than waiting for the compile to finish. But if you want to run latexmk from Org, that works too. The -pvc- turns off the preview continuous mode (daemon). (setq org-latex-pdf-process (list /usr/texbin/latexmk -f -gg -pvc- %f)) -k.
Re: [O] Seeking advice on a worg contribution
On Tuesday, May 6, 2014 1:04:38 AM HKT, Eric S Fraga wrote: On Sunday, 4 May 2014 at 09:38, James Harkins wrote: I finally finished a draft (attached, and not carefully proofread yet) of a new worg page to outline what I had to do for a big Beamer publishing project. Interesting and very useful document. Thanks! Thanks for taking a look. H:3 is a good idea -- I've done that, and the result looks much better. The HTML code produced by the normal HTML export, which is what I assume Worg uses, has the captions as special label classes (org-src-name) so CSS could easily be defined if not there already. Let's assume I'm an HTML idiot (which is true...). Is it really true, according to [1], that the only way to add this CSS class definition is to put it in a separate file and link it? It seems to be the only *documented* method. I apologize if this is too basic a question... it's just, I've had a bunch of extra computer problems to solve lately and by now, I've pretty much hit the limit of web searching and teaching myself technologies that are new to me. It would be very helpful to me if someone could provide a for-dummies example of the least intrusive way to add one CSS class style. (Otherwise, sorry to say -- this is a relatively low priority task for me, so I will just submit the document as is and leave it for someone else to beautify.) Thanks, hjh [1] http://orgmode.org/manual/CSS-support.html#CSS-support
Re: [O] exporting α/β to latex/pdf
Suvayu said: The easiest solution is to use a modern TeX engine like XeTeX or LuaTeX along with a font with the required glyphs. I personally use XeTeX with Linux libertine fonts. You can find my setup here: https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L176 Hi Suvayu I am interested in switching over to xetex. I find however that things dont work very easily and googleing around I find that some fixes are needed. eg http://ledgersmb.org/faq/xelatex Do you also need to do these? Or is there something more generic/uptodate? Thanks Rusi
[O] bug#17416: insecure temp files in ob-screen.el
Package: emacs,org-mode Version: 24.3.90 Severity: important Tags: security org-babel-screen-session-write-temp-file and org-babel-screen-test seem to use predictable temp-file names, which is a security issue. Using `make-temp-file', or if the file names really need to be predictable, something equivalent to `doc-view-make-safe-dir' (there should really be a general utility function for this IMO) to first create a /tmp subdirectory would avoid this.