154 reputation
6
bio website
location
age
visits member for 2 years, 3 months
seen Jun 30 '12 at 17:45

May
27
comment How to make enumerate items align at left margin?
Never mind, doing itemindent=0em seems to have fixed it. Thanks for a brilliant answer!
May
27
comment How to make enumerate items align at left margin?
There is one problem with this. I was wondering whether you could fix that in your solution. This is the problem: Try making the text in each item be long enough to be not just one line. You'll see that subsequent lines are aligned in a very weird way in each item.
May
11
comment Customizing TOC to my needs (right-adjusting section numbers)
@daleif thanks, that worked.
May
11
comment Customizing TOC to my needs (right-adjusting section numbers)
This works, expect for one problem: For some reasons, this solution causes the section number (e.g. "1.1") to move down a bit, and it makes "1.1." a bit below "section", compared to the baseline. Why would this be happening?
May
6
comment A good METAPOST alternative for plotting 3d surfaces
Is there a way to get these plots to look more like in the METAPOST solution of DJP? (With black curves throughout the surface, and dotted lines on the axis-planes.)
Apr
30
comment An environment for writing regular-font pseudocode
@egreg I've decided to just tweak things around (say by adding -1em if needed to some dimensions) to make this work for me. One final question: If the main font of the document is 11pt, do you know how I can make the font inside the box 10pt?
Apr
30
comment An environment for writing regular-font pseudocode
That's weird. This is my output: cl.ly/1L1k151M0R1W0243081Q I wonder why I get a different output than you do.
Apr
30
comment An environment for writing regular-font pseudocode
I still get an unwanted space after the last line in the box: cl.ly/0D0l1N3Z450I0S1K2S2X/texprob.tex
Apr
30
comment An environment for writing regular-font pseudocode
This fixes the right margin. Thanks. However, are you sure about the spacing after the box? I've replicated this issue in a stripped down tex file: cl.ly/2C1s2s1c2c0V2f1M0K0d/texprob.tex And this is my output: cl.ly/000z193o2f2q2n2g2235
Apr
30
comment An environment for writing regular-font pseudocode
Well, just to make sure things look completely symmetric, given the provided margins.
Apr
30
comment An environment for writing regular-font pseudocode
Thanks, we're almost there! There are still two problems with this. To see them, turn all the inner margins to zero, as shown here: cl.ly/123m091T0w2y3d3g380W Next, here is an example usage: cl.ly/1O080S2E161R3o1Y162o Finally, here is the output: cl.ly/3j1l0I2N0Q47391f3T3W The first problem is that there is still an extra margin on the right side. The second problem is that there is a vertical margin after the box. Any ideas on how these problems can be fixed?
Apr
30
comment An environment for writing regular-font pseudocode
Is it possible to somehow use mdframed with your solution? Your solution is absolutely wonderful, except that it doesn't support page breaks. With that added, everything would be absolutely perfect.
Apr
30
comment An environment for writing regular-font pseudocode
Thanks, this works…almost. Is there any way to update this such that longer code can be split across pages? (Such that the vertical lines on both sides just continue from one page to the next (of course not going into the footer).)
Apr
30
comment An environment for writing regular-font pseudocode
Thanks for your efforts. However, the updated code fixes the width at 50%. It's not flexible according to the content.
Apr
30
comment An environment for writing regular-font pseudocode
Also, how do I change the top,bottom,left,right inner margins (the distances between content and box)?
Apr
30
comment An environment for writing regular-font pseudocode
That doesn't horizontally fit the box to the content - it makes the box take up the entire horizontal page no matter how narrow the content is...