Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support chapter referencing. #11

Open
mauvm opened this issue Mar 3, 2015 · 3 comments
Open

Support chapter referencing. #11

mauvm opened this issue Mar 3, 2015 · 3 comments

Comments

@mauvm
Copy link
Contributor

mauvm commented Mar 3, 2015

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
Copy link
Owner

MalcolmK commented Mar 5, 2015

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
Copy link
Contributor Author

mauvm commented Mar 9, 2015

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants