Tagged Questions
8
votes
2answers
150 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
203 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
63 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}
...
14
votes
2answers
588 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
120 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
200 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 ...
4
votes
3answers
322 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
166 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
304 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
153 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
4answers
332 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 ...
3
votes
1answer
376 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
296 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
533 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
409 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: ...