0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-16 09:16:27 +00:00
org-mode/doc
Puneeth Chaganti 249ae99b18 Include an .org file and lower the level of all its headers
* doc/org.texi (Include files): Document :minlevel.
* lisp/org-exp.el (org-export-handle-include-files): Support :minlevel
property.
(org-get-file-contents): New argument minlevel to demote included
content.

On Sat, Nov 13, 2010 at 1:12 AM, Carsten Dominik
<carsten.dominik@gmail.com> wrote:
>
> On Nov 10, 2010, at 3:46 AM, Jianshi Huang wrote:
>
>> Hi,
>>
>> I know I can include any file using #+INCLUDE.
>>
>> I need to include several org files, but they were edited
>> independently as a complete document.
>>
>> Now I want to lower the levels of headers in these org files
>> automatically during inclusion. Is there a way to do that?
>
> No.  But since #+include accepts arguments, it could be implemented,
> something like
>
> #+include "aaa.org" :minlevel 4
>
> or so.  I would accept a good patch to this effect.

Here's a patch. I tested it with a simple document and works fine.

Thanks,
Puneeth
2010-11-15 11:15:53 +01:00
..
.aspell.org.conf Track support files useful in checking Org documentation. 2008-04-01 15:59:35 +02:00
.nosearch Add .nosearch file to the doc/ subdirectory. 2008-12-17 17:25:31 +01:00
dir Split out a number of files from org.el, and reorganize the 2008-03-28 09:57:14 +01:00
Documentation_Standards.org Fix some typos 2009-11-15 10:04:23 +01:00
org.texi Include an .org file and lower the level of all its headers 2010-11-15 11:15:53 +01:00
orgcard.tex Set version number to 7.3 2010-11-07 14:52:14 +01:00
orgguide.texi Set version number to 7.3 2010-11-07 14:52:14 +01:00
pdflayout.sty Change refcard processing to pdftex, using pdflayout.sty 2010-03-05 08:28:01 +01:00
texinfo.tex Use proper quote and backtick in PDF output 2010-07-18 11:51:03 +02:00