マージンほぼなしの設定(プリアンブルにコピペしてください):
\makeatletter
\setlength{\fullwidth}{\paperwidth}
\addtolength{\fullwidth}{-2zw}
\if@twocolumn \@tempdima=2zw \else \@tempdima=1zw \fi
\divide\fullwidth\@tempdima \multiply\fullwidth\@tempdima
\setlength{\textwidth}{\fullwidth}
\setlength{\oddsidemargin}{\paperwidth}
\addtolength{\oddsidemargin}{-\fullwidth}
\setlength{\oddsidemargin}{.5\oddsidemargin}
\addtolength{\oddsidemargin}{-\inv@mag in}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textheight}{\paperheight}
\addtolength{\textheight}{-\topskip}
\addtolength{\textheight}{-\headsep}
\addtolength{\textheight}{-\footskip}
\addtolength{\textheight}{-\topskip}
\divide\textheight\baselineskip
\multiply\textheight\baselineskip
\setlength{\topmargin}{\paperheight}
\addtolength{\topmargin}{-\textheight}
\addtolength{\topmargin}{-\headheight}
\addtolength{\topmargin}{-\headsep}
\addtolength{\topmargin}{-\footskip}
\setlength{\topmargin}{0.5\topmargin}
\addtolength{\topmargin}{-\inv@mag in}
\makeatother
追記:BXJSクラスではすでに実装されていた:
ちなみに:
— ZR-TeXnobabbler(∉∅) (@zr_tex8r) 2018年3月12日
某BXJSクラスで「余白無し」をやりたい場合は
\setpagelayout{margin=0mm}
を書きます。
※\setpagelayout は全角幅に関する後調整を行う。#TeX #LaTeX https://t.co/8Z7h1TaAHG