Re: [O] Bug: Figure caption highlighting [8.3.6 (8.3.6-7-g4d7d52-elpaplus @ /home/mcg/.emacs.d/elpa/org-plus-contrib-20161017/)]

2016-10-26 Thread Nicolas Goaziou
Hello,

mcg  writes:

> I am not sure if this qualifies as a bug:
> When I use figure captions in org-mode I get:
>
> #+CAPTION: Caption text is highlighted
> #+CAPTION[Figure with short caption for LaTeX TOC export]: Caption text 
>
> is not highlighted

FWIW, I cannot reproduce it.

Regards,

-- 
Nicolas Goaziou



[O] Bug: Figure caption highlighting [8.3.6 (8.3.6-7-g4d7d52-elpaplus @ /home/mcg/.emacs.d/elpa/org-plus-contrib-20161017/)]

2016-10-22 Thread mcg


I am not sure if this qualifies as a bug:
When I use figure captions in org-mode I get:

#+CAPTION: Caption text is highlighted
#+CAPTION[Figure with short caption for LaTeX TOC export]: Caption text 
is not highlighted


I know that the short-caption brackets are probably only intended for
LaTeX export. Is there an easy fix to get code highlighting for figures 
with short captions?.


Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
 of 2015-03-07 on trouble, modified by Debian
Package: Org-mode version 8.3.6 (8.3.6-7-g4d7d52-elpaplus @ 
/home/mcg/.emacs.d/elpa/org-plus-contrib-20161017/)


current state:
==
(setq
 org-export-with-todo-keywords nil
 org-export-backends '(ascii html icalendar latex freemind koma-letter)
 org-latex-tables-booktabs t
 org-latex-default-figure-position "!htbp"
 org-ref-get-pdf-filename-function 'org-ref-get-pdf-filename
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)

 org-adapt-indentation nil
 org-latex-classes '(("article"
"\\documentclass[11pt,twoside,pointlessnumbers,headsepline]{scrartcl}\n[DEFAULT-PACKAGES]\n[PACKAGES]\n\n\\hypersetup{%\ncolorlinks 
= false, %Colours links instead of ugly boxes\nlinkbordercolor=blue, 
%hyperlink borders will be blue\nurlcolor = blue, %Colour for 
external hyperlinks\nlinkcolor= red, %Colour of internal 
links\ncitecolor   = brown, %Colour of citations\ncitebordercolor = 
brown, %Colour of citations\npdfborderstyle={/S/U/W 0.5} %border style 
will be underline of width 0.5pt\n}\n\n\n[EXTRA]   \n"
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}") 
("\\paragraph{%s}" . "\\paragraph*{%s}")

  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("default-koma-letter" "\\documentclass[11pt]{scrlttr2}")
 ("letter" "\\documentclass{scrlttr2}\n 
[DEFAULT-PACKAGES]\n[NO-PACKAGES]")
 ("minimalRnw" 
"\\documentclass{scrartcl}\n[NO-DEFAULT-PACKAGES]\n\\usepackage{hyperref}"
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}") 
("\\paragraph{%s}" . "\\paragraph*{%s}")

  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("beamer" "\\documentclass[presentation]{beamer}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("report" "\\documentclass[11pt]{scrreprt}" ("\\part{%s}" 
. "\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . 
"\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{scrbook}" ("\\part{%s}" . 
"\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")

  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 )
 org-calc-default-modes '(calc-internal-prec 12 calc-float-format 
(float 5) calc-angle-mode deg calc-prefer-frac nil
  calc-symbolic-mode nil calc-date-format ( "-" MM "-" 
DD " " Www (" " hh ":" mm))

  calc-display-working-message t)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)

 org-export-with-timestamps nil
 org-agenda-diary-file "~/org/diary.org"
 org-ref-pdf-directory "~/library/link/"
 org-occur-hook '(org-first-headline-recenter)
 org-src-tab-acts-natively t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-start-on-weekday nil
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-format-latex-options '(:foreground default :background "White" 
:scale 1.2 :html-foreground "Black" :html-background
"Transparent" :html-scale 1.0 :matchers ("begin" "$1" 
"$" "$$" "\\(" "\\["))

 org-src-window-setup 'current-window
 org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function

 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-ref-cite-types '("citep" "autocite" "citealp" "citet" "citet*" 
"cite" "citep*" "citeauthor" "citeauthor*" "citeyear"

  "nocite" "citetext")
 org-ref-open-pdf-function 'org-ref-open-pdf-at-point
 org-ref-cite-onclick-function 'org-ref-cite-click-helm
 org-time-stamp-custom-formats '("<%d.%m.%Y>" . "<%d.%m.%y %a %H:%M>")
 org-latex-pdf-process '("latexmk -f -pdf %f")
 org-latex-text-markup-alist '((bold . "\\textbf{%s}") (code . 
protectedtexttt) (italic . "\\textit{%s}")
   (strike-through . "\\sout{%s}") (underline . 
"\\uline{%s}") (verbatim . protectedtexttt))

 org-ref-insert-label-function