Question about citation formatting
Dear org users, This is my second paper I am formatting with the new citation framework, this time using csl for the first time, since basic does not fit the bill anymore. This paper is discussing and comparing translations to the same text. So when I mention publications in the text, I want to have the keyword to be the translator, rather than the author. Here is the entry bibliography: -test.bib-- @book{dogenMoonDewdrop1985, title = {Moon in a Dewdrop}, author = {Dōgen}, year = {1985}, publisher = {{San Francisco : North Point Press}}, isbn = {978-0-86547-186-3}, language = {eng}, translator = {Tanahashi, Kazuaki} } The org file looks like this: test.org-- #+TITLE: Translation test #+OPTIONS: num:nil toc:nil tags:nil todo:nil ':t ^:{} # #+cite_export: basic author-year author #+cite_export: csl /home/chris/src/org-mode/etc/csl/chicago-author-date.csl #+bibliography: test.bib In [cite: @dogenMoonDewdrop1985 p37] there is a different translation: * References #+print_bibliography: --- and the resulting export, in this case to a buffer, looks like this: ━━━ TRANSLATION TEST ━━━ In (Dōgen 1985, 37) there is a different translation: References ══ Dōgen, 1200-1253. 1985. /Moon in a Dewdrop/. Translated by Kazuaki Tanahashi. San Francisco : North Point Press. -- What I would like to see is instead: "In (Tanahashi 1985, 37) there is a different translation:" in the running text. Has anybody an idea of how to achieve this? Any help appreciated, Christian
Re: [O] [org-ref] how to tweak display of links and entries
Dear John, This is great. I will tweak this as needed. Thanks a lot, Christian On 01/13/2017 01:04 AM, John Kitchin wrote: #+BEGIN_SRC emacs-lisp (defun format--cjk-authors (orig-fun args) "Format authors my way." (cl-loop for a in (s-split " and " value t) collect (let ((fields (mapcar (lambda (x) (let* ((f (split-string x "=")) (prop (s-trim (nth 0 f))) (val (s-trim (nth 1 f (cons prop val))) (s-split "," a t (s-format "${given} ${family} (${cjk})" 'aget fields)) into authors finally return (let ((l (length authors))) (cond ((= l 1) (car authors)) ((= l 2) (s-join " & " authors)) ((< l 8) (concat (s-join ", " (-butlast authors)) ", & " (-last-item authors))) (t (concat (s-join ", " authors) ", ...")) (advice-add 'bibtex-completion-apa-format-authors :around #'format--cjk-authors) ; remove advice like this. ;(advice-remove 'bibtex-completion-apa-format-authors #'format--cjk-authors) #+END_SRC That generates Ailong Fang (方愛龍) & Another Fang (方愛龍), Super interesting report, J. Interesting Reports, 1(), (2007). for the tooltips and messages. for this entry @article{fang-2007-super, title ={Super interesting report}, author = {family=Fang, given=Ailong, cjk=方愛龍 and family=Fang, given=Another, cjk=方愛龍}, journal = {J. Interesting Reports}, keywords = {test, word}, volume = 1, year = 2007, } It is not very robust, e.g. it assumes there will be family, given and cjk for all authors, that authors are split by and, and prop=val is split by commas, etc... Yes, but its a great start. This proves that this is a viable road for this kind of material. There is still no established and robust way to do this kind of thing in any format, so I am great to see this is possible. All the best, Christian -- Christian Wittern, Kyoto
Re: [O] [org-ref] how to tweak display of links and entries
Dear John, Thanks for your answer. On 01/11/2017 10:33 PM, John Kitchin wrote: There is not a way to hook or define a format for this that I know of. For helm-bibtex, you might be able to redefine or advise bibtex-completion-apa-format-authors to handle that. Well, thanks, I'll investigate that. Is that what is also used for the display as popup and in the echo area that org-ref is providing? You can turn off the full display like this: #+BEGIN_SRC emacs-lisp (loop for cite in org-ref-cite-types do (org-link-set-parameters cite :display nil)) #+END_SRC OK, that is what I wanted to know, all I want to do is hide the citekey in this case. All the best, and thanks for given us the present of org-ref, Christian -- Christian Wittern, Kyoto
[O] [org-ref] how to tweak display of links and entries
Hi Org, especially Org-ref users, I have seen a number of org-ref related questions here recently, so I guess it is OK to ask here. I am trying to move to a more sophisticated bibliography format involving some new field types recently added to biblatex. An author field for example can look like author = {family=Fang, given=Ailong, cjk=方愛龍}, where cjk is defined using biblatex's tools for this as a name addon. Obviously, neither parsebib, helm-bibtex or org-ref understand this format (yet). However, I do not understand where I have to intervene to display this in a reasonable way, that is family name, given name and cjk name. Is there a custom I have to redefine, or a hook I should add somewhere? Another unrelated question is how to stop org-ref from displaying both the key and the description of the link. I seem to remember having seen some discussion here about this, but can't find it now. Any help appreciated, Christian -- Christian Wittern, Kyoto
[O] patch for org-compile-file
Dear Org List, I came across a typo that makes exporting to Latex impossible. The attached patch fixes this problem. This is the first patch I submit, and I changed just one line. If there is a problem, you can just fix this one place manually. All the best, Christian -- Christian Wittern, Kyoto >From 597d30459c6637ce3c42d7155bcc1487e2e15ac9 Mon Sep 17 00:00:00 2001 From: ChristianW <chris@mbp4-ubuntu.local> Date: Thu, 22 Dec 2016 19:17:17 +0900 Subject: [PATCH] Fixed error in org-compile-file out-dir --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 3ed7187..9b0b9cc 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -22680,7 +22680,7 @@ be set to a buffer or a buffer name. `shell-command' then uses it for output." (let* ((base-name (file-name-base source)) (full-name (file-truename source)) - (out-dir (file-name-directory source)) + (out-dir (file-name-directory full-name)) (output (expand-file-name (concat base-name "." ext) out-dir)) (time (current-time)) (err-msg (if (stringp err-msg) (concat ". " err-msg) ""))) -- 2.7.4
Re: [O] Preventing Org from being installed by elpa
On 12/21/2016 10:25 PM, Karl Voit wrote: * Christian Wittern <cwitt...@gmail.com> wrote: On 12/21/2016 05:07 AM, Karl Voit wrote: I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» with: (define-package "org" "3101" "Dummy org mode package" 'nil) And this simulates the fulfilled dependency so that my git version of Org-mode is the only one installed (besides maybe the default one from Emacs). Hmm, this sounds like what I want. However, when I try this, Emacs tells me: (file-error "Cannot open load file" "no such file or directory" "/home//.emacs.d/elpa/org-3101/org-autoloads") load("/home//.emacs.d/elpa/org-3101/org-autoloads" nil t) Is there a way to avoid this? I'm sorry. Usually, I do keep detailed notes on things I do. But when I created this pseudo-package, I did not write down a detailed howto for my future me. But the input for this came from this mailing list. So please search the archive and you might get the original instructions. OK, I found the source in this message by Alan Schmitt, to which you replied: On 2016-01-28 12:33, Karl Voit <devn...@karl-voit.at> writes: >> I’ve had issues with this in the past (I also use org for git). To >> make sure org is never installed with elpa, I manually install >> (`package-install-file') this org.el file: >> >> #+begin_src emacs-lisp >> ;;; org.el --- Dummy org mode package >> >> ;; Copyright (C) 2014 Alan Schmitt >> >> ;; Version: 3101 >> >> () >> >> ;;; org.el ends here >> #+end_src > > There is no "(provide 'org)" or so? I have not found it necessary. I make sure I load org before initializing packages, and everything works. Alan Using this recipe, I get also a file org-autoloads.el produced by package.el and everything seems to work. Cheers, Christian -- Christian Wittern, Kyoto
Re: [O] Preventing Org from being installed by elpa
On 12/21/2016 05:07 AM, Karl Voit wrote: I got the tipp of creating «~/.emacs.d/elpa/org-3101/org-pkg.el» with: (define-package "org" "3101" "Dummy org mode package" 'nil) And this simulates the fulfilled dependency so that my git version of Org-mode is the only one installed (besides maybe the default one from Emacs). Hmm, this sounds like what I want. However, when I try this, Emacs tells me: (file-error "Cannot open load file" "no such file or directory" "/home//.emacs.d/elpa/org-3101/org-autoloads") load("/home//.emacs.d/elpa/org-3101/org-autoloads" nil t) Is there a way to avoid this? All the best, Christian -- Christian Wittern, Kyoto
Re: [O] patch for custom colored links in org-mode
Dear John, I was wishing for this feature for a couple of years and would very much like for this to become possible! While I do not exactly understand how you are doing it, if it works that should be good enough. Thanks a lot! Christian On 06/26/2016 10:35 PM, John Kitchin wrote: Hi all, I tried this aproach to enable custom colored links in org-mode if an org-link-type face is defined. If no face is applied, then it just gets the default org-link face For example this will make all doi links red. (defface org-link-doi `((t (:inherit org-link :foreground "red"))) "Color for doi links.") It seems to work pretty well for me. What do you think about making this a feature in org-mode? diff --git a/lisp/org.el b/lisp/org.el index af68539..f1c500d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5851,14 +5851,19 @@ prompted for." "Add link properties for plain links." (when (and (re-search-forward org-plain-link-re limit t) (not (org-in-src-block-p))) -(let ((face (get-text-property (max (1- (match-beginning 0)) (point-min)) - 'face)) - (link (org-match-string-no-properties 0))) +(let* ((face (get-text-property (max (1- (match-beginning 0)) (point-min)) + 'face)) + (link (org-match-string-no-properties 0)) + (type (org-match-string-no-properties 1)) + (link-face-symbol (intern (format "org-link-%s" type))) + (link-face (if (facep link-face-symbol) + link-face-symbol + 'org-link))) (unless (if (consp face) (memq 'org-tag face) (eq 'org-tag face)) (org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0)) (add-text-properties (match-beginning 0) (match-end 0) (list 'mouse-face 'highlight - 'face 'org-link + 'face link-face 'htmlize-link `(:uri ,link) 'keymap org-mouse-map)) (org-rear-nonsticky-at (match-end 0)) @@ -6340,8 +6345,8 @@ needs to be inserted at a specific position in the font-lock sequence.") ;; Links (if (memq 'tag lk) '(org-activate-tags (1 'org-tag prepend))) (if (memq 'angle lk) '(org-activate-angle-links (0 'org-link t))) - (if (memq 'plain lk) '(org-activate-plain-links (0 'org-link t))) - (if (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link t))) + (if (memq 'plain lk) '(org-activate-plain-links (0 'org-link))) + (if (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link))) (if (memq 'radio lk) '(org-activate-target-links (1 'org-link t))) (if (memq 'date lk) '(org-activate-dates (0 'org-date t))) (if (memq 'footnote lk) '(org-activate-footnote-links)) -- Christian Wittern, Kyoto
Re: [O] HTML export without org title as H1?
On 06/10/2016 10:17 PM, John Kitchin wrote: I am not sure I follow what you want. You can get rid of the title with the option: title:nil Yes, this is exactly what I need. Thank you! All the best, Christian -- Christian Wittern, Kyoto
[O] HTML export without org title as H1?
Hello org users, I am trying to export an org file to the "content" part of a HTML file. Using header lines and inline html blocks, I basically succeeded in constructing it the way I need it. However, there is still one stumbling block: It seems that it is hardcoded to use the title of the org file as the first H1 element. This breaks my file, so I would like to suppress that, together with the first element. Does anybody know how to achieve that? Or are there better ways to achieve this? What I have so far basically looks like this: #+TITLE: Kanripo 漢籍リポジトリ #+SETUPFILE: kanripo.blog.setup #+OPTIONS: num:nil toc:nil html-style:nil #+begin_html ... #+end_html ** Here starts the first real head .. and so on Any help appreciated, Christian -- Christian Wittern, Kyoto
Re: [O] seeking advice on use of drawers vs blocks
Dear Nicolas, On 2016-04-07 20:57, Nicolas Goaziou wrote: > ":end:" is also valid. Syntax is case-insensitive, unless specified in > the document. Thank you for this clarification. All the best, Christian -- Christian Wittern, Kyoto
Re: [O] seeking advice on use of drawers vs blocks
Hi, On 2016-04-07 18:05, Christian Moe wrote: > The syntax document is at http://orgmode.org/worg/dev/org-syntax.html. > It defines drawers as a "greater element", and says that greater > elements may contain other greater elements. Exporting a sample block > wrapped in a drawer works fine with the d:t option. Other complications > may arise, though... Great, thanks. Yes, this answers a few other questions as well. For example, it seems that a drawer always has to end with :END: in capital letters, using :end: is not possible (I usually prefer the non-shouting variant if possible). Christian -- Christian Wittern, Kyoto
Re: [O] seeking advice on use of drawers vs blocks
Dear Christian, Thank you for your feedback. On 2016-04-05 16:54, Christian Moe wrote: > On the third hand, have you considered wrapping a block in a drawer? No, I had not considered this. Let me play around with that idea for a while. Is this syntactically allowed? I remember there was a document discussed a while ago that would define org syntax, but I can't remember now where this document is. Does anybody remember? All the best, Christian -- Christian Wittern, Kyoto
[O] seeking advice on use of drawers vs blocks
Dear Orgmoders, Today I would like to poll the collective wisdom of the Orgmode user community about a design question I have. Since discovering org-mode more than 9.5 years ago (yeah! ), it has transformed my life almost as much, maybe even more than Emacs itself. Among other things, for work I have developed a package called Mandoku, which uses the org-mode format to deal with (classical) Chinese text. For those interested, a description of this format, which is 99% org-mode is here[1]. Now, as described at the very end of that page, I allow users to maintain annotations to things on the previous line of text in drawers. I then have scripts to collect these annotations and do various interesting things with them. Now, since I started doing this some 6+ years ago, the org-mode syntax has seen some changes and especially blocks seem much more advanced now. I would like to have more expressive power concerning the content of the annotations, so I am considering switching to a block format for these annotations (or more likely for the time being, supporting both). This would give me more metadata and control over the content, because I can have header lines etc. However, my audience is somewhat non-technical and they concentrate on reading the texts, so the intrusion has to be minimal. Currently I handle that with the drawers being mostly folded and only expanded on demand with a key on the line as usual, that is also the reason to use a short word for the drawer, which is the only thing seen in the folded state. So this does not work so nicely with blocks, especially if the header line expands. Ideally I would even like to avoid seeing the header line in folded state and just have an icon in the margin to indicate that there is an annotation. Does anybody know how this can be done? Has anybody done something similar? Apart from that, I wonder if there are other things to consider in the question: Should I move to block syntax rather than staying with drawers? Any and all comments appreciated, Christian Wittern [1] http://www.mandoku.org/mandoku-format-en.html -- Christian Wittern, Kyoto
Re: [O] references to arbitrary labels in org and export to latex
Hi Loris, On 2016-02-03 16:50, Loris Bennett wrote: > This was discussed in the following thread: > > https://lists.gnu.org/archive/html/emacs-orgmode/2015-02/msg00382.html > > It seems you can't use 'url:mandoku-en' because of the colon, so you > would have to use something like 'url;mandoku-en' instead. Yes, right, but it seems I still do not get the numbering I would like to have, so I guess I will have to go with the Bibtex route after all. Thanks anyway. Christian -- Christian Wittern, Kyoto
[O] orgmode display in grep buffers
Hi orgmoders, I frequently grep in org-mode files. Sometimes, especially when the hit is on a line with links, the display is long and ugly. Would it be possible to tell grep to display the lines using orgmode syntax? Switching the grep buffers to orgmode does not work, the connection to the hit gets lost. All the best, Christian -- Christian Wittern, Kyoto
[O] references to arbitrary labels in org and export to latex
Dear orgmoders, I am writing a document with a lot of web references. I would like to bundle them at the end in the same way this is usually done with bibliographic references, but separately. To reference them in the text, I tried someting like [[url:mandoku-en]] and I have a #+LABEL: url:mandoku-en at the place where the URL is. This does not work as expected and the exporter complains about a missing link to url:mandoku. Does anybody have an idea about how to solve this? Christian -- Christian Wittern, Kyoto
Re: [O] Two column layout from org source?
On 2015-12-07 00:33, Manuel Koell wrote: > Do you want to have two columns inside your org file in emacs or with > exported html? > The two column layout should be in a print output, ODT or PDF. How this is represented in org does not matter, but might depend on how the output is achieved. Any advice on this is also appreciated. Christian -- Christian Wittern, Kyoto
Re: [O] Two column layout from org source?
Dear John On 2015-12-07 07:24, John Kitchin wrote: > check > out > http://mirrors.concertpass.com/tex-archive/macros/latex/contrib/paracol/paracol-man.pdf > > > Looks like this is exactly what I need, thanks. Christian -- Christian Wittern, Kyoto
[O] Two column layout from org source?
Dear org users, I need to produce a two-column text, where each of these columns has the same content but in a different language. I would like to derive this from org documents. Any ideas on how to set this up are much appreciated! All the best, Christian -- Christian Wittern, Kyoto
Re: [O] Citation processing via Zotero + zotxt
On 2015-12-03 8:27, Matt Lundin wrote: > Given these complexities, it seems that if we went the zotero route we > could end up with a fairly large installation chain (firefox, zotero, > zotxt, plugin for zotero). And this would require installing items from > multiple, heterogeneous sources. I guess it depends on where you come from. For those who already maintain the bibliography in Zotero this is not much of an extra load. > > I wonder at this point whether pandoc-citeproc (packaged with pandoc) > would actually be the simpler route. It can parse bibtex files directly > and (as a filter within pandoc) can output formatted citations in org > format. This sounds like those maintaining a BibTex bibliography would be better served here. That also means that the Zotero route would not have to worry about importing a bibtex file into Zotero behind the scenes. > > As a GNU/Linux user, I would find installing zotero and all the add-ons > messier and more cumbersome than installing pandoc and/or node-js (were > we to use citeproc-js) from the command line. Maybe the best situation would be to support both the pandoc and zotero toolchain as backends and let the user decide what to use. If the result is in both cases org-formated citations, that should not make it too difficult, no? All the best, Christian -- Christian Wittern, Kyoto
Re: [O] iPad text editor for .org files in Dropbox?
On 2015-11-25 22:36, Peter Davis wrote: > > I know this question is a bit off the list's topic, but has anyone found an > iPad text editor that can operate on .org files in > Dropbox? I found the App "Editorial" useful for this. It allows editing and syncs automatically to the associated Dropbox folder. Christian -- Christian Wittern, Kyoto
Re: [O] emacs & org mode for scholars questions
On 2015-09-02 19:40, John Kitchin wrote: > Cool! Thanks for the shout out to org-ref! > > my jmax starter package (http://github.com/jkitchin/jmax) is basically > designed for the last point you described. I use it with students (41 > this semester!) as a standalone "package". It isn't as polished as > prelude or others, but it allows them to do things like I do out of the > box. Great slides and a great activity. I totally agree that we need to teach our students to use real tools they can use sustainably throughout their career. I am developing a package and a bundle for people in Chinese Studies and neighbouring fields. This needs a slightly different set of packages and settings so I don't think a one-size-fits-all approach would be productive here, neither on the Emacs level, nor on the level of something like jmax. I think being able to have something like $> pip --freeze > requirements and $> pip install -r
Re: [O] Parent path for links
On 2015-02-19 10:55, Giacomo M wrote: What happens is that in project.org http://project.org I end up specifying a lot of links all starting with ~/working/project/. This is useful as I can directly jump from organization to action, or just to switch in a quicker way across project files. I know there is an header arg (i.e. dir) for the path of code execution, but I am not aware of anything similar for link referencing. Look at Section 4.6 Link Abbreviations in the manual. What you would want to do is having #+LINK: wp ~/working/project in your header, than you can reference it as [[wp:your-project.org]] instead of [[~/working/project/your-project.org]]. Best, Christian -- Christian Wittern, Kyoto
Re: [O] Japanese popularity of orgmode
Here is another academic org user in Japan. I started writing articles a few years ago and am also using it for doing research etc. I live in Kyoto, so please drop me a line if something goes on here!! Christian On 2015-01-28 09:54, Waldemar Quevedo wrote: Ishikawa-san I know a super student. He wrote his thesis using Emacs with org-mode! Sounds interesting, by any chance is it on Github or somewhere publicly available? By the way I live in Tokyo, would be great to attend one of these Emacs+Org mode meetups in Kyoto or Tokyo! Japanese no problem ;) Cheers, - Waldemar On Wed, Jan 28, 2015 at 2:20 AM, Tory S. Anderson torys.ander...@gmail.com mailto:torys.ander...@gmail.com wrote: Thanks for the answer! Takaaki Ishikawa tak...@ieee.org mailto:tak...@ieee.org writes: Dear Tory, Good point. I don’t know “taking off” is the correct word, but as you mentioned, it’s still growing. I can see several reasons why you think Japanese content has been increasing in the Web. First, some students use Emacs in their university because their teacher also uses Emacs. Then, the students use Emacs to write papers for graduation. I know a super student. He wrote his thesis using Emacs with org-mode! After graduation, they will be programmers, engineers, and researchers with high-level technical skills enough to distribute their knowledge through their blog and twitter. Second, We have several workshops related to Emacs and org-mode. At least, two workshops are held a few times a year at Kyoto and Tokyo. The participants of the workshops write blog entries and release some emacs-lisp actively. An Emacs advent calendar is a good example. Finally, we have many Japanese translated materials, manual, tutorial, org-web, and twitter bot, to know org-mode quickly and easily. And of course, the primary reason is that org-mode is very useful tool to do anything with Emacs :-) Best regards, Takaaki Ishikawa Jan 27, 2015 11:16 PM、Tory S. Anderson torys.ander...@gmail.com mailto:torys.ander...@gmail.com のメール: There seems to be (and has been for a while) a growing Japanese presence online with orgmode materials, documentation, addons, etc. Most recenlty I found this blog: http://paper.li/highfrontier/1300501273 . I had also noticed many of the page titles on the orgmode website/wiki had Japanese content. This has me curious. Does anyone know the story of what's causing it to take off in Japan, or whether taking off is even the right word? Is it just a few people or a department at a university that are using it? -- Christian Wittern, Kyoto
Re: [O] Desktop search for Org-Mode (linux/os-x). Looking for betas and code reviewers
Jonathan, Sounds like an interesting project. If you are ready, I'd like to have a look. Cheers, Christian -- Christian Wittern, Kyoto
Re: [O] Reference to org-drawers in the manual
On 2014-03-30, 16:49, Nicolas Goaziou wrote: We removed a limitation, not the feature itself. Now you can use drawers without having to specify its name in a DRAWER keyword. That is great. Thank you for the clarification! Christian -- Christian Wittern, Kyoto
Re: [O] Reference to org-drawers in the manual
On 2014-03-29, 13:37, Nick Dokos wrote: `#+DRAWERS: NAME1 ...' Set the file-local set of additional drawers. The corresponding global variable is `org-drawers'. Has that been removed? I do rely quite heavily on this and do not want to loose it. Which version dropped it and what is the suggested workaround? In case somebody wonders, I am using custom drawers for specific multiline annotations and declare them in the file header. All the best, Christian -- Christian Wittern, Kyoto
Re: [O] Export problem with #+BEGIN_EXAMPLE block
Hi Bastien, On 2014-03-13, 00:22, Bastien wrote: Weird, I can export this well with Emacs 24.3/Org 7.9.3e and latest Emacs/Org. Please try to reproduce the problem with a bare emacs -q and by just loading your Org config. Thank you for your help. Now I can report that I succeeded getting the expected output with org-mode 8.25a and 7.93f. However, with my own setup, which is loading 8.25a, I still get the disappearing example block. Now I have no idea where to look for the culprit. Do you have any suggestion at how to proceed with the investigation? I am not consciously doing anything with the export settings at all, but I have used org for 8 years now, so something might have crept in during that time... All the best, Christian -- Christian Wittern, Kyoto
[O] Export problem with #+BEGIN_EXAMPLE block
Dear Orgmode users, The following minimal example shows a problem I have with export (tested with 8.25 from git and the one bundled in Emacs 24.3.1): #+OPTIONS: toc:nil ^:nil * Page numbers The page number is given in the following form: #+BEGIN_EXAMPLE pb:ZB6i0076_T_0537a #+END_EXAMPLE Whatever I do, neither an export to HTML nor to PDF shows the part within the example block. In the real file, there is in fact a part of the text after the example also falling out, but I tried to remove everything to make a minimal example. Any ideas what might wrong here are welcome. Christian -- Christian Wittern, Kyoto
[O] patch for worg (was:Re: help with porting babel example on worg to latest version)
Thanks Miguel, On 2014-01-06, 19:27, Miguel Ruiz wrote: #+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs This magic line does the trick. I created a patch for this, attached. I tried to follow the instructions, but since this is the first time, please be patient if something went wrong. Cheers, Christian -- Christian Wittern, Kyoto From 08b07bbdd88bd78dd880a726f875ac167d4e2597 Mon Sep 17 00:00:00 2001 From: Chris Wittern chris@mbp3 Date: Mon, 6 Jan 2014 20:57:48 +0900 Subject: [PATCH] Adopted the fibonacci example to Org 8.x syntax --- org-contrib/babel/intro.org | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org-contrib/babel/intro.org b/org-contrib/babel/intro.org index 88eefc9..99a25a2 100644 --- a/org-contrib/babel/intro.org +++ b/org-contrib/babel/intro.org @@ -498,7 +498,7 @@ Now we use the source block: Here is the Org-mode table that is passed to =fibonacci-seq=: -#+tblname: fibonacci-inputs +#+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | @@ -508,8 +508,8 @@ The table looks like this in the Org-mode buffer: : | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | The [[http://www.gnu.org/software/emacs/manual/elisp.html][Emacs Lisp]] source code: -#+name: fibonacci-seq(fib-inputs=fibonacci-inputs) -#+begin_src emacs-lisp +#+name: fibonacci-seq +#+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs (defun fibonacci (n) (if (or (= n 0) (= n 1)) n @@ -520,8 +520,8 @@ The [[http://www.gnu.org/software/emacs/manual/elisp.html][Emacs Lisp]] source c #+end_src In the Org-mode buffer the function looks like this: -: #+name: fibonacci-seq(fib-inputs=fibonacci-inputs) -: #+begin_src emacs-lisp +: #+name: fibonacci-seq +: #+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs : (defun fibonacci (n) : (if (or (= n 0) (= n 1)) : n -- 1.8.3.4 (Apple Git-47)
[O] help with porting babel example on worg to latest version
Hi there, I am trying to understand how to use information from an org table as input for a babel function. For this purpose, I looked at the example at http://orgmode.org/worg/org-contrib/babel/intro.html#arguments-to-source-code-blocks It seems that this is using the old syntax, eg. #+tblname, which seems to be just #+name now. But even with this change I can not reproduce the result. With the following code, I get the message Symbol's value as variable is void: fib-inputs when doing C-c on the src. I am sure there are more changes I need to make, but I can't figure it out. Any help appreciated. Here is the code so far: #+name: fibonacci-inputs | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | #+name: fibonacci-seq(fib-inputs=fibonacci-inputs) #+begin_src emacs-lisp (defun fibonacci (n) (if (or (= n 0) (= n 1)) n (+ (fibonacci (- n 1)) (fibonacci (- n 2) (mapcar (lambda (row) (mapcar #'fibonacci row)) fib-inputs) #+end_src All the best, Christian -- Christian Wittern, Kyoto
Re: [O] Customization Survey 2013
Hi Mike, I tried to run the survey as instructed, but got an error after the message Just press enter. The Messages buffer contained the following in case that is of interest: org-customization-survey Making completion list... [2 times] Starting new Ispell process [ispell::default] ... Error enabling Flyspell mode: (Searching for program no such file or directory ispell) run-hooks: Symbol's function definition is void: bbdb-define-all-aliases byte-code: Beginning of buffer byte-code: End of buffer Christian On 2013-11-05 09:27, Mike McLean wrote: Hello All I have 57 responses as of a few minutes ago (not counting me, LOL). I will start tabulating tomorrow sometime. Thank you all Mike -- Christian Wittern, Kyoto
[O] convenience sort function
Dear org users, I would like to define a convenience sort function to sort on a certain property (e.g PRE), which I can assign to a key, so that I can avoid having to type C-^ r PRE RET It seems that I want to call org-sort-entries, which has the following signature: (defun org-sort-entries (optional with-case sorting-type getkey-func compare-func property) From the docstring, I learn that I have to use ?r to sort on properties and the last parameter is the property to sort on, PRE in this case. However, what I do not understand is what I should give for getkey-func and compare-func. Something like this (org-sort-entries t ?r t t PRE) or this (org-sort-entries t ?r nil nil PRE) does not work, and reading the source does not give me any clues (probably because I do not understand what is going on) Any help would be apprectiated, Christian -- Christian Wittern, Kyoto
Re: [O] Remove Org and Tbl from menubar for derived mode
On 2013-09-14 13:42 , Jambunathan K wrote: (add-hook 'org-mode-hook (lambda nil (local-unset-key [menu-bar Org]))) Thanks, if I do this for my derived mode, it does exactly what I need! Christian -- Christian Wittern, Kyoto
[O] Remove Org and Tbl from menubar for derived mode
Hi there, I am developing a mode derived from org for special editing and browsing purposes. I will add my own menu to the menubar and would like to remove the menus added by org, Org and Tbl, in order not to confuse my users, who will be Emacs newbies in most cases. I tried several things like (define-key org-mode-map [menu-bar Org] nil) or (define-key global-map [menu-bar Org] nil) and some other combinations of this line of thought, but nothing succeeded in removing the stuff. I wonder if anybody here has any advice? All the best and thanks in advance, Christian -- Christian Wittern, Kyoto
Re: [O] Remove Org and Tbl from menubar for derived mode
On 2013-09-13 22:09, Thorsten Jolitz wrote: 9 matches for easy-menu in buffer: org.el |5312:(easy-menu-remove outline-mode-menu-heading) |5313:(easy-menu-remove outline-mode-menu-show) |5314:(easy-menu-remove outline-mode-menu-hide)) Yeah, I have seen that. The problem is the way easy-menu-remove is defined: easy-menu-remove is an alias for `ignore' in `easymenu.el'. And the docstring explains: quote Remove MENU from the current menu bar. Contrary to XEmacs, this is a nop on Emacs since menus are automatically (de)activated when the corresponding keymap is (de)activated. /quote In addition to that, it seems that this is not removing the top-level menu, but some of the sub-menu entries (... if I understand this correctly...). And, as Carsten reminded me, what I do *not* want to do is de-activate org-mode's keymap:-) So still wondering... Christian -- Christian Wittern, Kyoto
Re: [O] Reading books with org-mode
Hi Kyle, Thanks for sharing this, this is excellent. I have been looking for a way to read epub books in Emacs and this is even better! However, trying this out I noted that I can't seem to follow the (internal) links in the file, whatever I click on, it all ends up at the same place. The file seems to have the right voodoo in it to allow for the links to work, so it might be either my setup or a general org problem. Do you see the same behaviour for links? Christian On 2013-07-30 05:24, Kyle Sexton wrote: Just wanted to share a tip I've been using that is pretty nice. Convert any epub/mobi technical books you are reading to org-mode files and read them in Emacs. Then you can do nice things like easily cut and paste portions of the book to org-drill for flash cards or into capture templates. The conversion process is different for every book (imagine that), but not too horrible. Basically, Calibre - htmlz - unzip - pandoc: #+BEGIN_EXAMPLE $ cp ~/Calibre\ Library/Metz*/Practi*/*.htmlz ./book.htmlz $ unzip -q book.htmlz $ pandoc ./index.html -o book.org #+END_EXAMPLE After that I usually have to global convert [[image/foo.png]] to [[file:image/foo.png]] and add inlineimages to a start-up option on the file. -- Kyle Sexton -- Christian Wittern, Kyoto
Re: [O] Should comments break paragraphs?
On 2013-07-16 03:54, Nicolas Goaziou wrote: Yes. Comments are elements. Elements cannot be found in paragraphs. Hmm. In my book, the concept of comments implies that they should be able to appear on any line in the text, without altering the meaning of the context it appears in. So to me, it would seem necessary to treat comments as special, different from other elements. Just my 2 yen, Christian -- Christian Wittern, Kyoto
Re: [O] How to remove spaces for soft line-breaks
Hi Bastien, Yujie On 2013-07-08 17:22, Bastien wrote: Hi Yujie, Yujie Wen yjwen...@gmail.com writes: I am wondering whether there is a way to forbid such spaces, or if no such a way, whether it is possible to work out a patch to forbid it. I would try M-x visual-line-mode RET and see if you like it. Well, this will not solve the problem for the OP, which occurs during export. What has to be done, I think, is to remove the CR/LF characters for Chinese (and Japanese, Korean etc.) text when exporting to HTML, because they will otherwise show up in the displayed HTML as single space characters. I guess, this requires either a derived custom export engine or a internationalization framework that allows the specification of the text language. Christian -- Christian Wittern, Kyoto
Re: [O] Let's discuss citation and Org syntax
Sorry about this late contribution to this thread. I just stumbled on the RTF/ODF scan tool for Zotero at[1], which seems to do something similar to the ideas ventilated in this thread. Since Zotero compatibility is high on the list of desirables mentioned here, I thought it might be an interisting point of reference. This page also mentions that Zotero can be told to provide a scannable Cite as output format, which works with things like |{See | Smith, (2012) |p. 45 | for an example |zu:2433:WQVBH98K} which the format engine than turns into | (See Smith, 2012, p. 45 for an example) I wonder if it would be worthwhile if the citation handling in Org would become compatible with this approach? Christian W. [1] http://zotero-odf-scan.github.io/zotero-odf-scan/ On 2013-05-26 23:23, Darlan Cavalcante Moreira wrote: I prefer the [cite:citekey] syntax similar to [fn:number] for footnotes. But no matter which syntax is chosen I think we can easily make reftex work with it. All we need is to set the variable reftex-cite-format [1] to a string with the desired format. For the syntax [cite:citekey] the string would be [cite:%l]. [1] We probably need to make that a local variable in org-mode buffers so that the global value is kept on default for latex buffers. -- Darlan At Thu, 23 May 2013 10:05:37 +0200, Christian Moe wrote: Matt Price writes: On Wed, May 22, 2013 at 5:02 AM, Christian Moe m...@christianmoe.com wrote: I have a rough, working example of this enabling Zotero cites for ODT export (attached). Hi Christian, I'm really interested in this, as I use Zotero not only for writing but for group bibliographies in my courses. The broader conversation about the appropriate syntax is a bit beyond me, Hi, Matt, As the org-zotero-export.el shows, getting Zotero references from Org into ODT is pretty simple. That framework could be implemented whatever syntax we end up with to take care of the details. I'm interested in feedback on the syntax, though -- that is, on the way I'm using the description part of the link to convey various bits of information to Zotero. Is it worth pursuing, or would people prefer other ways of doing it? If worth pursuing, could it be improved? (1) How do you get the Zotero cite keys right now, and what method do you think would ultimately be the best to try for? The best to try for: Something with as brilliant an interface as RefTex... Since this thread is on citation syntax, I think I'll gather my thoughts about how to get there (zotero-plain? Zotero Server API? sqlite? word processor plugin emulation?), and about your other questions, and start another Zotero-related thread in a day or two. Right now: I'm still depending on Quick Copy with a custom Zotero translator. That is, I tab from Emacs to Firefox, look up a reference in the Zotero pane, and Quick Copy (C-S-c) to a formatted link to the clipboard. Tab back to Emacs, yank the link, manually tweak the description as necessary. RefTex it ain't, and it's cumbersome for multiple citations, but it works. Yours, Christian -- Christian Wittern, Kyoto
Re: [O] org-babel, python, encoding and table
On 2013-05-29 22:00, Eric Schulte wrote: This does seem to be in the right direction. This is similar to my diagnosis of the non-session case [1]. If the python process prints weird hex character values (e.g., '\xc3\xa0') instead of utf8 characters (e.g., à), then Babel will insert the hex values into the buffer. As I recall switching to python3 solved this problem? What I do regularily in my python code to force python2 into emitting utf8 characters is the following: #+BEGIN_SRC python import codecs sys.stdout = codecs.getwriter('utf8')(sys.stdout) #+END_SRC There are other methods, for example resetting the default encoding in the site-wide file site.py, but that is not very portable. Hope this helps, Christian -- Christian Wittern, Kyoto
Re: [O] Let's discuss citation and Org syntax
Hi Rasmus, On 2013-05-21 21:21, Rasmus wrote: Now that 8.0 has shipped let's talk bibliography support. This follows directly upon the discussion around March[1]. Thanks for a great post and for taken initiative for making org-mode even better for my purposes. I started using org for writing papers a few years ago and I am not looking back. The weak point however is bibliographies, as you say. FWIW, I will describe my use case. For drafting and when I can get away with it, I am going from org to PDF through XeLaTex, with either bibtex or more recently biber+biblatex. However, when I submit papers, in most cases they have to be in a wordprocessor format, so I am going through the ODT export here. In my current workflow this means that the bibliographie falls apart and in the end (deadlines!!) I usually cut and paste what I can get into either HTML or PDF. This is not ideal and if this can improve it would mean a lot to me. One problem I have had with bibtex and which I am now kind of dealing with (albeit still in a hackish way) in biber+biblatex is that I need specific formatting of the entries depending on the language I am publishing in, which is mostly either English or Japanese. So for Japanese sources cited in English papers, I have to give the author and title optionally in Japanese characters, but also in romanized form and possibly in translation, whereas English sources in Japanese might require a Japanese form of the names and again a translation into Japanese. I ended up adding extra fields to my bibtex file, since no bibliographic format I know of (except TEI) would support this and still allow me to integrate it into my workflow, but the big problem lies of course in integrating this better in my workflow. So whatever org ends up with having in terms of bibliography, I would like to work with you and however jumps in to make sure that it also fits this need (which is actually not limited to an exotic field like mine, but is quite common for academics working in East Asia). All the best, Christian -- Christian Wittern, Kyoto
Re: [O] how to best make characters invisible in a org-derived mode
Hi Andreas, Hi John Thank both of you for trying to get me on track. On 2013-05-01 16:43, Andreas Röhler wrote: maybe have a look how ar-hide-bracketed-in-line-atpt for example is implemented. I can't actually find this function, but I get the general point from the files in Emacs Werkstatt. What tripped me up originally that simply setting a region to 'invisible worked in fundamental mode, but not in org-mode. I found the solution after I finally understood what (info (elisp) Invisible Text) was trying to tell me: - first set the desired region(s) to an arbitrary symbol, like my-symbol: (overlay-put (make-overlay beginning end) 'invisible 'my-symbol) - next add this symbol to 'invisibility' spec : (add-to-invisibility-spec 'my-symbol) After straighting this out I am now a happy camper, enjoying my uncluttered display. All the best, Christian -- Christian Wittern, Kyoto
[O] how to best make characters invisible in a org-derived mode
Hi orgers, In a mode derived from org-mode, I would like to hide some characters with a special function to make the display cleaner. There are two cases: - special characters that should be always invisible - strings matched by a regex that should be invisible I would be glad for any pointers or ideas on how to implement this, either by piggy-packing on org-mode code or by using generic Emacs features. All the best, Christian -- Christian Wittern, Kyoto
Re: [O] [PATCH] export to various flavors of (X)HTML
On 2013-04-23 21:09, François Pinard wrote: If I remember well, self-closing tags date back to SGML, not requiring (but also not forbidding) an introducing space to the closing slash. SGML does allow for closing tags to be optionally omitted (and for opening tags as well) but such optional omissions have to described in the DTD. Well, in this case you are misremembering, empty elements, aka as self-closing tags are one of the innovations of XML; they did not exist in SGML (where you could simple omit the closing tag completely for emtpy elements). Just my nit to pick, Christian -- Christian Wittern, Kyoto
Re: [O] Displaying agenda for today instead of diary with the calendar
On 2012-11-01 12:41, Nick Dokos wrote: (add-hook 'calendar-initial-window-hook 'org-agenda-list) That's it, it works wonderfully! Thank's a lot, Christian -- Christian Wittern, Kyoto
[O] Displaying agenda for today instead of diary with the calendar
Dear org-moders, Over the years I have gradually moved most of my planning from the Emacs diary to org-mode. However, when I call up the Emacs calendar, it still displays the day-view of my diary, which does not have relevant information anymore. I would like to replace it with the agenda buffer. Upon investigation, it seems that calendar calls 'view-diary-entries' to display the diary. Has anybody here managed to replace this with an appropriate call to display the agenda buffer? How would I go ahead to achieve this? Any help appreciated, Christian -- Christian Wittern, Kyoto
Re: [O] Organizing a collection of papers
On 2012-06-30 01:07, Thomas S. Dye wrote: John Wiegley jo...@newartisans.com writes: Frank f...@muenn.net writes: I've used org-mode about a year and a half, and I don't think it's the best application for what you describe. There are several packages available to do this; the one I've used most often and successfully is Zotero (zotero.org). This is a browswer plug-in which implements a very nice database for your papers. At this point, I've indexed 1092 papers (PDFs, web pages and other materials). In some cases, I have multiple files attached to each of them. If you happen to have a Mac, the application DEVONthink Pro is simply wonderful for organizing collections like this. I have about 7k PDFs in a financial database, and it's always easy to find what I'm looking for. John I work in Org mode and LaTeX. Ebib is integrated with both of them. I follow an Org mode link or a LaTeX citation to the BibTeX entry in Ebib, then open the pdf from Ebib using a link stored in the BibTeX file. I think Ebib is a splendid tool in this situation. Again, if you happen to be on a Mac, you can combine Zotero and BibTeX using the excellent Zot2Bib Firefox extension. This will use the Zotero translators, but can be configured to transfer the citations to a BibTeX file. This can be managed with BibDesk, but is also available within Emacs and can be used for citations in papers written in Org-mode. I have started using this combo about two years ago and am quite pleased with the results. All the best, Christian -- Christian Wittern, Kyoto
Re: [O] Tweaking the export
Hi Nicolas, Thank you very much for taking the time for such a detailed recipe. Today I finally found time to go over it and try to implement my transformer. It turned out to be really easy to get going, but in the end, I hit a roadblock. On 2012-01-29 18:07, Nicolas Goaziou wrote: 3. If all went well, you now have an impressive Org to Org converter. You can even test it with: #+begin_src emacs-lisp (switch-to-buffer (org-export-to-buffer 'translator *Translation*)) #+end_src Obviously, there is not much to see. It worked wonderful until here. Now, we're going to redefine `org-translator-paragraph' to properly ignore one language or the other, depending on `:translator-side' value. #+begin_src emacs-lisp (defun org-translator-paragraph (paragraph contents info) Convert PARAGRAPH to Org, ignoring one language. Language kept is determined by `:translator-side' value. (let ((leftp (eq (plist-get info :translator-side) 'left))) (replace-regexp-in-string (if leftp \t+.*$ ^.*\t+) contents))) #+end_src With a little tweaking, I got rid of errors when running this code. However, no changes in the output where observable. Finally, I looked at the output from step 3 above and realized that the parser normalizes my tab characters away. Only a bunch of spaces in the output! Ouch!! So I guess I would need an option on the parser to switch tab expansion off. I also intended to implement my transformer in a way that I first define the general org-e-org transformer and then derive a specialized transcormer by somehow inheriting the general transformer and then implement my specialized paragraph transformation. It seems that this is at the moment not possible, but I think it would be good to think about this, that will make defining new exporters or even org-file tweakers a breeze. Anyhow, again thanks for writing the new parser / exporter and for your help with my problem! All the best, Christian -- Christian Wittern, Kyoto
Re: [O] org mode in press
On 2012-01-28 22:59, rick frankel wrote: The dot executable is part of the graphviz package. Installing graphviz should install the dot command line executable alongw w/ neato, circo and and other layout engines. Rick Thanks to all who pointed this out. $sudo port install graphviz did the trick for me, now all dependencies are met. Yeah! Christian -- Christian Wittern, Kyoto
Re: [O] org mode in press
I think this is an excellent article, introducing an aspect of org-mode, which I think fills a gap that no other software I know of comes even close to approach. I already started mentioning it in conversations and am sure it will be very useful to many members of the academic community. Just to make sure I could answer any follow up questions, I downloaded the replication bundle and started installing the dependencies. I encountered a few problems and hope this is the right place to discuss them. BTW, I am working with this on a Mac OS X 10.6 machine. Most of the dependencies I already had or installed them from macports. One problem I encountered was with installing the RSQLite package. Executing the installation command from the README file did not work because of permission issues, the command needs to run with superuser rights. Is it possible to give these rights to commands run from babel? Since I did not find a way to do that, I installed from the R commandline, where I found that the name of the package is RSQLite, not 'RSQlite' as given in the readme file. The one dependency I could not solve was the 'dot' executable. I assume this is an interpreter for the dot language, for which it seems the program on the Mac is named graphviz. However, I am not sure how to make that work with org/babel. Should I simply symlink to graphviz? Or is there a babel variable to be set? This is a point that probably needs some explanation, at least for Mac users (I realize that the articel might not have been intended as such a general introduction with details for all common OSses, but it would be nice if this can be gradually supplemented). One last remark; since this is an online publication, I think using proper fontification for the examples and org source code would be even more appealing, especially for people who encounter org for the first time. Keep up the excellent work!! Christian On 2012-01-27 23:43, Eric Schulte wrote: Hopefully this will serve as the canonical introduction to working with code blocks in Org-mode. As we acknowledge in the paper this work would not have been possible without the ideas and feedback of the Org-mode community, so thanks all! Nick Dokosnicholas.do...@hp.com writes: Andreas Lehaandreas.l...@med.uni-goettingen.de wrote: Hi all, this just came into my inbox: http://www.jstatsoft.org/v46/i03 Great work! Big thanks to the authors. I remember reading it with great pleasure back when Eric posted it to the list: beautiful stuff. I look forward to rereading it. Congratulations! Nick -- Christian Wittern, Kyoto
Re: [O] Tweaking the export
Hi, Jambunathan and Nicolas, On 2012-01-27 22:47, Jambunathan K wrote: Nicolas I will let Christian answer for himself. Thanks Jambunathan, you are not only an excellent coder, but also an expert mind reader:-) What you describe is exactly what I want to achieve. text A text A' line 2 line 2 My name is Jambunathan. I live Mon nom est Jambunathan. Je vis in India. en India... He wants the English column to be collected in to an English file and the French column to be collected in to a French file. In some sense, he wants to tangle the English column, let's say as verse_en.org and French column to verse_fr.org Exactly. The reason for wanting to do this is that the above is my setup for translating, but in some cases the publication will have only the translation, for such cases, I want to extract just the translation. This should then produce a new org file, that simple has either everything before the tab (the original) or everything after the tab (the translation), while leaving all lines that do not contain a tab character as they are. I assume this would be an easy task with the new exporter -- but still a bit at loss on where to start... All the best, Christian -- Christian Wittern, Kyoto
Re: [O] Tweaking the export
Hi Sebastian, On 2012-01-27 23:03, Sebastien Vauban wrote: Just a side comment: isn't easier to work in 2 different files or buffers (eventually, within the same file) and use some sort of parallel follow-mode? I thought such a thing existed, but can't find it back right now. Anyway, it would be quite easy to implement: it's more or less implementing C-v/M-v so that it's done in two parallel buffers at the same time, instead of just in one!? Best regards, Seb What you describe is Two-Column mode, and this was suggested by Jambunathan before. I did try this alley, but for me org-mode works better. One of the reasons for this is, that there are some structural aspects that are common to both files. Another reason is that I want to be able grep through the files and be able to see matching lines in both languages -- this helps me ensure a consistent translation. So the current setup is really nice for me for doing the work, but now I need to construct the pipeline for publication. As Jambunathan put it, this is really a problem of tangling the output. BTW, I think the general exporter should also be able to to a org-mode to org-mode conversion. This would provide a general framework to systematically correct little problems in files. I guess here it shows that I am coming from the XML world, where a conversion from one XML file to another XML file with slight alterations of some aspects is a very common pattern. All the best, Christian -- Christian Wittern, Kyoto
[O] Tweaking the export (was: Re: [ANN] ASCII back-end for new export engine)
Hi Nicolas, hello everybody, I am extremely excited about this new export engine; it seems to fill a need I have felt for quite a while now. What I need it for is the following: For the last couple of years, I have used org-mode more and more for working with and translating texts from classical Chinese. Over time, some special conventions have crept in, like the fact that I like (for the draft translation) to work in a way that has a short chunk of Chinese text on the left and, separated by a tab character, the translation of that piece following on the same line (there are other special conventions like specialized drawers etc., but I don't need to discuss these here now.) While this is setup is extremely pleasant to work with, at some point I need to separate these two parts in separate texts; the stuff to the left of the tab has to go into one file, the stuff to the right to some other file, while at the same time merging the chunks of texts into paragraphs. Now for quite some while if have thought about how to automate that, but until now, I have usually done it by hand with a couple of regex search-and-replace. Now, with the new export engine, it looks like all I would need to do would be to tweak the way paragraphs are handled, while leaving the rest intact, some kind of org to org transform that simply tweaks one single aspect of the text. However, I am a bit baffled on where to start with this. I would be glad if you or somebody else could give me some pointers at how to tackle this problem. (And please be kind, since my elisp fu is pretty insignificant:-( ) All the best, Christian Wittern, Kyoto
Re: [O] Side-by-side support
Hi Jambunathan, On 2012-01-24 01:34, Jambunathan K wrote: In my case, I have simply separated the columns by atab character and set the tab-width to a sensible value for nice on-screen display. These are 'text' and 'translation of that text' side-by-side, When you are saying on-screen display, I presume you are referring to the Emacs screen? I have a strong feeling that you are using two column editing. Otherwise, it would be extremely difficult to keep one's sanity. Actually I started out using 2C editing for this, but it came constantly in my way, so currently what I am doing is: (1) use a tab character to separate the two columns and (2) set the tab-width to 30 (in most cases), so that most of the columns are nicely separated. This works very well for editing in Emacs. However, at the moment I do not have an easy way to export this to ODT as it s. Now I have given further thought to this, maybe the following will work: (1) consecutive lines with 1 or more tab characters and the *same* number of such tabs will be considered as a table and the exporter will work with this as if it were a org-table. (Note that I usually only have two columns and as you said, with more columns one is probably better off using proper tables) (2) This option is switched on or off through a variable or a OPTION line in the header of the file. (3) as I mentioned earlier, it would be good to be also able to globally set the proportions (maybe this can already be done with column properties?) All the best, Christian -- Christian Wittern, Kyoto
[O] Side-by-side support (was:Re: [ODT] image scaling overridden by long caption)
On 2012-01-20 05:03, Jambunathan K wrote: side-by-side has surfaced in the list for the second time, I think it deserves to be supported out of the box. I strongly support this, since I have a lot of files with side-by-side content. The first question is of course how does the org source look like. In my case, I have simply separated the columns by a tab character and set the tab-width to a sensible value for nice on-screen display. These are 'text' and 'translation of that text' side-by-side, sometimes interrupted by section headers, notes and so on. Therefore I end up with multiple 'tables', which will need to have the same width throughout the document. Therefore for this use-case, I would like to see a global setting for the relative width of these columns. All the best, Christian Christian Wittern, Kyoto
Re: [O] Captions for src and example blocks
Hi Nicolas, Thanks for your answer. On 2012-01-14 17:43, Nicolas Goaziou wrote: Hello, Christian Witterncwitt...@gmail.com writes: There was a thread last April about a way to introduce captions and labels to src and example blocks (see http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00877.html). Now I would like to use captions in a similar way, but not just for LaTex, but also for the ODT export. So a generic org-mode solution would be much more helpful. I wonder if somebody has any idea about how to achieve this. The new export engine has support for captions and labels for almost any element, through the use of affiliated keywords. Thus, the following special block will have :caption and :name properties attached to it: It seems that the current LaTeX and ODT backends do not support this out of the box, also there is no word of this in the manual, so I assume it is still experimental? [..] Now, it doesn't mean that it will do anything during export, as back-ends can choose to make use of those properties or ignore them. With regards to the previous special block, the e-latex back-end currently makes use of the :name property, but ignore the :caption one. Though it's not hard to support this by modifying accordingly the `org-e-latex-special-block' function. Excuse my ignorance, but what is e-latex? Is that different from the standard Latex export called with C-c C-e l? Christian -- Christian Wittern, Kyoto
Re: [O] Captions for src and example blocks
Hi Jambunathan, First of all, thanks for all your work with ODT, it makes org-mode so much more useful! On 2012-01-15 01:38, Jambunathan K wrote: As Nicolas notes, all essential infrastructure is in place. Only thing that needs to happen is to switch over the existing ODT backend to the new export engine. OK, that is good to know. If you have any specific opinions on how the example blocks need to be formatted by default - for eg, put the src blocks in a text frame, in this font and in that size, label and caption the listings this and that way, create an index entry for src listings, - and are willing to show and tell with a sample ODT document I am all ears. Jambunathan K. I don't really have so strict requirements. I think It would be nice to be able to treat example blocks like figures, in that they can get automatic numbering (with #+LABEL?) and a caption. BTW, is it currently possible to set the size for figures (I mean, included graphic)? I know it is possible in Latex, but the Latex directive seems to be ignored by ODT? Anyway, I guess this problem will go away with the new generic exporter. ALl the best, Chris -- Christian Wittern, Kyoto
[O] Captions for src and example blocks
Dear Orgmoders, There was a thread last April about a way to introduce captions and labels to src and example blocks (see http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00877.html). Now I would like to use captions in a similar way, but not just for LaTex, but also for the ODT export. So a generic org-mode solution would be much more helpful. I wonder if somebody has any idea about how to achieve this. Greetings, Chris -- Christian Wittern, Kyoto
[O] execute function when TAB expands a headline
Hi there, I am (also!) using org-mode for displaying dictionary data, with the headword part of the headline. When I press on TAB, the entry expands and I see the explanation and some sample sentences. Now, to make it easier (for my eyes) to parse the examples, I would like to highlight the headword, as it appears in the examples. I believe hi-lock mode etc. could do the trick, but I am stuck at how to hook into the TAB execution, so that I can call my code. Any hints very much appreciated! All the best, Chris
Re: [O] execute function when TAB expands a headline
On 2011-06-08 20:15, Matt Lundin wrote: Christian Witterncwitt...@gmail.com writes: I believe hi-lock mode etc. could do the trick, but I am stuck at how to hook into the TAB execution, so that I can call my code. Any hints very much appreciated! I believe you could use org-cycle-hook. Great! That indeed sounds like what I need. I'll give it a try. All the best, Chris
[O] set different colors for different link types
Hi there, In the archives, I have seen on and off references to a new, extensible syntax that would go beyond /italic/, *bold* and =code=, but I have seen no traces of seeing it implemented. For the time being, therefore I am settling on having different linktypes coming up in different colors, which I hope is doable, but again, I found no immediate solution. I wonder if somebody has an idea of how to go about this. What I would like to see is that, for example: [[file://path/to/my file][myfile]] comes out visibly different from [[http://www.example.com/path/to/my file][myfile]] , for example the one in red, the other in blue. Any help appreciated, Chris
Re: [O] set different colors for different link types
Hi Michael, Thank you for your suggestion. However, I would prefer not to clutter the text with repeating the protocol there. Also, the example I gave is mainly for illustration, in the way I use it, the description would not show the filename, but some other text. Chris On 2011-04-30 00:18, Michael Brand wrote: For links with a description I always just repeat the protocol tag there manually: [[file://path/to/my file][file: myfile]] [[http://www.example.com/path/to/my file][http: myfile]] Together with the space after the colon this shows, also immediately, if you look only at the link description or at the link itself: [[file://path/to/my file]] [[http://www.example.com/path/to/my file]] This color-independent solution works even if colors would not be available occasionally like with some terminal configs. Michael 2011/4/29 Christian Witterncwitt...@gmail.com: In the archives, I have seen on and off references to a new, extensible syntax that would go beyond /italic/, *bold* and =code=, but I have seen no traces of seeing it implemented. For the time being, therefore I am settling on having different linktypes coming up in different colors, which I hope is doable, but again, I found no immediate solution. I wonder if somebody has an idea of how to go about this. What I would like to see is that, for example: [[file://path/to/my file][myfile]] comes out visibly different from [[http://www.example.com/path/to/my file][myfile]] , for example the one in red, the other in blue. -- Christian Wittern Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN
[Orgmode] { in Latex fragments
Hi there, In my org-mode document, I have a special sequence to switch to a Japanese font defined as \J. When using this, I have to do something like {\J (Japanese characters here}. However, when I run the org-mode export, the braces { and } are escaped as \{ and \} and thus loosing their function. Is there some switch to prevent this from happening? I would much rather write \{ myself in the few cases where I in fact need it. Any help appreciated, Chris ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] { in Latex fragments
Christian Wittern, on the road On Aug 25, 2010, at 17:39, Eric S Fraga ucec...@ucl.ac.uk wrote: to hello [\J ウ ] or: (\J ウ) [] and () are not escaped cheers, Giovanni I think because the {}'s define a scope in latex and so the \J only affects text surrounded by the {}. Exactly. For Christian, what about \J{ text } instead as org is careful to let this type of construct go through unchanged, if I understand correctly. This does depend on how you have defined J but possibly a slight redefinition would work (\newcommand{\J}[1]{ #1}). I had tried this first, but somehow the font was not switched back. But now, looking at your example, I think it might have been because of a missing space. I will give it a try. Thanks a lot, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] trying to get xetex working with org-mode
Hi there, This has come up before, but a search in the archive did not produce enough information for me to solve the problem. I want to export to PDF via XeTex on Mac OS X (Emacs 23.2) and org-mode 7.01g. After studying the manual and looking at this message in the archive: quote (from: http://osdir.com/ml/emacs-orgmode-gnu/2010-04/msg00856.html) [...] And you can customize org-export-latex-classes to make the class headers look like this: \TeXXeTstate=1 \usepackage{fontspec,xunicode} \defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex- text} \setmainfont{Sabon LT Std} \setromanfont[Mapping=tex-text]{Sabon LT Std} \setsansfont[Scale=MatchUppercase]{Myriad Pro} \usepackage{xltxtra} [DEFAULT-PACKAGES] [PACKAGES] [EXTRA] And you can change things around any way you like. HTH - Carsten /quote I started experimenting with customizing org-export-latex-classes. Here is what I put into the section for article: \TeXXeTstate=1 \usepackage{fontspec,xunicode} \defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex-text} \setromanfont[Mapping=tex-text]{Hoefler Text} \newfontfamily{\J}[Scale=0.85]{Osaka} (I removed the following lines: [DEFAULT-PACKAGES] [PACKAGES] [EXTRA]) Now, what I get with C-c C-e l at the beginning of my tex file is: example \documentclass[11pt]{article} \TeXXeTstate=1 \usepackage{fontspec,xunicode} \defaultfontfeatures{Numbers=OldStyle,Scale=MatchLowercase,Mapping=tex- text} \setromanfont[Mapping=tex-text]{Hoefler Text} \newfontfamily{\J}[Scale=0.85]{Osaka} \usepackage{xltxtra} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{t1enc} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 /example There are some more lines I did not ask for and do not want, like for example the \usepackage[utf8]{inputenc} which does not work with XeTeX. Now the number of possible relevant variables etc is just too complex for me to understand. I would appreciate if some kind soul would explain to me how to trim this down to use only the packages I need. All the best, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] trying to get xetex working with org-mode
Scot, Thanks a lot, this helps a lot and is getting me on the right track. I was getting lost in the Customize-Groups-Browser hell and now see that I can have it much easier. Great. And when it comes to avoiding unwanted packages, I guess [NO-DEFAULT-PACKAGES] is really what I was looking for. All the best, Christian -- Christian Wittern, Kyoto ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: Switch language on heading lines in Latex export (was Re: [Orgmode] Re: org-beamer: How to get items appear sequentially rather than all at once)
Darlan, Thank you again. I think I understand the problem now. On 2010-03-25 20:02, Darlan Cavalcante Moreira wrote: Summarizing, define your macros as Latex macros instead of TeX ones and they should work. That is, something like \J{XXX}. Currently, the definition is \newfontfamily{\J}[Scale=0.85]{Osaka} If I say \J{XX} in my documents, org-mode's latex export does the right thing and I get what I need, so does this definition as you call it also define a LaTeX macro? Or is this just pure luck? Still mystified by all this, but very glad that I can say goodbye to WYSWIG presentation software:-) All the best, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Switch language on heading lines in Latex export (was Re: [Orgmode] Re: org-beamer: How to get items appear sequentially rather than all at once)
Dear Darlan, Thanks for your detailed explanation. I now got it working and am really happy with it. Now there is one remaining problem with my presentation (which is different, which is why I changed the header line): I do have some words on some heading line that are in a different language and need to be set in a different font. To achieve that, I have customized the beamer section in org-export-latex-classes to set up a new font etc, this can now be switched on with {\J XX } to put XX into the desired Japanese Font. However, when I do this, I get the {} brackets escaped so they appear in the output (I do get the right font). So I wonder how I can pass this literal LaTeX through in the export. I looked at the manual, where it talks about literal LaTeX, but the use cases there seem to work only on lines by themselves, not in the middle of a header line. But since this is org-mode, I am sure there must be a (obvious) solution which I am just failing to see As always, any help appreciated Christian -- Christian Wittern, Kyoto ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-beamer: How to get items appear sequentially rather than all at once
On 2010-03-24 1:08, Thomas S. Dye wrote: Aloha Christian, Please see the beamer documentation for \beamerdefaultoverlayspecification. You can likely set it to yield the behavior you're after. Thomas, Hmm, there does not seem to be such a thing as \beamerdefaultoverlayspecification. The only place where default overlays are mentioned is in connection with BEAMER_envargs. But when I try the following, I do not get the expected results: #+STARTUP: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_FRAME_LEVEL: 1 #+BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default} #+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra) #+OPTIONS: toc:nil * Frame 1 ** This point should appear first :PROPERTIES: :BEAMER_envargs: \pause :END: ** And this point should be second :PROPERTIES: :BEAMER_envargs: \pause :END: I guess I dont really understand how this is supposed to work, so a minimal example would be much appreciated! Christian -- Christian Wittern Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-beamer: How to get items appear sequentially rather than all at once
Dear Matt, On 2010-03-24 9:01, Matt Lundin wrote: You need to set the default overlay argument on the frame (i.e., [+-]). This instructs LaTeX to create slides that reveal the items in the frame one by one. If you want to enable this behavior for all slides, you can place the following line before the first heading: #+beamer: \beamerdefaultoverlayspecification{+-} Thanks for your explanation. I got it now! See section 9.6.3 of the beamer manual (Action Specifications) for more details. Sorry, I did not realize there was a separate manual for beamer. I will go hunting now! All the best, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] problem with org-remember
Hi there, Today I stumbled over a strange problem, to which I did not found a solution. I am using Emacs 23 on Mac OS X and on Ubuntu (9.10) with a nearly identical setup (thanks Dropbox!). On the Mac machines, remembering with org-remember works wonderful and makes me happy; but on the Ubuntu side, I am running in an error wrong-number-of arguments, which can be traced to the following call (org-remember-mode 1) in this form: ;; Turn on org-mode in the remember buffer, set local variables (let ((org-inhibit-startup t)) (org-mode) (org-remember-mode 1)) (if (and file (string-match \\S- file) (not (file-directory-p file))) (org-set-local 'org-default-notes-file file)) --- (this starts on line 543 in the current version of this morning) The call itself looks unsuspicious to my inexperienced I and I have now idea why Emacs would complain about it in Ubuntu and not in Mac (there is a very slight difference of about two weeks between compiling them), so I really have no idea what went wrong and how to fix it. As always, any help appreciated, Christian -- Christian Wittern, Kyoto ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: problem with org-remember
Replying to myself here, Mr Google told me that this seems to be a bug in my Emacs version. Recompiling a more recent pretest made the problem go away. Sorry for the noise and happy orging, Christian On 6 March 2010 11:40, Christian Wittern cwitt...@gmail.com wrote: Hi there, Today I stumbled over a strange problem, to which I did not found a solution. I am using Emacs 23 on Mac OS X and on Ubuntu (9.10) with a nearly identical setup (thanks Dropbox!). On the Mac machines, remembering with org-remember works wonderful and makes me happy; but on the Ubuntu side, I am running in an error wrong-number-of arguments, which can be traced to the following call (org-remember-mode 1) in this form: ;; Turn on org-mode in the remember buffer, set local variables (let ((org-inhibit-startup t)) (org-mode) (org-remember-mode 1)) (if (and file (string-match \\S- file) (not (file-directory-p file))) (org-set-local 'org-default-notes-file file)) --- (this starts on line 543 in the current version of this morning) The call itself looks unsuspicious to my inexperienced I and I have now idea why Emacs would complain about it in Ubuntu and not in Mac (there is a very slight difference of about two weeks between compiling them), so I really have no idea what went wrong and how to fix it. As always, any help appreciated, Christian -- Christian Wittern, Kyoto -- Christian Wittern, Kyoto ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: latex export on mac os x with xelatex
Hi there, For the benefit of later visitors, here is how I worked around the problem for the moment: orgmode seems to ignore the exec-path, so I looked at the result of (getenv PATH), which was very little. Saying (setenv PATH (concat /usr/local/texlive/2009/bin/universal-darwin: (getenv PATH))) in my .emacs solved the problem, the latex export now happily works its way to the texlive programs and does what it needs to do. So I suspect this is some kind of setup problem that might be specific to my installation. I will see if I can find out more once I have a little time. Thanks for your time:-) All the best, Christian On 2010-02-22 16:34, Christian Wittern wrote: Dear Orgmode users, I am trying to get Latex export working on a Mac OS X system. I have installed MacTex with the whole texlive tree. I added the path to these binaries to exec-path like so: (if (eq window-system 'mac) (add-to-list 'exec-path /usr/local/texlive/2009/bin/universal-darwin) ) and can confirm that it is indeed picked up and existing in the exec-path. However, org-export-as-pdf does not manage to produce a pdf. Next I customized the variable to include the path so that I have /usr/local/texlive/2009/bin/universal-darwin/xelatex -interaction nonstopmode %s (on one line) as the value of org-latex-to-pdf-process. Now the xelatex command runs, but the next step fails, since xelatex can not convert its intermediate file to a pdf, so I get as the first line in the buffer *Org PDF Latex Output* : sh: xdvipdfmx: command not found But now I have no idea where to go to tell orgmode how to find the command -- someting seems to be seriously wrong (or I am misunderstanding how stuff is supposed to work) so any help would be appreciated. All the best, Christian -- Christian Wittern Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] PROPERTIES before the first headline
Hi there, Extending my use of org-mode has left me running into another wall: I would like to set some custom properties globally for the whole file, before everything else. There does not seem to be a way to do this #+PROPERTY myprop don't ask and having the :PROPERTY: drawer after the #+ lines also does not seem to work: Whenever I try to use the API functions to get at the property, I am told that I am before the first headling (which I know). So, is this behavior intentional? And if yes, is there a way to work around this? All the best, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] remember template with prompting for different note files possible?
Hi there, I am keeping snippets of various information gems in note files, which are selected by topic, e.g emacs.txt for Emacs related stuff, python.txt for python stuff, machine-name.txt for stuff to do with the setup and maintenance of that machine and so on. I would now like to move this over to org-mode and remember. Now I would like to be able to select the right file from a list of files and then possible define a topic. From the dacumentation, it seems that this is not possible; I would have to collect them first and file them, which is what I am doing now with ideas, todo items and so fort. But maybe somebody here as an idea how this can be achieved? All the best, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] very small font in column view mode
Hi there, I have been using Org-mode for three years now and everything worked so perfect or was explained to excruciating detail in the manual that I never had to write to the mailing list with a question. However, as the usage scenario of Org-mode expands (and in fact threatens to take over most of my life), it seems that I finally arrived at a murky area: When entering column-view mode, all of a sudden the font for the item to be displayed becomes very small. I see a header list for the columns at the top of the file in normal size, but the item itself is barely readibly, such a tiny font has been chosen. I looked all over the place for any suspects, but could not identify any. What might be the reason and what kind of cure is necessary to overcome this problem? Any help appreciated, Chris P.S. And before I forget: Many thanks to Carsten Dominik and the whole Org community for such a marvelous tool! -- Christian Wittern, Kyoto ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] very small font in column view mode
Hi Giovanni, On 2010-02-09 18:16, Giovanni Ridolfi wrote: Christian Witterncwitt...@gmail.com writes: When entering column-view mode, all of a sudden the font for the item to be displayed becomes very small. well, I did M-x describe-fontset, so I *think* my fonts are: -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-fontset-startup For me, the same would be Fontset: -*-Monaco-normal-normal-normal-*-18-*-*-*-m-0-fontset-auto1 If I say C-u C-x = on other parts of the buffer, I get a font like this mac-ct:-*-Monaco-normal-normal-normal-*-18-*-*-*-m-0-iso10646-1 (#x26) but on column-view lines, I get mac-ct:-*-Monaco-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1 (#x0D) which is much smaller than what I am used to. BTW, I forgot to say, this is Emacs 23 on a Mac . Are you referring to agenda column view? No, my use case is more along the CD database in the manual, except that I am working on a catalog of texts. Occasional it is useful to get an overview by displaying all entries in a table, hence I got interested in column-view. All the best, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] very small font in column view mode
On 2010-02-09 19:42, Carsten Dominik wrote: Hi Christian, for a possible solution, please study the docstring of the face org-column. A wonderful, this is exactly what I need. And it might be that something, maybe a color-theme, inadvertly had changed this, because customize tells me that it had been changed outside of customize. So it might be that the culprit was not Org-mode at all? I have to admit I don't really understand what's going on, except that my problem is solved now. Hurray! Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode