Email-style reply layout: Vertical line in left margin, except for reply environmentHow to use background image in LaTeX?How to format an email conversation?Making Book With Several Distinct StylesHow do I add a background image to just a parbox?

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

Non-trope happy ending?

Review your own paper in Mathematics

What kind of floor tile is this?

Is there a nicer/politer/more positive alternative for "negates"?

What fields between the rationals and the reals allow a good notion of 2D distance?

PTIJ: Why is Haman obsessed with Bose?

What is the English pronunciation of "pain au chocolat"?

How much of a Devil Fruit must be consumed to gain the power?

awk assign to multiple variables at once

Which Article Helped Get Rid of Technobabble in RPGs?

Can you use Vicious Mockery to win an argument or gain favours?

How can I write humor as character trait?

How to convince somebody that he is fit for something else, but not this job?

How do I fix the group tension caused by my character stealing and possibly killing without provocation?

What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?

Stack Interview Code methods made from class Node and Smart Pointers

Why do Radio Buttons not fill the entire outer circle?

Does the reader need to like the PoV character?

What is the difference between lands and mana?

Why should universal income be universal?

What does Apple's new App Store requirement mean



Email-style reply layout: Vertical line in left margin, except for reply environment


How to use background image in LaTeX?How to format an email conversation?Making Book With Several Distinct StylesHow do I add a background image to just a parbox?













2















I have a long LaTeX document, with nested enumerations and sections. It is important that I keep the numbering, structures as they are, but I want to insert replies that are visually different from the original text. I also would like to achieve this without excessive fiddling in the original code, but instead simply introduce a new reply command or environment.



To be easily understood by people it would be great if the reply layout would imitate email reply layout, i.e., add a vertical line (or a ">") on the left margin to all original content, but keep it blank whenever the reply is used.



I was able to achieve the opposite with mdframed, but I cannot simply switch this around as this would break the orignal text's lists and sectioning.



documentclassarticle
newcommandresponse[1]
beginmdframed[ linewidth=2pt,
topline=false,
rightline=false,
bottomline=false
,linecolor=black, innerleftmargin =0cm, leftmargin=-2pt, innerrightmargin=0cm]
mdseries
#1
endmdframed


usepackagemdframed
begindocument
Some text, with pictures, lists, sections
beginenumerate
item Some text, with pictures, lists, sections
responseanswer1
item Some text, with pictures, lists, sections
responseanswer2
endenumerate
Some text, with pictures, lists, sections
responsethis is my answer
Some text, with pictures, lists, sections
sectionsection
subsectionsubsection1
Some text, with pictures, lists, sections
subsectionsubsection2
Some text, with pictures, lists, sections
subsectionsubsection3
Some text, with pictures, lists, sections
responseI also have an answer here
enddocument


enter image description here










share|improve this question



















  • 1





    Maybe related: tex.stackexchange.com/questions/68251/…

    – Steven B. Segletes
    yesterday






  • 2





    Not a solution, but if you are looking into this I would try to use tcolorbox instead of mdframed. tcolorbox is actively maintained and has an awesome manual while mdframed development seems to have stalled a while ago.

    – moewe
    yesterday











  • @Steven B. Segletes, Certainly related, but different, because it does not allow me to insert replies wherever I want. I can't write embed text beginenumerate item item1 response.

    – sheß
    yesterday






  • 2





    @sheß Could you clarify? One can indeed put enumerations inside the embed. So are you looking to suspend the embed to provide a response and then continue the enumeration where it left off?

    – Steven B. Segletes
    yesterday






  • 1





    What if you just draw a line on the left margin (using a suitably prepared background image perhaps), and use your defined response environment to draw a box with a white border on the left to cover up the pre-drawn line?

    – Willie Wong
    12 hours ago















2















I have a long LaTeX document, with nested enumerations and sections. It is important that I keep the numbering, structures as they are, but I want to insert replies that are visually different from the original text. I also would like to achieve this without excessive fiddling in the original code, but instead simply introduce a new reply command or environment.



To be easily understood by people it would be great if the reply layout would imitate email reply layout, i.e., add a vertical line (or a ">") on the left margin to all original content, but keep it blank whenever the reply is used.



I was able to achieve the opposite with mdframed, but I cannot simply switch this around as this would break the orignal text's lists and sectioning.



documentclassarticle
newcommandresponse[1]
beginmdframed[ linewidth=2pt,
topline=false,
rightline=false,
bottomline=false
,linecolor=black, innerleftmargin =0cm, leftmargin=-2pt, innerrightmargin=0cm]
mdseries
#1
endmdframed


usepackagemdframed
begindocument
Some text, with pictures, lists, sections
beginenumerate
item Some text, with pictures, lists, sections
responseanswer1
item Some text, with pictures, lists, sections
responseanswer2
endenumerate
Some text, with pictures, lists, sections
responsethis is my answer
Some text, with pictures, lists, sections
sectionsection
subsectionsubsection1
Some text, with pictures, lists, sections
subsectionsubsection2
Some text, with pictures, lists, sections
subsectionsubsection3
Some text, with pictures, lists, sections
responseI also have an answer here
enddocument


enter image description here










share|improve this question



















  • 1





    Maybe related: tex.stackexchange.com/questions/68251/…

    – Steven B. Segletes
    yesterday






  • 2





    Not a solution, but if you are looking into this I would try to use tcolorbox instead of mdframed. tcolorbox is actively maintained and has an awesome manual while mdframed development seems to have stalled a while ago.

    – moewe
    yesterday











  • @Steven B. Segletes, Certainly related, but different, because it does not allow me to insert replies wherever I want. I can't write embed text beginenumerate item item1 response.

    – sheß
    yesterday






  • 2





    @sheß Could you clarify? One can indeed put enumerations inside the embed. So are you looking to suspend the embed to provide a response and then continue the enumeration where it left off?

    – Steven B. Segletes
    yesterday






  • 1





    What if you just draw a line on the left margin (using a suitably prepared background image perhaps), and use your defined response environment to draw a box with a white border on the left to cover up the pre-drawn line?

    – Willie Wong
    12 hours ago













2












2








2


1






I have a long LaTeX document, with nested enumerations and sections. It is important that I keep the numbering, structures as they are, but I want to insert replies that are visually different from the original text. I also would like to achieve this without excessive fiddling in the original code, but instead simply introduce a new reply command or environment.



To be easily understood by people it would be great if the reply layout would imitate email reply layout, i.e., add a vertical line (or a ">") on the left margin to all original content, but keep it blank whenever the reply is used.



I was able to achieve the opposite with mdframed, but I cannot simply switch this around as this would break the orignal text's lists and sectioning.



documentclassarticle
newcommandresponse[1]
beginmdframed[ linewidth=2pt,
topline=false,
rightline=false,
bottomline=false
,linecolor=black, innerleftmargin =0cm, leftmargin=-2pt, innerrightmargin=0cm]
mdseries
#1
endmdframed


usepackagemdframed
begindocument
Some text, with pictures, lists, sections
beginenumerate
item Some text, with pictures, lists, sections
responseanswer1
item Some text, with pictures, lists, sections
responseanswer2
endenumerate
Some text, with pictures, lists, sections
responsethis is my answer
Some text, with pictures, lists, sections
sectionsection
subsectionsubsection1
Some text, with pictures, lists, sections
subsectionsubsection2
Some text, with pictures, lists, sections
subsectionsubsection3
Some text, with pictures, lists, sections
responseI also have an answer here
enddocument


enter image description here










share|improve this question
















I have a long LaTeX document, with nested enumerations and sections. It is important that I keep the numbering, structures as they are, but I want to insert replies that are visually different from the original text. I also would like to achieve this without excessive fiddling in the original code, but instead simply introduce a new reply command or environment.



To be easily understood by people it would be great if the reply layout would imitate email reply layout, i.e., add a vertical line (or a ">") on the left margin to all original content, but keep it blank whenever the reply is used.



I was able to achieve the opposite with mdframed, but I cannot simply switch this around as this would break the orignal text's lists and sectioning.



documentclassarticle
newcommandresponse[1]
beginmdframed[ linewidth=2pt,
topline=false,
rightline=false,
bottomline=false
,linecolor=black, innerleftmargin =0cm, leftmargin=-2pt, innerrightmargin=0cm]
mdseries
#1
endmdframed


usepackagemdframed
begindocument
Some text, with pictures, lists, sections
beginenumerate
item Some text, with pictures, lists, sections
responseanswer1
item Some text, with pictures, lists, sections
responseanswer2
endenumerate
Some text, with pictures, lists, sections
responsethis is my answer
Some text, with pictures, lists, sections
sectionsection
subsectionsubsection1
Some text, with pictures, lists, sections
subsectionsubsection2
Some text, with pictures, lists, sections
subsectionsubsection3
Some text, with pictures, lists, sections
responseI also have an answer here
enddocument


enter image description here







marginpar layout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 11 mins ago







sheß

















asked yesterday









sheßsheß

2,21311435




2,21311435







  • 1





    Maybe related: tex.stackexchange.com/questions/68251/…

    – Steven B. Segletes
    yesterday






  • 2





    Not a solution, but if you are looking into this I would try to use tcolorbox instead of mdframed. tcolorbox is actively maintained and has an awesome manual while mdframed development seems to have stalled a while ago.

    – moewe
    yesterday











  • @Steven B. Segletes, Certainly related, but different, because it does not allow me to insert replies wherever I want. I can't write embed text beginenumerate item item1 response.

    – sheß
    yesterday






  • 2





    @sheß Could you clarify? One can indeed put enumerations inside the embed. So are you looking to suspend the embed to provide a response and then continue the enumeration where it left off?

    – Steven B. Segletes
    yesterday






  • 1





    What if you just draw a line on the left margin (using a suitably prepared background image perhaps), and use your defined response environment to draw a box with a white border on the left to cover up the pre-drawn line?

    – Willie Wong
    12 hours ago












  • 1





    Maybe related: tex.stackexchange.com/questions/68251/…

    – Steven B. Segletes
    yesterday






  • 2





    Not a solution, but if you are looking into this I would try to use tcolorbox instead of mdframed. tcolorbox is actively maintained and has an awesome manual while mdframed development seems to have stalled a while ago.

    – moewe
    yesterday











  • @Steven B. Segletes, Certainly related, but different, because it does not allow me to insert replies wherever I want. I can't write embed text beginenumerate item item1 response.

    – sheß
    yesterday






  • 2





    @sheß Could you clarify? One can indeed put enumerations inside the embed. So are you looking to suspend the embed to provide a response and then continue the enumeration where it left off?

    – Steven B. Segletes
    yesterday






  • 1





    What if you just draw a line on the left margin (using a suitably prepared background image perhaps), and use your defined response environment to draw a box with a white border on the left to cover up the pre-drawn line?

    – Willie Wong
    12 hours ago







1




1





Maybe related: tex.stackexchange.com/questions/68251/…

– Steven B. Segletes
yesterday





Maybe related: tex.stackexchange.com/questions/68251/…

– Steven B. Segletes
yesterday




2




2





Not a solution, but if you are looking into this I would try to use tcolorbox instead of mdframed. tcolorbox is actively maintained and has an awesome manual while mdframed development seems to have stalled a while ago.

– moewe
yesterday





Not a solution, but if you are looking into this I would try to use tcolorbox instead of mdframed. tcolorbox is actively maintained and has an awesome manual while mdframed development seems to have stalled a while ago.

– moewe
yesterday













@Steven B. Segletes, Certainly related, but different, because it does not allow me to insert replies wherever I want. I can't write embed text beginenumerate item item1 response.

– sheß
yesterday





@Steven B. Segletes, Certainly related, but different, because it does not allow me to insert replies wherever I want. I can't write embed text beginenumerate item item1 response.

– sheß
yesterday




2




2





@sheß Could you clarify? One can indeed put enumerations inside the embed. So are you looking to suspend the embed to provide a response and then continue the enumeration where it left off?

– Steven B. Segletes
yesterday





@sheß Could you clarify? One can indeed put enumerations inside the embed. So are you looking to suspend the embed to provide a response and then continue the enumeration where it left off?

– Steven B. Segletes
yesterday




1




1





What if you just draw a line on the left margin (using a suitably prepared background image perhaps), and use your defined response environment to draw a box with a white border on the left to cover up the pre-drawn line?

– Willie Wong
12 hours ago





What if you just draw a line on the left margin (using a suitably prepared background image perhaps), and use your defined response environment to draw a box with a white border on the left to cover up the pre-drawn line?

– Willie Wong
12 hours ago










0






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',
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%2f480526%2femail-style-reply-layout-vertical-line-in-left-margin-except-for-reply-environ%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















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%2f480526%2femail-style-reply-layout-vertical-line-in-left-margin-except-for-reply-environ%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 should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"