[-- Attachment #1: Type: text/plain, Size: 640 bytes --] Hi, there, I am wondering whether it is possible to define the starting number of headings when exporting org-mode files. The problem is that, I had a long Org file that I want to separate it into several small ones, each will be exported to a HTML file. But if so, every exported HTML will have the headings numbered from 1, while I prefer the headings be numbered as if they are exported from one file, to show the continuation of contents. I searched the Org document but didn't find anything useful. I would appreciate very much If you have come across some similar requirement and give me any guidance. Thanks! Regards, Yujie [-- Attachment #2: Type: text/html, Size: 756 bytes --]
(info "(org) Include files")
Yujie Wen <yjwen.ty@gmail.com> writes:
> Hi, there,
>
> I am wondering whether it is possible to define the starting number of
> headings when exporting org-mode files.
>
> The problem is that, I had a long Org file that I want to separate it
> into several small ones, each will be exported to a HTML file. But if
> so, every exported HTML will have the headings numbered from 1, while
> I prefer the headings be numbered as if they are exported from one
> file, to show the continuation of contents.
>
> I searched the Org document but didn't find anything useful. I would
> appreciate very much If you have come across some similar requirement
> and give me any guidance. Thanks!
>
> Regards,
> Yujie
Yujie Wen <yjwen.ty@gmail.com> writes:
> I am wondering whether it is possible to define the starting number
> of headings when exporting org-mode files.
>
> The problem is that, I had a long Org file that I want to separate
> it into several small ones, each will be exported to a HTML file. But
> if so, every exported HTML will have the headings numbered from 1,
> while I prefer the headings be numbered as if they are exported from
> one file, to show the continuation of contents.
>
If you split the big org file into small ones, you can use #+INCLUDE to
put things back together. It does not do quite what you want - it'll
produce a single HTML file on export - but I for one don't really care
what the HTML file looks like, as long as I can edit convenienttly.
--
Nick
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --] Hi, Jambunathan and Nick Yes, I prefer the separated org files be exported to several HTMLs, but with continuous heading numbering. Not that re-including them and export into one HTML. :) Thanks for your suggestions. Yujie 2013/11/21 Nick Dokos <ndokos@gmail.com> > Yujie Wen <yjwen.ty@gmail.com> writes: > > > I am wondering whether it is possible to define the starting number > > of headings when exporting org-mode files. > > > > The problem is that, I had a long Org file that I want to separate > > it into several small ones, each will be exported to a HTML file. But > > if so, every exported HTML will have the headings numbered from 1, > > while I prefer the headings be numbered as if they are exported from > > one file, to show the continuation of contents. > > > > If you split the big org file into small ones, you can use #+INCLUDE to > put things back together. It does not do quite what you want - it'll > produce a single HTML file on export - but I for one don't really care > what the HTML file looks like, as long as I can edit convenienttly. > > -- > Nick > > > [-- Attachment #2: Type: text/html, Size: 1658 bytes --]