diff options
| author | John MacFarlane <[email protected]> | 2024-05-31 15:03:06 -0600 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-05-31 15:03:06 -0600 |
| commit | 7e7735bb6b41c6f76ed3a03d06f7e1fe7dca299d (patch) | |
| tree | fbdfaf2778eaed64442b194e002f4d4077585ee7 /test/command | |
| parent | f98f3b141db10170d9b9a0b771b7b1ec1a190116 (diff) | |
Use `\linewidth` instead of `\columnwidth` or `\textwidth`...
for resizing figures, table cells, etc. in LaTeX. `\linewidth`,
unlike the others, is sensitive to indented environments like
lists.
Closes #9775.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/1710.md | 6 | ||||
| -rw-r--r-- | test/command/3450.md | 2 | ||||
| -rw-r--r-- | test/command/4016.md | 4 | ||||
| -rw-r--r-- | test/command/4690.md | 4 | ||||
| -rw-r--r-- | test/command/4805-beamer-columns-alignment.md | 8 | ||||
| -rw-r--r-- | test/command/5367.md | 2 | ||||
| -rw-r--r-- | test/command/6033.md | 4 | ||||
| -rw-r--r-- | test/command/7272.md | 2 |
8 files changed, 16 insertions, 16 deletions
diff --git a/test/command/1710.md b/test/command/1710.md index d14e35e14..624b1d70b 100644 --- a/test/command/1710.md +++ b/test/command/1710.md @@ -57,7 +57,7 @@ ok \begin{frame}{Slide one} \phantomsection\label{slide-one} \begin{columns}[T] -\begin{column}{0.4\textwidth} +\begin{column}{0.4\linewidth} \begin{itemize} \tightlist \item @@ -67,7 +67,7 @@ ok \end{itemize} \end{column} -\begin{column}{0.4\textwidth} +\begin{column}{0.4\linewidth} \begin{itemize} \tightlist \item @@ -77,7 +77,7 @@ ok \end{itemize} \end{column} -\begin{column}{0.1\textwidth} +\begin{column}{0.1\linewidth} ok \end{column} \end{columns} diff --git a/test/command/3450.md b/test/command/3450.md index 5ccfd05ff..d12b0d9c1 100644 --- a/test/command/3450.md +++ b/test/command/3450.md @@ -8,5 +8,5 @@ % pandoc -fmarkdown-implicit_figures -t latex {height=2em} ^D -\includegraphics[width=\textwidth,height=2em]{lalune.jpg} +\includegraphics[width=\linewidth,height=2em]{lalune.jpg} ``` diff --git a/test/command/4016.md b/test/command/4016.md index 54cbc78c3..2d17e8cfe 100644 --- a/test/command/4016.md +++ b/test/command/4016.md @@ -16,7 +16,7 @@ \begin{frame}{Level 2 blocks} \phantomsection\label{level-2-blocks} \begin{columns}[T] -\begin{column}{0.4\textwidth} +\begin{column}{0.4\linewidth} \begin{block}{Block one} \phantomsection\label{block-one} \begin{itemize} @@ -27,7 +27,7 @@ \end{block} \end{column} -\begin{column}{0.6\textwidth} +\begin{column}{0.6\linewidth} \begin{block}{Block two} \phantomsection\label{block-two} \begin{itemize} diff --git a/test/command/4690.md b/test/command/4690.md index 454f31171..e755f70e2 100644 --- a/test/command/4690.md +++ b/test/command/4690.md @@ -14,11 +14,11 @@ content2 \begin{frame}{title} \phantomsection\label{title} \begin{columns}[T] -\begin{column}{0.08\textwidth} +\begin{column}{0.08\linewidth} content \end{column} -\begin{column}{0.84\textwidth} +\begin{column}{0.84\linewidth} content2 \end{column} \end{columns} diff --git a/test/command/4805-beamer-columns-alignment.md b/test/command/4805-beamer-columns-alignment.md index d890730a8..73a322111 100644 --- a/test/command/4805-beamer-columns-alignment.md +++ b/test/command/4805-beamer-columns-alignment.md @@ -19,18 +19,18 @@ ^D \begin{frame} \begin{columns}[T] -\begin{column}[c]{0.48\textwidth} +\begin{column}[c]{0.48\linewidth} \end{column} -\begin{column}[b]{0.48\textwidth} +\begin{column}[b]{0.48\linewidth} \end{column} \end{columns} \begin{columns}[b,onlytextwidth] -\begin{column}[T]{0.48\textwidth} +\begin{column}[T]{0.48\linewidth} \end{column} -\begin{column}[t]{0.48\textwidth} +\begin{column}[t]{0.48\linewidth} \end{column} \end{columns} diff --git a/test/command/5367.md b/test/command/5367.md index 205ccf098..55c849a44 100644 --- a/test/command/5367.md +++ b/test/command/5367.md @@ -21,7 +21,7 @@ dolly[^5] hello\footnote{doc footnote} \begin{longtable}[]{@{} - >{\centering\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{0.1667}}@{}} + >{\centering\arraybackslash}p{(\linewidth - 0\tabcolsep) * \real{0.1667}}@{}} \caption[Sample table.]{Sample table.\footnote{caption footnote}}\tabularnewline \toprule\noalign{} \begin{minipage}[b]{\linewidth}\centering diff --git a/test/command/6033.md b/test/command/6033.md index cc1b212bf..3748a222a 100644 --- a/test/command/6033.md +++ b/test/command/6033.md @@ -38,7 +38,7 @@ \begin{frame}{One-A} \begin{columns}[T] -\begin{column}{0.48\textwidth} +\begin{column}{0.48\linewidth} \begin{itemize} \tightlist \item @@ -46,7 +46,7 @@ \end{itemize} \end{column} -\begin{column}{0.48\textwidth} +\begin{column}{0.48\linewidth} \begin{itemize} \tightlist \item diff --git a/test/command/7272.md b/test/command/7272.md index ea11b6f9d..9a97abf57 100644 --- a/test/command/7272.md +++ b/test/command/7272.md @@ -15,7 +15,7 @@ </table> ^D \begin{longtable}[]{@{} - >{\raggedright\arraybackslash}p{(\columnwidth - 0\tabcolsep) * \real{1.0000}}@{}} + >{\raggedright\arraybackslash}p{(\linewidth - 0\tabcolsep) * \real{1.0000}}@{}} \toprule\noalign{} \endhead \bottomrule\noalign{} |
