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

Closed
Intelligent2013 opened this issue May 31, 2023 · 3 comments
Closed

Add line numbers #1004

Intelligent2013 opened this issue May 31, 2023 · 3 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?

@Intelligent2013 Intelligent2013 moved this from 🆕 New to ✅ Done in Metanorma Jun 1, 2023
@ronaldtse ronaldtse moved this from ✅ Done to Pending release in Metanorma Jul 8, 2023
@ronaldtse ronaldtse moved this from Pending release to 🏗 In progress in Metanorma Jul 8, 2023
@ronaldtse
Copy link
Contributor

@Intelligent2013 can we document this on metanorma.org and produce a blog post on it? Thanks!

@github-project-automation github-project-automation bot moved this from 🏗 In progress 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
Projects
Archived in project
Development

No branches or pull requests

2 participants