Disabling marginpar (marginparwidth), while in a multicol environment

I am trying to disable marginpar when starting a new multi-tiered environment with this:

\ renewenvironment {multicols} [1] {%
  \ let \ oldmarginparwidth \ marginparwidth 
  \ setlength {\ marginparwidth} {0}%
  \ begin {multicols} {# 1}
} {%
  \ end {multicols}%
  \ setlength {\ marginparwidth} {\ oldmarginparwidth}%
}

However, this will not work. What am I missing?

+3
source share
3 answers

The command you received will not work on the middle page, you need to use the changepage package for this.

\usepackage{changepage} 

As I understand it, you are trying to use the full width of the page. I refused this from the tufte-latex class:

"", ​​ :

\newlength{\overhang}
\setlength{\overhang}{\marginparwidth}
\addtolength{\overhang}{\marginparsep}

\adjustwidth , marginpar:

\begin{adjustwidth}{}{-\overhang}
% This will be displayed full-width
\end{adjustwidth}{}{-\overhang}

, , , . \multicols .

, !

+2

, , . :

... float marginpars [ . LATEX.].

+1

, chngpage , / / .

, \head:

+1
source

Source: https://habr.com/ru/post/1707629/


All Articles