Is there any way to hide a portion of a line drawn by columnseprule in multicol?












4














I have a three-column multicol layout throughout my document, with some special text (like a title) at the very start of the document, like this:



original



The use of three columns is due to space constraints on the document that I'm writing. The above document was generated with this code:



documentclass[a4paper,landscape]{article}

usepackage{multicol}
usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
usepackage{lipsum}
setlength{columnseprule}{0.4pt}

begin{document}
begin{multicols*}{3}
raggedright
{huge textbf{Long Long Very Long Title Abcdefg}}
section*{Limits}
lipsumlipsum
end{multicols*}
end{document}


The title wraps into two lines and that's ugly.



I know I'm asking for something strange, but is there a way to force the title into one line, and hence "eat" into the adjacent column (thereby removing the column separator between the first and second columns, and pushing text on the second column downward)?



(Note: The third column should not be pushed downward.)



Pushing text downward in the second column is a secondary concern, because I can do that manually by adding some vspace in the text at the correct location, but I have no workaround to remove the bit of column separator that overlaps the title.



I have tried using mbox, i.e.:



mbox{huge textbf{Long Long Very Long Title Abcdefg}}


but this will (as expected) not get rid of the column separator:



mbox



It isn't very obvious with the word "Title", but the column separator is actually there. Ideally, the separator should start from about 1cm below the bottom of the title, at the same height as the "Limits" subsection name.



I've also tried setting the background color of the mbox, but the column separator is drawn over the mbox, so I can't hide the column separator with this method.



Any suggestions on how I might achieve this?










share|improve this question
























  • An idea is to remove the separator and draw over the page with tikz and overlay help
    – koleygr
    Oct 26 '17 at 14:13










  • Have you tried the flowfram package?
    – Thérèse
    Oct 28 '17 at 18:33










  • @Thérèse After a quick glance at the flowfram docs, it seems like killing an ant with a sledgehammer, and I won't be able to use multicols.
    – Bernard
    Oct 29 '17 at 3:44
















4














I have a three-column multicol layout throughout my document, with some special text (like a title) at the very start of the document, like this:



original



The use of three columns is due to space constraints on the document that I'm writing. The above document was generated with this code:



documentclass[a4paper,landscape]{article}

usepackage{multicol}
usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
usepackage{lipsum}
setlength{columnseprule}{0.4pt}

begin{document}
begin{multicols*}{3}
raggedright
{huge textbf{Long Long Very Long Title Abcdefg}}
section*{Limits}
lipsumlipsum
end{multicols*}
end{document}


The title wraps into two lines and that's ugly.



I know I'm asking for something strange, but is there a way to force the title into one line, and hence "eat" into the adjacent column (thereby removing the column separator between the first and second columns, and pushing text on the second column downward)?



(Note: The third column should not be pushed downward.)



Pushing text downward in the second column is a secondary concern, because I can do that manually by adding some vspace in the text at the correct location, but I have no workaround to remove the bit of column separator that overlaps the title.



I have tried using mbox, i.e.:



mbox{huge textbf{Long Long Very Long Title Abcdefg}}


but this will (as expected) not get rid of the column separator:



mbox



It isn't very obvious with the word "Title", but the column separator is actually there. Ideally, the separator should start from about 1cm below the bottom of the title, at the same height as the "Limits" subsection name.



I've also tried setting the background color of the mbox, but the column separator is drawn over the mbox, so I can't hide the column separator with this method.



Any suggestions on how I might achieve this?










share|improve this question
























  • An idea is to remove the separator and draw over the page with tikz and overlay help
    – koleygr
    Oct 26 '17 at 14:13










  • Have you tried the flowfram package?
    – Thérèse
    Oct 28 '17 at 18:33










  • @Thérèse After a quick glance at the flowfram docs, it seems like killing an ant with a sledgehammer, and I won't be able to use multicols.
    – Bernard
    Oct 29 '17 at 3:44














4












4








4


1





I have a three-column multicol layout throughout my document, with some special text (like a title) at the very start of the document, like this:



original



The use of three columns is due to space constraints on the document that I'm writing. The above document was generated with this code:



documentclass[a4paper,landscape]{article}

usepackage{multicol}
usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
usepackage{lipsum}
setlength{columnseprule}{0.4pt}

begin{document}
begin{multicols*}{3}
raggedright
{huge textbf{Long Long Very Long Title Abcdefg}}
section*{Limits}
lipsumlipsum
end{multicols*}
end{document}


The title wraps into two lines and that's ugly.



I know I'm asking for something strange, but is there a way to force the title into one line, and hence "eat" into the adjacent column (thereby removing the column separator between the first and second columns, and pushing text on the second column downward)?



(Note: The third column should not be pushed downward.)



Pushing text downward in the second column is a secondary concern, because I can do that manually by adding some vspace in the text at the correct location, but I have no workaround to remove the bit of column separator that overlaps the title.



I have tried using mbox, i.e.:



mbox{huge textbf{Long Long Very Long Title Abcdefg}}


but this will (as expected) not get rid of the column separator:



mbox



It isn't very obvious with the word "Title", but the column separator is actually there. Ideally, the separator should start from about 1cm below the bottom of the title, at the same height as the "Limits" subsection name.



I've also tried setting the background color of the mbox, but the column separator is drawn over the mbox, so I can't hide the column separator with this method.



Any suggestions on how I might achieve this?










share|improve this question















I have a three-column multicol layout throughout my document, with some special text (like a title) at the very start of the document, like this:



original



The use of three columns is due to space constraints on the document that I'm writing. The above document was generated with this code:



documentclass[a4paper,landscape]{article}

usepackage{multicol}
usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
usepackage{lipsum}
setlength{columnseprule}{0.4pt}

begin{document}
begin{multicols*}{3}
raggedright
{huge textbf{Long Long Very Long Title Abcdefg}}
section*{Limits}
lipsumlipsum
end{multicols*}
end{document}


The title wraps into two lines and that's ugly.



I know I'm asking for something strange, but is there a way to force the title into one line, and hence "eat" into the adjacent column (thereby removing the column separator between the first and second columns, and pushing text on the second column downward)?



(Note: The third column should not be pushed downward.)



Pushing text downward in the second column is a secondary concern, because I can do that manually by adding some vspace in the text at the correct location, but I have no workaround to remove the bit of column separator that overlaps the title.



I have tried using mbox, i.e.:



mbox{huge textbf{Long Long Very Long Title Abcdefg}}


but this will (as expected) not get rid of the column separator:



mbox



It isn't very obvious with the word "Title", but the column separator is actually there. Ideally, the separator should start from about 1cm below the bottom of the title, at the same height as the "Limits" subsection name.



I've also tried setting the background color of the mbox, but the column separator is drawn over the mbox, so I can't hide the column separator with this method.



Any suggestions on how I might achieve this?







boxes multicol






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 26 '17 at 14:10









evaristegd

1608




1608










asked Oct 26 '17 at 13:50









BernardBernard

1214




1214












  • An idea is to remove the separator and draw over the page with tikz and overlay help
    – koleygr
    Oct 26 '17 at 14:13










  • Have you tried the flowfram package?
    – Thérèse
    Oct 28 '17 at 18:33










  • @Thérèse After a quick glance at the flowfram docs, it seems like killing an ant with a sledgehammer, and I won't be able to use multicols.
    – Bernard
    Oct 29 '17 at 3:44


















  • An idea is to remove the separator and draw over the page with tikz and overlay help
    – koleygr
    Oct 26 '17 at 14:13










  • Have you tried the flowfram package?
    – Thérèse
    Oct 28 '17 at 18:33










  • @Thérèse After a quick glance at the flowfram docs, it seems like killing an ant with a sledgehammer, and I won't be able to use multicols.
    – Bernard
    Oct 29 '17 at 3:44
















An idea is to remove the separator and draw over the page with tikz and overlay help
– koleygr
Oct 26 '17 at 14:13




An idea is to remove the separator and draw over the page with tikz and overlay help
– koleygr
Oct 26 '17 at 14:13












Have you tried the flowfram package?
– Thérèse
Oct 28 '17 at 18:33




Have you tried the flowfram package?
– Thérèse
Oct 28 '17 at 18:33












@Thérèse After a quick glance at the flowfram docs, it seems like killing an ant with a sledgehammer, and I won't be able to use multicols.
– Bernard
Oct 29 '17 at 3:44




@Thérèse After a quick glance at the flowfram docs, it seems like killing an ant with a sledgehammer, and I won't be able to use multicols.
– Bernard
Oct 29 '17 at 3:44










1 Answer
1






active

oldest

votes


















3














Changing the size of multicol's columns individually isn't possible without a major rewrite of its internal column balancing routines. Manually shrinking a column separator is possible with the very latest version of multicolrule (1.2), which I released earlier today and should be hitting your CTAN mirror within the next day or so. (If you're impatient, it's is available immediately at github.)



These two commands are the core of the solution:



DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}


It works by declaring a pattern for the column separator, and then applying that pattern to the first separator only.



MWE:



documentclass[a4paper,landscape]{article}
usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
usepackage{lipsum}
usepackage{multicolrule}

newsavebox{mytitle}
newlength{reservespace}
savebox{mytitle}{textbf{huge Long Long Very Long Title Abcdefg}}
setlength{reservespace}{htmytitle}
addtolength{reservespace}{dpmytitle}
addtolength{reservespace}{baselineskip}
addtolength{reservespace}{-topskip}
DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}
raggedright

begin{document}
begin{multicols*}{3}
usebox{mytitle}
section*{Limits}
lipsum[1-3]

columnbreakvspace*{reservespace}

lipsum[4-7]
lipsum
end{multicols*}
end{document}


The result:



enter image description here






share|improve this answer





















    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%2f398162%2fis-there-any-way-to-hide-a-portion-of-a-line-drawn-by-columnseprule-in-multicol%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









    3














    Changing the size of multicol's columns individually isn't possible without a major rewrite of its internal column balancing routines. Manually shrinking a column separator is possible with the very latest version of multicolrule (1.2), which I released earlier today and should be hitting your CTAN mirror within the next day or so. (If you're impatient, it's is available immediately at github.)



    These two commands are the core of the solution:



    DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
    SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}


    It works by declaring a pattern for the column separator, and then applying that pattern to the first separator only.



    MWE:



    documentclass[a4paper,landscape]{article}
    usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
    usepackage{lipsum}
    usepackage{multicolrule}

    newsavebox{mytitle}
    newlength{reservespace}
    savebox{mytitle}{textbf{huge Long Long Very Long Title Abcdefg}}
    setlength{reservespace}{htmytitle}
    addtolength{reservespace}{dpmytitle}
    addtolength{reservespace}{baselineskip}
    addtolength{reservespace}{-topskip}
    DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
    SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}
    raggedright

    begin{document}
    begin{multicols*}{3}
    usebox{mytitle}
    section*{Limits}
    lipsum[1-3]

    columnbreakvspace*{reservespace}

    lipsum[4-7]
    lipsum
    end{multicols*}
    end{document}


    The result:



    enter image description here






    share|improve this answer


























      3














      Changing the size of multicol's columns individually isn't possible without a major rewrite of its internal column balancing routines. Manually shrinking a column separator is possible with the very latest version of multicolrule (1.2), which I released earlier today and should be hitting your CTAN mirror within the next day or so. (If you're impatient, it's is available immediately at github.)



      These two commands are the core of the solution:



      DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
      SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}


      It works by declaring a pattern for the column separator, and then applying that pattern to the first separator only.



      MWE:



      documentclass[a4paper,landscape]{article}
      usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
      usepackage{lipsum}
      usepackage{multicolrule}

      newsavebox{mytitle}
      newlength{reservespace}
      savebox{mytitle}{textbf{huge Long Long Very Long Title Abcdefg}}
      setlength{reservespace}{htmytitle}
      addtolength{reservespace}{dpmytitle}
      addtolength{reservespace}{baselineskip}
      addtolength{reservespace}{-topskip}
      DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
      SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}
      raggedright

      begin{document}
      begin{multicols*}{3}
      usebox{mytitle}
      section*{Limits}
      lipsum[1-3]

      columnbreakvspace*{reservespace}

      lipsum[4-7]
      lipsum
      end{multicols*}
      end{document}


      The result:



      enter image description here






      share|improve this answer
























        3












        3








        3






        Changing the size of multicol's columns individually isn't possible without a major rewrite of its internal column balancing routines. Manually shrinking a column separator is possible with the very latest version of multicolrule (1.2), which I released earlier today and should be hitting your CTAN mirror within the next day or so. (If you're impatient, it's is available immediately at github.)



        These two commands are the core of the solution:



        DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
        SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}


        It works by declaring a pattern for the column separator, and then applying that pattern to the first separator only.



        MWE:



        documentclass[a4paper,landscape]{article}
        usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
        usepackage{lipsum}
        usepackage{multicolrule}

        newsavebox{mytitle}
        newlength{reservespace}
        savebox{mytitle}{textbf{huge Long Long Very Long Title Abcdefg}}
        setlength{reservespace}{htmytitle}
        addtolength{reservespace}{dpmytitle}
        addtolength{reservespace}{baselineskip}
        addtolength{reservespace}{-topskip}
        DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
        SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}
        raggedright

        begin{document}
        begin{multicols*}{3}
        usebox{mytitle}
        section*{Limits}
        lipsum[1-3]

        columnbreakvspace*{reservespace}

        lipsum[4-7]
        lipsum
        end{multicols*}
        end{document}


        The result:



        enter image description here






        share|improve this answer












        Changing the size of multicol's columns individually isn't possible without a major rewrite of its internal column balancing routines. Manually shrinking a column separator is possible with the very latest version of multicolrule (1.2), which I released earlier today and should be hitting your CTAN mirror within the next day or so. (If you're impatient, it's is available immediately at github.)



        These two commands are the core of the solution:



        DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
        SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}


        It works by declaring a pattern for the column separator, and then applying that pattern to the first separator only.



        MWE:



        documentclass[a4paper,landscape]{article}
        usepackage[margin=0.7cm,bottom=1.3cm,footskip=0.7cm]{geometry}
        usepackage{lipsum}
        usepackage{multicolrule}

        newsavebox{mytitle}
        newlength{reservespace}
        savebox{mytitle}{textbf{huge Long Long Very Long Title Abcdefg}}
        setlength{reservespace}{htmytitle}
        addtolength{reservespace}{dpmytitle}
        addtolength{reservespace}{baselineskip}
        addtolength{reservespace}{-topskip}
        DeclareMCRulePattern{shrink-me}{extend-top=-reservespace-baselineskip}
        SetMCRule{width=thin,line-style=solid,patterns=shrink-me,pattern-for=1}
        raggedright

        begin{document}
        begin{multicols*}{3}
        usebox{mytitle}
        section*{Limits}
        lipsum[1-3]

        columnbreakvspace*{reservespace}

        lipsum[4-7]
        lipsum
        end{multicols*}
        end{document}


        The result:



        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 1 at 23:19









        Karl HagenKarl Hagen

        759417




        759417






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f398162%2fis-there-any-way-to-hide-a-portion-of-a-line-drawn-by-columnseprule-in-multicol%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

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

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents