11,141 reputation
22749
bio website about:blank
location Hilversum, Netherlands
age 27
visits member for 3 years
seen Oct 20 at 11:23

I'm a discrete mathematician. My main research interests are discrete optimization and scheduling in specific. I've been using LaTeX on and off since 2007, mostly for homework assignments. I have really gotten into it while writing my thesis though. Scheduling problems call for quite a lot of diagrams, so my main focus and interest within LaTeX is TikZ.


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.
Oct
11
revised Creating Page Border for Single Page only
added 183 characters in body
Oct
10
answered Creating Page Border for Single Page only
Oct
10
comment Put a leading space to a paragraph using texttt
I am unsure about what actually happens to the spaces, but putting a box around it does produce them. So \mbox{\texttt{~~Some~~thing}} should work as you expect it. Although the indentation will be larger, because, as Werner has already mentioned, the spaces are larger since texttt is monospaced.
Oct
10
comment Snippet Manager in TeXnicCenter
I don't use TeXnicCenter, so I can't really help you there. You could use something like Auto-Hotkey to set that up to work regardless of what editor you are using though.
Oct
7
answered What is the best symbol for vector/matrix transpose?
Oct
7
comment Vertical space between horizontal lines
\\[x] doesn't work, it starts a new line after x. Even if x is explicit, the newline is not.
Oct
7
answered Vertically Centering Text/Numbers in Rows of Array using Math Mode
Oct
6
comment Document requiring infinitely many compiler passes?
(cont.) This leads to a circular program, which won't halt as long as we assume latex is consistent, i.e. given the same input, the output is also the same.
Oct
6
comment Document requiring infinitely many compiler passes?
@FUZxxl, I'm not 100% sure, but I don't think that is relevant here. The halting problem is deciding whether or not a certain program ever halts given a certain input. If you provide latex with the tex file from my answer as input, we can observe that it halts. This gives rise to new input, the same tex file + the aux file produced. Which leads to a new aux file as output. This again becomes the input, etc. The aux file only has two states though, so we are only working with 2 distinct inputs (disregarding the initial run with no aux) which lead to eachother as output.
Oct
6
comment Document requiring infinitely many compiler passes?
As a matter of fact, thats incorrect. The A also switches between Huge and small size. Change the capital A to a lowercase a in the else branch to see this a little more clearly.
Oct
6
comment Document requiring infinitely many compiler passes?
The output is different each time, the A might have the same size, but it is not on the same page. The output switches between having 0 and 1 blank pages prior to the Huge A. I would not call that stable at all.