Wide figure in twocolumn output in Plain TeX











up vote
6
down vote

favorite












I try to get something which looks like a figure* in LaTeX. I have defined widetopinsert and endwiedeinsert. This works but the text on the second column goes into the bottom margin.



catcode`@=11
raggedbottom

newdimenfullhsize
newdimencolumnsep
columnsep 1cm
fullhsizehsize
advancehsize-columnsep
dividehsizetw@

deffullline{hbox tofullhsize}
defmakeheadline{vbox toz@{vskip-22.5p@
fullline{vbox to8.5p@{}theheadline}vss}nointerlineskip}
defmakefootline{baselineskip24p@lineskiplimitz@fullline{thefootline}}

newifif@firstcolumn @firstcolumntrue
newboxfirstcolumn

output={if@firstcolumn globalsetboxfirstcolumn=columnbox
global@firstcolumnfalse
else
doubleformat global@firstcolumntruefi
ifnumoutputpenalty>-20000 elsedosuperejectfi}

defdoubleformat{shipoutvbox{
makeheadline
ifvoidwidetopinselsefullline{boxwidetopins}fi
fullline{boxfirstcolumnhfilcolumnbox} makefootline}
advancepageno}

defcolumnbox{leftline{pagebody}}

newinsertwidetopins
skipwidetopinsz@skip
countwidetopins=1000
dimenwidetopins=maxdimen

defwidetopinsert{p@gefalseparbegingroupsetboxz@vboxbgrouphsizefullhsize}
defendwideinsert{egroup
insertwidetopins{penalty100 % floating insertion
splittopskipz@skip
splitmaxdepthmaxdimen floatingpenaltyz@
ifp@ge dimen@dpz@
vbox tovsize{unvboxz@kern-dimen@}% depth is zero
else boxz@nobreakbigskipfi}endgroup}

defmypicture{vrule height 100pt depth 40pt width300pt}

deftext{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.}

texttexttext

widetopinsert
centerline{mypicture}
endwideinsert

texttexttexttexttext

bye


How can I get the right textheight on the second column?



Plain TeX wide figure










share|improve this question

















This question has an open bounty worth +50
reputation from user125730 ending in 4 days.


This question has not received enough attention.












  • 2




    Just memorize that vsize from the left column and set it for the right column?
    – Henri Menke
    2 days ago















up vote
6
down vote

favorite












I try to get something which looks like a figure* in LaTeX. I have defined widetopinsert and endwiedeinsert. This works but the text on the second column goes into the bottom margin.



catcode`@=11
raggedbottom

newdimenfullhsize
newdimencolumnsep
columnsep 1cm
fullhsizehsize
advancehsize-columnsep
dividehsizetw@

deffullline{hbox tofullhsize}
defmakeheadline{vbox toz@{vskip-22.5p@
fullline{vbox to8.5p@{}theheadline}vss}nointerlineskip}
defmakefootline{baselineskip24p@lineskiplimitz@fullline{thefootline}}

newifif@firstcolumn @firstcolumntrue
newboxfirstcolumn

output={if@firstcolumn globalsetboxfirstcolumn=columnbox
global@firstcolumnfalse
else
doubleformat global@firstcolumntruefi
ifnumoutputpenalty>-20000 elsedosuperejectfi}

defdoubleformat{shipoutvbox{
makeheadline
ifvoidwidetopinselsefullline{boxwidetopins}fi
fullline{boxfirstcolumnhfilcolumnbox} makefootline}
advancepageno}

defcolumnbox{leftline{pagebody}}

newinsertwidetopins
skipwidetopinsz@skip
countwidetopins=1000
dimenwidetopins=maxdimen

defwidetopinsert{p@gefalseparbegingroupsetboxz@vboxbgrouphsizefullhsize}
defendwideinsert{egroup
insertwidetopins{penalty100 % floating insertion
splittopskipz@skip
splitmaxdepthmaxdimen floatingpenaltyz@
ifp@ge dimen@dpz@
vbox tovsize{unvboxz@kern-dimen@}% depth is zero
else boxz@nobreakbigskipfi}endgroup}

defmypicture{vrule height 100pt depth 40pt width300pt}

deftext{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.}

texttexttext

widetopinsert
centerline{mypicture}
endwideinsert

texttexttexttexttext

bye


How can I get the right textheight on the second column?



Plain TeX wide figure










share|improve this question

















This question has an open bounty worth +50
reputation from user125730 ending in 4 days.


This question has not received enough attention.












  • 2




    Just memorize that vsize from the left column and set it for the right column?
    – Henri Menke
    2 days ago













up vote
6
down vote

favorite









up vote
6
down vote

favorite











I try to get something which looks like a figure* in LaTeX. I have defined widetopinsert and endwiedeinsert. This works but the text on the second column goes into the bottom margin.



catcode`@=11
raggedbottom

newdimenfullhsize
newdimencolumnsep
columnsep 1cm
fullhsizehsize
advancehsize-columnsep
dividehsizetw@

deffullline{hbox tofullhsize}
defmakeheadline{vbox toz@{vskip-22.5p@
fullline{vbox to8.5p@{}theheadline}vss}nointerlineskip}
defmakefootline{baselineskip24p@lineskiplimitz@fullline{thefootline}}

newifif@firstcolumn @firstcolumntrue
newboxfirstcolumn

output={if@firstcolumn globalsetboxfirstcolumn=columnbox
global@firstcolumnfalse
else
doubleformat global@firstcolumntruefi
ifnumoutputpenalty>-20000 elsedosuperejectfi}

defdoubleformat{shipoutvbox{
makeheadline
ifvoidwidetopinselsefullline{boxwidetopins}fi
fullline{boxfirstcolumnhfilcolumnbox} makefootline}
advancepageno}

defcolumnbox{leftline{pagebody}}

newinsertwidetopins
skipwidetopinsz@skip
countwidetopins=1000
dimenwidetopins=maxdimen

defwidetopinsert{p@gefalseparbegingroupsetboxz@vboxbgrouphsizefullhsize}
defendwideinsert{egroup
insertwidetopins{penalty100 % floating insertion
splittopskipz@skip
splitmaxdepthmaxdimen floatingpenaltyz@
ifp@ge dimen@dpz@
vbox tovsize{unvboxz@kern-dimen@}% depth is zero
else boxz@nobreakbigskipfi}endgroup}

defmypicture{vrule height 100pt depth 40pt width300pt}

deftext{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.}

texttexttext

widetopinsert
centerline{mypicture}
endwideinsert

texttexttexttexttext

bye


How can I get the right textheight on the second column?



Plain TeX wide figure










share|improve this question















I try to get something which looks like a figure* in LaTeX. I have defined widetopinsert and endwiedeinsert. This works but the text on the second column goes into the bottom margin.



catcode`@=11
raggedbottom

newdimenfullhsize
newdimencolumnsep
columnsep 1cm
fullhsizehsize
advancehsize-columnsep
dividehsizetw@

deffullline{hbox tofullhsize}
defmakeheadline{vbox toz@{vskip-22.5p@
fullline{vbox to8.5p@{}theheadline}vss}nointerlineskip}
defmakefootline{baselineskip24p@lineskiplimitz@fullline{thefootline}}

newifif@firstcolumn @firstcolumntrue
newboxfirstcolumn

output={if@firstcolumn globalsetboxfirstcolumn=columnbox
global@firstcolumnfalse
else
doubleformat global@firstcolumntruefi
ifnumoutputpenalty>-20000 elsedosuperejectfi}

defdoubleformat{shipoutvbox{
makeheadline
ifvoidwidetopinselsefullline{boxwidetopins}fi
fullline{boxfirstcolumnhfilcolumnbox} makefootline}
advancepageno}

defcolumnbox{leftline{pagebody}}

newinsertwidetopins
skipwidetopinsz@skip
countwidetopins=1000
dimenwidetopins=maxdimen

defwidetopinsert{p@gefalseparbegingroupsetboxz@vboxbgrouphsizefullhsize}
defendwideinsert{egroup
insertwidetopins{penalty100 % floating insertion
splittopskipz@skip
splitmaxdepthmaxdimen floatingpenaltyz@
ifp@ge dimen@dpz@
vbox tovsize{unvboxz@kern-dimen@}% depth is zero
else boxz@nobreakbigskipfi}endgroup}

defmypicture{vrule height 100pt depth 40pt width300pt}

deftext{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.}

texttexttext

widetopinsert
centerline{mypicture}
endwideinsert

texttexttexttexttext

bye


How can I get the right textheight on the second column?



Plain TeX wide figure







floats plain-tex






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 22:45

























asked Nov 12 at 22:31









user125730

17529




17529






This question has an open bounty worth +50
reputation from user125730 ending in 4 days.


This question has not received enough attention.








This question has an open bounty worth +50
reputation from user125730 ending in 4 days.


This question has not received enough attention.










  • 2




    Just memorize that vsize from the left column and set it for the right column?
    – Henri Menke
    2 days ago














  • 2




    Just memorize that vsize from the left column and set it for the right column?
    – Henri Menke
    2 days ago








2




2




Just memorize that vsize from the left column and set it for the right column?
– Henri Menke
2 days ago




Just memorize that vsize from the left column and set it for the right column?
– Henri Menke
2 days ago















active

oldest

votes











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',
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%2f459697%2fwide-figure-in-twocolumn-output-in-plain-tex%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459697%2fwide-figure-in-twocolumn-output-in-plain-tex%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

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?