Skip to main content
Share Your Experience: Take the 2024 Developer Survey
12 votes
Accepted

Python algorithm that converts array-like data into MathJax

This looks like a handy tool to have around, maybe we can make it even better. Style As per the official Python Style Guide (often known by his nickname PEP8), keyword-arguments of functions should ...
AlexV's user avatar
  • 7,260
9 votes

Python algorithm that converts array-like data into MathJax

Python's string formatting has come a long way from the "%s" formatting days. Nowadays classes can even determine on their own how to handle format specifiers. ...
Graipher's user avatar
  • 41k
5 votes

LaTeX: tikz and chemfig combination

I think the hatched lines could be simplified a bit. Instead of drawing two lines and then all the tiny lines in the for-loop, you could draw a double line and fill it with a hatched pattern: ...
samcarter's user avatar
  • 508
5 votes

Custom BibTeX Style File to Implement Patents in the ACS Style

A good first step is always to look at the BibTeX output and trying to resolve all the errors that appear. In your case, I get ...
Marcel Krüger's user avatar
4 votes
Accepted

Calculate general relativity-related tensors/arrays using metric tensor as input

In general, have your classes on top of the file, and then all the code. Don't have them inbetween. In Python, if we know a variable won't change, and we just have it as a reference or only read from ...
miquelvir's user avatar
  • 345
4 votes

Chemfig: isomeri equilibrium

If you align the chemical thingies at the top, you only need to figure out how much you want to move the arrows down -- so instead of guessing a couple of coefficients, only one is needed: ...
samcarter's user avatar
  • 508
3 votes
Accepted

Calculate general relativity-related tensors/arrays using metric tensor as input, part 2

I've said it before and I'll say it again: you need to stop asking your user for markup that's non-standard and goes through an undocumented blender. Ask for Sympy-format expressions, period. I ...
Reinderien's user avatar
  • 62.1k

Only top scored, non community-wiki answers of a minimum length are eligible