### Example Environment Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Use the \begin{example} environment to provide examples, often mathematical. This is a predefined theorem-style environment. ```latex \begin{example} Consider the function $f(x) = x^2$ on $[0,1]$. \end{example} ``` -------------------------------- ### Theorem Environment Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Use the \begin{theorem} environment for mathematical theorems. Requires appropriate package setup. ```latex \begin{theorem} If $f$ is continuous on $[a,b]$ and differentiable on $(a,b)$, then there exists $c \in (a,b)$ such that $f'(c) = \frac{f(b)-f(a)}{b-a}$. \end{theorem} ``` -------------------------------- ### Install ElegantLaTeX via Cmd Line Source: https://github.com/elegantlatex/elegantpaper/wiki/Installation Use this command to install the elegantpaper package via the command line. Ensure you are running as administrator. ```shell tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet tlmgr install elegantpaper ``` -------------------------------- ### Minimal ElegantLaTeX Paper Structure Source: https://github.com/elegantlatex/elegantpaper/wiki/MinimalExample Use this minimal example to create a new paper. It includes essential metadata and document structure. ```tex \documentclass[lang=en]{elegantpaper} % title information \title{A Working Paper Example} \author{ddswhu} \institute{Elegant\LaTeX{} Group} \version{1.00} \date{\today} \begin{document} \maketitle \begin{abstract} Your abstract goes here. \keywords{keyword1, keyword2} \end{abstract} \section{Introduction} The content of introduction section. \section{Conclusion} The content of conclusion section. % include the noncited reference \nocite{ref1, ref2} \bibliography{wpref} \end{document} ``` -------------------------------- ### Install ElegantPaper using TeX Live Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Commands to install, update, or uninstall the ElegantPaper package using the TeX Live package manager (tlmgr). Ensure the CTAN repository is set correctly. ```shell # Set CTAN repository tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet # Install the package tlmgr install elegantpaper # Update to latest version tlmgr update elegantpaper # Uninstall if needed tlmgr uninstall elegantpaper ``` -------------------------------- ### Basic Document Setup in ElegantPaper Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Set up a basic document using the ElegantPaper class with default English language settings. Supports standard article class options like paper size and font size. ```latex % Basic document setup with English language (default) \documentclass[a4paper,11pt]{elegantpaper} ``` -------------------------------- ### Complete Working Paper Example in LaTeX Source: https://context7.com/elegantlatex/elegantpaper/llms.txt A full document demonstrating major features of the ElegantPaper template, including title, author, abstract, sections, definitions, theorems, tables, and bibliography. ```latex \documentclass[11pt,en]{elegantpaper} \title{Financial Frictions and Business Cycles: A DSGE Approach} \author{John Smith \\ Harvard University \and Jane Doe \\ MIT} \institute{\href{https://economics.harvard.edu}{Department of Economics}} \version{1.0} \date{March 2024} \addbibresource[location=local]{reference.bib} \begin{document} \maketitle \begin{abstract} This paper develops a dynamic stochastic general equilibrium (DSGE) model to analyze the role of financial frictions in business cycle fluctuations. We find that credit constraints significantly amplify the effects of productivity shocks on output and investment. \keywords{DSGE Model, Financial Frictions, Business Cycles, Credit Constraints} \end{abstract} \section{Introduction} Financial frictions play a crucial role in modern macroeconomic theory\cite{en1}. Recent evidence from peer-to-peer lending platforms \parencite{en3} suggests that credit market imperfections have significant real effects. \section{The Model} \begin{definition} A financial friction is any deviation from the Modigliani-Miller theorem that creates a wedge between internal and external financing costs. \end{definition} \begin{theorem} Under logarithmic preferences and Cobb-Douglas technology, the competitive equilibrium is Pareto efficient if and only if financial frictions are absent. \end{theorem} \section{Empirical Results} \tabref{tab:results} presents our main regression results. \begin{table}[htbp] \centering \caption{Impact of Credit Constraints on Investment} \begin{tabular}{lcc} \toprule Variable & Coefficient & Std. Error \\ \midrule Credit Spread & -0.542*** & (0.103) \\ GDP Growth & 0.831*** & (0.215) \\ \bottomrule \end{tabular} \label{tab:results} \end{table} \section{Conclusion} Our findings confirm that financial frictions matter for business cycle dynamics. For questions, contact \email{jsmith@harvard.edu}. \printbibliography[heading=bibintoc, title=\ebibname] \end{document} ``` -------------------------------- ### ElegantPaper: Chinese Language Setup Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Configure ElegantPaper for Chinese language documents. Supports both explicit 'lang=cn' and shorthand 'cn' options. Compatible with standard article class options. ```latex % Chinese language mode \documentclass[lang=cn,a4paper]{elegantpaper} % or shorthand: \documentclass[cn,a4paper]{elegantpaper} ``` -------------------------------- ### Proof Environment Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Use the \begin{proof} environment to present mathematical proofs. Typically follows a theorem or lemma. ```latex \begin{proof} The proof follows from Rolle's theorem applied to the auxiliary function $g(x) = f(x) - f(a) - \frac{f(b)-f(a)}{b-a}(x-a)$. \end{proof} ``` -------------------------------- ### Using Itemize Environment in LaTeX Source: https://github.com/elegantlatex/elegantpaper/wiki/Lists Demonstrates the basic structure for creating an unordered list using the \begin{itemize} environment in LaTeX. Ensure correct LaTeX syntax for list items. ```tex \begin{itemize} \item Routing and resource discovery; \item Resilient and scalable networks; \item Distributed storage and search. \end{itemize} ``` -------------------------------- ### Lemma Environment Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Use the \begin{lemma} environment for mathematical lemmas. This is a predefined theorem-style environment. ```latex \begin{lemma} Every bounded sequence has a convergent subsequence. \end{lemma} ``` -------------------------------- ### Definition Environment Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Use the \begin{definition} environment for mathematical definitions. This is a predefined theorem-style environment. ```latex \begin{definition} A function $f: X \to Y$ is continuous if for every open set $V \subseteq Y$, the preimage $f^{-1}(V)$ is open in $X$. \end{definition} ``` -------------------------------- ### Load Repository in TeX Live Manager Source: https://github.com/elegantlatex/elegantpaper/wiki/Installation Instructions for loading the standard net repository within the TeX Live Manager graphical interface. ```shell Load standard net repository: http://mirror.ctan.org/systems/texlive/tlnet ``` -------------------------------- ### Create Description Lists Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Generate description lists using the \begin{description} environment. Each item consists of a label (in \item[label]) and its description. ```latex % Description list \begin{description} \item[Variable X] The independent variable measuring income \item[Variable Y] The dependent variable measuring consumption \end{description} ``` -------------------------------- ### Remark Environment Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Use the \begin{remark} environment for remarks or notes, often related to mathematical content. This is a predefined theorem-style environment. ```latex \begin{remark} This result generalizes to higher dimensions. \end{remark} ``` -------------------------------- ### Create Itemized Lists Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Generate bulleted lists using the \begin{itemize} environment. Each item is denoted by \item. ```latex % Itemized list \begin{itemize} \item Routing and resource discovery; \item Resilient and scalable networks; \item Distributed storage and search. \end{itemize} ``` -------------------------------- ### Create Enumerated Lists with Custom Labels Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Generate numbered lists using the \begin{enumerate} environment. Custom labels can be specified using the 'label' option, e.g., [label=\arabic*.)]. ```latex % Enumerated list with custom labels \begin{enumerate}[label=\arabic*).] \item First research question \item Second research question \item Third research question \end{enumerate} ``` -------------------------------- ### ElegantPaper: Email Hyperlink Command Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Create clickable email links using the \email command. This command generates a hyperlink that opens the default email client when clicked. ```latex % Usage: \email{address} For correspondence, please contact the author at \email{author@university.edu}. % Output: clickable "author@university.edu" link that opens email client ``` -------------------------------- ### Reference Tables with \tabref Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Use the \tabref command to reference tables with automatic 'Table n' prefix formatting. Ensure the table has a \label command. ```latex \begin{table}[htbp] \small \centering \caption{Regression Results} \begin{tabular}{lcc} \toprule & (1) & (2) \\ \midrule Fuel Efficiency & -238.90*** & -49.51 \\ & (53.08) & (86.16) \\ Car Weight & & 1.75*** \\ & & (0.641) \\ Constant & 11,253*** & 1,946 \\ & (1,171) & (3,597) \\ Observations & 74 & 74 \\ $R^2$ & 0.220 & 0.293 \\ \bottomrule \multicolumn{3}{l}{\scriptsize Standard errors in parentheses} \\ \multicolumn{3}{l}{\scriptsize *** p<0.01, ** p<0.05, * p<0.1} \\ \end{tabular} \label{tab:reg} \end{table} % Reference using \tabref (outputs "Table 1" with bold formatting) The regression results are presented in \tabref{tab:reg}. % In Chinese mode, outputs "表 1" ``` -------------------------------- ### Add Keywords with \keywords Command Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Incorporate keywords into the abstract section of academic papers using the \keywords command. This command is placed within the \begin{abstract} environment. ```latex \begin{abstract} This paper investigates the relationship between financial frictions and macroeconomic fluctuations. We use a DSGE model to analyze the transmission mechanisms of monetary policy shocks. \keywords{Financial Frictions, DSGE Model, Monetary Policy} \end{abstract} % In Chinese mode: \begin{abstract} 本文研究金融摩擦与宏观经济波动之间的关系。 \keywords{金融摩擦,DSGE模型,货币政策} \end{abstract} ``` -------------------------------- ### Include Graphic with Figure Environment Source: https://github.com/elegantlatex/elegantpaper/wiki/Graphics Use the standard LaTeX \texttt{figure} environment to include graphics. Images can be placed in subdirectories like \texttt{./image/}, \texttt{./img/}, \texttt{./figure/}, or \texttt{./fig/} relative to your working directory. ```tex \begin{figure}[htbp] \centering \includegraphics[width=0.6\textwidth]{scatter.pdf} \caption{Scatter Plot Example \label{fig:scatter}} \end{figure} ``` -------------------------------- ### Include Graphics with \includegraphics Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Insert figures into your document using the standard LaTeX figure environment. The \includegraphics command supports automatic path resolution for images located in specified directories. ```latex % Images can be placed in: ./image/, ./img/, ./figure/, ./fig/ \begin{figure}[htbp] \centering \includegraphics[width=0.6\textwidth]{scatter.pdf} \caption{Scatter Plot Example} \label{fig:scatter} \end{figure} % Reference the figure The results are visualized in \figref{fig:scatter}. ``` -------------------------------- ### Bibliography Management with \biblatex Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Configure and utilize biblatex for bibliography management, supporting either biber or bibtex backends. Add bibliography resources in the preamble using \addbibresource. ```latex \documentclass[citestyle=numeric-comp, bibstyle=numeric]{elegantpaper} % Add bibliography resource in preamble \addbibresource[location=local]{reference.bib} \begin{document} \maketitle \section{Literature Review} % Citation examples Recent studies~\cite{smith2020} have shown significant results. According to \textcite{jones2019}, the methodology is robust. Multiple sources support this finding \parencite{chen2018,wang2021}. % At the end of document \printbibliography[heading=bibintoc, title=\ebibname] \end{document} % Example reference.bib file: @article{smith2020, title={{Financial Frictions in Macroeconomic Fluctuations}}, author={Smith, John}, journal={Journal of Economics}, volume={97}, number={3}, pages={209-254}, year={2020} } ``` -------------------------------- ### Update or Uninstall ElegantLaTeX via Cmd Line Source: https://github.com/elegantlatex/elegantpaper/wiki/Installation Commands to update or uninstall the elegantpaper package using the command line. ```shell tlmgr update elegantpaper tlmgr uninstall elegantpaper ``` -------------------------------- ### Configure Fonts for XeLaTeX Compilation Source: https://github.com/elegantlatex/elegantpaper/wiki/FontSettings Use this configuration when compiling with XeLaTeX. It specifies text, sans-serif, and monospace fonts, including Chinese font settings. Ensure the specified fonts are available on your system. ```tex \RequirePackage{fontenc} \RequirePackage[no-math]{fontspec} \setmainfont{Times New Roman}[NFSSFamily=ntxtlf] \setsansfont{Arial} %\setmonofont[Scale=0.9]{Courier New} \RequirePackage{xeCJK} \RequirePackage{xunicode} \setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun} \setCJKsansfont[BoldFont={SimHei},ItalicFont={KaiTi}]{KaiTi} \setCJKmonofont[BoldFont={SimHei},ItalicFont={KaiTi},Scale=0.9]{Microsoft YaHei} \XeTeXlinebreaklocale "zh" \XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt \RequirePackage{newtxmath} ``` -------------------------------- ### ElegantPaper: Title Page and Metadata Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Set document metadata such as title, author, institution, version, and date using standard LaTeX commands within the ElegantPaper template. Supports both English and Chinese date formats. ```latex \documentclass[11pt,en]{elegantpaper} % Document metadata \title{ElegantPaper: An Elegant \LaTeX\ Template for Working Papers} \author{Author One \\ University A \and Author Two \\ University B} \institute{\href{https://github.com/ElegantLaTeX}{Elegant\LaTeX\ Program}} \version{1.00} \date{\today} % or \date{} for no date % For Chinese documents with Chinese date format \date{\zhdate{2024/03/15}} % formatted Chinese date \date{\zhtoday} % today's date in Chinese \begin{document} \maketitle \begin{abstract} Your abstract content goes here. This template is designed to make academic paper writing easier and more comfortable. \keywords{LaTeX, Working Paper, Academic Writing} \end{abstract} \section{Introduction} Your content here. \end{document} ``` -------------------------------- ### ElegantPaper: Math Font Options Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Select different math font packages for ElegantPaper. Options include default Computer Modern, NewTX, and MTPro2. Note potential compatibility issues with NewTX. ```latex % Default Computer Modern math fonts (recommended) \documentclass[math=cm]{elegantpaper} % NewTX math fonts (Times-like, may have compatibility issues) \documentclass[math=newtx]{elegantpaper} % MTPro2 math fonts (requires separate installation) \documentclass[math=mtpro2]{elegantpaper} ``` -------------------------------- ### Set Document Language to English Source: https://github.com/elegantlatex/elegantpaper/wiki/Languages Use the `lang=en` option to set the document language to English. This is the default behavior. ```tex \documentclass[lang=en]{elegantpaper} ``` -------------------------------- ### ElegantPaper: Chinese Font Configuration Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Configure Chinese fonts in ElegantPaper. Supports automatic selection via 'ctexfont', specific Founder fonts, or manual configuration using \setCJKfamilyfont. ```latex % Default: ctex auto-selects system fonts \documentclass[lang=cn, chinesefont=ctexfont]{elegantpaper} % Use Founder fonts (requires installation) \documentclass[lang=cn, chinesefont=founder]{elegantpaper} % or shorthand: \documentclass[lang=cn, founder]{elegantpaper} % No preset fonts - configure manually \documentclass[lang=cn, chinesefont=nofont]{elegantpaper} % Manual font configuration in preamble (with nofont option) \setCJKmainfont[BoldFont={FZHei-B01},ItalicFont={FZKai-Z03}]{FZShuSong-Z01} \setCJKsansfont[BoldFont={FZHei-B01}]{FZKai-Z03} \setCJKmonofont[BoldFont={FZHei-B01}]{FZFangSong-Z02} \setCJKfamilyfont{zhsong}{FZShuSong-Z01} \setCJKfamilyfont{zhhei}{FZHei-B01} \setCJKfamilyfont{zhkai}[BoldFont={FZHei-B01}]{FZKai-Z03} \setCJKfamilyfont{zhfs}[BoldFont={FZHei-B01}]{FZFangSong-Z02} \newcommand*{\songti}{\CJKfamily{zhsong}} \newcommand*{\heiti}{\CJKfamily{zhhei}} \newcommand*{\kaishu}{\CJKfamily{zhkai}} \newcommand*{\fangsong}{\CJKfamily{zhfs}} ``` -------------------------------- ### ElegantPaper: Bibliography Style Configuration Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Customize bibliography and citation styles for ElegantPaper documents. Supports various biblatex styles and can be configured to use BibTeX backend. ```latex % With custom bibliography style \documentclass[citestyle=numeric-comp, bibstyle=authoryear]{elegantpaper} % Using bibtex backend instead of biber (default) \documentclass[bibtex]{elegantpaper} % or: \documentclass[bibend=bibtex]{elegantpaper} % Chinese document with GB7714-2015 standard bibliography \documentclass[lang=cn, citestyle=gb7714-2015, bibstyle=gb7714-2015]{elegantpaper} ``` -------------------------------- ### ElegantPaper: Figure Reference Command Source: https://context7.com/elegantlatex/elegantpaper/llms.txt Reference figures using the \figref command, which automatically includes the 'Figure n' prefix with bold formatting. For Chinese documents, it outputs '图 n'. Requires a \label command on the figure. ```latex \begin{figure}[htbp] \centering \includegraphics[width=0.6\textwidth]{scatter.pdf} \caption{Scatter Plot of Variables X and Y} \label{fig:scatter} \end{figure} % Reference using \figref (outputs "Figure 1" with bold formatting) As shown in \figref{fig:scatter}, there is a positive correlation. % In Chinese mode, outputs "图 1" ``` -------------------------------- ### Include Non-Cited References with BibTeX Source: https://github.com/elegantlatex/elegantpaper/wiki/Bibliography Use the \nocite command to include references in your bibliography that are not explicitly cited in the text. Ensure your .bib file is correctly set up. ```tex \nocite{EINAV2010, Havrylchyk2018} ``` -------------------------------- ### Set Document Language to Chinese Source: https://github.com/elegantlatex/elegantpaper/wiki/Languages Use the `lang=cn` option to set the document language to Chinese. This affects captions, abstract names, and references. ```tex \documentclass[lang=cn]{elegantpaper} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.