5

I noticed the following difference in font sizes, using Firefox 3.6.12 on Windows Vista:

Is this a design decision or a bug?

  • What code is used to generate this? – Charles Stewart Nov 27 '10 at 9:59
  • @Charles: The usual 4 space indentation; it's a screenshot of part of this answer. – Hendrik Vogt Nov 27 '10 at 10:04
  • 5
    I just remembered why I did this. The code appearing in the post/answer text has the same size as the rest of the body text size. The code block text is slightly smaller. I intentionally made the code block a bit smaller so it's easier to differentiate. Also this allows more text to be displayed before scrollbar appears. Do you see this as a problem? – Jin Nov 28 '10 at 0:44
  • @Jin: Thanks for your explanation. I don't see a problem for larger blocks of code, as one usually won't read them thoroughly anyway but only use them for cut and paste. (So it might indeed be helpful to have it a bit smaller.) However, if there are only 1 or 2 lines of code, then I find it harder to read with the smaller font. It would be interesting to know what others think. – Hendrik Vogt Nov 28 '10 at 12:06
  • 2
    I like it as it is, mainly for the reasons Jin gave. – Caramdir Nov 29 '10 at 1:51
2

The issue seems to be resolved, but for posterity's reference value, the code:

Your attempt with `\leftskip` didn't work because you need to end the paragraph before ending the group with `}`. The following works:

    {\addtolength{\leftskip}{1cm}This has an increased left margin.\par}

Your attempt with \leftskip didn't work because you need to end the paragraph before ending the group with }. The following works:

{\addtolength{\leftskip}{1cm}This has an increased left margin.\par}
  • how is this resolved? it's exactly the same – Jeff Atwood Nov 30 '10 at 10:44
  • 1
    @Jeff: resolved =/= solved (one for english.SX methinks). – Loop Space Nov 30 '10 at 11:40
  • @Jeff: Jin explained why it is like it is, and it seemed like a reasonable explanation. So it's still the same as before, but now we understand why it counts as a feature :-). – SamB Feb 19 '11 at 20:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .