รูปสมุดกระจุก * หักด้วย floatrow

Oct 15 2020

ฉันต้องการรวมตัวเลขขนาดเต็มในเอกสารที่เตรียมมาพร้อมกับtufte-bookชั้นเรียน

ฉันพบว่าการใช้floatrowแพคเกจพร้อมกับการใช้setkeysตัวเลือกgraphicxแบ่งtufte-book figure*ลอย


MWE

\documentclass{tufte-book}

\usepackage{floatrow}
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}

\begin{document}

Here is a figure that I would like to be fullwidth.

\begin{figure*}
  \includegraphics{example-image-a}
\end{figure*}

\end{document}

เอาท์พุทจริง


เอาต์พุตที่ต้องการ

คำตอบ

3 SimonDispa Oct 14 2020 at 23:48

มันใช้ได้กับฉันทั้งกับ pdf latex และ lualatex

\documentclass{tufte-book}

\usepackage{floatrow}
\usepackage{graphicx}

\setkeys{Gin}{width=\textwidth+\marginparsep+\marginparwidth,totalheight=\textheight,keepaspectratio}

\usepackage{kantlipsum}

\begin{document}

Here is a figure that I would like to be fullwidth.

\begin{figure*}
\includegraphics{example-image-a}
\end{figure*}

\kant[1]
\end{document}

ไม่ได้แก้ปัญหาความขัดแย้ง แต่เป็นวิธีแก้ปัญหาชั่วคราว ชั้น tufte ไม่ได้รับการดูแลตั้งแต่ปี 2015