Comments (9)
from manif.
Hi @joansola,
I'm aware of this issue, but afaik there isn't a way to detect whether the browser is in light or dark mode in this context. The only solution would be to pick a font color that work for both mode.
I've already addressed this issue in the past for the website using this script.
from manif.
Is the script changing the color of the latex object?
Is the documentation compiling the latex from source every time you refresh the screen, or that you renew the browser cache?
If so, one could try to detect color mode (e.g. "background" property "color") and pick a color that contrasts really.
e.g. latex_color = [255,255,255] - bkgnd_color
or latex_color = bkgnd_color + [127,127,127] mod 255
or just pick between white and black depending on bkgnd_color brightness sum(R,G,B)/3
if sum(bkgnd_color)/3 > 127
latex_color = 0,0,0
else
latex_color = 255,255,255
Does this make any sense to you?
from manif.
otherwise, a color [127,127,127] should do for all cases....
from manif.
The script simply sets the latex font color to white
. There is no way to figure out the website background color afaik.
As for the latex code, it is rendered by a third-party website (https://latex.codecogs.com/) in svg and embedded in markdown as an image. Altho Github recently introduced native Latex support so this could be revisited. This being said, either ways are somewhat limited and we can only stick to the predefined colors. So maybe changing for /color{gray}
?
from manif.
yep, color gray should be the fix. I think it'll be visible. May we try?
from manif.
Otherwise, print the table with all the functions with a known background color, then do the latex in black or white according to the chosen background of the table...
from manif.
Otherwise, print the table with all the functions with a known background color, then do the latex in black or white according to the chosen background of the table...
It is a markdown table, can't really set the background. Anyway I'll see how to fix that 👍
from manif.
OK then gray is the way
from manif.
Related Issues (20)
- Paper / Cheat Sheet vs Code inconsistency HOT 2
- Broken with current Eigen3? HOT 7
- Global versus local tangent space HOT 2
- Parsing an Eigen::Isometry3d matrix HOT 5
- Support specifying C++ standard from CMake command line when compiling Python bindings HOT 2
- cc1plus(48849) malloc: *** mmap(size=2097152) failed (error code=12) HOT 2
- Minus operator of SE(3) in paper HOT 1
- Practical benefit of SE(3) / Sim(3) vs T(3) x SO(3) HOT 5
- cast from float to double HOT 4
- Confused by Ceres Jacobian Explanation HOT 2
- Typo(?) for Jacobian of o-minus in the cheat sheet HOT 6
- gtest.h not found on Mac using Conda HOT 9
- Support for the new Ceres manifold framework
- Build tests for Mac are obsolete HOT 1
- Group actions for complex groups HOT 2
- New release? HOT 3
- ceres/autodiff_local_parameterization.h removed in Ceres 2.2.0 HOT 1
- Inequivalence between SE(3) and <R3, SO(3)> HOT 8
- Error when building from source HOT 6
- Python bindings to not compile with MSVC Visual Studio C++ compiler (cl.exe) work fine with LLVM's VS compatible compiler (clang-cl.exe) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manif.