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

Add line numbers #1004

Open
Intelligent2013 opened this issue May 31, 2023 · 2 comments
Open

Add line numbers #1004

Intelligent2013 opened this issue May 31, 2023 · 2 comments
Assignees

Comments

@Intelligent2013
Copy link
Contributor

Source: metanorma/mn2pdf#201

As titled, for testing purposes.

@ronaldtse
Copy link
Contributor

We also need to add source code and source code with line numbers to the iso rice document to demonstrate.

@Intelligent2013
Copy link
Contributor Author

ISO XSLT updated for 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

PDF generated for mn-samples-iso\sources\international-standard\rice-en.final.adoc (with updates mentioned above):
rice-en.final.presentation.pdf

@ronaldtse Is that enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants