render compile

This commit is contained in:
2024-10-29 16:17:34 +08:00
parent 1726cdafb0
commit 0014a95b8d
2 changed files with 29 additions and 9 deletions
+3
View File
@@ -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}
+26 -9
View File
@@ -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}