Writing over fractions

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












6















I am trying to achieve this look:
enter image description here



documentclassarticle
usepackageamsmath
begindocument
$dfrac2x+7x-4-dfracx+4x-2$
enddocument
documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightarc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here



I don't need any color or font different from the defaults.



EDIT:
Well I and modified something which is scaling with the fractions which is great but I can't rotate the arc. How to rotate it? Picture above.










share|improve this question



















  • 1





    Here is a way to do that, I think. The perhaps most beautiful option might be this one, but this is opinion-based.

    – marmot
    Feb 4 at 1:41












  • Why not overbrace?

    – Werner
    Feb 4 at 2:14















6















I am trying to achieve this look:
enter image description here



documentclassarticle
usepackageamsmath
begindocument
$dfrac2x+7x-4-dfracx+4x-2$
enddocument
documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightarc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here



I don't need any color or font different from the defaults.



EDIT:
Well I and modified something which is scaling with the fractions which is great but I can't rotate the arc. How to rotate it? Picture above.










share|improve this question



















  • 1





    Here is a way to do that, I think. The perhaps most beautiful option might be this one, but this is opinion-based.

    – marmot
    Feb 4 at 1:41












  • Why not overbrace?

    – Werner
    Feb 4 at 2:14













6












6








6


1






I am trying to achieve this look:
enter image description here



documentclassarticle
usepackageamsmath
begindocument
$dfrac2x+7x-4-dfracx+4x-2$
enddocument
documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightarc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here



I don't need any color or font different from the defaults.



EDIT:
Well I and modified something which is scaling with the fractions which is great but I can't rotate the arc. How to rotate it? Picture above.










share|improve this question
















I am trying to achieve this look:
enter image description here



documentclassarticle
usepackageamsmath
begindocument
$dfrac2x+7x-4-dfracx+4x-2$
enddocument
documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightarc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here



I don't need any color or font different from the defaults.



EDIT:
Well I and modified something which is scaling with the fractions which is great but I can't rotate the arc. How to rotate it? Picture above.







math-mode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 4 at 2:03







Simeon Simeonov

















asked Feb 4 at 1:37









Simeon SimeonovSimeon Simeonov

3866




3866







  • 1





    Here is a way to do that, I think. The perhaps most beautiful option might be this one, but this is opinion-based.

    – marmot
    Feb 4 at 1:41












  • Why not overbrace?

    – Werner
    Feb 4 at 2:14












  • 1





    Here is a way to do that, I think. The perhaps most beautiful option might be this one, but this is opinion-based.

    – marmot
    Feb 4 at 1:41












  • Why not overbrace?

    – Werner
    Feb 4 at 2:14







1




1





Here is a way to do that, I think. The perhaps most beautiful option might be this one, but this is opinion-based.

– marmot
Feb 4 at 1:41






Here is a way to do that, I think. The perhaps most beautiful option might be this one, but this is opinion-based.

– marmot
Feb 4 at 1:41














Why not overbrace?

– Werner
Feb 4 at 2:14





Why not overbrace?

– Werner
Feb 4 at 2:14










1 Answer
1






active

oldest

votes


















8














Here is a proposal that marries your command with this answer by egreg.



documentclassarticle
usepackageamsmath
makeatletter% based on https://tex.stackexchange.com/a/260580/121799
newcommandunderparenonly[1]%
mathop%
vtop
m@th
ialign%
##crcr
$hfildisplaystyle#1hfil$crcr
noalignkern3p@nointerlineskip%
upparenfillcrcr
%
%


newcommandupparenfill%
$m@thsetboxz@hbox$braceld$%
braceluleadersvrule @heighthtz@ @depthz@hfillbraceru$%

makeatother
newcommandstackAboveChar[2]beginarray[b]@c@underparenonly#1\[1ex]#2endarray
begindocument
$stackAboveCharx-2dfrac2x+7x-4-stackAboveCharx-4dfracx+4x-2$
enddocument


enter image description here



As for the code in your question: as you are already using graphicx, you could just add a rotatebox to flip the parenthesis.



documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightrotatebox[origin=bottom]180arc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here






share|improve this answer




















  • 1





    It's working, but I need thin layer. I found something and updated my code, can you see it?

    – Simeon Simeonov
    Feb 4 at 2:05











  • @SimeonSimeonov I rotated the parenthesis of your code. (Yet I must admit that I do not understand all details, not do I know whether or not there is a character code that avoids the rotation, yet since you are loading graphicx anyway that may be not so important.)

    – marmot
    Feb 4 at 2:17











  • Nice. Is it possible to make the gap between the x - 2 and the arc smaller? Negative vspace?

    – Simeon Simeonov
    Feb 4 at 11:39











  • @SimeonSimeonov E.g. newcommandstackAboveArc[2]beginarray[b]@c@#1\[-0.5ex] arc#2endarray? I.e. add some negative dimension like -0.5ex. If you tell me that's the right dimension, or which dimension you prefer, I will update the answer accordingly.

    – marmot
    Feb 4 at 14:48











  • Sorry for the late response, that's the right dimension i tested it and it looks perfectly. You are great.

    – Simeon Simeonov
    Feb 9 at 16:15










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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473265%2fwriting-over-fractions%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









8














Here is a proposal that marries your command with this answer by egreg.



documentclassarticle
usepackageamsmath
makeatletter% based on https://tex.stackexchange.com/a/260580/121799
newcommandunderparenonly[1]%
mathop%
vtop
m@th
ialign%
##crcr
$hfildisplaystyle#1hfil$crcr
noalignkern3p@nointerlineskip%
upparenfillcrcr
%
%


newcommandupparenfill%
$m@thsetboxz@hbox$braceld$%
braceluleadersvrule @heighthtz@ @depthz@hfillbraceru$%

makeatother
newcommandstackAboveChar[2]beginarray[b]@c@underparenonly#1\[1ex]#2endarray
begindocument
$stackAboveCharx-2dfrac2x+7x-4-stackAboveCharx-4dfracx+4x-2$
enddocument


enter image description here



As for the code in your question: as you are already using graphicx, you could just add a rotatebox to flip the parenthesis.



documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightrotatebox[origin=bottom]180arc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here






share|improve this answer




















  • 1





    It's working, but I need thin layer. I found something and updated my code, can you see it?

    – Simeon Simeonov
    Feb 4 at 2:05











  • @SimeonSimeonov I rotated the parenthesis of your code. (Yet I must admit that I do not understand all details, not do I know whether or not there is a character code that avoids the rotation, yet since you are loading graphicx anyway that may be not so important.)

    – marmot
    Feb 4 at 2:17











  • Nice. Is it possible to make the gap between the x - 2 and the arc smaller? Negative vspace?

    – Simeon Simeonov
    Feb 4 at 11:39











  • @SimeonSimeonov E.g. newcommandstackAboveArc[2]beginarray[b]@c@#1\[-0.5ex] arc#2endarray? I.e. add some negative dimension like -0.5ex. If you tell me that's the right dimension, or which dimension you prefer, I will update the answer accordingly.

    – marmot
    Feb 4 at 14:48











  • Sorry for the late response, that's the right dimension i tested it and it looks perfectly. You are great.

    – Simeon Simeonov
    Feb 9 at 16:15















8














Here is a proposal that marries your command with this answer by egreg.



documentclassarticle
usepackageamsmath
makeatletter% based on https://tex.stackexchange.com/a/260580/121799
newcommandunderparenonly[1]%
mathop%
vtop
m@th
ialign%
##crcr
$hfildisplaystyle#1hfil$crcr
noalignkern3p@nointerlineskip%
upparenfillcrcr
%
%


newcommandupparenfill%
$m@thsetboxz@hbox$braceld$%
braceluleadersvrule @heighthtz@ @depthz@hfillbraceru$%

makeatother
newcommandstackAboveChar[2]beginarray[b]@c@underparenonly#1\[1ex]#2endarray
begindocument
$stackAboveCharx-2dfrac2x+7x-4-stackAboveCharx-4dfracx+4x-2$
enddocument


enter image description here



As for the code in your question: as you are already using graphicx, you could just add a rotatebox to flip the parenthesis.



documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightrotatebox[origin=bottom]180arc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here






share|improve this answer




















  • 1





    It's working, but I need thin layer. I found something and updated my code, can you see it?

    – Simeon Simeonov
    Feb 4 at 2:05











  • @SimeonSimeonov I rotated the parenthesis of your code. (Yet I must admit that I do not understand all details, not do I know whether or not there is a character code that avoids the rotation, yet since you are loading graphicx anyway that may be not so important.)

    – marmot
    Feb 4 at 2:17











  • Nice. Is it possible to make the gap between the x - 2 and the arc smaller? Negative vspace?

    – Simeon Simeonov
    Feb 4 at 11:39











  • @SimeonSimeonov E.g. newcommandstackAboveArc[2]beginarray[b]@c@#1\[-0.5ex] arc#2endarray? I.e. add some negative dimension like -0.5ex. If you tell me that's the right dimension, or which dimension you prefer, I will update the answer accordingly.

    – marmot
    Feb 4 at 14:48











  • Sorry for the late response, that's the right dimension i tested it and it looks perfectly. You are great.

    – Simeon Simeonov
    Feb 9 at 16:15













8












8








8







Here is a proposal that marries your command with this answer by egreg.



documentclassarticle
usepackageamsmath
makeatletter% based on https://tex.stackexchange.com/a/260580/121799
newcommandunderparenonly[1]%
mathop%
vtop
m@th
ialign%
##crcr
$hfildisplaystyle#1hfil$crcr
noalignkern3p@nointerlineskip%
upparenfillcrcr
%
%


newcommandupparenfill%
$m@thsetboxz@hbox$braceld$%
braceluleadersvrule @heighthtz@ @depthz@hfillbraceru$%

makeatother
newcommandstackAboveChar[2]beginarray[b]@c@underparenonly#1\[1ex]#2endarray
begindocument
$stackAboveCharx-2dfrac2x+7x-4-stackAboveCharx-4dfracx+4x-2$
enddocument


enter image description here



As for the code in your question: as you are already using graphicx, you could just add a rotatebox to flip the parenthesis.



documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightrotatebox[origin=bottom]180arc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here






share|improve this answer















Here is a proposal that marries your command with this answer by egreg.



documentclassarticle
usepackageamsmath
makeatletter% based on https://tex.stackexchange.com/a/260580/121799
newcommandunderparenonly[1]%
mathop%
vtop
m@th
ialign%
##crcr
$hfildisplaystyle#1hfil$crcr
noalignkern3p@nointerlineskip%
upparenfillcrcr
%
%


newcommandupparenfill%
$m@thsetboxz@hbox$braceld$%
braceluleadersvrule @heighthtz@ @depthz@hfillbraceru$%

makeatother
newcommandstackAboveChar[2]beginarray[b]@c@underparenonly#1\[1ex]#2endarray
begindocument
$stackAboveCharx-2dfrac2x+7x-4-stackAboveCharx-4dfracx+4x-2$
enddocument


enter image description here



As for the code in your question: as you are already using graphicx, you could just add a rotatebox to flip the parenthesis.



documentclassarticle
usepackageamsmath
usepackagegraphicx

makeatletter
DeclareFontFamilyUtipa
DeclareFontShapeUtipamn<->tipa10
newcommandarc@charusefontUtipamnsymbol62%

newcommandarc[1]mathpalettearc@arc#1

newcommandarc@arc[2]%
sbox0$m@th#1#2$%
vbox
hboxresizeboxwd0heightrotatebox[origin=bottom]180arc@char
nointerlineskip
box0
%

makeatother

newcommandstackAboveArc[2]beginarray[b]@c@#1\ arc#2endarray

begindocument
% $dfrac2x+7x-4-dfracx+4x-2$
$dfracstackAboveArcx-22x+7x-4-dfracstackAboveArcx-4x+4x-2$
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 4 at 2:16

























answered Feb 4 at 1:52









marmotmarmot

103k4123234




103k4123234







  • 1





    It's working, but I need thin layer. I found something and updated my code, can you see it?

    – Simeon Simeonov
    Feb 4 at 2:05











  • @SimeonSimeonov I rotated the parenthesis of your code. (Yet I must admit that I do not understand all details, not do I know whether or not there is a character code that avoids the rotation, yet since you are loading graphicx anyway that may be not so important.)

    – marmot
    Feb 4 at 2:17











  • Nice. Is it possible to make the gap between the x - 2 and the arc smaller? Negative vspace?

    – Simeon Simeonov
    Feb 4 at 11:39











  • @SimeonSimeonov E.g. newcommandstackAboveArc[2]beginarray[b]@c@#1\[-0.5ex] arc#2endarray? I.e. add some negative dimension like -0.5ex. If you tell me that's the right dimension, or which dimension you prefer, I will update the answer accordingly.

    – marmot
    Feb 4 at 14:48











  • Sorry for the late response, that's the right dimension i tested it and it looks perfectly. You are great.

    – Simeon Simeonov
    Feb 9 at 16:15












  • 1





    It's working, but I need thin layer. I found something and updated my code, can you see it?

    – Simeon Simeonov
    Feb 4 at 2:05











  • @SimeonSimeonov I rotated the parenthesis of your code. (Yet I must admit that I do not understand all details, not do I know whether or not there is a character code that avoids the rotation, yet since you are loading graphicx anyway that may be not so important.)

    – marmot
    Feb 4 at 2:17











  • Nice. Is it possible to make the gap between the x - 2 and the arc smaller? Negative vspace?

    – Simeon Simeonov
    Feb 4 at 11:39











  • @SimeonSimeonov E.g. newcommandstackAboveArc[2]beginarray[b]@c@#1\[-0.5ex] arc#2endarray? I.e. add some negative dimension like -0.5ex. If you tell me that's the right dimension, or which dimension you prefer, I will update the answer accordingly.

    – marmot
    Feb 4 at 14:48











  • Sorry for the late response, that's the right dimension i tested it and it looks perfectly. You are great.

    – Simeon Simeonov
    Feb 9 at 16:15







1




1





It's working, but I need thin layer. I found something and updated my code, can you see it?

– Simeon Simeonov
Feb 4 at 2:05





It's working, but I need thin layer. I found something and updated my code, can you see it?

– Simeon Simeonov
Feb 4 at 2:05













@SimeonSimeonov I rotated the parenthesis of your code. (Yet I must admit that I do not understand all details, not do I know whether or not there is a character code that avoids the rotation, yet since you are loading graphicx anyway that may be not so important.)

– marmot
Feb 4 at 2:17





@SimeonSimeonov I rotated the parenthesis of your code. (Yet I must admit that I do not understand all details, not do I know whether or not there is a character code that avoids the rotation, yet since you are loading graphicx anyway that may be not so important.)

– marmot
Feb 4 at 2:17













Nice. Is it possible to make the gap between the x - 2 and the arc smaller? Negative vspace?

– Simeon Simeonov
Feb 4 at 11:39





Nice. Is it possible to make the gap between the x - 2 and the arc smaller? Negative vspace?

– Simeon Simeonov
Feb 4 at 11:39













@SimeonSimeonov E.g. newcommandstackAboveArc[2]beginarray[b]@c@#1\[-0.5ex] arc#2endarray? I.e. add some negative dimension like -0.5ex. If you tell me that's the right dimension, or which dimension you prefer, I will update the answer accordingly.

– marmot
Feb 4 at 14:48





@SimeonSimeonov E.g. newcommandstackAboveArc[2]beginarray[b]@c@#1\[-0.5ex] arc#2endarray? I.e. add some negative dimension like -0.5ex. If you tell me that's the right dimension, or which dimension you prefer, I will update the answer accordingly.

– marmot
Feb 4 at 14:48













Sorry for the late response, that's the right dimension i tested it and it looks perfectly. You are great.

– Simeon Simeonov
Feb 9 at 16:15





Sorry for the late response, that's the right dimension i tested it and it looks perfectly. You are great.

– Simeon Simeonov
Feb 9 at 16:15

















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473265%2fwriting-over-fractions%23new-answer', 'question_page');

);

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






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay