Mercurial > emacs
comparison lisp/org/org-export-latex.el @ 96975:60149c696033
2008-07-24 Carsten Dominik <dominik@science.uva.nl>
* org-exp.el (org-export-region-as-html, org-export-as-html): Make
sure that calls from `org-export-region-as-html' do not do the
special check for a subtree.
* org-agenda.el (org-batch-store-agenda-views): Fix parsing bug.
* org.el (org-open-file): Use
`org-open-directory-means-index-dot-org'.
(org-open-directory-means-index-dot-org): New option.
* org.el (org-make-link-string): Remove link attributes from
description.
(org-open-at-point): Remove link attributes bevore using the path.
* org-exp.el (org-export-as-html): Handle link attributes.
* org.el (org-extract-attributes, org-attributes-to-string): New functions.
* org-table.el (org-table-to-lisp): New function.
* org.el (org-narrow-to-subtree): Do not include the final newline
into the narrowed region.
* org-agenda.el (org-agenda-custom-commands-local-options): Fixed
bug with user-define skipping condition.
* org-agenda.el (org-agenda-get-restriction-and-command): Fixed typo.
* org-exp.el (org-export-html-style-default): Automatic overflow
handling for pre fields.
(org-export-as-ascii, org-export-as-html): Change default format
for time stamp.
* org-table.el (org-table-export): Offer completion for translator
functions, and do not require a heading above the table.
* org.el (org-renumber-ordered-list, org-beginning-of-item-list):
Cater for the case of a list starting in the first line of the
buffer.
* org-publish.el (org-publish-find-title): Bug fix.
(org-publish-org-index): Implement new :index-style option.
* org-publish.el (org-publish-timestamp-filename): Use
SHA1-encoded file names in the timestamp directory.
* org-publish.el (org-publish-needed-p): Be verbose about files
published and files skipped.
* org-exp.el (org-export-preprocess-string): Swap link
normalization and inernal link targeting.
* org-publish.el (org-publish-needed-p): Create timestamp
directory when it does not exist.
* org-clock.el (org-clock-out-when-done): Doc fix.
* org.el (org-agenda-skip-unavailable-files): Doc fix.
* org-exp.el (org-export-remove-comment-blocks-and-subtrees):
Ignore case when searching for the COMMENT cookie at export time.
* org-exp.el (org-get-file-contents)
(org-get-and-remove-property): New functions.
(org-export-handle-include-files): Handle the new prefix options.
(org-export-as-html): Fix the verse environment.
* org.el (org-time=, org-time<, org-time<=, org-time>)
(org-time>=, org-time<>, org-2ft): New functions.
(org-op-to-function): Also provide for the time testing fucntions.
* org-exp.el (org-export-html-style-default): New constant.
* org-exp.el (org-export-html-style-extra): New variable.
(org-export-splice-style): New function.
* org-exp.el (org-export-plist-vars, org-export-as-html):
Implement `org-export-creator-info'.
(org-export-creator-info): New option.
* org.el (org-clock-drawer-start-re, org-clock-drawer-end-re)
(org-property-drawer-re, org-clock-drawer-re): New constants.
* org-exp.el (org-icalendar-use-deadline)
(org-icalendar-use-scheduled): New options.
(org-icalendar-include-todo): Default changed to t.
(org-print-icalendar-entries): Implement better utilization of
scheduling and deadline time stamps.
(org-export-target-internal-links, org-export-as-html): Allow file
lines without the "file:" prefix if the file path is an absolute
path or starts with ".".
* org-clock.el (org-clocktable-shift): Also undertand yesterday,
lastweek etc.
(org-clock-special-range): Also undertand yesterday, lastweek etc.
* org.el (org-agenda-skip-archived-trees): Docstring now
discourages using this.
(org-scan-tags): Check for org-agenda-archives-mode.
(org-map-entries): Make sure org-agenda-archives-mode is nil.
(org-agenda-files): Functionality of second arg changed.
* org-agenda.el (org-agenda-archives-mode): New variable
(org-write-agenda, org-prepare-agenda, org-agenda-list)
(org-search-view, org-todo-list, org-tags-view)
(org-agenda-list-stuck-projects): Call `org-agenda-files' with
`ifmode' argument.
(org-agenda-quit): Reset the archives mode.
(org-agenda-archives-mode): New command.
(org-agenda-set-mode-name): Include archives info.
* org.el (org-paste-subtree): Make sure the yanked headline is
visible if it was yanked at a visible point.
(org-move-item-up): Fix the bug with moving white space at the end
of the item.
(org-show-empty-lines-in-parent): New function.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Thu, 24 Jul 2008 13:59:56 +0000 |
parents | c1ef445563bb |
children | adc2dffbdfc3 |
comparison
equal
deleted
inserted
replaced
96974:fa6516860909 | 96975:60149c696033 |
---|---|
2 ;; | 2 ;; |
3 ;; Copyright (C) 2007, 2008 Free Software Foundation, Inc. | 3 ;; Copyright (C) 2007, 2008 Free Software Foundation, Inc. |
4 ;; | 4 ;; |
5 ;; Emacs Lisp Archive Entry | 5 ;; Emacs Lisp Archive Entry |
6 ;; Filename: org-export-latex.el | 6 ;; Filename: org-export-latex.el |
7 ;; Version: 6.05a | 7 ;; Version: 6.06a |
8 ;; Author: Bastien Guerry <bzg AT altern DOT org> | 8 ;; Author: Bastien Guerry <bzg AT altern DOT org> |
9 ;; Maintainer: Bastien Guerry <bzg AT altern DOT org> | 9 ;; Maintainer: Bastien Guerry <bzg AT altern DOT org> |
10 ;; Keywords: org, wp, tex | 10 ;; Keywords: org, wp, tex |
11 ;; Description: Converts an org-mode buffer into LaTeX | 11 ;; Description: Converts an org-mode buffer into LaTeX |
12 ;; URL: http://www.cognition.ens.fr/~guerry/u/org-export-latex.el | 12 ;; URL: http://www.cognition.ens.fr/~guerry/u/org-export-latex.el |
760 (when (re-search-forward "\\[\\\\#.\\]" nil t) | 760 (when (re-search-forward "\\[\\\\#.\\]" nil t) |
761 (if (plist-get remove-list :priority) | 761 (if (plist-get remove-list :priority) |
762 (replace-match "") | 762 (replace-match "") |
763 (replace-match (format "\\texttt{%s}" (match-string 0)) t t))) | 763 (replace-match (format "\\texttt{%s}" (match-string 0)) t t))) |
764 ;; convert tags | 764 ;; convert tags |
765 (when (re-search-forward "\\(:[a-zA-Z0-9]+\\)+:" nil t) | 765 (when (re-search-forward "\\(:[a-zA-Z0-9_@]+\\)+:" nil t) |
766 (if (or (not org-export-with-tags) | 766 (if (or (not org-export-with-tags) |
767 (plist-get remove-list :tags)) | 767 (plist-get remove-list :tags)) |
768 (replace-match "") | 768 (replace-match "") |
769 (replace-match (format "\\texttt{%s}" (match-string 0)) t t))))) | 769 (replace-match |
770 (org-export-latex-protect-string | |
771 (format "\\texttt{%s}" (save-match-data | |
772 (org-quote-chars (match-string 0))))) | |
773 t t))))) | |
774 | |
775 (defun org-quote-chars (s) | |
776 (let ((start 0)) | |
777 (while (string-match "_" s start) | |
778 (setq start (+ 2 (match-beginning 0)) | |
779 s (replace-match "\\_" t t s)))) | |
780 s) | |
770 | 781 |
771 (defun org-export-latex-fontify-headline (string) | 782 (defun org-export-latex-fontify-headline (string) |
772 "Fontify special words in string." | 783 "Fontify special words in string." |
773 (with-temp-buffer | 784 (with-temp-buffer |
774 ;; FIXME: org-inside-LaTeX-fragment-p doesn't work when the $...$ is at | 785 ;; FIXME: org-inside-LaTeX-fragment-p doesn't work when the $...$ is at |
775 ;; the beginning of the buffer - inserting "\n" is safe here though. | 786 ;; the beginning of the buffer - inserting "\n" is safe here though. |
776 (insert "\n" string) | 787 (insert "\n" string) |
777 (goto-char (point-min)) | 788 (goto-char (point-min)) |
778 (when (plist-get org-export-latex-options-plist :emphasize) | 789 (when (plist-get org-export-latex-options-plist :emphasize) |
779 (org-export-latex-fontify)) | 790 (org-export-latex-fontify)) |
791 (org-export-latex-keywords-maybe | |
792 org-export-latex-remove-from-headlines) | |
780 (org-export-latex-special-chars | 793 (org-export-latex-special-chars |
781 (plist-get org-export-latex-options-plist :sub-superscript)) | 794 (plist-get org-export-latex-options-plist :sub-superscript)) |
782 (org-export-latex-keywords-maybe | |
783 org-export-latex-remove-from-headlines) | |
784 (org-export-latex-links) | 795 (org-export-latex-links) |
785 (org-trim (buffer-substring-no-properties (point-min) (point-max))))) | 796 (org-trim (buffer-substring-no-properties (point-min) (point-max))))) |
786 | 797 |
787 (defun org-export-latex-quotation-marks () | 798 (defun org-export-latex-quotation-marks () |
788 "Export question marks depending on language conventions." | 799 "Export question marks depending on language conventions." |
1049 (org-if-unprotected | 1060 (org-if-unprotected |
1050 (goto-char (match-beginning 0)) | 1061 (goto-char (match-beginning 0)) |
1051 (let* ((re-radio org-export-latex-all-targets-re) | 1062 (let* ((re-radio org-export-latex-all-targets-re) |
1052 (remove (list (match-beginning 0) (match-end 0))) | 1063 (remove (list (match-beginning 0) (match-end 0))) |
1053 (type (match-string 2)) | 1064 (type (match-string 2)) |
1054 (raw-path (match-string 3)) | 1065 (raw-path (org-extract-attributes (match-string 3))) |
1055 (full-raw-path (concat (match-string 1) raw-path)) | 1066 (full-raw-path (concat (match-string 1) raw-path)) |
1056 (desc (match-string 5)) | 1067 (desc (match-string 5)) |
1057 imgp radiop | 1068 imgp radiop |
1058 ;; define the path of the link | 1069 ;; define the path of the link |
1059 (path (cond | 1070 (path (cond |