5
votes
2answers
76 views

An environment for fixed figures

I am trying to create an environment that I can use to include "figures" within a framed environment. Because floats aren't allowed inside framed environments, I want to create a new environment ...
4
votes
1answer
319 views

using fbox in a newenvironment [duplicate]

I am trying to write a new enviroment to add text into a \fbox, when I use \fbox on its own, it works quite nicely \fbox{\begin{minipage}{0.9\textwidth} does this work, I would love if it did ...
3
votes
1answer
178 views

How to combine framed and listings packages in new environment

I always use this LaTeX code to display a source code in my article. \begin{listingbox}{VB style} \begin{singlespace} \begin{lstlisting}[style=BASIC] Private Sub Form_Load() Dim tex As String ...
8
votes
2answers
530 views

Combining `tikzpicture` and `lstlisting`

I'm working on a custom lstlisting environment, in which I use TikZ to add a frame and a title. Because of the widespread curly braces of node I cannot use newenvironment, so I have to resort to ...
2
votes
2answers
1k views

Create environment out of eqnarray with frame box

Could you help me to create an environment out of this code: \smallskip\centering\framebox[0.9\textwidth]{ \begin{minipage}[c]{0.8\textwidth} \begin{eqnarray} I & = & ...
0
votes
2answers
157 views

How do I make frame environment play nice with \textbf?

I am getting a strange error message when I put textbf into a frame environment. Minimal Example \documentclass{article} \listfiles \begin{document} \begin{frame} \textbf{Lemma 1} \end{frame} ...
16
votes
2answers
850 views

A special example environment

How can I define an environment named "example" so that: can be broken over pages has a horizontal line above "Example \chap.\no" (e.g. Example 4.10), and vertical line that is spread to the whole ...
2
votes
1answer
164 views

How to avoid that the \newenvironment text is placed on one single page

I am using the \newenvironment command for the first time and well it's causing troubles. I am using it for creating a new theorem environment \documentclass{article} \usepackage{amsmath, amssymb} ...
10
votes
3answers
340 views

How do you put a character in the margin (using an environment)

I'm using framed to create a little callout box for tips and other information in a book. So for it's going well however I cannot get the icon (using ding) to sit in the margin. It currently looks ...
5
votes
3answers
576 views

Command enclosing content of custom environment

I want to create an environment that wraps the content in a command so that I can write this: \begin{mybox} content \end{mybox} and get this: \psshadowbox{content} When doing it as a custom ...
4
votes
1answer
225 views

Text environment with vertical header and border

I have no experience with creating latex environments, so I hope that someone would be so kind helping me trying to create a new text environment with a border and a vertical header to the right of ...
6
votes
1answer
453 views

Framed answer environment

I am trying to write a simple environment for the solutions of assessments I give. The code below defines such an environment: \newenvironment{answerenv}[1][Answer]{% Sets the default "Answer" but ...
6
votes
2answers
170 views

Frame environment with fixed size given by numbers of characters and lines

I would like to make one framed environment with the following behavior. Only the last 8 lines of the content must be displayed. If the content have more than 8 lines, a gentle warning must be ...
6
votes
5answers
592 views

Formatting new environment with borders

I have defined myself a new environment as below: \newenvironment{myquote}{\list{}{\leftmargin=0.3in\rightmargin=0.3in}\item[]}{\endlist} What I would like to do here is to be able to format this ...
4
votes
1answer
529 views

Issue with \newenvironment and framed and quotation

\documentclass[a4paper,10pt]{article} \usepackage{framed} \usepackage{lipsum} \newenvironment{nb} {\begin{framed}\begin{quotation}} {\end{framed}\end{quotation}} \begin{document} \begin{nb} ...
3
votes
1answer
400 views

Creating an environment able to span over multiple pages or columns

I'm trying to create an environment able to understand when it's on a single/two columns layout and to span over multiple pages or columns having different style for the two cases. I would want to ...
1
vote
1answer
691 views

Framebox and minipage causes white space and is not float

I have a \framebox (I don't insist on using this command) and a minipage that causes whitespace, because the drawn box is not allowing any text before or after and it itself does not break over pages. ...
4
votes
2answers
617 views

Making \footnote work in leftbar environment

Sorry, it's me again. Gonzalo has hinted me to the very nice leftbar environment in the framed package, which I now use for definitions, theorems and similar environment. Now I've got a new problem: ...