Re: [Orgmode] org-caption-shortn

2011-02-17 Thread Thomas S. Dye
Aloha all, Replying to myself again. I have only the faintest idea what I'm doing, but this patch appears to take care of the problem described earlier, where the optional argument to the LaTeX caption command was recycled if not replaced by a new optional argument. The captions exported

Re: [Orgmode] org-caption-shortn

2011-02-17 Thread Thomas S. Dye
Aloha all, First, apologies for my rudimentary programming skills. The attached patch partially answers the query I posed earlier: the shortn argument was ignored except for the wrapfigure environment. The attached patch makes other environments aware of shortn. This works, sort of. If

[Orgmode] org-caption-shortn

2011-02-16 Thread Thomas S. Dye
Aloha all, I stumbled across code in org-exp.el and org-latex.el that appears to my untrained eye to be designed to parse the optional argument to the LaTeX \caption command. This bit in org-exp.el appears to parse out the optional command: (when (string-match "\\[\\(.*\\)\\]{\\(