2,246 reputation
2138
bio website
location
age
visits member for 3 years, 10 months
seen yesterday

Dec
31
accepted Background color for fancyvrb
Dec
31
comment Background color for fancyvrb
That's impressive. Would you consider annotating your answer for the TeX-illiterate? I find LaTeX code hard to understand. Also, is BVerbatim necessary because it puts the environment in a TeX box? Lastly, how would one put a line around the frame? frame=single does not do anything.
Dec
30
comment Background color for fancyvrb
@MarcoDaniel: Did you mean to point me to mdframed? Or something else?
Dec
30
comment Background color for fancyvrb
Thanks Jan. Actually, I would like the option of having one frame. Of course, this would need to be on the boundary where the color ends, otherwise it will look funny. Is this possible. BTW, I'm surprised nobody has answered the original question. I thought it seemed straightforward for people with the necessary knowledge/expertise. Perhaps I'm missing something.
Dec
30
comment Error using \usepackage{fancyvrb, fancybox}
@Werner: Ok. I thought there might be some tipoff in the error message wrt what the problem was. Thanks for the pointers.
Dec
30
revised Error using \usepackage{fancyvrb, fancybox}
added 338 characters in body
Dec
30
accepted Error using \usepackage{fancyvrb, fancybox}
Dec
26
comment Error using \usepackage{fancyvrb, fancybox}
@Herbert: Don't follow. Not allowed according to who/what?
Dec
26
comment Listings: new environments with arguments
Handy MWE, thanks.
Dec
26
comment Error using \usepackage{fancyvrb, fancybox}
@Herbert: Not sure what you mean.
Dec
26
comment Error using \usepackage{fancyvrb, fancybox}
Thanks for the illustrative example. I think you meant to put fancybox rather than fancyvrb in your example, at the current version doesn't really illustrate your point. With fancyvrb you get an error with and without a space in front of \end{Verbatim}. And I'm not sure about "redefined". Where is Verbatim earlier defined, such that fancybox is redefining it?
Dec
25
comment Error using \usepackage{fancyvrb, fancybox}
I'm not clear what you mean by "Moreover, the Verbatim environment as redefined by fancybox seems not to like blank spaces in front of \end{Verbatim}". I stuck blank spaces in various places, but it didn't seem to mind. As I mentioned in my answer to Werner, reformatting code gives an error, so there is something wrong here, but not sure what. Also, am even less clear what you mean by "the requirement that \end{Verbatim} starts on column 1 is surely a bug". Perhaps you could give an illustrative example? Thanks.
Dec
25
comment Error using \usepackage{fancyvrb, fancybox}
Hi egreg. Thanks for the pointers. Firstly, Peter seems to think that he is using the fancyvrb package ("The Verbatim (capital V) environment from fancyvrb still has that restriction, but has options for a frame and a lot of other bells and whistles."), but as you point out, with the Verbatim env in fancyvrb you would have [frame=single] not {frame=single}. You imply (but do not say) that the latter usage is from fancybox. Unfortunately this is not clear from the fancybox docs.
Dec
25
comment Error using \usepackage{fancyvrb, fancybox}
Thanks for the summary, Greg. Would best usage be to use \newcommand rather than \def? And do you think the errors in my example above stem from fancybox overwriting something that fancyvrb has defined? Actually, Peter's version gives errors too, but (improbably) whether there is an error seems to depend on how it is formatted. I didn't investigate carefully to make sure of this though. I see both fancybox and fancyvrb define a Verbatim environment. How can you tell Peter is not using fancyvrb functionality?
Dec
25
asked Background color for fancyvrb
Dec
25
revised Error using \usepackage{fancyvrb, fancybox}
deleted 84 characters in body
Dec
25
comment Error using \usepackage{fancyvrb, fancybox}
Possibly, but it seems very brittle. And I suppose my bigger question is, how can one debug this? Perhaps I should rephrase the question to make this clearer.
Dec
25
comment Error using \usepackage{fancyvrb, fancybox}
Yes, I know. My question is why including fancybox creates problems. If you look at the posting I cite, you'll see this is a stripped down version of code by Peter Flynn.
Dec
25
revised Error using \usepackage{fancyvrb, fancybox}
added 4 characters in body
Dec
25
comment Error using \usepackage{fancyvrb, fancybox}
Yes, the Verbatim environment is from the fancyvrb package.