Write a template for a LaTeX file that imports the most common packages, has section…
- User
Write a template for a LaTeX file that imports the most common packages, has section headers, tables, figures, and lorem ipsum text.
Assistant
% LaTeX template for documents with sections, tables, figures, and lorem ipsum text % Import required packages \documentclass{article} \usepackage{graphicx} % Required for including images \usepackage{booktabs} % Required for nice tables \usepackage{amsmath} % Required for math environments \usepackage{caption} % Required for figure and table captions \usepackage{subcaption} % Required for multiple figures and tables in the same environment \usepackage{lipsum} % Required for generating dummy text \usepackage{fancyhdr} % Required for custom headers and footers \usepackage{geometry} % Required for page margins \geometry{a4paper, top=25mm, bottom=25mm, left=25mm, right=25mm} % Set page margins \usepackage{hyperref} % Required for clicking on links and generating a table of contents \hypersetup{colorlinks, linkcolor=blue, urlcolor=blue} % Customize link colors \pagestyle{fancy} % Enable custom headers and footers \fancyhf{} % Clear all header and footer fields \fancyfoot[R]{\thepage} % Set right footer to page number \fancyhead[L]{\leftmark} % Set left header to current section name \fancyhead[C]{} % Clear center header \fancyhead[R]{} % Clear right header \renewcommand{\headrulewidth}{0pt} % Remove header rule \renewcommand{\footrulewidth}{0pt} % Remove footer rule
% Customize section headers \makeatletter \renewcommand{\section}{@startsection{section}{1}{\z@}{-3.5ex @plus -1ex @minus -.2ex}{2.3ex @plus.2ex}} \renewcommand{\subsection}{@startsection{subsection}{2}{\z@}{-3.25ex@plus -1ex @minus -.2ex}{1.5ex @plus .2ex}} \renewcommand{\subsubsection}{@startsection{subsubsection}{3}{\z@}{-3.25ex@plus -1ex @minus -.2ex}{1.5ex @
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.