Reputation
12,307
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
2 33 53
Newest
 Nice Answer
Impact
~669k people reached

Oct
14
comment How can I display an array (as in the data structure from Computer Science, not the mathematical version) in LaTeX?
@Werner: The issue I was having is that if the groups are removed the free space bracket is drawn. I can't imagine it is a compounding issue, since the opacity is set to 0 before drawing the bracket and then to 0.5 afterwards, yet the 0.5 opacity is used on the bracket. It looks like the commands aren't executed in order for some reason. Kind of stumped me.
Oct
13
awarded  Mortarboard
Oct
13
comment Symbol for skeptical consequence
ugly way: $|\!\!\!\sim$. This might not scale well...
Oct
13
comment What is the best way to setup this statblock as a macro?
Perhaps an example of what you get as input would be helpful as well. If possible example input matching your example output.
Oct
13
comment Is there a package to differently color nested expressions in the output?
If you really want to you can take this quite far. This is just a basic working example to show (one of) the mechanism(s) you can use to achieve this kind of thing. If you are going to extend it into something more powerful, please let me know, I'd be interested to see how far it can be extended. Although I am unsure of how much demand there is for something like this :)
Oct
13
revised Is there a package to differently color nested expressions in the output?
added some info and the example
Oct
13
answered Is there a package to differently color nested expressions in the output?
Oct
13
comment How do I cancel/strike out a line?
I like this slightly better than my answer, doesn't require a library and looks exactly like the \not\to as well.
Oct
13
answered How do I cancel/strike out a line?
Oct
13
revised How can I display an array (as in the data structure from Computer Science, not the mathematical version) in LaTeX?
fixed code: added ensuremath to length determination
Oct
13
answered How can I display an array (as in the data structure from Computer Science, not the mathematical version) in LaTeX?
Oct
13
awarded  Enlightened
Oct
13
awarded  Nice Answer
Oct
13
revised How can I display an array (as in the data structure from Computer Science, not the mathematical version) in LaTeX?
added 2594 characters in body
Oct
12
answered How can I display an array (as in the data structure from Computer Science, not the mathematical version) in LaTeX?
Oct
12
comment Spacing too large with exponents and big Oh
I don't think the spacing looks that bad actually... You could manually adjust the spacing by adding a negative hspace. \[ O\hspace*{-.25em}\left(\frac{1}{n}\right) \] and the same for the exponent.
Oct
12
comment Highlighting line ranges in a lstlisting: partial solution, but expansion issues
@projetmbc Sure, just remove all the <> stuff, the only's, and the beamer stuff and include pfg.
Oct
11
awarded  Commentator
Oct
11
comment Highlighting line ranges in a lstlisting: partial solution, but expansion issues
It appears that \ifx goes to the true branch if and only if Both arguments are macros AND their first level expansion is identical AND they have the same status with respect to \long and \outer. Source. The first level expansion is most likely where it goes wrong. Not sure how to remedy that, yet.
Oct
11
comment Highlighting line ranges in a lstlisting: partial solution, but expansion issues
It looks like you don't want \btLstHL to expand to \empty. If you change your MWE to use \empty as the linebackgroundcolor you get the same problem with white lines. To make it expand to \empty, you would only need to place that in the 4th argument, instead of leaving it actually empty as it is now.