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

Is it possible to reference table numbers #173

Closed
ktmf01 opened this issue Feb 8, 2022 · 10 comments
Closed

Is it possible to reference table numbers #173

ktmf01 opened this issue Feb 8, 2022 · 10 comments

Comments

@ktmf01
Copy link

ktmf01 commented Feb 8, 2022

Is there syntax to include a table number in the document? For example, is something like this available?

Please refer to table :syntax-inserting-number-of-useful-info-table: for more information

[table]
Table: useful info {useful-info-table}
@miekg
Copy link
Contributor

miekg commented Feb 8, 2022 via email

@ktmf01
Copy link
Author

ktmf01 commented Feb 13, 2022

Perhaps I don't understand what you mean by 'it', but it doesn't seem to work. Could you please rephrase your answer?

@miekg
Copy link
Contributor

miekg commented Feb 14, 2022 via email

@ktmf01
Copy link
Author

ktmf01 commented Feb 14, 2022

Thanks, that is indeed clearer.

However, now I also know where the confusion came from: I thought you meant a way to insert a table number, not give a table an ID. Is there a way to replace a 'hardcoded' table number with a reference like in LaTeX?

Please see table 6 for more information
Please see table {someway-to-reference-table-with-id-interesting-table} for more information

@miekg
Copy link
Contributor

miekg commented Feb 14, 2022 via email

@ktmf01
Copy link
Author

ktmf01 commented Feb 14, 2022

Thanks

@ktmf01 ktmf01 closed this as completed Feb 14, 2022
@miekg
Copy link
Contributor

miekg commented Feb 21, 2022

you actually can wit the except it's not implemented in mmark, the format attribute can be used to tweak the output.

We may want to do something similar to citations here: https://mmark.miek.nl/post/syntax/#citations

@miekg miekg reopened this Feb 21, 2022
@miekg
Copy link
Contributor

miekg commented Feb 21, 2022

    [@RFC2535, section 5] -> sectionFormat=“of”
    [@RFC2525, see, section 5] -> sectionFormat=“comma”
    [@RFC2525, (see) section 5] -> sectionFormat=“parens”
    [@RFC2525, 5] -> sectionFormat=“bare”

We could do e.g.
(#id, see title) and (#id, see counter), where "see" is optional, this would set the format attribute. Setting both sectionFormat and format isn't supported then.
Unsure if this is massively complicating things are a neat way of solving this.

@miekg
Copy link
Contributor

miekg commented Feb 21, 2022

See #175 for ideas

@miekg
Copy link
Contributor

miekg commented Aug 30, 2022

#180 implements this, allows for 'use number' or 'use title', see https://mmark.miek.nl/post/syntax/#cross-references

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

No branches or pull requests

2 participants