From 0014a95b8d766110687d428aa4e6f462cc670c41 Mon Sep 17 00:00:00 2001 From: ming Date: Tue, 29 Oct 2024 16:17:34 +0800 Subject: [PATCH] render compile --- MS/SM.aux | 3 +++ MS/SM.tex | 35 ++++++++++++++++++++++++++--------- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/MS/SM.aux b/MS/SM.aux index 7278de9..b1dace0 100644 --- a/MS/SM.aux +++ b/MS/SM.aux @@ -15,4 +15,7 @@ \newlabel{supplementary-material}{{b}{1}{Supplementary Material}{section*.1}{}} \@writefile{toc}{\contentsline {section}{Supplementary Material}{1}{section*.1}\protected@file@percent } \bibdata{../BB/Ref.bib,../BB/localRef.bib} +\@writefile{lost}{\contentsline {sfg}{\numberline {1}{\ignorespaces ``This is demo figure in supplementary material''}}{2}{sfg.1}\protected@file@percent } +\providecommand*\caption@xref[2]{\@setref\relax\@undefined{#1}} +\newlabel{sfg-demofigure}{{1}{2}{``This is demo figure in supplementary material''}{sfg.1}{}} \gdef \@abspage@last{2} diff --git a/MS/SM.tex b/MS/SM.tex index 2e68278..8c54bd5 100644 --- a/MS/SM.tex +++ b/MS/SM.tex @@ -79,15 +79,17 @@ \makesavenoteenv{longtable} \usepackage{graphicx} \makeatletter -\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} -\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} -\makeatother -% Scale images if necessary, so that they will not overflow the page -% margins by default, and it is still possible to overwrite the defaults -% using explicit options in \includegraphics[width, height, ...]{} -\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} +\newsavebox\pandoc@box +\newcommand*\pandocbounded[1]{% scales image to fit in text height/width + \sbox\pandoc@box{#1}% + \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}% + \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}% + \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both + \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}% + \else\usebox{\pandoc@box}% + \fi% +} % Set default figure placement to htbp -\makeatletter \def\fps@figure{htbp} \makeatother @@ -284,7 +286,7 @@ \let\LanguageShortHands\languageshorthands \def\languageshorthands#1{} \ifLuaTeX - \usepackage{selnolig} % disable illegal ligatures + \usepackage[english]{selnolig} % disable illegal ligatures \fi \usepackage[]{natbib} \bibliographystyle{elsarticle-num} @@ -354,6 +356,21 @@ to the main text. \pagebreak +\begin{sfg} + +\centering{ + +\begin{verbatim} +#> NULL +\end{verbatim} + +} + +\caption{\label{sfg-demofigure}``This is demo figure in supplementary +material''} + +\end{sfg}% + \bibliography{../BB/Ref.bib,../BB/localRef.bib}