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

source code block too long #26

Closed
ZhangYet opened this issue Jun 21, 2020 · 5 comments
Closed

source code block too long #26

ZhangYet opened this issue Jun 21, 2020 · 5 comments

Comments

@ZhangYet
Copy link

When using latex.css to generate html from my org-mode note, the source code sometimes will be too long and out of

 area as below:
example

@ZhangYet
Copy link
Author

I tried to solved this problem in this way: #27

I wonder if you had a better way.

@vincentdoerig
Copy link
Owner

This should not be happening I think, because the <pre> element is set to overflow when the content is too big. This means that the element should be scrollable when the content exceeds its width. Could you maybe provide the code that caused the issue as well as your browser/OS? Cheers!

@ZhangYet
Copy link
Author

Here is the html source code: https://gist.github.com/ZhangYet/13da5cd6041108cb2a95c04c5e680548

I tried it in Google Chrome 81.0.4044.129 and Safari 13.1.1 (14609.2.9.1.3).

My OS is Mac OS 10.14.6.

Thx.

@vincentdoerig
Copy link
Owner

vincentdoerig commented Jun 27, 2020

I found the issue. org (probably) is adding this rule pre.src { position: relative; overflow: visible; padding-top: 1.2em; } here to <pre> which disables the x-overflow. You can fix it by overwriting latex.css using pre { overflow: auto !important; }.

@ZhangYet
Copy link
Author

It works! thx!

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

No branches or pull requests

2 participants