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

Blog post: Line numbers #820

Closed
2 tasks done
Intelligent2013 opened this issue Sep 28, 2024 · 1 comment
Closed
2 tasks done

Blog post: Line numbers #820

Intelligent2013 opened this issue Sep 28, 2024 · 1 comment
Assignees
Labels

Comments

@Intelligent2013
Copy link
Contributor

Intelligent2013 commented Sep 28, 2024

From metanorma/metanorma-iso#1004

To do:

  • update metanorma.org documentation
  • add blog post about line numbering feature

ISO XSLT supports the line numbering feature. To render line numbers, add the document attribute:

:presentation-metadata-linenumbers: true

PDF rendering example:
image

Source code with line numbers (linenumbers):

[source,ruby,linenumbers]
--
puts "Hello, world."
%w{a b c}.each do |x|
  puts x
end
--

PDF rendering example:
image

Note: currently, line numbers feature supported in ISO and IEEE draft documents.

@Intelligent2013
Copy link
Contributor Author

Done in #836.

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Metanorma Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant