Questions tagged [framed]

{framed} is about framed document elements, e.g., boxes and environments. A popular package is {mdframed}.

Filter by
Sorted by
Tagged with
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 ...
user avatar
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} \...
user avatar
  • 176
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]{...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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}...
user avatar
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{...
user avatar
  • 1,009
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 ...
user avatar
  • 6,130
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} \...
user avatar
  • 113
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\...
user avatar
  • 113
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}, ...
user avatar
  • 101
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, ...
user avatar
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 ...
user avatar
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] \...
user avatar
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 ...
user avatar
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} {% \...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 428
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 \...
user avatar
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 ...
user avatar
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-...
user avatar
  • 6,130
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
user avatar
  • 183
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 ...
user avatar
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 ...
user avatar
  • 903
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. ...
user avatar
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} {\...
user avatar
  • 1,709
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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, ...
user avatar
  • 295
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 ...
user avatar
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:...
user avatar
  • 809
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 ...
user avatar
  • 265
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, ...
user avatar
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 ...
user avatar
  • 160
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!
user avatar
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} ...
user avatar
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 ###### # # # ...
user avatar
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 ...
user avatar
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 ...
user avatar
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?
user avatar
  • 71
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} ...
user avatar
  • 291
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{...
user avatar
  • 691
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, ...
user avatar
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, ...
user avatar
  • 861
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 ...
user avatar

1
2 3 4 5
12