How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?
Is there a problem with hiding "forgot password" until it's needed?
Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past
Go Pregnant or Go Home
Why Were Madagascar and New Zealand Discovered So Late?
How can my private key be revealed if I use the same nonce while generating the signature?
Modify casing of marked letters
Trouble understanding overseas colleagues
Best way to store options for panels
Was Spock the First Vulcan in Starfleet?
How do I keep an essay about "feeling flat" from feeling flat?
How does a character multiclassing into warlock get a focus?
Why does John Bercow say “unlock” after reading out the results of a vote?
The Riley Riddle Mine
Print name if parameter passed to function
How can I replace every global instance of "x[2]" with "x_2"
Hide Select Output from T-SQL
Can I convert a rim brake wheel to a disc brake wheel?
Teaching indefinite integrals that require special-casing
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
Is there an Impartial Brexit Deal comparison site?
Star/Wye electrical connection math symbol
Invariants between two isomorphic vector spaces
Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?
Greatest common substring
How should I use the fbox command correctly to avoid producing a Bad Box message?
How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?
I come from this link and the response that is given is very good.
I have this MWE:
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
begindocument
vspace5mm
fboxbeginminipage30em
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endminipage
vspace5mm
enddocument
where I modify the fbox
value (which is 30em
) manually. But that is not the correct width of box (according to the margins of the document). So I change 30em
for textwidth
value, and when I compile it says that there is an Bad Box (I clarify that approximately from 31em
onwards the Bad Box message appears). How can I avoid that message?
Should I manually enter the value or is there some (easy) way to not have to worry about every box in my document?
Thanks!
boxes unit-of-measure
add a comment |
I come from this link and the response that is given is very good.
I have this MWE:
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
begindocument
vspace5mm
fboxbeginminipage30em
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endminipage
vspace5mm
enddocument
where I modify the fbox
value (which is 30em
) manually. But that is not the correct width of box (according to the margins of the document). So I change 30em
for textwidth
value, and when I compile it says that there is an Bad Box (I clarify that approximately from 31em
onwards the Bad Box message appears). How can I avoid that message?
Should I manually enter the value or is there some (easy) way to not have to worry about every box in my document?
Thanks!
boxes unit-of-measure
1
There is a little bit white space (fboxsep
) on all sides of the box to the text. This space is added to the linewidth, hence the whole box needs more space and creates a warning.
– Johannes_B
Jan 22 '18 at 7:16
2
What you really should do: Create semantic markup, instead of doing the layout each and every time.
– Johannes_B
Jan 22 '18 at 7:17
3
To resolve you immediate issue instead oftextwidth
usebeginminipagetextwidth-2fboxsep
and includeusepackagecalc
. Also, you need anoindent
before thefbox
. But, yes defintly do as @Johannes_B recommends and define a custom environment instead of tweaking every use of this. I'd recomment looking intotcolorbox
(there are numerous examples on this site). Also, adding theshowframe
package will clearly show you what is happening with you add thenoindent
and the-2fboxsep
.
– Peter Grill
Jan 22 '18 at 7:37
@Johannes_B Thanks for your explanation! I am a beginner with LaTeX, so I have to learn a lot about programming (even if I'm studying a career in Computer Science haha).
– manooooh
Jan 22 '18 at 20:38
@PeterGrill I'm going to take your recommendation about that alternative that you propose.
– manooooh
Jan 22 '18 at 20:38
add a comment |
I come from this link and the response that is given is very good.
I have this MWE:
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
begindocument
vspace5mm
fboxbeginminipage30em
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endminipage
vspace5mm
enddocument
where I modify the fbox
value (which is 30em
) manually. But that is not the correct width of box (according to the margins of the document). So I change 30em
for textwidth
value, and when I compile it says that there is an Bad Box (I clarify that approximately from 31em
onwards the Bad Box message appears). How can I avoid that message?
Should I manually enter the value or is there some (easy) way to not have to worry about every box in my document?
Thanks!
boxes unit-of-measure
I come from this link and the response that is given is very good.
I have this MWE:
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
begindocument
vspace5mm
fboxbeginminipage30em
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endminipage
vspace5mm
enddocument
where I modify the fbox
value (which is 30em
) manually. But that is not the correct width of box (according to the margins of the document). So I change 30em
for textwidth
value, and when I compile it says that there is an Bad Box (I clarify that approximately from 31em
onwards the Bad Box message appears). How can I avoid that message?
Should I manually enter the value or is there some (easy) way to not have to worry about every box in my document?
Thanks!
boxes unit-of-measure
boxes unit-of-measure
asked Jan 22 '18 at 7:10
manoooohmanooooh
1,1641517
1,1641517
1
There is a little bit white space (fboxsep
) on all sides of the box to the text. This space is added to the linewidth, hence the whole box needs more space and creates a warning.
– Johannes_B
Jan 22 '18 at 7:16
2
What you really should do: Create semantic markup, instead of doing the layout each and every time.
– Johannes_B
Jan 22 '18 at 7:17
3
To resolve you immediate issue instead oftextwidth
usebeginminipagetextwidth-2fboxsep
and includeusepackagecalc
. Also, you need anoindent
before thefbox
. But, yes defintly do as @Johannes_B recommends and define a custom environment instead of tweaking every use of this. I'd recomment looking intotcolorbox
(there are numerous examples on this site). Also, adding theshowframe
package will clearly show you what is happening with you add thenoindent
and the-2fboxsep
.
– Peter Grill
Jan 22 '18 at 7:37
@Johannes_B Thanks for your explanation! I am a beginner with LaTeX, so I have to learn a lot about programming (even if I'm studying a career in Computer Science haha).
– manooooh
Jan 22 '18 at 20:38
@PeterGrill I'm going to take your recommendation about that alternative that you propose.
– manooooh
Jan 22 '18 at 20:38
add a comment |
1
There is a little bit white space (fboxsep
) on all sides of the box to the text. This space is added to the linewidth, hence the whole box needs more space and creates a warning.
– Johannes_B
Jan 22 '18 at 7:16
2
What you really should do: Create semantic markup, instead of doing the layout each and every time.
– Johannes_B
Jan 22 '18 at 7:17
3
To resolve you immediate issue instead oftextwidth
usebeginminipagetextwidth-2fboxsep
and includeusepackagecalc
. Also, you need anoindent
before thefbox
. But, yes defintly do as @Johannes_B recommends and define a custom environment instead of tweaking every use of this. I'd recomment looking intotcolorbox
(there are numerous examples on this site). Also, adding theshowframe
package will clearly show you what is happening with you add thenoindent
and the-2fboxsep
.
– Peter Grill
Jan 22 '18 at 7:37
@Johannes_B Thanks for your explanation! I am a beginner with LaTeX, so I have to learn a lot about programming (even if I'm studying a career in Computer Science haha).
– manooooh
Jan 22 '18 at 20:38
@PeterGrill I'm going to take your recommendation about that alternative that you propose.
– manooooh
Jan 22 '18 at 20:38
1
1
There is a little bit white space (
fboxsep
) on all sides of the box to the text. This space is added to the linewidth, hence the whole box needs more space and creates a warning.– Johannes_B
Jan 22 '18 at 7:16
There is a little bit white space (
fboxsep
) on all sides of the box to the text. This space is added to the linewidth, hence the whole box needs more space and creates a warning.– Johannes_B
Jan 22 '18 at 7:16
2
2
What you really should do: Create semantic markup, instead of doing the layout each and every time.
– Johannes_B
Jan 22 '18 at 7:17
What you really should do: Create semantic markup, instead of doing the layout each and every time.
– Johannes_B
Jan 22 '18 at 7:17
3
3
To resolve you immediate issue instead of
textwidth
use beginminipagetextwidth-2fboxsep
and include usepackagecalc
. Also, you need a noindent
before the fbox
. But, yes defintly do as @Johannes_B recommends and define a custom environment instead of tweaking every use of this. I'd recomment looking into tcolorbox
(there are numerous examples on this site). Also, adding the showframe
package will clearly show you what is happening with you add the noindent
and the -2fboxsep
.– Peter Grill
Jan 22 '18 at 7:37
To resolve you immediate issue instead of
textwidth
use beginminipagetextwidth-2fboxsep
and include usepackagecalc
. Also, you need a noindent
before the fbox
. But, yes defintly do as @Johannes_B recommends and define a custom environment instead of tweaking every use of this. I'd recomment looking into tcolorbox
(there are numerous examples on this site). Also, adding the showframe
package will clearly show you what is happening with you add the noindent
and the -2fboxsep
.– Peter Grill
Jan 22 '18 at 7:37
@Johannes_B Thanks for your explanation! I am a beginner with LaTeX, so I have to learn a lot about programming (even if I'm studying a career in Computer Science haha).
– manooooh
Jan 22 '18 at 20:38
@Johannes_B Thanks for your explanation! I am a beginner with LaTeX, so I have to learn a lot about programming (even if I'm studying a career in Computer Science haha).
– manooooh
Jan 22 '18 at 20:38
@PeterGrill I'm going to take your recommendation about that alternative that you propose.
– manooooh
Jan 22 '18 at 20:38
@PeterGrill I'm going to take your recommendation about that alternative that you propose.
– manooooh
Jan 22 '18 at 20:38
add a comment |
2 Answers
2
active
oldest
votes
Here is a "changed" fbox called myfbox
and expecting as arguments an optional for width and a mandatory (its content)
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
newlengthmywidth%
makeatletter
newcommandmyfbox[2][linewidth]%
xdefmysepdimexpr 1dimexprf@size ptrelaxrelax%
setlengthfboxsepmysep%
setlengthmywidthdimexpr#1-2fboxsep-2fboxrulerelax%
noindentfboxbeginminipage[inner sep=0]mywidth#2endminipage%
%
makeatother
begindocument
Large
myfbox[linewidth]
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones:
normalsize
myfbox[textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
scriptsize
begincenter
myfbox[0.7textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endcenter
enddocument
Output:
PS: Source: https://tex.stackexchange.com/a/102739/120578 from @GonzaloMedina
PS2: May be is not good idea to include the noindent
command in my definition of the box (You can remove it from there and use it whenever needed)
Many thanks! It is fine withnoident
command:)
. The only thing I have to add was the vertical spacing up and down the custom box you created so that the text is not so close to it. I should learn all the commands that you use in your code. What draws my attention is the meaning of therelax
command and all that ... I'm passionate about LaTex!
– manooooh
Jan 22 '18 at 20:46
add a comment |
I like what I see and but would like to know how not to see to white box on the screen
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f411485%2fhow-should-i-use-the-fbox-command-correctly-to-avoid-producing-a-bad-box-message%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is a "changed" fbox called myfbox
and expecting as arguments an optional for width and a mandatory (its content)
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
newlengthmywidth%
makeatletter
newcommandmyfbox[2][linewidth]%
xdefmysepdimexpr 1dimexprf@size ptrelaxrelax%
setlengthfboxsepmysep%
setlengthmywidthdimexpr#1-2fboxsep-2fboxrulerelax%
noindentfboxbeginminipage[inner sep=0]mywidth#2endminipage%
%
makeatother
begindocument
Large
myfbox[linewidth]
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones:
normalsize
myfbox[textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
scriptsize
begincenter
myfbox[0.7textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endcenter
enddocument
Output:
PS: Source: https://tex.stackexchange.com/a/102739/120578 from @GonzaloMedina
PS2: May be is not good idea to include the noindent
command in my definition of the box (You can remove it from there and use it whenever needed)
Many thanks! It is fine withnoident
command:)
. The only thing I have to add was the vertical spacing up and down the custom box you created so that the text is not so close to it. I should learn all the commands that you use in your code. What draws my attention is the meaning of therelax
command and all that ... I'm passionate about LaTex!
– manooooh
Jan 22 '18 at 20:46
add a comment |
Here is a "changed" fbox called myfbox
and expecting as arguments an optional for width and a mandatory (its content)
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
newlengthmywidth%
makeatletter
newcommandmyfbox[2][linewidth]%
xdefmysepdimexpr 1dimexprf@size ptrelaxrelax%
setlengthfboxsepmysep%
setlengthmywidthdimexpr#1-2fboxsep-2fboxrulerelax%
noindentfboxbeginminipage[inner sep=0]mywidth#2endminipage%
%
makeatother
begindocument
Large
myfbox[linewidth]
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones:
normalsize
myfbox[textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
scriptsize
begincenter
myfbox[0.7textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endcenter
enddocument
Output:
PS: Source: https://tex.stackexchange.com/a/102739/120578 from @GonzaloMedina
PS2: May be is not good idea to include the noindent
command in my definition of the box (You can remove it from there and use it whenever needed)
Many thanks! It is fine withnoident
command:)
. The only thing I have to add was the vertical spacing up and down the custom box you created so that the text is not so close to it. I should learn all the commands that you use in your code. What draws my attention is the meaning of therelax
command and all that ... I'm passionate about LaTex!
– manooooh
Jan 22 '18 at 20:46
add a comment |
Here is a "changed" fbox called myfbox
and expecting as arguments an optional for width and a mandatory (its content)
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
newlengthmywidth%
makeatletter
newcommandmyfbox[2][linewidth]%
xdefmysepdimexpr 1dimexprf@size ptrelaxrelax%
setlengthfboxsepmysep%
setlengthmywidthdimexpr#1-2fboxsep-2fboxrulerelax%
noindentfboxbeginminipage[inner sep=0]mywidth#2endminipage%
%
makeatother
begindocument
Large
myfbox[linewidth]
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones:
normalsize
myfbox[textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
scriptsize
begincenter
myfbox[0.7textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endcenter
enddocument
Output:
PS: Source: https://tex.stackexchange.com/a/102739/120578 from @GonzaloMedina
PS2: May be is not good idea to include the noindent
command in my definition of the box (You can remove it from there and use it whenever needed)
Here is a "changed" fbox called myfbox
and expecting as arguments an optional for width and a mandatory (its content)
documentclass[11pt]article
usepackageamsmath
usepackageamssymb
newlengthmywidth%
makeatletter
newcommandmyfbox[2][linewidth]%
xdefmysepdimexpr 1dimexprf@size ptrelaxrelax%
setlengthfboxsepmysep%
setlengthmywidthdimexpr#1-2fboxsep-2fboxrulerelax%
noindentfboxbeginminipage[inner sep=0]mywidth#2endminipage%
%
makeatother
begindocument
Large
myfbox[linewidth]
underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones:
normalsize
myfbox[textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
scriptsize
begincenter
myfbox[0.7textwidth]underlinetextbfNOTACI'ON: Dada (f:Dsubseteq mathbb Rrightarrow mathbb R) con (y=f(x)) para denotar la funci'on derivada se puede encontrar en la bibliograf'ia disponible de la materia las siguientes notaciones: [beginarrayccccf'(x), & D_xf, & dfracdfdx, & dfracdydxendarray.] Todas ellas son equivalentes y que utilizaremos indistintamente en lo sucesivo.
endcenter
enddocument
Output:
PS: Source: https://tex.stackexchange.com/a/102739/120578 from @GonzaloMedina
PS2: May be is not good idea to include the noindent
command in my definition of the box (You can remove it from there and use it whenever needed)
answered Jan 22 '18 at 8:20
koleygrkoleygr
13.3k11038
13.3k11038
Many thanks! It is fine withnoident
command:)
. The only thing I have to add was the vertical spacing up and down the custom box you created so that the text is not so close to it. I should learn all the commands that you use in your code. What draws my attention is the meaning of therelax
command and all that ... I'm passionate about LaTex!
– manooooh
Jan 22 '18 at 20:46
add a comment |
Many thanks! It is fine withnoident
command:)
. The only thing I have to add was the vertical spacing up and down the custom box you created so that the text is not so close to it. I should learn all the commands that you use in your code. What draws my attention is the meaning of therelax
command and all that ... I'm passionate about LaTex!
– manooooh
Jan 22 '18 at 20:46
Many thanks! It is fine with
noident
command :)
. The only thing I have to add was the vertical spacing up and down the custom box you created so that the text is not so close to it. I should learn all the commands that you use in your code. What draws my attention is the meaning of the relax
command and all that ... I'm passionate about LaTex!– manooooh
Jan 22 '18 at 20:46
Many thanks! It is fine with
noident
command :)
. The only thing I have to add was the vertical spacing up and down the custom box you created so that the text is not so close to it. I should learn all the commands that you use in your code. What draws my attention is the meaning of the relax
command and all that ... I'm passionate about LaTex!– manooooh
Jan 22 '18 at 20:46
add a comment |
I like what I see and but would like to know how not to see to white box on the screen
New contributor
add a comment |
I like what I see and but would like to know how not to see to white box on the screen
New contributor
add a comment |
I like what I see and but would like to know how not to see to white box on the screen
New contributor
I like what I see and but would like to know how not to see to white box on the screen
New contributor
New contributor
answered 18 mins ago
Dwight WoodleyDwight Woodley
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f411485%2fhow-should-i-use-the-fbox-command-correctly-to-avoid-producing-a-bad-box-message%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
There is a little bit white space (
fboxsep
) on all sides of the box to the text. This space is added to the linewidth, hence the whole box needs more space and creates a warning.– Johannes_B
Jan 22 '18 at 7:16
2
What you really should do: Create semantic markup, instead of doing the layout each and every time.
– Johannes_B
Jan 22 '18 at 7:17
3
To resolve you immediate issue instead of
textwidth
usebeginminipagetextwidth-2fboxsep
and includeusepackagecalc
. Also, you need anoindent
before thefbox
. But, yes defintly do as @Johannes_B recommends and define a custom environment instead of tweaking every use of this. I'd recomment looking intotcolorbox
(there are numerous examples on this site). Also, adding theshowframe
package will clearly show you what is happening with you add thenoindent
and the-2fboxsep
.– Peter Grill
Jan 22 '18 at 7:37
@Johannes_B Thanks for your explanation! I am a beginner with LaTeX, so I have to learn a lot about programming (even if I'm studying a career in Computer Science haha).
– manooooh
Jan 22 '18 at 20:38
@PeterGrill I'm going to take your recommendation about that alternative that you propose.
– manooooh
Jan 22 '18 at 20:38