在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):LeoColomb/generator-latex开源软件地址(OpenSource Url):https://github.com/LeoColomb/generator-latex开源编程语言(OpenSource Language):JavaScript 86.8%开源软件介绍(OpenSource Introduction):Generator LaTeX
Why
After generation, keeping your work up-to-date during your writting require only one command: $ grunt That's it! InstallYeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension. To install $ npm install -g generator-latex UsageNew project$ yo latex New chapterAdding a chapter is a repetitive task. To keep them organized, the Chapter Sub-Generator creates a chapters directory, and lets you create sub-directories for each chapter. To run it: $ yo latex:chapter or directly to bypass questions: $ yo latex:chapter 1 Introduction Will create It also adds to Getting StartedWhat is Yeoman?Trick question. It's not a thing. It's this guy! Take a look at yeoman.io. What will be created?This generator is designed to cover any type of LaTeX document. It helps you to create a solid structure of your project. Take a look at this final structure: project/
├── Gruntfile.js # → The compilator tasks file
├── main.tex # → The project-root file
├── package.json # → Preparator dependencies
│
├── src/
│ ├── glossary.tex # → The glossary file
│ ├── references.bib # → The reference file
│ ├── ...
│ │
│ ├── 1/
│ │ ├── main.tex # → First chapter global file
│ │ └── ...
│ │
│ ├── 2/
│ │ ├── main.tex # → Second chapter global file
│ │ └── ...
│ │
│ ├── assets/
│ │ ├── figures.svg # → Optionnal figures files
│ │ └── ...
│ │
│ └── ...
│
└── dist/
├── [PROJECT].pdf # → The final PDF file output
└── ... # → Files generated during the compilation Regarding glossaryIn order for the glossary generation to work, you need to ensure the A quick way to check if the command is available is to invoke it from any terminal. $ makeglossaries On Windows, it is mandatory to add the folder Latex code sample to insert a glossary entry: \gls{computer} Regarding graphicsFigures in A specific grunt task can be run to refresh all figures, although the $ grunt execute:figs Latex code sample to insert a \begin{figure}[h]
\centering
\includegraphics{src/assets/figure.pdf}
\caption{Figure example of an imported pdf generated from an svg file (drawn with inkscape)}
\label{figure_example}
\end{figure} Regarding bibliographyWhen the bibliography is modified, it is properly reflected in the document two refresh later. This is due to how latex and bibtex interact.
If you see some undefined references (displayed as Latex code sample to insert a reference: \cite{Perrin}. LicenseMIT © Léo Colombaro |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论