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
1
vote
0answers
24 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
0answers
58 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
1answer
40 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
1answer
41 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
0answers
20 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
0answers
47 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
2answers
61 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
2answers
61 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
1answer
51 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
0answers
22 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 ...
0
votes
0answers
22 views

HRule not defined for a title page

I tried the example found here. I wanted to add lines above and beyond the title. However, the example doesn't seem to work. It compiles with overleaf but texmaker doesn't recognize it. They use this: ...
3
votes
2answers
123 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
1answer
48 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
2answers
37 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
1answer
53 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
2answers
71 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. ...
0
votes
0answers
31 views

Breakable box through tocolorbox with “continued” text with a condition of verso (not required continued text) and recto pages

I am trying to create a breakable box through tcolorbox with the below possibilities when box splits in to multiple pages verso page at bottom should not contain the word "continued" text ...
1
vote
1answer
44 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
0answers
122 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
1answer
93 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
2answers
96 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
1answer
58 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
1answer
31 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
1answer
39 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
1answer
53 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:...
1
vote
1answer
40 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
2answers
67 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
1answer
75 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
1answer
36 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
1answer
26 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
2answers
44 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
1answer
92 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
2answers
50 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
1answer
63 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
1answer
40 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
1answer
104 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
2answers
135 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
0answers
34 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
1answer
65 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 ...
5
votes
2answers
334 views

How to draw rounded corners around box with shadow

I am trying to draw a text box with rounded corner and shadow like this: I have no idea how to do this. The only I managed to do is this: \noindent\fbox{% \parbox{\textwidth}{% The ...
0
votes
0answers
198 views

How to split theorem environment into two frames?

I am using \newtheorem{thm}{theorem} \begin{frame} \begin{thm} \end{thm} \end{frame} but when theorem is long and frame doesn't have enough space then I used a next frame like, \begin{frame} \end{...
1
vote
1answer
60 views

Share long proofs in beamer to many frames [duplicate]

Hi everyone please I am writing a proof in beamer with \begin{proof} \end{proof} but the proof is too long so I can't have it in one frame, I wanted to share the proof to many frames but it didn't ...
1
vote
1answer
52 views

Pass geometry package with the “showframe” option by command line

I have this MWE: \documentclass[11pt]{article} \pagestyle{empty} \usepackage{blindtext} \usepackage[pass]{geometry} \geometry{showframe,a4paper} \begin{document} \blindtext \end{document} I'd ...
0
votes
0answers
48 views

Frame around table but not around the caption - Spacing problem

I am trying to add a frame around a table but keep the caption outside the frame. My current way: \begin{table}[!ht] \begin{framed} \begin{itemize} \item foo \item bar \end{itemize} \end{...
1
vote
1answer
161 views

How to create a Multicol within a Page-Frame spanning multiple pages

Added 2020-07-05 -- Details of my requirements: Produce a document that frames doublecol and onecol: The frame is supposed to completely frame all content of the document within one frame that is ...
1
vote
1answer
74 views

Frame/box around image+text (and add caption below it but outside the frame)

I would like to put a frame/box around an image including some text which is below it. In addition I want to be able to add a caption afterwards. So far I manage to put a box around the image, but I ...
0
votes
1answer
25 views

framed losing context in def .cls

This is the original layout. The code that makes each line of the authors is this: \def\@typeset@author@line{% \andify\@currentauthors\par\noindent \@currentauthors\def\@currentauthors{}% \ifx\...
3
votes
1answer
93 views

How to write the exactly same in LaTex in the easiest way?

How to write the exact same in LaTex in the easiest way?
0
votes
1answer
142 views

Framed list of authors in acmart manuscript

I want to use frame, framed, mdframed, tcolorbox or any other package to create a box around content. But the content I want to put the box around comes from the .cls file. For example, I want to ...
2
votes
2answers
78 views

Boxing the contents of all theorems but not the theorem heading

I created a theorem environment for examples and I want to have them boxed underneath the heading. \documentclass{book} \usepackage{amsmath} \usepackage{amsthm} \newtheoremstyle{break} ...

1
2 3 4 5
12