mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 01:32:44 -05:00
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
|
export function mockDocument(text: string) {
|
||
|
return {
|
||
|
doc_id: 'story-doc',
|
||
|
getSnapshot: () => text,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export const document = {
|
||
|
tex: `\\documentclass{article}
|
||
|
|
||
|
% Language setting
|
||
|
% Replace \`english' with e.g. \`spanish' to change the document language
|
||
|
\\usepackage[english]{babel}
|
||
|
|
||
|
% Set page size and margins
|
||
|
% Replace \`letterpaper' with\`a4paper' for UK/EU standard size
|
||
|
\\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
|
||
|
|
||
|
% Useful packages
|
||
|
\\usepackage{amsmath}
|
||
|
\\usepackage{graphicx}
|
||
|
\\usepackage[colorlinks=true, allcolors=blue]{hyperref}
|
||
|
|
||
|
\\title{Your Paper}
|
||
|
\\author{You}
|
||
|
|
||
|
\\begin{document}
|
||
|
\\maketitle
|
||
|
|
||
|
\\begin{abstract}
|
||
|
Your abstract.
|
||
|
\\end{abstract}
|
||
|
|
||
|
\\section{Introduction}
|
||
|
|
||
|
Your introduction goes here! Simply start writing your document and use the Recompile button to view the updated PDF preview. Examples of commonly used commands and features are listed below, to help you get started.
|
||
|
|
||
|
Once you're familiar with the editor, you can find various project setting in the Overleaf menu, accessed via the button in the very top left of the editor. To view tutorials, user guides, and further documentation, please visit our \\href{https://www.overleaf.com/learn}{help library}, or head to our plans page to \\href{https://www.overleaf.com/user/subscription/plans}{choose your plan}.`,
|
||
|
}
|