From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gaurav Sharma Subject: Re: Org Mode Latex Export Customization of org-export-latex-emphasis-alist Date: Tue, 29 Jun 2010 13:57:44 -0400 Message-ID: References: <838w5yks8y.fsf@yahoo.it> Reply-To: gsharma@ece.rochester.edu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=57413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTf47-0002WB-Og for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 13:57:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTf45-0008RO-Qv for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 13:57:47 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:46076) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTf45-0008R6-Lc for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 13:57:45 -0400 Received: by gwj21 with SMTP id 21so93143gwj.0 for ; Tue, 29 Jun 2010 10:57:44 -0700 (PDT) In-Reply-To: <838w5yks8y.fsf@yahoo.it> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giovanni Ridolfi Cc: emacs-orgmode@gnu.org Dear Giovanni, Thanks much for your response. I'm using Org-mode version 6.36. I'm guessing (based on what I read up) that it will not show up in emacs until you load org-latex. I also found a useful thread on this topic at: http://osdir.com/ml/emacs-orgmode-gnu/2009-11/msg01028.html which also indicated that @ and ! interfere with some regexp. The solutions suggested there were to either: 1) Add these through the Org->Customize interface or 2) Place in .emacs before org is loaded. Neither of these however seem to help in my case. I also learn't about org-submit-bug-report, and am including the full bug report below, in case that suggests something I am missing. I also thought of using alternate special characters as as emphasis delimiters but coudn't readily find ones that weren't taken - just as you also point out. At the moment, I've given up on trying to resolve this and am directly using \alert{} where I need it. Thanks again. -Gaurav ____________ Bug report - including configuration _____ Emacs : GNU Emacs 22.3.1 (i386-mingw-nt5.2.3790) of 2008-09-06 on SOFT-MJASON Package: Org-mode version 6.36 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-classes '(("beamer" "\\documentclass[t]{beamer}\n\\usepackage[utf8]{inputenc}\n\\usepac= kage[T1]{fontenc} \n\\usepackage{pgf} \n\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{graphicx}\n\\u= sepackage{graphics}\n\\usepackage{listings}\n\\usepackage{hyperref}" org-beamer-sectioning) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass{beamer}" org-beamer-sectioning)) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-mode-hook '((lambda nil (setq org-mouse-context-menu-function (quote org-mouse-context-menu)) (when (memq (quote context-menu) org-mouse-features) (org-defkey org-mouse-map [mouse-3] nil) (org-defkey org-mode-map [mouse-3] (quote org-mouse-show-context-menu)= )) (org-defkey org-mode-map [down-mouse-1] (quote org-mouse-down-mouse)) (when (memq (quote context-menu) org-mouse-features) (org-defkey org-mouse-map [C-drag-mouse-1] (quote org-mouse-move-tree)) (org-defkey org-mouse-map [C-down-mouse-1] (quote org-mouse-move-tree-start))) (when (memq (quote yank-link) org-mouse-features) (org-defkey org-mode-map [S-mouse-2] (quote org-mouse-yank-link)) (org-defkey org-mode-map [drag-mouse-3] (quote org-mouse-yank-link))) (when (memq (quote move-tree) org-mouse-features) (org-defkey org-mouse-map [drag-mouse-3] (quote org-mouse-move-tree)) (org-defkey org-mouse-map [down-mouse-3] (quote org-mouse-move-tree-start))) (when (memq (quote activate-stars) org-mouse-features) (font-lock-add-keywords nil (\` (((\, outline-regexp) 0 (\` (face org-link mouse-face highlight keymap (\, org-mouse-map))) (quote prepend)))) t)) (when (memq (quote activate-bullets) org-mouse-features) (font-lock-add-keywords nil (\` (("^[ ]*\\([-+*]\\|[0-9]+[.)]\\) +" (1 (\` (face org-link keymap (\, org-mouse-map) mouse-face highlight)) (quote prepend))))) t) ) (when (memq (quote activate-checkboxes) org-mouse-features) (font-lock-add-keywords nil (\` (("^[ ]*\\([-+*]\\|[0-9]+[.)]\\) +\\(\\[[ X]\\]\\)" (2 (\` (face bold keymap (\, org-mouse-map) mouse-face highlight)) t)))) t) ) (defadvice org-open-at-point (around org-mouse-open-at-point activate) (let ((context (org-context))) (cond ((assq :headline-stars context) (org-cycle)) ((assq :checkbox context) (org-toggle-checkbox)) ((assq :item-bullet context) (let ((org-cycle-include-plain-lists t)) (org-cycle))) (t ad-do-it)) ) ) ) #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5]) org-export-latex-emphasis-alist '(("*" "\\textbf{%s}" nil) ("/" "\\emph{%s}" nil) ("_" "\\underline{%s}" nil) ("+" "\\st{%s}" nil) ("=3D" "\\verb" t) ("~" "\\verb" t) ("@" "\\alert{%s}" nil)) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-mode-hook '((lambda nil (setq org-mouse-context-menu-function (quote org-mouse-agenda-context-menu)) (org-defkey org-agenda-mode-map [mouse-3] (quote org-mouse-show-context-menu)) (org-defkey org-agenda-mode-map [down-mouse-3] (quote org-mouse-move-tree-start)) (org-defkey org-agenda-mode-map [C-mouse-4] (quote org-agenda-earlier)) (org-defkey org-agenda-mode-map [C-mouse-5] (quote org-agenda-later)) (org-defkey org-agenda-mode-map [drag-mouse-3] (quote (lambda (event) (interactive "e") (case (org-mouse-get-gesture event) (:left (org-agenda-earlier 1)) (:right (org-agenda-later 1)))))) ) ) org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp nil org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) ) _________________________________ On Tue, Jun 29, 2010 at 7:11 AM, Giovanni Ridolfi wrote: > Gaurav Sharma writes: > >> customize the >> org-export-latex-emphasis-alist by using the following in my .emacs >> >> (setq org-export-latex-emphasis-alist > > I -[Org 6.36 trans]- don't have this variable. ?-). > which org-version do you use? you can see with: > > M-x org-version > >> =A0(quote (("*" "\\textbf{%s}" nil) >> ("/" "\\emph{%s}" nil) ("_" "\\alert{%s}" nil) ("+" "\\st{%s}" nil) >> ("=3D" "\\verb" t) ("@" "\\alert{%s}" nil) ("!" "\\note{%s}" nil) ("~" >> "\\verb" t)))) >> > >> However, the definitions of "@" and "!" do not seem to take effect at >> all. > Could you please change the characters avoiding "@" "!" ? > (I know there is not much choice of characters that can be used as > "emphasis delimiters" ) > > But I think that "@" "!" does interfere with some regexp: > e.g. =A0"@" is used in the HTML export. > > cheers, > Giovanni > --=20 Gaurav Sharma Ph (585)-275-7313(Office) Assoc Professor, ECE Department Fax. (585)-273-4919 Director, Center for Emerging and Innovative Sciences (CEIS) Hopeman 417, RCBox 270126, University of Rochester, Rochester, NY 14627-012= 6 gaurav.sharma@rochester.edu http://www.ece.rochester.edu/~gsharma