How to change the default border color of fbox? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite













This question already has an answer here:



  • Change border color of fbox [duplicate]

    3 answers



I have a lot of figures inside an fbox. Unfortunately the default black is too strong for my advisor and I need to change the default border color to something more soft.



I've done my research and so far all other answers suggest do solve the problem by not using fbox and switching to other packages. That's something I'd like to avoid, unless absolutely necessary.



Surely there is an option for something so basic in the fbox package itself?







share|improve this question












marked as duplicate by Zarko, Phelype Oleinik, Stefan Pinnow, Sebastiano, CarLaTeX Aug 19 at 6:35


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Welcome to TeX.SX! What do you mean by "fbox package"?
    – TeXnician
    Aug 18 at 12:19







  • 1




    fbox is not a package but a simple command. You could redefine it, but this would affect all uses of fbox.
    – Ulrike Fischer
    Aug 18 at 12:20










  • @UlrikeFischer How would one do so?
    – user8272359
    Aug 18 at 12:51










  • @BambOo I specifically linked to that post already and commented that it is not what I want.
    – user8272359
    Aug 18 at 12:52










  • It is not beacause some things that you saw there are not what you want that every piece of information from this post isn't relevant for you or anyone else. If you look deeper into details, the linked post has been deemed a duplicate of a previous one where a solution using only the color package was proposed as newcommandmyfbox[2]textcolor#1fboxnormalcolor#2. By the way we cannot say what packages are allowed or not if you do not give us a list
    – BambOo
    Aug 18 at 13:01















up vote
4
down vote

favorite













This question already has an answer here:



  • Change border color of fbox [duplicate]

    3 answers



I have a lot of figures inside an fbox. Unfortunately the default black is too strong for my advisor and I need to change the default border color to something more soft.



I've done my research and so far all other answers suggest do solve the problem by not using fbox and switching to other packages. That's something I'd like to avoid, unless absolutely necessary.



Surely there is an option for something so basic in the fbox package itself?







share|improve this question












marked as duplicate by Zarko, Phelype Oleinik, Stefan Pinnow, Sebastiano, CarLaTeX Aug 19 at 6:35


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Welcome to TeX.SX! What do you mean by "fbox package"?
    – TeXnician
    Aug 18 at 12:19







  • 1




    fbox is not a package but a simple command. You could redefine it, but this would affect all uses of fbox.
    – Ulrike Fischer
    Aug 18 at 12:20










  • @UlrikeFischer How would one do so?
    – user8272359
    Aug 18 at 12:51










  • @BambOo I specifically linked to that post already and commented that it is not what I want.
    – user8272359
    Aug 18 at 12:52










  • It is not beacause some things that you saw there are not what you want that every piece of information from this post isn't relevant for you or anyone else. If you look deeper into details, the linked post has been deemed a duplicate of a previous one where a solution using only the color package was proposed as newcommandmyfbox[2]textcolor#1fboxnormalcolor#2. By the way we cannot say what packages are allowed or not if you do not give us a list
    – BambOo
    Aug 18 at 13:01













up vote
4
down vote

favorite









up vote
4
down vote

favorite












This question already has an answer here:



  • Change border color of fbox [duplicate]

    3 answers



I have a lot of figures inside an fbox. Unfortunately the default black is too strong for my advisor and I need to change the default border color to something more soft.



I've done my research and so far all other answers suggest do solve the problem by not using fbox and switching to other packages. That's something I'd like to avoid, unless absolutely necessary.



Surely there is an option for something so basic in the fbox package itself?







share|improve this question













This question already has an answer here:



  • Change border color of fbox [duplicate]

    3 answers



I have a lot of figures inside an fbox. Unfortunately the default black is too strong for my advisor and I need to change the default border color to something more soft.



I've done my research and so far all other answers suggest do solve the problem by not using fbox and switching to other packages. That's something I'd like to avoid, unless absolutely necessary.



Surely there is an option for something so basic in the fbox package itself?





This question already has an answer here:



  • Change border color of fbox [duplicate]

    3 answers









share|improve this question











share|improve this question




share|improve this question










asked Aug 18 at 12:15









user8272359

232




232




marked as duplicate by Zarko, Phelype Oleinik, Stefan Pinnow, Sebastiano, CarLaTeX Aug 19 at 6:35


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by Zarko, Phelype Oleinik, Stefan Pinnow, Sebastiano, CarLaTeX Aug 19 at 6:35


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • Welcome to TeX.SX! What do you mean by "fbox package"?
    – TeXnician
    Aug 18 at 12:19







  • 1




    fbox is not a package but a simple command. You could redefine it, but this would affect all uses of fbox.
    – Ulrike Fischer
    Aug 18 at 12:20










  • @UlrikeFischer How would one do so?
    – user8272359
    Aug 18 at 12:51










  • @BambOo I specifically linked to that post already and commented that it is not what I want.
    – user8272359
    Aug 18 at 12:52










  • It is not beacause some things that you saw there are not what you want that every piece of information from this post isn't relevant for you or anyone else. If you look deeper into details, the linked post has been deemed a duplicate of a previous one where a solution using only the color package was proposed as newcommandmyfbox[2]textcolor#1fboxnormalcolor#2. By the way we cannot say what packages are allowed or not if you do not give us a list
    – BambOo
    Aug 18 at 13:01

















  • Welcome to TeX.SX! What do you mean by "fbox package"?
    – TeXnician
    Aug 18 at 12:19







  • 1




    fbox is not a package but a simple command. You could redefine it, but this would affect all uses of fbox.
    – Ulrike Fischer
    Aug 18 at 12:20










  • @UlrikeFischer How would one do so?
    – user8272359
    Aug 18 at 12:51










  • @BambOo I specifically linked to that post already and commented that it is not what I want.
    – user8272359
    Aug 18 at 12:52










  • It is not beacause some things that you saw there are not what you want that every piece of information from this post isn't relevant for you or anyone else. If you look deeper into details, the linked post has been deemed a duplicate of a previous one where a solution using only the color package was proposed as newcommandmyfbox[2]textcolor#1fboxnormalcolor#2. By the way we cannot say what packages are allowed or not if you do not give us a list
    – BambOo
    Aug 18 at 13:01
















Welcome to TeX.SX! What do you mean by "fbox package"?
– TeXnician
Aug 18 at 12:19





Welcome to TeX.SX! What do you mean by "fbox package"?
– TeXnician
Aug 18 at 12:19





1




1




fbox is not a package but a simple command. You could redefine it, but this would affect all uses of fbox.
– Ulrike Fischer
Aug 18 at 12:20




fbox is not a package but a simple command. You could redefine it, but this would affect all uses of fbox.
– Ulrike Fischer
Aug 18 at 12:20












@UlrikeFischer How would one do so?
– user8272359
Aug 18 at 12:51




@UlrikeFischer How would one do so?
– user8272359
Aug 18 at 12:51












@BambOo I specifically linked to that post already and commented that it is not what I want.
– user8272359
Aug 18 at 12:52




@BambOo I specifically linked to that post already and commented that it is not what I want.
– user8272359
Aug 18 at 12:52












It is not beacause some things that you saw there are not what you want that every piece of information from this post isn't relevant for you or anyone else. If you look deeper into details, the linked post has been deemed a duplicate of a previous one where a solution using only the color package was proposed as newcommandmyfbox[2]textcolor#1fboxnormalcolor#2. By the way we cannot say what packages are allowed or not if you do not give us a list
– BambOo
Aug 18 at 13:01





It is not beacause some things that you saw there are not what you want that every piece of information from this post isn't relevant for you or anyone else. If you look deeper into details, the linked post has been deemed a duplicate of a previous one where a solution using only the color package was proposed as newcommandmyfbox[2]textcolor#1fboxnormalcolor#2. By the way we cannot say what packages are allowed or not if you do not give us a list
– BambOo
Aug 18 at 13:01











2 Answers
2






active

oldest

votes

















up vote
4
down vote



accepted










You can try this. It will also set the background to white, normally this should be not a problem.



documentclassarticle

usepackagexcolor

renewcommandfboxfcolorboxredwhite
begindocument

fboxtext

enddocument


enter image description here






share|improve this answer




















  • To me, this is a good answer, so +1, but looking at the OP's comments, he/she probably won't see it that way.
    – BambOo
    Aug 18 at 13:05










  • This is exactly what I want: a way to set the "default border color of fbox". I understand that maybe my terminology was wrong due to being a latex novice, but this user seemed to be able to see through that. I'm sure the ever flowing visitors from Google will agree with me that it is a relevant problem that has not been answered as desired by most before, and will be happy to see this answer here.
    – user8272359
    Aug 18 at 15:51

















up vote
4
down vote













Without setting the background color, one can save the current text color and apply it when the text of the fbox is typeset, changing color for typesetting the rules.



documentclassarticle
usepackagexcolor
usepackageetoolbox

makeatletter
letcfboxfbox
letc@frameb@x@frameb@x
pretocmdcfbox
leavevmodebegingroupcolorletcurrentcolor.colorred

patchcmdcfbox@frameb@xc@frameb@x
patchcmdc@frameb@x
box@tempboxa
colorcurrentcolorbox@tempboxa

apptocmdc@frameb@xendgroup
makeatother

begindocument

text cfboxtext text

fcolorboxgreenbluetext cfboxtext text

enddocument


I'd prefer a different command to redefining fbox. If you instead want to use fbox, just remove the letcfboxfbox line and change cfbox into fbox in the remaining places.



enter image description here






share|improve this answer



























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    You can try this. It will also set the background to white, normally this should be not a problem.



    documentclassarticle

    usepackagexcolor

    renewcommandfboxfcolorboxredwhite
    begindocument

    fboxtext

    enddocument


    enter image description here






    share|improve this answer




















    • To me, this is a good answer, so +1, but looking at the OP's comments, he/she probably won't see it that way.
      – BambOo
      Aug 18 at 13:05










    • This is exactly what I want: a way to set the "default border color of fbox". I understand that maybe my terminology was wrong due to being a latex novice, but this user seemed to be able to see through that. I'm sure the ever flowing visitors from Google will agree with me that it is a relevant problem that has not been answered as desired by most before, and will be happy to see this answer here.
      – user8272359
      Aug 18 at 15:51














    up vote
    4
    down vote



    accepted










    You can try this. It will also set the background to white, normally this should be not a problem.



    documentclassarticle

    usepackagexcolor

    renewcommandfboxfcolorboxredwhite
    begindocument

    fboxtext

    enddocument


    enter image description here






    share|improve this answer




















    • To me, this is a good answer, so +1, but looking at the OP's comments, he/she probably won't see it that way.
      – BambOo
      Aug 18 at 13:05










    • This is exactly what I want: a way to set the "default border color of fbox". I understand that maybe my terminology was wrong due to being a latex novice, but this user seemed to be able to see through that. I'm sure the ever flowing visitors from Google will agree with me that it is a relevant problem that has not been answered as desired by most before, and will be happy to see this answer here.
      – user8272359
      Aug 18 at 15:51












    up vote
    4
    down vote



    accepted







    up vote
    4
    down vote



    accepted






    You can try this. It will also set the background to white, normally this should be not a problem.



    documentclassarticle

    usepackagexcolor

    renewcommandfboxfcolorboxredwhite
    begindocument

    fboxtext

    enddocument


    enter image description here






    share|improve this answer












    You can try this. It will also set the background to white, normally this should be not a problem.



    documentclassarticle

    usepackagexcolor

    renewcommandfboxfcolorboxredwhite
    begindocument

    fboxtext

    enddocument


    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 18 at 13:03









    Ulrike Fischer

    177k7281649




    177k7281649











    • To me, this is a good answer, so +1, but looking at the OP's comments, he/she probably won't see it that way.
      – BambOo
      Aug 18 at 13:05










    • This is exactly what I want: a way to set the "default border color of fbox". I understand that maybe my terminology was wrong due to being a latex novice, but this user seemed to be able to see through that. I'm sure the ever flowing visitors from Google will agree with me that it is a relevant problem that has not been answered as desired by most before, and will be happy to see this answer here.
      – user8272359
      Aug 18 at 15:51
















    • To me, this is a good answer, so +1, but looking at the OP's comments, he/she probably won't see it that way.
      – BambOo
      Aug 18 at 13:05










    • This is exactly what I want: a way to set the "default border color of fbox". I understand that maybe my terminology was wrong due to being a latex novice, but this user seemed to be able to see through that. I'm sure the ever flowing visitors from Google will agree with me that it is a relevant problem that has not been answered as desired by most before, and will be happy to see this answer here.
      – user8272359
      Aug 18 at 15:51















    To me, this is a good answer, so +1, but looking at the OP's comments, he/she probably won't see it that way.
    – BambOo
    Aug 18 at 13:05




    To me, this is a good answer, so +1, but looking at the OP's comments, he/she probably won't see it that way.
    – BambOo
    Aug 18 at 13:05












    This is exactly what I want: a way to set the "default border color of fbox". I understand that maybe my terminology was wrong due to being a latex novice, but this user seemed to be able to see through that. I'm sure the ever flowing visitors from Google will agree with me that it is a relevant problem that has not been answered as desired by most before, and will be happy to see this answer here.
    – user8272359
    Aug 18 at 15:51




    This is exactly what I want: a way to set the "default border color of fbox". I understand that maybe my terminology was wrong due to being a latex novice, but this user seemed to be able to see through that. I'm sure the ever flowing visitors from Google will agree with me that it is a relevant problem that has not been answered as desired by most before, and will be happy to see this answer here.
    – user8272359
    Aug 18 at 15:51










    up vote
    4
    down vote













    Without setting the background color, one can save the current text color and apply it when the text of the fbox is typeset, changing color for typesetting the rules.



    documentclassarticle
    usepackagexcolor
    usepackageetoolbox

    makeatletter
    letcfboxfbox
    letc@frameb@x@frameb@x
    pretocmdcfbox
    leavevmodebegingroupcolorletcurrentcolor.colorred

    patchcmdcfbox@frameb@xc@frameb@x
    patchcmdc@frameb@x
    box@tempboxa
    colorcurrentcolorbox@tempboxa

    apptocmdc@frameb@xendgroup
    makeatother

    begindocument

    text cfboxtext text

    fcolorboxgreenbluetext cfboxtext text

    enddocument


    I'd prefer a different command to redefining fbox. If you instead want to use fbox, just remove the letcfboxfbox line and change cfbox into fbox in the remaining places.



    enter image description here






    share|improve this answer
























      up vote
      4
      down vote













      Without setting the background color, one can save the current text color and apply it when the text of the fbox is typeset, changing color for typesetting the rules.



      documentclassarticle
      usepackagexcolor
      usepackageetoolbox

      makeatletter
      letcfboxfbox
      letc@frameb@x@frameb@x
      pretocmdcfbox
      leavevmodebegingroupcolorletcurrentcolor.colorred

      patchcmdcfbox@frameb@xc@frameb@x
      patchcmdc@frameb@x
      box@tempboxa
      colorcurrentcolorbox@tempboxa

      apptocmdc@frameb@xendgroup
      makeatother

      begindocument

      text cfboxtext text

      fcolorboxgreenbluetext cfboxtext text

      enddocument


      I'd prefer a different command to redefining fbox. If you instead want to use fbox, just remove the letcfboxfbox line and change cfbox into fbox in the remaining places.



      enter image description here






      share|improve this answer






















        up vote
        4
        down vote










        up vote
        4
        down vote









        Without setting the background color, one can save the current text color and apply it when the text of the fbox is typeset, changing color for typesetting the rules.



        documentclassarticle
        usepackagexcolor
        usepackageetoolbox

        makeatletter
        letcfboxfbox
        letc@frameb@x@frameb@x
        pretocmdcfbox
        leavevmodebegingroupcolorletcurrentcolor.colorred

        patchcmdcfbox@frameb@xc@frameb@x
        patchcmdc@frameb@x
        box@tempboxa
        colorcurrentcolorbox@tempboxa

        apptocmdc@frameb@xendgroup
        makeatother

        begindocument

        text cfboxtext text

        fcolorboxgreenbluetext cfboxtext text

        enddocument


        I'd prefer a different command to redefining fbox. If you instead want to use fbox, just remove the letcfboxfbox line and change cfbox into fbox in the remaining places.



        enter image description here






        share|improve this answer












        Without setting the background color, one can save the current text color and apply it when the text of the fbox is typeset, changing color for typesetting the rules.



        documentclassarticle
        usepackagexcolor
        usepackageetoolbox

        makeatletter
        letcfboxfbox
        letc@frameb@x@frameb@x
        pretocmdcfbox
        leavevmodebegingroupcolorletcurrentcolor.colorred

        patchcmdcfbox@frameb@xc@frameb@x
        patchcmdc@frameb@x
        box@tempboxa
        colorcurrentcolorbox@tempboxa

        apptocmdc@frameb@xendgroup
        makeatother

        begindocument

        text cfboxtext text

        fcolorboxgreenbluetext cfboxtext text

        enddocument


        I'd prefer a different command to redefining fbox. If you instead want to use fbox, just remove the letcfboxfbox line and change cfbox into fbox in the remaining places.



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 18 at 17:40









        egreg

        680k8318073051




        680k8318073051












            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke