## #StackBounty: #verbatim #python Jupyter In/Out without Overflowing

### Bounty: 50

In Jupyter In and Out Style and Last line in fancyvrb has weird spacing I asked for a neat solution to realize a Jupyter style within LaTeX.

That’s great so far and works quite good and solid. However, it would be perfect to have the input/output numbers not overflowing on the left. Is that possible without too much effort?

The minimal example I am working with is adopted from the answer in Last line in fancyvrb has weird spacing.

Get this bounty!!!

## #StackBounty: #footnotes #verbatim Footnotes in a verbatim environment that also appear in (or just below) that environment

### Bounty: 50

I require a verbatim like environment that allows footnotes and, in addition, displays the footnote text in that environment (as opposed to the page) or just below the environment floating with it.

I have got the following.

``````documentclass[a4paper,10pt]{book}
usepackage{verbatim}
usepackage{fancyvrb}
usepackage{bera}

newenvironment{MyVerb}[1]
{endVerbatim}

begin{document}

An apple a day....

begin{MyVerb}{Blah}
Blah.
Blah@footnote{Blah.} blah.
Blah.
end{MyVerb}

...keeps the doctor away.

end{document}
``````

The footnote numbers appear but the footnote text appears neither on the page nor in the environment. I would like the footnote bodies to appear inside the “boxed” verbatim environment (as opposed to the page).

The footnotes need not be verbatim nor even appear directly in the verbatim environment itself, but they must appear at the bottom of the box around the verbatim.

Get this bounty!!!