From a62dde197b5eca4c3dd857de0169e5c6b8fc5086 Mon Sep 17 00:00:00 2001 From: Louis Gallet Date: Sat, 2 Nov 2024 16:23:16 +0100 Subject: [PATCH] feat: :tada: Create all the basics file for the template --- .gitignore | 311 ++++++++++++++++++++++++++++++++++++++++++++++++ .zed/tasks.json | 9 ++ README.md | 35 ++++++ main.tex | 18 +++ 4 files changed, 373 insertions(+) create mode 100644 .gitignore create mode 100644 .zed/tasks.json create mode 100644 README.md create mode 100644 main.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d1e06af --- /dev/null +++ b/.gitignore @@ -0,0 +1,311 @@ +### LaTeX ### +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplot +*.gnuplot +*.table + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# svg +svg-inkscape/ + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# titletoc +*.ptc + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib + +### LaTeX Patch ### +# LIPIcs / OASIcs +*.vtc + +# glossaries +*.glstex + +# End of https://www.toptal.com/developers/gitignore/api/latex diff --git a/.zed/tasks.json b/.zed/tasks.json new file mode 100644 index 0000000..4f85cd3 --- /dev/null +++ b/.zed/tasks.json @@ -0,0 +1,9 @@ +// .zed/tasks.json +[ + { + "label": "Forward Search", + "command": "zathura --synctex-forward \"$ZED_ROW:$ZED_COLUMN:$ZED_FILE\" -x 'zed %{input}:%{line}' main.pdf", + "allow_concurrent_runs": true, + "reveal": "never" + } +] diff --git a/README.md b/README.md new file mode 100644 index 0000000..2eb9782 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# LaTeX document template with Zed IDE +This repository template contains all the necessary files to start writing a LaTeX document with the ZED IDE. + +## Zed IDE configuration +In order to make this template work with the Zed IDE, you need to install the following plugins: +- [LaTeX](https://github.com/rzukic/zed-latex) + +And apply the following configuration in the `settings.json` file (you can access it by pressing `Ctrl + ,` or `Cmd + ,` on a Mac): +```json +{ + // Other settings... + "lsp": { + "texlab": { + "settings": { + "texlab": { + "build": { + "onSave": true, + "forwardSearchAfter": true + }, + "forwardSearch": { + "executable": "zathura", + "args": [ + "--synctex-forward", + "%l:1:%f", + "-x", + "zed %%{input}:%%{line}", + "%p" + ] + } + } + } + } + } +} +``` diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..471a9cc --- /dev/null +++ b/main.tex @@ -0,0 +1,18 @@ +\documentclass[12pt]{article} +\usepackage{graphicx} % Required for inserting images +\usepackage{graphicx} % Required for inserting images +\usepackage[T1]{fontenc} +\usepackage{fancyhdr} +\usepackage{float} +\usepackage{fancyvrb} + +\title{$LaTeX$ Document Template} +\author{ name.surname } +\date{ Month Year } + +\begin{document} +\maketitle +\newpage +Hello World! + +\end{document}