Contractions using simplewickMovement arrow in glossTime oriented wick contractionsLimits used as exponents — how to write under the limit symbol without using displaymath?Equation environment for centered, equally-spaced columns of expressionsSubscript Bracketflalign numberingWidecheck over two hatlatex right} not show up in pdfOverlapping over/underbraceWhy are tags missing in alignment sublevels?How do I use align here? There are “two stages” I need to alignWhat is the proper way to space between variables?

What are good ways to improve as a writer other than writing courses?

Do other countries guarantee freedoms that the United States does not have?

sytemctl status log output

Why should public servants be apolitical?

Japanese equivalent of a brain fart

How does the oscilloscope trigger really work?

Why is there a need to prevent a racist, sexist, or otherwise bigoted vendor from discriminating who they sell to?

Need help understanding lens reach

youtube video IP

Best way to explain to my boss that I cannot attend a team summit because it is on Rosh Hashana or any other Jewish Holiday

What was the first multiprocessor x86 motherboard?

Did silent film actors actually say their lines or did they simply improvise “dialogue” while being filmed?

How to explain to a team that the project they will work for 6 months will 100% fail?

What does Fisher mean by this quote?

Would the Elder Wand have been able to destroy a Horcrux?

From f[g[x,t]] to f[g]

How does The Fools Guild make its money?

Double blind peer review when paper cites author's GitHub repo for code

What are these mathematical groups in U.S. universities?

"How do you solve a problem like Maria?"

Can I enter a rental property without giving notice if I'm afraid a tenant may be hurt?

Why couldn't soldiers sight their own weapons without officers' orders?

Why should I "believe in" weak solutions to PDEs?

Is alignment needed after replacing upper control arms?



Contractions using simplewick


Movement arrow in glossTime oriented wick contractionsLimits used as exponents — how to write under the limit symbol without using displaymath?Equation environment for centered, equally-spaced columns of expressionsSubscript Bracketflalign numberingWidecheck over two hatlatex right} not show up in pdfOverlapping over/underbraceWhy are tags missing in alignment sublevels?How do I use align here? There are “two stages” I need to alignWhat is the proper way to space between variables?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















enter image description hereHi I need the syntax for a wick contraction under a number that goes to infinity. Essentially the sum going over all contractions. The right side of the contraction doesn't have an end essentially. Does anyone know how to do that? The last equation on the photo is what I need to be able to write.










share|improve this question









New contributor



user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 5





    Welcome to TeX.se. Instead of posting an image of what you want, please show us how far you've got by editing your question to include a minimal compilable document showing the equation in question and the specific problem you're having. For example, your title suggests that you are using a specific package for the Wick contractions.

    – Alan Munn
    8 hours ago


















2















enter image description hereHi I need the syntax for a wick contraction under a number that goes to infinity. Essentially the sum going over all contractions. The right side of the contraction doesn't have an end essentially. Does anyone know how to do that? The last equation on the photo is what I need to be able to write.










share|improve this question









New contributor



user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 5





    Welcome to TeX.se. Instead of posting an image of what you want, please show us how far you've got by editing your question to include a minimal compilable document showing the equation in question and the specific problem you're having. For example, your title suggests that you are using a specific package for the Wick contractions.

    – Alan Munn
    8 hours ago














2












2








2








enter image description hereHi I need the syntax for a wick contraction under a number that goes to infinity. Essentially the sum going over all contractions. The right side of the contraction doesn't have an end essentially. Does anyone know how to do that? The last equation on the photo is what I need to be able to write.










share|improve this question









New contributor



user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











enter image description hereHi I need the syntax for a wick contraction under a number that goes to infinity. Essentially the sum going over all contractions. The right side of the contraction doesn't have an end essentially. Does anyone know how to do that? The last equation on the photo is what I need to be able to write.







math-mode annotations simplewick






share|improve this question









New contributor



user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 7 hours ago









Alan Munn

168k29 gold badges440 silver badges728 bronze badges




168k29 gold badges440 silver badges728 bronze badges






New contributor



user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









user194244user194244

111 bronze badge




111 bronze badge




New contributor



user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




user194244 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 5





    Welcome to TeX.se. Instead of posting an image of what you want, please show us how far you've got by editing your question to include a minimal compilable document showing the equation in question and the specific problem you're having. For example, your title suggests that you are using a specific package for the Wick contractions.

    – Alan Munn
    8 hours ago













  • 5





    Welcome to TeX.se. Instead of posting an image of what you want, please show us how far you've got by editing your question to include a minimal compilable document showing the equation in question and the specific problem you're having. For example, your title suggests that you are using a specific package for the Wick contractions.

    – Alan Munn
    8 hours ago








5




5





Welcome to TeX.se. Instead of posting an image of what you want, please show us how far you've got by editing your question to include a minimal compilable document showing the equation in question and the specific problem you're having. For example, your title suggests that you are using a specific package for the Wick contractions.

– Alan Munn
8 hours ago






Welcome to TeX.se. Instead of posting an image of what you want, please show us how far you've got by editing your question to include a minimal compilable document showing the equation in question and the specific problem you're having. For example, your title suggests that you are using a specific package for the Wick contractions.

– Alan Munn
8 hours ago











2 Answers
2






active

oldest

votes


















3














simpler-wick it is arguably easier to hack.



documentclassarticle
usepackagesimpler-wick
newififWickCut
WickCutfalse
pgfkeys
/simplerwick/.cd,
cut/.code=WickCuttrue,
no cut/.code=WickCutfalse,
cut ratio/.initial=0.5


makeatletter
defswick@end#1#2
swick@setfalse@#1
tikzexternaldisable
begintikzpicture[remember picture, baseline=(swick-close#1.base)]
node[use as bounding box, inner sep=0pt, outer sep=0pt] (swick-close#1) $displaystyle #2$;
endtikzpicture
tikz[remember picture, overlay]
ifWickCut
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($($(swick-open#1.base)!pgfkeysvalueof/simplerwick/cut ratio!(swick-close#1.base)$) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
else
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.south) + (0,-1pt)$);
fi
tikzexternalenable
makeatother
begindocument
beginequation
wickc1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut]c1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut,cut ratio=0.7]c1 phi c2 psi A c2 psi c1 phi
endequation
enddocument


enter image description here






share|improve this answer

























  • Hey, are you retiring or pretending to? :)

    – Alan Munn
    1 hour ago











  • @AlanMunn My profile says This account is scheduled to be deleted Aug 3 at 18:34. They carefully avoid specifying the year.... ;-)

    – user121799
    1 hour ago











  • One downside of this is that you can't mix cut and non-cut contractions in the same wick.

    – Alan Munn
    1 hour ago











  • @AlanMunn In this version this is certainly true but of course it is easy to change that. What I did here was to "cook down" the code from here.

    – user121799
    1 hour ago


















3














The simplewick package is indeed quite simple, so it's not difficult to produce new commands from its code to do what you want. Here are open on the right contractions arcontraction and brcontraction. If you also need open on the left contractions, then you can do analogous commands commenting out the left vertical bar. The syntax of simplewick is somewhat cumbersome, so I would be more inclined to adapt the method described here if I were to implement this functionality myself.



documentclassarticle

usepackagesimplewick
makeatletter
newcommandbrcontraction[5][1ex]%
mathchoice
brcontraction@displaystyle#2#3#4#5#1%
brcontraction@textstyle#2#3#4#5#1%
brcontraction@scriptstyle#2#3#4#5#1%
brcontraction@scriptscriptstyle#2#3#4#5#1
newcommandbrcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
lower 0.5ex vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
brcontraction@@swdimen@ne#6%
hss%

newcommandbrcontraction@@[3][0.05em]%
hbox%
swdimentw@=#3
advanceswdimentw@ by -#1
vrule width #1 height 0pt depth #3%
lowerswdimentw@hboxvrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandbrcontracted[5][1ex]%
brcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
newcommandarcontraction[5][1ex]%
mathchoice
arcontraction@displaystyle#2#3#4#5#1%
arcontraction@textstyle#2#3#4#5#1%
arcontraction@scriptstyle#2#3#4#5#1%
arcontraction@scriptscriptstyle#2#3#4#5#1%
newcommandarcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
arcontraction@@swdimen@ne#6%
hss%
vskip 0.5ex% how far above the line starts
vskiphtswb@xtwo
newcommandarcontraction@@[3][0.05em]%
hbox%
vrule width #1 height 0pt depth #3%
vrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandarcontracted[5][1ex]%
arcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
begindocument

[
arcontraction[2ex]ABC
arcontractionABCD
ABCDdots
]
[
brcontraction[2ex]ABC
brcontractionABCD
ABCDdots
]

[
brcontraction[2ex]sum n[ABCD
brcontractionsum n[ABCD
sum n[hatAhatBhatChatDdots]
]

enddocument


output of code






share|improve this answer



























  • How much work you've done. Could you explain to me how you group the characters with your macro, and when these characters are in mathematical mode? I did not understand the mechanism of grouping (see chat). Thank you very much.

    – Sebastiano
    1 hour ago






  • 1





    @Sebastiano Not really much work, just some cutting, pasting and commenting out. :)

    – Alan Munn
    1 hour ago












  • 1km of code :-) Please can you add a little code as to have a group of the characters also in math-mode. With the hat, for example? Is it the same that I have inserted into chat? I have not understood how to group some characters with these brackets ABCD.

    – Sebastiano
    1 hour ago














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



);






user194244 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f503396%2fcontractions-using-simplewick%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









3














simpler-wick it is arguably easier to hack.



documentclassarticle
usepackagesimpler-wick
newififWickCut
WickCutfalse
pgfkeys
/simplerwick/.cd,
cut/.code=WickCuttrue,
no cut/.code=WickCutfalse,
cut ratio/.initial=0.5


makeatletter
defswick@end#1#2
swick@setfalse@#1
tikzexternaldisable
begintikzpicture[remember picture, baseline=(swick-close#1.base)]
node[use as bounding box, inner sep=0pt, outer sep=0pt] (swick-close#1) $displaystyle #2$;
endtikzpicture
tikz[remember picture, overlay]
ifWickCut
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($($(swick-open#1.base)!pgfkeysvalueof/simplerwick/cut ratio!(swick-close#1.base)$) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
else
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.south) + (0,-1pt)$);
fi
tikzexternalenable
makeatother
begindocument
beginequation
wickc1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut]c1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut,cut ratio=0.7]c1 phi c2 psi A c2 psi c1 phi
endequation
enddocument


enter image description here






share|improve this answer

























  • Hey, are you retiring or pretending to? :)

    – Alan Munn
    1 hour ago











  • @AlanMunn My profile says This account is scheduled to be deleted Aug 3 at 18:34. They carefully avoid specifying the year.... ;-)

    – user121799
    1 hour ago











  • One downside of this is that you can't mix cut and non-cut contractions in the same wick.

    – Alan Munn
    1 hour ago











  • @AlanMunn In this version this is certainly true but of course it is easy to change that. What I did here was to "cook down" the code from here.

    – user121799
    1 hour ago















3














simpler-wick it is arguably easier to hack.



documentclassarticle
usepackagesimpler-wick
newififWickCut
WickCutfalse
pgfkeys
/simplerwick/.cd,
cut/.code=WickCuttrue,
no cut/.code=WickCutfalse,
cut ratio/.initial=0.5


makeatletter
defswick@end#1#2
swick@setfalse@#1
tikzexternaldisable
begintikzpicture[remember picture, baseline=(swick-close#1.base)]
node[use as bounding box, inner sep=0pt, outer sep=0pt] (swick-close#1) $displaystyle #2$;
endtikzpicture
tikz[remember picture, overlay]
ifWickCut
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($($(swick-open#1.base)!pgfkeysvalueof/simplerwick/cut ratio!(swick-close#1.base)$) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
else
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.south) + (0,-1pt)$);
fi
tikzexternalenable
makeatother
begindocument
beginequation
wickc1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut]c1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut,cut ratio=0.7]c1 phi c2 psi A c2 psi c1 phi
endequation
enddocument


enter image description here






share|improve this answer

























  • Hey, are you retiring or pretending to? :)

    – Alan Munn
    1 hour ago











  • @AlanMunn My profile says This account is scheduled to be deleted Aug 3 at 18:34. They carefully avoid specifying the year.... ;-)

    – user121799
    1 hour ago











  • One downside of this is that you can't mix cut and non-cut contractions in the same wick.

    – Alan Munn
    1 hour ago











  • @AlanMunn In this version this is certainly true but of course it is easy to change that. What I did here was to "cook down" the code from here.

    – user121799
    1 hour ago













3












3








3







simpler-wick it is arguably easier to hack.



documentclassarticle
usepackagesimpler-wick
newififWickCut
WickCutfalse
pgfkeys
/simplerwick/.cd,
cut/.code=WickCuttrue,
no cut/.code=WickCutfalse,
cut ratio/.initial=0.5


makeatletter
defswick@end#1#2
swick@setfalse@#1
tikzexternaldisable
begintikzpicture[remember picture, baseline=(swick-close#1.base)]
node[use as bounding box, inner sep=0pt, outer sep=0pt] (swick-close#1) $displaystyle #2$;
endtikzpicture
tikz[remember picture, overlay]
ifWickCut
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($($(swick-open#1.base)!pgfkeysvalueof/simplerwick/cut ratio!(swick-close#1.base)$) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
else
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.south) + (0,-1pt)$);
fi
tikzexternalenable
makeatother
begindocument
beginequation
wickc1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut]c1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut,cut ratio=0.7]c1 phi c2 psi A c2 psi c1 phi
endequation
enddocument


enter image description here






share|improve this answer













simpler-wick it is arguably easier to hack.



documentclassarticle
usepackagesimpler-wick
newififWickCut
WickCutfalse
pgfkeys
/simplerwick/.cd,
cut/.code=WickCuttrue,
no cut/.code=WickCutfalse,
cut ratio/.initial=0.5


makeatletter
defswick@end#1#2
swick@setfalse@#1
tikzexternaldisable
begintikzpicture[remember picture, baseline=(swick-close#1.base)]
node[use as bounding box, inner sep=0pt, outer sep=0pt] (swick-close#1) $displaystyle #2$;
endtikzpicture
tikz[remember picture, overlay]
ifWickCut
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($($(swick-open#1.base)!pgfkeysvalueof/simplerwick/cut ratio!(swick-close#1.base)$) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
else
draw ($(swick-open#1.south) + (0, -1pt)$)
-- ($(swick-open#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.base) + (0,3pt -1*swick@offset) + #1*(0, -1*swick@sep)$)
-- ($(swick-close#1.south) + (0,-1pt)$);
fi
tikzexternalenable
makeatother
begindocument
beginequation
wickc1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut]c1 phi c2 psi A c2 psi c1 phi
endequation
beginequation
wick[cut,cut ratio=0.7]c1 phi c2 psi A c2 psi c1 phi
endequation
enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 1 hour ago









user121799user121799

125k6 gold badges192 silver badges359 bronze badges




125k6 gold badges192 silver badges359 bronze badges















  • Hey, are you retiring or pretending to? :)

    – Alan Munn
    1 hour ago











  • @AlanMunn My profile says This account is scheduled to be deleted Aug 3 at 18:34. They carefully avoid specifying the year.... ;-)

    – user121799
    1 hour ago











  • One downside of this is that you can't mix cut and non-cut contractions in the same wick.

    – Alan Munn
    1 hour ago











  • @AlanMunn In this version this is certainly true but of course it is easy to change that. What I did here was to "cook down" the code from here.

    – user121799
    1 hour ago

















  • Hey, are you retiring or pretending to? :)

    – Alan Munn
    1 hour ago











  • @AlanMunn My profile says This account is scheduled to be deleted Aug 3 at 18:34. They carefully avoid specifying the year.... ;-)

    – user121799
    1 hour ago











  • One downside of this is that you can't mix cut and non-cut contractions in the same wick.

    – Alan Munn
    1 hour ago











  • @AlanMunn In this version this is certainly true but of course it is easy to change that. What I did here was to "cook down" the code from here.

    – user121799
    1 hour ago
















Hey, are you retiring or pretending to? :)

– Alan Munn
1 hour ago





Hey, are you retiring or pretending to? :)

– Alan Munn
1 hour ago













@AlanMunn My profile says This account is scheduled to be deleted Aug 3 at 18:34. They carefully avoid specifying the year.... ;-)

– user121799
1 hour ago





@AlanMunn My profile says This account is scheduled to be deleted Aug 3 at 18:34. They carefully avoid specifying the year.... ;-)

– user121799
1 hour ago













One downside of this is that you can't mix cut and non-cut contractions in the same wick.

– Alan Munn
1 hour ago





One downside of this is that you can't mix cut and non-cut contractions in the same wick.

– Alan Munn
1 hour ago













@AlanMunn In this version this is certainly true but of course it is easy to change that. What I did here was to "cook down" the code from here.

– user121799
1 hour ago





@AlanMunn In this version this is certainly true but of course it is easy to change that. What I did here was to "cook down" the code from here.

– user121799
1 hour ago













3














The simplewick package is indeed quite simple, so it's not difficult to produce new commands from its code to do what you want. Here are open on the right contractions arcontraction and brcontraction. If you also need open on the left contractions, then you can do analogous commands commenting out the left vertical bar. The syntax of simplewick is somewhat cumbersome, so I would be more inclined to adapt the method described here if I were to implement this functionality myself.



documentclassarticle

usepackagesimplewick
makeatletter
newcommandbrcontraction[5][1ex]%
mathchoice
brcontraction@displaystyle#2#3#4#5#1%
brcontraction@textstyle#2#3#4#5#1%
brcontraction@scriptstyle#2#3#4#5#1%
brcontraction@scriptscriptstyle#2#3#4#5#1
newcommandbrcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
lower 0.5ex vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
brcontraction@@swdimen@ne#6%
hss%

newcommandbrcontraction@@[3][0.05em]%
hbox%
swdimentw@=#3
advanceswdimentw@ by -#1
vrule width #1 height 0pt depth #3%
lowerswdimentw@hboxvrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandbrcontracted[5][1ex]%
brcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
newcommandarcontraction[5][1ex]%
mathchoice
arcontraction@displaystyle#2#3#4#5#1%
arcontraction@textstyle#2#3#4#5#1%
arcontraction@scriptstyle#2#3#4#5#1%
arcontraction@scriptscriptstyle#2#3#4#5#1%
newcommandarcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
arcontraction@@swdimen@ne#6%
hss%
vskip 0.5ex% how far above the line starts
vskiphtswb@xtwo
newcommandarcontraction@@[3][0.05em]%
hbox%
vrule width #1 height 0pt depth #3%
vrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandarcontracted[5][1ex]%
arcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
begindocument

[
arcontraction[2ex]ABC
arcontractionABCD
ABCDdots
]
[
brcontraction[2ex]ABC
brcontractionABCD
ABCDdots
]

[
brcontraction[2ex]sum n[ABCD
brcontractionsum n[ABCD
sum n[hatAhatBhatChatDdots]
]

enddocument


output of code






share|improve this answer



























  • How much work you've done. Could you explain to me how you group the characters with your macro, and when these characters are in mathematical mode? I did not understand the mechanism of grouping (see chat). Thank you very much.

    – Sebastiano
    1 hour ago






  • 1





    @Sebastiano Not really much work, just some cutting, pasting and commenting out. :)

    – Alan Munn
    1 hour ago












  • 1km of code :-) Please can you add a little code as to have a group of the characters also in math-mode. With the hat, for example? Is it the same that I have inserted into chat? I have not understood how to group some characters with these brackets ABCD.

    – Sebastiano
    1 hour ago
















3














The simplewick package is indeed quite simple, so it's not difficult to produce new commands from its code to do what you want. Here are open on the right contractions arcontraction and brcontraction. If you also need open on the left contractions, then you can do analogous commands commenting out the left vertical bar. The syntax of simplewick is somewhat cumbersome, so I would be more inclined to adapt the method described here if I were to implement this functionality myself.



documentclassarticle

usepackagesimplewick
makeatletter
newcommandbrcontraction[5][1ex]%
mathchoice
brcontraction@displaystyle#2#3#4#5#1%
brcontraction@textstyle#2#3#4#5#1%
brcontraction@scriptstyle#2#3#4#5#1%
brcontraction@scriptscriptstyle#2#3#4#5#1
newcommandbrcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
lower 0.5ex vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
brcontraction@@swdimen@ne#6%
hss%

newcommandbrcontraction@@[3][0.05em]%
hbox%
swdimentw@=#3
advanceswdimentw@ by -#1
vrule width #1 height 0pt depth #3%
lowerswdimentw@hboxvrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandbrcontracted[5][1ex]%
brcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
newcommandarcontraction[5][1ex]%
mathchoice
arcontraction@displaystyle#2#3#4#5#1%
arcontraction@textstyle#2#3#4#5#1%
arcontraction@scriptstyle#2#3#4#5#1%
arcontraction@scriptscriptstyle#2#3#4#5#1%
newcommandarcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
arcontraction@@swdimen@ne#6%
hss%
vskip 0.5ex% how far above the line starts
vskiphtswb@xtwo
newcommandarcontraction@@[3][0.05em]%
hbox%
vrule width #1 height 0pt depth #3%
vrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandarcontracted[5][1ex]%
arcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
begindocument

[
arcontraction[2ex]ABC
arcontractionABCD
ABCDdots
]
[
brcontraction[2ex]ABC
brcontractionABCD
ABCDdots
]

[
brcontraction[2ex]sum n[ABCD
brcontractionsum n[ABCD
sum n[hatAhatBhatChatDdots]
]

enddocument


output of code






share|improve this answer



























  • How much work you've done. Could you explain to me how you group the characters with your macro, and when these characters are in mathematical mode? I did not understand the mechanism of grouping (see chat). Thank you very much.

    – Sebastiano
    1 hour ago






  • 1





    @Sebastiano Not really much work, just some cutting, pasting and commenting out. :)

    – Alan Munn
    1 hour ago












  • 1km of code :-) Please can you add a little code as to have a group of the characters also in math-mode. With the hat, for example? Is it the same that I have inserted into chat? I have not understood how to group some characters with these brackets ABCD.

    – Sebastiano
    1 hour ago














3












3








3







The simplewick package is indeed quite simple, so it's not difficult to produce new commands from its code to do what you want. Here are open on the right contractions arcontraction and brcontraction. If you also need open on the left contractions, then you can do analogous commands commenting out the left vertical bar. The syntax of simplewick is somewhat cumbersome, so I would be more inclined to adapt the method described here if I were to implement this functionality myself.



documentclassarticle

usepackagesimplewick
makeatletter
newcommandbrcontraction[5][1ex]%
mathchoice
brcontraction@displaystyle#2#3#4#5#1%
brcontraction@textstyle#2#3#4#5#1%
brcontraction@scriptstyle#2#3#4#5#1%
brcontraction@scriptscriptstyle#2#3#4#5#1
newcommandbrcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
lower 0.5ex vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
brcontraction@@swdimen@ne#6%
hss%

newcommandbrcontraction@@[3][0.05em]%
hbox%
swdimentw@=#3
advanceswdimentw@ by -#1
vrule width #1 height 0pt depth #3%
lowerswdimentw@hboxvrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandbrcontracted[5][1ex]%
brcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
newcommandarcontraction[5][1ex]%
mathchoice
arcontraction@displaystyle#2#3#4#5#1%
arcontraction@textstyle#2#3#4#5#1%
arcontraction@scriptstyle#2#3#4#5#1%
arcontraction@scriptscriptstyle#2#3#4#5#1%
newcommandarcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
arcontraction@@swdimen@ne#6%
hss%
vskip 0.5ex% how far above the line starts
vskiphtswb@xtwo
newcommandarcontraction@@[3][0.05em]%
hbox%
vrule width #1 height 0pt depth #3%
vrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandarcontracted[5][1ex]%
arcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
begindocument

[
arcontraction[2ex]ABC
arcontractionABCD
ABCDdots
]
[
brcontraction[2ex]ABC
brcontractionABCD
ABCDdots
]

[
brcontraction[2ex]sum n[ABCD
brcontractionsum n[ABCD
sum n[hatAhatBhatChatDdots]
]

enddocument


output of code






share|improve this answer















The simplewick package is indeed quite simple, so it's not difficult to produce new commands from its code to do what you want. Here are open on the right contractions arcontraction and brcontraction. If you also need open on the left contractions, then you can do analogous commands commenting out the left vertical bar. The syntax of simplewick is somewhat cumbersome, so I would be more inclined to adapt the method described here if I were to implement this functionality myself.



documentclassarticle

usepackagesimplewick
makeatletter
newcommandbrcontraction[5][1ex]%
mathchoice
brcontraction@displaystyle#2#3#4#5#1%
brcontraction@textstyle#2#3#4#5#1%
brcontraction@scriptstyle#2#3#4#5#1%
brcontraction@scriptscriptstyle#2#3#4#5#1
newcommandbrcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
lower 0.5ex vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
brcontraction@@swdimen@ne#6%
hss%

newcommandbrcontraction@@[3][0.05em]%
hbox%
swdimentw@=#3
advanceswdimentw@ by -#1
vrule width #1 height 0pt depth #3%
lowerswdimentw@hboxvrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandbrcontracted[5][1ex]%
brcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
newcommandarcontraction[5][1ex]%
mathchoice
arcontraction@displaystyle#2#3#4#5#1%
arcontraction@textstyle#2#3#4#5#1%
arcontraction@scriptstyle#2#3#4#5#1%
arcontraction@scriptscriptstyle#2#3#4#5#1%
newcommandarcontraction@[6]%
setboxswb@xone=hbox$#1#2$%
setboxswb@xtwo=hbox$#1#3$%
setboxswb@xthree=hbox$#1#4$%
setboxswb@xfour=hbox$#1#5$%
swdimen@ne=wdswb@xtwo%
advanceswdimen@ne by wdswb@xfour%
divideswdimen@ne by 2%
advanceswdimen@ne by wdswb@xthree%
vbox%
hbox to 0pt%
kern wdswb@xone%
kern 0.5wdswb@xtwo%
arcontraction@@swdimen@ne#6%
hss%
vskip 0.5ex% how far above the line starts
vskiphtswb@xtwo
newcommandarcontraction@@[3][0.05em]%
hbox%
vrule width #1 height 0pt depth #3%
vrule width #2 height 0pt depth #1%
% vrule width #1 height 0pt depth #3% commented out from original code
relax
newcommandarcontracted[5][1ex]%
arcontraction[#1]#2#3#4#5ensuremath#2#3#4#5
begindocument

[
arcontraction[2ex]ABC
arcontractionABCD
ABCDdots
]
[
brcontraction[2ex]ABC
brcontractionABCD
ABCDdots
]

[
brcontraction[2ex]sum n[ABCD
brcontractionsum n[ABCD
sum n[hatAhatBhatChatDdots]
]

enddocument


output of code







share|improve this answer














share|improve this answer



share|improve this answer








edited 48 mins ago

























answered 1 hour ago









Alan MunnAlan Munn

168k29 gold badges440 silver badges728 bronze badges




168k29 gold badges440 silver badges728 bronze badges















  • How much work you've done. Could you explain to me how you group the characters with your macro, and when these characters are in mathematical mode? I did not understand the mechanism of grouping (see chat). Thank you very much.

    – Sebastiano
    1 hour ago






  • 1





    @Sebastiano Not really much work, just some cutting, pasting and commenting out. :)

    – Alan Munn
    1 hour ago












  • 1km of code :-) Please can you add a little code as to have a group of the characters also in math-mode. With the hat, for example? Is it the same that I have inserted into chat? I have not understood how to group some characters with these brackets ABCD.

    – Sebastiano
    1 hour ago


















  • How much work you've done. Could you explain to me how you group the characters with your macro, and when these characters are in mathematical mode? I did not understand the mechanism of grouping (see chat). Thank you very much.

    – Sebastiano
    1 hour ago






  • 1





    @Sebastiano Not really much work, just some cutting, pasting and commenting out. :)

    – Alan Munn
    1 hour ago












  • 1km of code :-) Please can you add a little code as to have a group of the characters also in math-mode. With the hat, for example? Is it the same that I have inserted into chat? I have not understood how to group some characters with these brackets ABCD.

    – Sebastiano
    1 hour ago

















How much work you've done. Could you explain to me how you group the characters with your macro, and when these characters are in mathematical mode? I did not understand the mechanism of grouping (see chat). Thank you very much.

– Sebastiano
1 hour ago





How much work you've done. Could you explain to me how you group the characters with your macro, and when these characters are in mathematical mode? I did not understand the mechanism of grouping (see chat). Thank you very much.

– Sebastiano
1 hour ago




1




1





@Sebastiano Not really much work, just some cutting, pasting and commenting out. :)

– Alan Munn
1 hour ago






@Sebastiano Not really much work, just some cutting, pasting and commenting out. :)

– Alan Munn
1 hour ago














1km of code :-) Please can you add a little code as to have a group of the characters also in math-mode. With the hat, for example? Is it the same that I have inserted into chat? I have not understood how to group some characters with these brackets ABCD.

– Sebastiano
1 hour ago






1km of code :-) Please can you add a little code as to have a group of the characters also in math-mode. With the hat, for example? Is it the same that I have inserted into chat? I have not understood how to group some characters with these brackets ABCD.

– Sebastiano
1 hour ago











user194244 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















user194244 is a new contributor. Be nice, and check out our Code of Conduct.












user194244 is a new contributor. Be nice, and check out our Code of Conduct.











user194244 is a new contributor. Be nice, and check out our Code of Conduct.














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%2f503396%2fcontractions-using-simplewick%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

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480