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

Open
2 tasks
Intelligent2013 opened this issue Sep 28, 2024 · 0 comments
Open
2 tasks

Blog post: Line numbers #820

Intelligent2013 opened this issue Sep 28, 2024 · 0 comments
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant