我已经使用自己的自定义LaTeX Class file
以及如何将新的oddside
和边距更改为。我无法使用选项,因为更多的开发是我自己使用的。我试过了evenside
page
End of the document
\newgeometry
LaTeX class file
单双号差价,如果则否则奇数页/偶数页但无法满足我的要求。
我的要求是如果oddpage
需要给予\leftskip50pt or \leftmargin50pt
和如果evenpage
需要给予\leftskip10pt or \leftmargin10pt
。我使用的XeLaTeX
包是tikz
,等pgz
。tcolorbox
我的 MWE 是:
\documentclass{article}
\usepackage[textwidth=450pt,textheight=600pt,left=50mm,right=50mm]{geometry}
\usepackage{lipsum}
\usepackage[many]{tcolorbox}
\usepackage{caption}
\usepackage[a3]{crop}
\voffset=60pt
\hoffset=60pt
\makeatletter
\renewenvironment{quote}
{\list{}{\leftmargin50pt\rightmargin60pt}%
\item\relax}
{\endlist}
\makeatother
\newcommand{\mygraphics}[3][]{%
\tcbincludegraphics[nobeforeafter,
blanker,hbox,
minipage boxed title*=-6mm,
title={\captionsetup{skip=0pt}\captionof{figure} {#3}},
attach boxed title to bottom center,
boxed title style={enhanced,size=title,sharp corners,
boxrule=0pt,frame hidden,colback=green!50!black! 25},
#1]{#2}%
}
\newsavebox\mysavebox
\newenvironment{textbyfigure}[1]{%
\sbox{\mysavebox}{#1}%
\begin{tcolorbox}[blanker,
beforeafter skip=5pt,
sidebyside,sidebyside gap=5mm,
sidebyside align=top,
righthand width=\wd\mysavebox,]%
}{%
\tcblower%
\raisebox{\the\dimexpr-\ht\mysavebox-\dp\mysavebox+\baselineskip/2\relax} {\usebox{\mysavebox}}%
\end{tcolorbox}
}
\crop
\begin{document}
\lipsum[1-2]
\begin{textbyfigure}{
\mygraphics{drawer.png}
{The Roman numerals on this stone show the distance to the next village.}}
Throughout the ages and in different countries, number systems were developed
and used to help people count and communicate with numbers. From the ancient
Egyptians to the modern day, different systems have used pictures and symbols to
represent whole numbers. Some of the well-known number systems are the Egyptian,
Babylonian, Roman, modern Chinese and the Hindu- Arabic or decimal system.
\end{textbyfigure}
\lipsum[2]
\newpage
\begin{quote}
\lipsum[3-15]
\end{quote}
\end{document}