前言

前言

我有一组 4 张桌子(tabularx以 2x2 的网格排列。我希望它们在横向显示时占据一整页,所以我自然而然地转向了fltpage包,让它们占据整页。效果很好,只是似乎没有将整页浮动置于横向的选项。除了或代替之外,我还能使用其他包吗?fltpage来实现这一点吗?我尝试过hvfloat,但hvFloatEnv环境似乎没有采用您可以为正常命令指定的任何其他定位参数。

在这些 s 中tabularx,我不仅使用自定义行类型,还使用\multirow​​和\multicolumn,以及\rowcolor从包中调用内联音乐符号的宏lyluatex。由于自定义行类型,我宁愿不切换到另一个表包/类型。

此外,我不知道这个全页浮动横向页面究竟会落在哪里,我希望它保持“浮动”。此网站上另一个问题的答案建议使用\afterpage,但我不确定在这种情况下将该指令放在哪里(在里面或之前似乎\FPfigure不太可能起作用,因为它需要在开始时就已经处于横向状态...)。

这是基本设置(显然没有景观旋转):

\begin{FPfigure}
    \begin{subfigure}[b]
         \begin{tabularx}
             % Table 1 content
         \end{tabularx}
         \caption{Caption for Table 1}
     \end{subfigure}
     \begin{subfigure}[b]
         \begin{tabularx}
              % Table 2 content
         \end{tabularx}
         \caption{Caption for Table 2}
     \end{subfigure}
     \begin{subfigure}[t]
         \begin{tabularx}
             % Table 3 content
         \end{tabularx}
         \begin{tabularx}
             % Table 4 content
         \end{tabularx}
         \caption{Caption for Tables 3 & 4}
     \end{subfigure}
\end{FPfigure}

前言

根据要求,以下是我的序言:

\documentclass[letterpaper,12pt,
               titlepage,%twoside,
               openany
               ]{report}
\input{./TeX_files/defs/includes}
\input{./TeX_files/defs/defs}% Macros and variables used throughout the document
\input{./TeX_files/defs/colordefs}% Basically just a bunch of `\colorlet`s
\input{./Tex_files/tcolorboxtweaks}% Some macros I wrote that improve upon `tcolorbox`'s bounding box calculations (to include the box title even when it extends beyond the content box width) and to faciliate easy use of tcolorboxes as floats, using `fltfloat`
\input{./TeX_files/defs/figdefs}% Macros used for `\tabularx`s and floats
\input{./TeX_files/defs/musdefs}% Macros used for musical examples and for typesetting pitch class set names and numbers
\input{./TeX_files/defs/bfootdefs}% Used to fix the footnote issues I was having with `tcolorbox`, as well as some custom citation macros for citing the Bible inline or in footnotes and `hyperref` linking to my bibliography
\input{./TeX_files/defs/colpatext_defs}% Macros used in the visual score for the dramatic monologue. Speech bubble stuff and special box breaking and extension using `tcolorbox`, linguistic gloss tweaking for `covington`... etcetera.

% Variables defined in defs.tex that just control whether or not I want to skip the rendering of certain parts of the document. The reflection hasn't been written yet so that's why it's false.
\printabstracttrue
\printbodytrue
\printcolpatexttrue
\printreflectionfalse
\printappendicestrue
\printglossariestrue
\printindexestrue
\printbibtrue

内容includes.tex

%%% MACRO UTILS %%%
\usepackage{comment}
\usepackage{etoolbox}
%\usepackage{xspace}
%\usepackage{catoptions}%,cmdstring}

\usepackage{intcalc}

%%% MISC %%%
\usepackage{lipsum}

%%% SPACING %%%
\usepackage{setspace}

%%% FONTS, HEADINGS %%%
%\usepackage{sectsty}
\usepackage{relsize}
\usepackage{verse}

%%% FLOAT STUFF %%%
\usepackage{float}
\usepackage{floatflt}
\usepackage{wrapfig}

%%% BOXES AND SUCH %%%
\usepackage{colortbl}

\usepackage{xparse}
\usepackage{tcolorbox}
\tcbuselibrary{skins,raster,breakable,fitting,hooks}
\tcbuselibrary{xparse}
\usepackage{tikz}
\usetikzlibrary{
    decorations.pathreplacing,
    positioning,
    arrows.meta,
    shapes.geometric,
    topaths,
    scopes,
    svg.path}
\usepackage[prefix=M]{xcolor-material}
\usepackage[cache=true,cachedir=./out/_minted-colpadif,section]{minted}
\setminted{%
    autogobble=true,breaklines=true,breakafter={,;},breakautoindent=true,%
    breakbefore={\\"},%
    bgcolor=white,fontfamily=tt,fontseries=auto,fontsize=auto,fontshape=auto,%
    linenos=true,numbers=both,numberfirstline=true,stepnumber=1,%
    samepage=false,%
    showspaces=true,showtabs=true,%
    style=default,texcl=false,texcomments=false,%
}


%%% TABULAR %%%
\usepackage{array,tabularx}
\usepackage{booktabs}
\usepackage{multirow}

%%% MUSIC %%%
\usepackage{lyluatex}
%\usepackage{guitar}
%\usepackage{harmony,octave,musicography}
%\usepackage{ddphonism}
%\usepackage{nicematrix}
%\usepackage{drawmatrix}
\usepackage{xpiano2}% (I rewrote parts of xpiano to add additional functionality)
\keyboardsetup{%
    %color=pianodefault,% color of the note markers
    %single=false,% draw just one octave
    %ext=false,% add a trailing C
    %size=4% size of one white key
    %height=4,% ratio between height and width of white keys
    %ratio=0.75,% ratio between height of white and black keys
    %font=\tiny,% font spec for number
    %numbercolor=black,% color of the numbers
    %10=t,%
    %11=e,%
    %octnum=1%
    numfontfcmd={\bfseries\setmainfont{DejaVu Sans Condensed}},%
    letfontfcmd=numbers,%
    letwhtscale=0.85,%
    letblkscale=0.4%
}%

\usepackage{textstack}

%%% ENCODING AND LANGUAGE %%%
%\usepackage[utf8]{inputenc}
\usepackage[utf8x]{luainputenc}
\usepackage[T1]{fontenc}

\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Bitter}
\setsansfont[Ligatures=TeX]{Roboto}
\setmonofont[Ligatures=TeX,Numbers=Proportional]{DejaVu Sans Mono}

\usepackage[italian,french,american]{babel}
\usepackage{translator}
\usepackage[pangram]{blindtext}

\usepackage{csquotes}
\usepackage[noglossbreaks,own counter]{covington}

\usepackage[style=mla-new,autocite=footnote,firstlonghand=false,annotation=false,mladraft=true,hyperref=true]{biblatex}


%%% FLOAT/FIGURE %%%%
\usepackage[leftFloats,CaptionAfterwards,varioref,draft]{fltpage}
\usepackage{subcaption}

%%% CROSSREFS AND TOC %%%
\usepackage{makeidx}
\usepackage{varioref}% Load before hyperref
\usepackage[pdfpagelabels]{hyperref} % Recommended load last, but BEFORE glossaries
%\usepackage[hyperref]{hvfloat}
\usepackage[nomain,translate=true]{glossaries}
\usepackage{cleveref}% Load after hyperref

相关内容