Questions tagged [framed]
{framed} is about framed document elements, e.g., boxes and environments. A popular package is {mdframed}.
587
questions
0
votes
0
answers
19
views
How do I write a note in a framed box
How do I write a note that looks like a sticky note , I used the command \framebox but I run out of space in the page and part of the text disappears , So is there a better way to do it ?
Here's a ...
0
votes
1
answer
27
views
Algorithm2e: framed environment shifts line numbers
I want to have a box in my algorithm, and for that I'm using framed environment. However, it also shifts line numbers:
\documentclass{article}
\usepackage[vlined,ruled,linesnumbered]{algorithm2e}
\...
3
votes
2
answers
65
views
Align shaded box to top of page
I have a page that has a shaded box at the top. How do I get the shaded box to align with the top of the page frame? There's a bit of a gap. My code:
\documentclass[10pt]{book}
\usepackage[showframe]{...
0
votes
1
answer
29
views
Align shaded box to bottom of page
I have a page that has a table at the top and a shaded box at the bottom. How to get the shaded box to align with the bottom of the page frame? I've tried \vfill, but that doesn't seem to work. My ...
0
votes
1
answer
22
views
Change qedsymbol and font shape within a ntheorem framed environment
Good morning: After a lot of proofs changing variables and parameters as suggested in the documentation of ntheorem package and others, I'm not been able to replace the qedsymbol with \blacksquare and ...
0
votes
2
answers
38
views
Restrict box to one column
I have this box created using framed. I have a one column format. As a result of which the box spans over entire column. I want to have two columns, such that this box occupies half of what it is ...
2
votes
2
answers
60
views
How to align tcolorbox with margin just like shaded does?
\documentclass{article}
\usepackage{color,framed,tcolorbox}
\definecolor{shadecolor}{RGB}{241, 241, 255}
\begin{document}
Shaded environment can align exactly with page margin:
\begin{shaded}...
1
vote
1
answer
33
views
How to insert a margin inside a double frame parbox?
I simply would like to insert a bit of space inside my parbox, but the following mess up with the frames:
\documentclass{article}
\begin{document}
\begin{center}
\fbox{
\setlength\fboxsep{...
1
vote
1
answer
48
views
Frame for a box depending on the position in the page
I would like to write a command \begin{myFramedBox} ... \end{myFramedBox} such that:
If the block inside \begin{myFramedBox} ... \end{myFramedBox} is at the beginning of the page, then it is printed ...
0
votes
0
answers
27
views
Problem bringing the commutative diagram inside the question and answer frame
I can not put the commutative diagram under the frame:
\documentclass{amsart}
\usepackage{latexsym,amsmath}
\usepackage{tabularx, environ}
\usepackage{wasysym,latexsym,amsmath,amssymb,mathrsfs}
\...
0
votes
2
answers
39
views
Defining a new environment with desired properties
How can I define an environment that looks like the following?
So there's a color surrounding box and an image embedded in it. This is what I have so far:
\newenvironment{rmd-details}[0]{\par\...
0
votes
1
answer
35
views
Captioning images within a framed environment?
I have an image within a framed environment and would like to caption it. Using the figure environment crashes the compiler
\documentclass[a4paper]{article}
\usepackage[a4paper, total={170mm,257mm}, ...
1
vote
0
answers
53
views
How to make a beamer template with this format?
i'm trying to convert a \documentclass{article} into a \documentclass{beamer}, but keeping the structure. The image above is the result I got working with the class article.
It's exactly what I want, ...
1
vote
0
answers
50
views
Footnote in framed environment
Some time ago I asked how I can use footnote environment and got good advise. But I had also the question what will happen if I need to use 2 or more footnote. I knew that I will meet such problem in ...
2
votes
0
answers
59
views
material swapped with \subsection in AMS document classes
I today saw very interesting case when subsection started by shaded environment
\documentclass{amsbook}%{amsart}
\usepackage{xcolor}
\usepackage{framed}
\newtheorem{theorem}{Theorem}[section]
\...
1
vote
1
answer
69
views
Custom framed environment, vertical lines
I'm using the code below (which I got off this website: https://jevon.org/wiki/Fancy_Quotation_Boxes_in_Latex) to generate this
I want to have the left-hand vertical bar repeated on the right-hand ...
1
vote
1
answer
52
views
How to break lines automatically in my framed section headings?
With the following code, I get this output:
\documentclass{book}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage[explicit]{titlesec}
\titleformat{\section}[hang]
{\normalfont\Large\bfseries}
{%
\...
2
votes
0
answers
24
views
Whacky multicol pagination in the (md)framed environment(s)
This is a typical recommendation letter (minimally formatted) that includes questions and \mdframed responses in a \multicol environment. I have also included other things I typically include inside ...
1
vote
0
answers
112
views
Framing an equation and equation array (boxed)
I want to nicely put equations and equations arrays inside a box or a frame.
I also like to align objects in align environment like in the eqnarray environment [r|c|l], see example below.
Working ...
3
votes
2
answers
93
views
Problem creating a copy of \includegraphics
I've edited this to more clearly state my question. I've had some wonderful suggestions, but they are all pointing at something that's working just fine.
I am trying to define a macro \embedimage ...
3
votes
2
answers
76
views
ntheorem - indentation at beginning of chapter
I am writing a document using the book class, which, by design, does not indent the first line of the chapter/section/subsection. I noticed that if I start a chapter with a framed theorem then, for ...
2
votes
1
answer
87
views
Vertical space of shaded box
I use package framed to color background of part of the text. I put attention that shaded environment uses extra space before and after colored box. In search how to reduce this space, I found macro
\...
0
votes
0
answers
25
views
framed.sty deletes a following \label command when filling the last page of a document
Under certain circumstances, when using framed.sty, a \label command
that occurs after a framed environment is lost, and nothing gets
written to the .aux file. For this to happen, the framed material
...
3
votes
2
answers
148
views
How to draw a frame with an "external padding"?
I want to draw a frame around a part of the text so that the margins around this part of the text are not affected.
Below is a solution with the help of tcolorbox. I've found this solution by trying-...
1
vote
1
answer
68
views
How may I change the color of lines in macro \framebox?
In \framebox I do not see any color options. I have trying to look at its definition using \show to define a new command but what \show shows does not provide any help
2
votes
2
answers
67
views
abntex2 + xwatermark = already defined command erros
Look at this tiny code:
\documentclass{abntex2}
\usepackage{xwatermark}
\begin{document}
Testing 1 2 3
\end{document}
It produces the following errors in TexnicCenter 2.02 (64 bits), ran with up to ...
3
votes
1
answer
57
views
Using TikZ to get correct framing
I am currently trying to get this display using TikZ, and i managed to get the correct display but it is not exactly perfect. Let me explain.
This is the code that i wrote to get the following display
...
0
votes
2
answers
92
views
Making a boxed minipage environment
I am writing up a document where I frequently want to put multiple paragraphs of text inside a box. I am doing this with
\framebox{\begin{minipage}{0.95 \textwidth}
Here is how you solve this problem.
...
1
vote
1
answer
59
views
Framing environment that works like \fbox
I need to create an environment that works like \fbox. I checked out framed package, but it does not have such thing. So far my workaround is:
\newenvironment{frame}
{\begin{tabular}{|l|}\hline}
{\...
0
votes
0
answers
253
views
Two-column nomenclature too long
I'm writing a research paper and have a rather long nomenclature that I want to put in a frame that spans as many pages as needed. However, when I try to do this, the nomenclature overflows at the ...
0
votes
1
answer
134
views
Creating a numbered-frames book template
I want to create a template for a book document class (not beamer) where the entire book is written in numbered frames. Below is an example from Kleppner and Ramsey's Quick Calculus showing Frames 25 ...
4
votes
2
answers
116
views
Add a small tcolorbox in the corner of a tcolorbox
Question
I am trying to replicate the following image below using tcolorbox. My main problem is achieving the following:
I want to place a small boxed number in the bottom right of a few selected ...
0
votes
1
answer
120
views
Simple box in beamer
I'm looking for a beamer theme with a simple box around each frame. Just a coloured rectangle, really. I tried to frame each slide myself with tcolorbox, but I can only make it start below the frame ...
0
votes
1
answer
42
views
Show each line within a box using \pause and Beamer
The idea is to section off texts within boxes and not only show each box at a time, but also each line within a box at each time.
I have a framed package and some code to make align work in beamer, ...
2
votes
1
answer
70
views
Problem with custom environment inside a list
I am trying to use a custom theorem-like environment inside a list (using the enumitem package), but I get the error message
``LaTeX Error: Something's wrong--perhaps a missing \item.''
Outside the ...
1
vote
1
answer
73
views
Frame box width increase based on textwidth
Framebox need to increase 350pt width if box exceed to \textwidth(currently it as 300pt) in the above defined environments, I tried lot of ways not succeed, could you please try to fix my issues?
Note:...
2
votes
1
answer
57
views
Description indented too much inside framed (in Hebrew)
I'm writing lecture notes in Hebrew using lyx. I use the framed package to have my theorems inside a nice gray box. It all seemed to work fine, until I noticed a strange behavior when I try to put a ...
0
votes
2
answers
79
views
Colored box around first row of each item in a list
I would like to create a colored box around the first row of each item in an enumerated list, where the row also contains an \hfill. The unmodified code looks like:
\documentclass[ 12pt,
...
0
votes
1
answer
274
views
Break longer word into lines to fit the box (inputminted?)
I would like to fit the long string (as it is labelled url in the json file) inside the box without overflowing. As far as I understand, breaklines option only helps when strings consist of separated ...
0
votes
1
answer
50
views
How could I make something similar to this? (The colored box) [duplicate]
I'm planning on doing these during a lecture so the quickest method is the best for me.
Any suggestions are welcome!
1
vote
1
answer
32
views
Pass parrameter of custom enviroment as parameter of theorem
I want to create basically a shortcut for
\begin{sometheorem}[optional parameter]
\leavevmode \vspace{-\baselineskip}\vspace{-\baselineskip}\vspace{3pt} %some space adjustments
\begin{leftbar}
...
0
votes
2
answers
49
views
Frames with labels
Is there a LaTeX package somewhere that would let me create frames with a label inside the line, e.g.:
############################# some text ######
# #
# ...
1
vote
1
answer
146
views
Square bracket border for annotations in screenplay text [duplicate]
I would like to put a square bracketed border around some words in a paragraph and also have it around a whole centered paragraph, depending on the paragraph width. Example:
Page breaks in paragraphs ...
1
vote
2
answers
98
views
How to add borders with shaded environment (from the framed package)
I defined a shaded environement using the framed package (\usepackage{framed}) and I would like to add borders to the shaded area, how could I do it?
For instance, how could I add borders in this ...
0
votes
1
answer
159
views
Frame box around the TOC
I'm trying to put a frame box around ALL e table of contents in an article document class.
Someone can help me?
1
vote
1
answer
63
views
Algorithm in `oframed` environment
\usepackage[ruled,vlined]{algorithm2e}
\usepackage{framed}
\setlength\FrameSep{5mm}
\begin{document}
\begin{oframed} Some text...
\begin{center}
\begin{algorithm}
...
0
votes
1
answer
426
views
How to frame multiple lines with a box and not alter text width
Please have a look at this mininal example
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{framed}
\title{Box}
\author{LR}
\date{September 2020}
\begin{...
1
vote
2
answers
176
views
How do I make a colored box around chemfig
How do I expand the box over both molecules (centered and middle space adjustable), but the borders within the enumerate environment? The image is what I want to make. I attempted to do the following, ...
1
vote
0
answers
36
views
How can I automatically draw frames around all elements on a page?
Fine-tuning the layout and spacing of elements in a document is often a guessing game. It would be great if LaTeX could display the spatial extensions of all elements (float, subfigure, minipage, ...
1
vote
1
answer
76
views
ConTeXt: \setupframedtexts[name][..=..] not using "name" argument (beginner)
I am learning ConTeXt (and so far it is a great experience!); however, while making notes and tests with "ConTeXt: An Excursion," and occasionally looking to into reference manual, I have ...