[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Longtable continuation strings customizable
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] Longtable continuation strings customizable |
Date: |
Mon, 28 Oct 2013 18:27:19 +0100 |
Hello,
address@hidden (Thomas S. Dye) writes:
> Nicolas Goaziou <address@hidden> writes:
>
>> I agree customization is more powerful here (although it means that all
>> non-English Org users will need to change it), but so it is for every
>> other multilingual string.
>>
>> Since we didn't choose to make multilingual strings customizable, I find
>> it strange that this particular one is.
>>
>> Also, I you can use a filter to modify that string and make it comply to
>> a specific style, if needed. IOW, you also get 1) and 2) with the
>> `org-export-dictionary' way, with 1) being more user-friendly and 2)
>> more difficult than in the current way.
>>
>> Am I missing something?
>
> An example filter?
(defun my-personal-table-continuation-strings (row backend info)
(when (org-export-derived-backend-p 'latex)
(replace-regexp-in-string
"multicolumn{[0-9]+}{l}{\\(.*\\)}" "String 1"
(replace-regexp-in-string
"multicolumn{[0-9]+}{r}{\\(.*\\)}" "String 2"
row nil nil 1)
nil nil 1)))
(add-to-list 'org-export-filter-table-row-functions
'my-personal-table-continuation-strings)
Untested.
Regards,
--
Nicolas Goaziou
- [O] [PATCH] Longtable continuation strings customizable, Thomas S. Dye, 2013/10/26
- Re: [O] [PATCH] Longtable continuation strings customizable, Nicolas Goaziou, 2013/10/27
- Re: [O] [PATCH] Longtable continuation strings customizable, Carsten Dominik, 2013/10/27
- Re: [O] [PATCH] Longtable continuation strings customizable, Thomas S. Dye, 2013/10/27
- Re: [O] [PATCH] Longtable continuation strings customizable, Nicolas Goaziou, 2013/10/28
- Re: [O] [PATCH] Longtable continuation strings customizable, Thomas S. Dye, 2013/10/28
- Re: [O] [PATCH] Longtable continuation strings customizable,
Nicolas Goaziou <=
- Re: [O] [PATCH] Longtable continuation strings customizable, Thomas S. Dye, 2013/10/28
- Re: [O] [PATCH] Longtable continuation strings customizable, Nicolas Goaziou, 2013/10/29
- Re: [O] [PATCH] Longtable continuation strings customizable, Thomas S. Dye, 2013/10/30
- Re: [O] [PATCH] Longtable continuation strings customizable, Nicolas Goaziou, 2013/10/31
- Re: [O] [PATCH] Longtable continuation strings customizable, Thomas S. Dye, 2013/10/31