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

Allow selection that does not select line numbers #6

Open
qrnch-jan opened this issue Sep 26, 2023 · 3 comments
Open

Allow selection that does not select line numbers #6

qrnch-jan opened this issue Sep 26, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@qrnch-jan
Copy link
Contributor

I apologize in advance for this (probably) annoying request, because I struggled with accomplishing this in HTML/CSS, and I can't imagine that it's more fun in PDF (it may not even currently be possible in typst?):

I have a document that contains some reference code. While the reference code isn't meant to be used as-is, I realize that in practice most readers will likely copy and paste the code into their editor of choice. It would be nifty if, when selecting the code, the line numbers are omitted.

@jneug jneug added this to the v2.0.0 milestone Nov 3, 2023
@jneug jneug self-assigned this Nov 3, 2023
@jneug jneug added the enhancement New feature or request label Nov 3, 2023
@jneug
Copy link
Owner

jneug commented Nov 3, 2023

This should work already, but might depend on the PDF-Viewer you use.
Maybe this will be more robust once I'm done rewriting the package for Typst 0.0.9.

@qrnch-jan
Copy link
Contributor Author

qrnch-jan commented Nov 3, 2023

Interesting -- thanks, I'll try a few different readers and report back the results.

Edit: I just tried two so far, but Preview on macOS doesn't handle it (which is unfortunate, for me (since that's what I use most often)), but Firefox handles it correctly.

@9SMTM6
Copy link

9SMTM6 commented Jun 18, 2024

@qrnch-jan huh, firefox does that for you? With the up to date version too? For me on linux it sadly doesnt seem to work, in neither Firefox, Chromium, Okular nor VSCode-pdf.

Note I don't have a strong wish for this feature, It would've been neat, but oh well. Package is amazing as is.

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

No branches or pull requests

3 participants