MalcolmK / dmp-references

MIT License
2 stars 0 forks source link

Support chapter referencing. #11

Open mauvm opened 9 years ago

mauvm commented 9 years ago

I'm not sure if it's in the scope of this plugin, but I'd like to reference other chapter from within my document. For example:

chapter
    p Lorem ipsum dolar <reference type="chapter" to="my-other-chapter">see this chapter</reference> sit amet.

...

chapter
    h1 My other chapter

The to attribute references to a slugified version of the title. Which is easy to use, but not very stable.. If the title changes, the reference breaks. This can be solved by using labels:

chapter
    h1(label='my-chapter') My other chapter

So that the to attribute becomes: to="my-chapter". This could also be used for referencing things like tables and figures.

Also see LaTeX Labels for the LaTeX approach. What are your thoughts on this?

MalcolmK commented 9 years ago

Thanks for your support! I don't think this is within the scope of this plugin, but I do agree it is an awesome idea. Currently I am working on a plugin for referencing to inline tables and figures, but due to the lack of time, the development is going very slow. What do you think, should I put this reference in the plugin for inline references to tables and figures, or should a seperate plugin be created?

mauvm commented 9 years ago

The name of this plugin is very general. references could be anything. So not quite sure how to handle this. Maybe change the name of this plugin to something with APA-references or reference-list? dmp-labels could be a good name for inline (table and figure) labelling/referencing.

MalcolmK commented 9 years ago

@mauvm I think you are right on this point. I think the APA-references is a better name.