Multicol listings and ntheorem rendering wrong The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraTheorem decorations that stay with theorem environmentListings, problem with rendering embedded stringsHypotheses and Subhypotheses with ntheoremntheorem placement of thmmarks wrongEnumerate and multicolIssue with ntheorem and eqrefntheorem won't display theoremsymbolxgalley breaks memoir and ntheoremntheorem: theoremclass not working?Wrong line spacing and indents in multicol environmentntheorem subhypotheses
Why doesn't a hydraulic lever violate conservation of energy?
Identify 80s or 90s comics with ripped creatures (not dwarves)
Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?
How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?
how can a perfect fourth interval be considered either consonant or dissonant?
Simulating Exploding Dice
Do warforged have souls?
Single author papers against my advisor's will?
Does Parliament hold absolute power in the UK?
First use of “packing” as in carrying a gun
Mortgage adviser recommends a longer term than necessary combined with overpayments
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
Could an empire control the whole planet with today's comunication methods?
Huge performance difference of the command find with and without using %M option to show permissions
Did the new image of black hole confirm the general theory of relativity?
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Do I have Disadvantage attacking with an off-hand weapon?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Is there a writing software that you can sort scenes like slides in PowerPoint?
Are spiders unable to hurt humans, especially very small spiders?
Didn't get enough time to take a Coding Test - what to do now?
What do I do when my TA workload is more than expected?
Is every episode of "Where are my Pants?" identical?
Multicol listings and ntheorem rendering wrong
The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraTheorem decorations that stay with theorem environmentListings, problem with rendering embedded stringsHypotheses and Subhypotheses with ntheoremntheorem placement of thmmarks wrongEnumerate and multicolIssue with ntheorem and eqrefntheorem won't display theoremsymbolxgalley breaks memoir and ntheoremntheorem: theoremclass not working?Wrong line spacing and indents in multicol environmentntheorem subhypotheses
Given the quite long MWE:
documentclassmemoir
usepackage[dvipsnames,table]xcolor
%usepackage[showframe]geometry
usepackagemathtools
usepackageneedspace
usepackagemultido
usepackagemulticol
usepackage[thmmarks, amsmath]ntheorem
usepackagethmtools
usepackagelistings
nonzeroparskip % Create space between paragraphs
setlengthparindent0pt % Remove paragraph indentation
setlengthcolumnsep0pt % for multicol: still too much space in between
% From here:
% https://tex.stackexchange.com/questions/24101/theorem-decorations-that-stay-with-theorem-environment
newcommandtheoremhang% top theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,2)line(1,0)206% Top line
multidoiA=2+-1,iB=50+-105% Top hangs
colorblack!iB%
put(-3,iA)line(0,-1)1% Top left hang
put(203,iA)line(0,-1)1% Top right hang
%
endpicture%
endgroup%
%
newcommandtheoremhung% bottom theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,0)line(1,0)206% Bottom line
multidoiA=0+1,iB=50+-105% Bottom hangs
colorblack!iB%
put(-3,iA)line(0,1)1% Bottom left hang
put(203,iA)line(0,1)1% Bottom right hang
%
endpicture%
endgroup%
%
newcommandtheoremspaceneedspace2baselineskip
newcommandtheoremspucenopagebreaknoindent
theoremstyleplain
theoremsymbol%
theorempreworktheoremspacetheoremhangvspace*-1.3ex%
theorempostworktheoremspucetheoremhung%
theoremheaderfontupshapebfseries
theoremseparator.
theorembodyfontupshape
newtheoremtheoremTheorem
lstnewenvironmentcode[1][]%
%
noindent%
minipagelinewidth%
theoremspace%
theoremhang%
lstset#1%
theoremhungendminipage
begindocument
Code Env:
begincode
Test. Test. Test. Test. Test. Test.
endcode
Theorem Env:
begintheorem
Test. Test. Test. Test. Test. Test.
endtheorem
Multicol Code Env:
beginmulticols2
beginitemize
item[]
begincode
left
endcode
item[]
begincode
right
endcode
enditemize
endmulticols
enddocument
I get:
Where I have two problems:
- The hang/hung bars do not have the same distance to text (In particular the space from end of theorem+listings to the hung below is too large. But there are also other problems: for example "Theorem Env:" to hung above)
- The multicol environment is not left aligned (may be caused by itemize which is needed to have the listings side-by-side)
I tried a lot with vspace hackery, but for at least at one of the places a problem persisted ;(
And is it possible to have the multicols/itemize in a self-defined environment to have everything more compact?
best regards,
Markus
formatting listings memoir multicol ntheorem
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Given the quite long MWE:
documentclassmemoir
usepackage[dvipsnames,table]xcolor
%usepackage[showframe]geometry
usepackagemathtools
usepackageneedspace
usepackagemultido
usepackagemulticol
usepackage[thmmarks, amsmath]ntheorem
usepackagethmtools
usepackagelistings
nonzeroparskip % Create space between paragraphs
setlengthparindent0pt % Remove paragraph indentation
setlengthcolumnsep0pt % for multicol: still too much space in between
% From here:
% https://tex.stackexchange.com/questions/24101/theorem-decorations-that-stay-with-theorem-environment
newcommandtheoremhang% top theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,2)line(1,0)206% Top line
multidoiA=2+-1,iB=50+-105% Top hangs
colorblack!iB%
put(-3,iA)line(0,-1)1% Top left hang
put(203,iA)line(0,-1)1% Top right hang
%
endpicture%
endgroup%
%
newcommandtheoremhung% bottom theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,0)line(1,0)206% Bottom line
multidoiA=0+1,iB=50+-105% Bottom hangs
colorblack!iB%
put(-3,iA)line(0,1)1% Bottom left hang
put(203,iA)line(0,1)1% Bottom right hang
%
endpicture%
endgroup%
%
newcommandtheoremspaceneedspace2baselineskip
newcommandtheoremspucenopagebreaknoindent
theoremstyleplain
theoremsymbol%
theorempreworktheoremspacetheoremhangvspace*-1.3ex%
theorempostworktheoremspucetheoremhung%
theoremheaderfontupshapebfseries
theoremseparator.
theorembodyfontupshape
newtheoremtheoremTheorem
lstnewenvironmentcode[1][]%
%
noindent%
minipagelinewidth%
theoremspace%
theoremhang%
lstset#1%
theoremhungendminipage
begindocument
Code Env:
begincode
Test. Test. Test. Test. Test. Test.
endcode
Theorem Env:
begintheorem
Test. Test. Test. Test. Test. Test.
endtheorem
Multicol Code Env:
beginmulticols2
beginitemize
item[]
begincode
left
endcode
item[]
begincode
right
endcode
enditemize
endmulticols
enddocument
I get:
Where I have two problems:
- The hang/hung bars do not have the same distance to text (In particular the space from end of theorem+listings to the hung below is too large. But there are also other problems: for example "Theorem Env:" to hung above)
- The multicol environment is not left aligned (may be caused by itemize which is needed to have the listings side-by-side)
I tried a lot with vspace hackery, but for at least at one of the places a problem persisted ;(
And is it possible to have the multicols/itemize in a self-defined environment to have everything more compact?
best regards,
Markus
formatting listings memoir multicol ntheorem
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
2
i believe that themulticol
environment is left aligned, but the indentation of thecode
environment is a consequence of the fact that it's within anitemize
environment. even though theitem
label is absent. space is left for it at the beginning of the line..
– barbara beeton
Sep 18 '17 at 0:48
Thank you, yes I think so too. How can I avoid the itemize to indent? Most problems are in the vertical spacing. (For example, Theorem to hung is too close). Btw. the itemize is necessary so that the code blocks are side-by-side.
– markus23
Sep 18 '17 at 9:57
the only straightforward way i can think of to avoid the item indent is to get out ofitemize
. one of the list-enhancement packages, i've forgotten which, has a "resule" facility that allows one to continue numbering in anenumerate
environment, but you wouldn't even need that withitemize
since there's nothing you need to keep track of. just exit fromitemize
and go back in after the code block.
– barbara beeton
Sep 18 '17 at 12:29
Do you mean that I just putbeginitemizeitem[]enditemize
within the two code envs? Or is there a way to define column breaks in multicol without any itemize?
– markus23
Sep 18 '17 at 12:49
1
there is a commandcolumnbreak
that you can use to break after the code on the left. maybe evenpar
would work.
– barbara beeton
Sep 18 '17 at 12:55
add a comment |
Given the quite long MWE:
documentclassmemoir
usepackage[dvipsnames,table]xcolor
%usepackage[showframe]geometry
usepackagemathtools
usepackageneedspace
usepackagemultido
usepackagemulticol
usepackage[thmmarks, amsmath]ntheorem
usepackagethmtools
usepackagelistings
nonzeroparskip % Create space between paragraphs
setlengthparindent0pt % Remove paragraph indentation
setlengthcolumnsep0pt % for multicol: still too much space in between
% From here:
% https://tex.stackexchange.com/questions/24101/theorem-decorations-that-stay-with-theorem-environment
newcommandtheoremhang% top theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,2)line(1,0)206% Top line
multidoiA=2+-1,iB=50+-105% Top hangs
colorblack!iB%
put(-3,iA)line(0,-1)1% Top left hang
put(203,iA)line(0,-1)1% Top right hang
%
endpicture%
endgroup%
%
newcommandtheoremhung% bottom theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,0)line(1,0)206% Bottom line
multidoiA=0+1,iB=50+-105% Bottom hangs
colorblack!iB%
put(-3,iA)line(0,1)1% Bottom left hang
put(203,iA)line(0,1)1% Bottom right hang
%
endpicture%
endgroup%
%
newcommandtheoremspaceneedspace2baselineskip
newcommandtheoremspucenopagebreaknoindent
theoremstyleplain
theoremsymbol%
theorempreworktheoremspacetheoremhangvspace*-1.3ex%
theorempostworktheoremspucetheoremhung%
theoremheaderfontupshapebfseries
theoremseparator.
theorembodyfontupshape
newtheoremtheoremTheorem
lstnewenvironmentcode[1][]%
%
noindent%
minipagelinewidth%
theoremspace%
theoremhang%
lstset#1%
theoremhungendminipage
begindocument
Code Env:
begincode
Test. Test. Test. Test. Test. Test.
endcode
Theorem Env:
begintheorem
Test. Test. Test. Test. Test. Test.
endtheorem
Multicol Code Env:
beginmulticols2
beginitemize
item[]
begincode
left
endcode
item[]
begincode
right
endcode
enditemize
endmulticols
enddocument
I get:
Where I have two problems:
- The hang/hung bars do not have the same distance to text (In particular the space from end of theorem+listings to the hung below is too large. But there are also other problems: for example "Theorem Env:" to hung above)
- The multicol environment is not left aligned (may be caused by itemize which is needed to have the listings side-by-side)
I tried a lot with vspace hackery, but for at least at one of the places a problem persisted ;(
And is it possible to have the multicols/itemize in a self-defined environment to have everything more compact?
best regards,
Markus
formatting listings memoir multicol ntheorem
Given the quite long MWE:
documentclassmemoir
usepackage[dvipsnames,table]xcolor
%usepackage[showframe]geometry
usepackagemathtools
usepackageneedspace
usepackagemultido
usepackagemulticol
usepackage[thmmarks, amsmath]ntheorem
usepackagethmtools
usepackagelistings
nonzeroparskip % Create space between paragraphs
setlengthparindent0pt % Remove paragraph indentation
setlengthcolumnsep0pt % for multicol: still too much space in between
% From here:
% https://tex.stackexchange.com/questions/24101/theorem-decorations-that-stay-with-theorem-environment
newcommandtheoremhang% top theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,2)line(1,0)206% Top line
multidoiA=2+-1,iB=50+-105% Top hangs
colorblack!iB%
put(-3,iA)line(0,-1)1% Top left hang
put(203,iA)line(0,-1)1% Top right hang
%
endpicture%
endgroup%
%
newcommandtheoremhung% bottom theorem decoration
begingroup%
setlengthunitlength.005linewidth% linewidth/200
beginpicture(0,0)(1.5,0)%
linethickness0.45pt colorBlack%
put(-3,0)line(1,0)206% Bottom line
multidoiA=0+1,iB=50+-105% Bottom hangs
colorblack!iB%
put(-3,iA)line(0,1)1% Bottom left hang
put(203,iA)line(0,1)1% Bottom right hang
%
endpicture%
endgroup%
%
newcommandtheoremspaceneedspace2baselineskip
newcommandtheoremspucenopagebreaknoindent
theoremstyleplain
theoremsymbol%
theorempreworktheoremspacetheoremhangvspace*-1.3ex%
theorempostworktheoremspucetheoremhung%
theoremheaderfontupshapebfseries
theoremseparator.
theorembodyfontupshape
newtheoremtheoremTheorem
lstnewenvironmentcode[1][]%
%
noindent%
minipagelinewidth%
theoremspace%
theoremhang%
lstset#1%
theoremhungendminipage
begindocument
Code Env:
begincode
Test. Test. Test. Test. Test. Test.
endcode
Theorem Env:
begintheorem
Test. Test. Test. Test. Test. Test.
endtheorem
Multicol Code Env:
beginmulticols2
beginitemize
item[]
begincode
left
endcode
item[]
begincode
right
endcode
enditemize
endmulticols
enddocument
I get:
Where I have two problems:
- The hang/hung bars do not have the same distance to text (In particular the space from end of theorem+listings to the hung below is too large. But there are also other problems: for example "Theorem Env:" to hung above)
- The multicol environment is not left aligned (may be caused by itemize which is needed to have the listings side-by-side)
I tried a lot with vspace hackery, but for at least at one of the places a problem persisted ;(
And is it possible to have the multicols/itemize in a self-defined environment to have everything more compact?
best regards,
Markus
formatting listings memoir multicol ntheorem
formatting listings memoir multicol ntheorem
edited Sep 18 '17 at 13:05
markus23
asked Sep 17 '17 at 23:21
markus23markus23
797
797
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
2
i believe that themulticol
environment is left aligned, but the indentation of thecode
environment is a consequence of the fact that it's within anitemize
environment. even though theitem
label is absent. space is left for it at the beginning of the line..
– barbara beeton
Sep 18 '17 at 0:48
Thank you, yes I think so too. How can I avoid the itemize to indent? Most problems are in the vertical spacing. (For example, Theorem to hung is too close). Btw. the itemize is necessary so that the code blocks are side-by-side.
– markus23
Sep 18 '17 at 9:57
the only straightforward way i can think of to avoid the item indent is to get out ofitemize
. one of the list-enhancement packages, i've forgotten which, has a "resule" facility that allows one to continue numbering in anenumerate
environment, but you wouldn't even need that withitemize
since there's nothing you need to keep track of. just exit fromitemize
and go back in after the code block.
– barbara beeton
Sep 18 '17 at 12:29
Do you mean that I just putbeginitemizeitem[]enditemize
within the two code envs? Or is there a way to define column breaks in multicol without any itemize?
– markus23
Sep 18 '17 at 12:49
1
there is a commandcolumnbreak
that you can use to break after the code on the left. maybe evenpar
would work.
– barbara beeton
Sep 18 '17 at 12:55
add a comment |
2
i believe that themulticol
environment is left aligned, but the indentation of thecode
environment is a consequence of the fact that it's within anitemize
environment. even though theitem
label is absent. space is left for it at the beginning of the line..
– barbara beeton
Sep 18 '17 at 0:48
Thank you, yes I think so too. How can I avoid the itemize to indent? Most problems are in the vertical spacing. (For example, Theorem to hung is too close). Btw. the itemize is necessary so that the code blocks are side-by-side.
– markus23
Sep 18 '17 at 9:57
the only straightforward way i can think of to avoid the item indent is to get out ofitemize
. one of the list-enhancement packages, i've forgotten which, has a "resule" facility that allows one to continue numbering in anenumerate
environment, but you wouldn't even need that withitemize
since there's nothing you need to keep track of. just exit fromitemize
and go back in after the code block.
– barbara beeton
Sep 18 '17 at 12:29
Do you mean that I just putbeginitemizeitem[]enditemize
within the two code envs? Or is there a way to define column breaks in multicol without any itemize?
– markus23
Sep 18 '17 at 12:49
1
there is a commandcolumnbreak
that you can use to break after the code on the left. maybe evenpar
would work.
– barbara beeton
Sep 18 '17 at 12:55
2
2
i believe that the
multicol
environment is left aligned, but the indentation of the code
environment is a consequence of the fact that it's within an itemize
environment. even though the item
label is absent. space is left for it at the beginning of the line..– barbara beeton
Sep 18 '17 at 0:48
i believe that the
multicol
environment is left aligned, but the indentation of the code
environment is a consequence of the fact that it's within an itemize
environment. even though the item
label is absent. space is left for it at the beginning of the line..– barbara beeton
Sep 18 '17 at 0:48
Thank you, yes I think so too. How can I avoid the itemize to indent? Most problems are in the vertical spacing. (For example, Theorem to hung is too close). Btw. the itemize is necessary so that the code blocks are side-by-side.
– markus23
Sep 18 '17 at 9:57
Thank you, yes I think so too. How can I avoid the itemize to indent? Most problems are in the vertical spacing. (For example, Theorem to hung is too close). Btw. the itemize is necessary so that the code blocks are side-by-side.
– markus23
Sep 18 '17 at 9:57
the only straightforward way i can think of to avoid the item indent is to get out of
itemize
. one of the list-enhancement packages, i've forgotten which, has a "resule" facility that allows one to continue numbering in an enumerate
environment, but you wouldn't even need that with itemize
since there's nothing you need to keep track of. just exit from itemize
and go back in after the code block.– barbara beeton
Sep 18 '17 at 12:29
the only straightforward way i can think of to avoid the item indent is to get out of
itemize
. one of the list-enhancement packages, i've forgotten which, has a "resule" facility that allows one to continue numbering in an enumerate
environment, but you wouldn't even need that with itemize
since there's nothing you need to keep track of. just exit from itemize
and go back in after the code block.– barbara beeton
Sep 18 '17 at 12:29
Do you mean that I just put
beginitemizeitem[]enditemize
within the two code envs? Or is there a way to define column breaks in multicol without any itemize?– markus23
Sep 18 '17 at 12:49
Do you mean that I just put
beginitemizeitem[]enditemize
within the two code envs? Or is there a way to define column breaks in multicol without any itemize?– markus23
Sep 18 '17 at 12:49
1
1
there is a command
columnbreak
that you can use to break after the code on the left. maybe even par
would work.– barbara beeton
Sep 18 '17 at 12:55
there is a command
columnbreak
that you can use to break after the code on the left. maybe even par
would work.– barbara beeton
Sep 18 '17 at 12:55
add a comment |
1 Answer
1
active
oldest
votes
A partial solution is to have vspace within
theorempostworkvspace-1emtheoremspucetheoremhung
Initially I tried to add the vspace to theoremspuce, where it did not work.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f391886%2fmulticol-listings-and-ntheorem-rendering-wrong%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
A partial solution is to have vspace within
theorempostworkvspace-1emtheoremspucetheoremhung
Initially I tried to add the vspace to theoremspuce, where it did not work.
add a comment |
A partial solution is to have vspace within
theorempostworkvspace-1emtheoremspucetheoremhung
Initially I tried to add the vspace to theoremspuce, where it did not work.
add a comment |
A partial solution is to have vspace within
theorempostworkvspace-1emtheoremspucetheoremhung
Initially I tried to add the vspace to theoremspuce, where it did not work.
A partial solution is to have vspace within
theorempostworkvspace-1emtheoremspucetheoremhung
Initially I tried to add the vspace to theoremspuce, where it did not work.
answered Sep 19 '17 at 20:27
community wiki
markus23
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f391886%2fmulticol-listings-and-ntheorem-rendering-wrong%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
i believe that the
multicol
environment is left aligned, but the indentation of thecode
environment is a consequence of the fact that it's within anitemize
environment. even though theitem
label is absent. space is left for it at the beginning of the line..– barbara beeton
Sep 18 '17 at 0:48
Thank you, yes I think so too. How can I avoid the itemize to indent? Most problems are in the vertical spacing. (For example, Theorem to hung is too close). Btw. the itemize is necessary so that the code blocks are side-by-side.
– markus23
Sep 18 '17 at 9:57
the only straightforward way i can think of to avoid the item indent is to get out of
itemize
. one of the list-enhancement packages, i've forgotten which, has a "resule" facility that allows one to continue numbering in anenumerate
environment, but you wouldn't even need that withitemize
since there's nothing you need to keep track of. just exit fromitemize
and go back in after the code block.– barbara beeton
Sep 18 '17 at 12:29
Do you mean that I just put
beginitemizeitem[]enditemize
within the two code envs? Or is there a way to define column breaks in multicol without any itemize?– markus23
Sep 18 '17 at 12:49
1
there is a command
columnbreak
that you can use to break after the code on the left. maybe evenpar
would work.– barbara beeton
Sep 18 '17 at 12:55