Overleaf как скачать файл tex
Перейти к содержимому

Overleaf как скачать файл tex

  • автор:

Introduction

This article explains how to export Overleaf projects as a .zip file or download just the final typeset PDF. Each process is explained step-by-step but a quick guide is also provided.

Important notes

  • For the avoidance of doubt, the term “source”, or “source files”, refers to one or more text and/or graphics files required to typeset your document, whereas the “result” or “typeset result” is the PDF file produced from typesetting your “source files”.
  • Projects exported (downloaded) from Overleaf are provided as a .zip file which contains the source files used to create the typeset PDF. That .zip file will contain the source files only, it does not include the final typeset PDF itself which must be downloaded separately, after successful compilation.

Quick guide

  • To download the typeset PDF file:
    • select the Menu button (OLmenu.png) then select the PDF icon , or
    • select the PDF download button displayed on the PDF viewer ( ).
    • To download a project: select the Menu button (OLmenu.png), then choose the Source icon ( ) to initiate download of a .zip file to your device.
    • To download several projects: if you have a project open, select the Back to your projects icon (OLbacktoprojects.png). Next, tick the check-boxes corresponding to projects you wish to download, then choose the download button ( ) to initiate download of a .zip file to your device. That .zip file contains further .zip files, one for each project.

    Downloading the typeset PDF file

    There are two options for downloading the PDF file.

    Option 1

    1. Select the Menu button (OLmenu.png) in the upper-left of the editor window:

    OLMenuwhere.png

    OLMenuSelect.png

    Option 2

    1. From within the PDF display window, select the Download PDF icon to the right of the Recompile button:

    OLMenuSelectOption2.png

    Downloading Overleaf projects

    Here we show how to download your current project as a .zip file, or how to download multiple projects as a single .zip file inside of which there are further .zip files, one for each project.

    Downloading your current project as a .zip file

    1. Select the Menu button (OLmenu.png) in the upper-left of the editor window:

    OLMenuwhere.png

    OLMenuSourceSelect.png

    Downloading multiple projects as a .zip file

    1. Assuming you are in the editor, select the Back to your projects icon (OLbacktoprojects.png):

    OLMenubacktoprojects.png

    Including a .bbl file (for journal submissions)

    Some journal-submission processes ask for the LaTeX-generated .bbl file—an auxiliary file containing the formatted bibliography data—to be included with the article source files of LaTeX submissions. On Overleaf, .bbl files, and any other auxiliary files created during compilation, are “cached” but there are two ways to access the .bbl files:

    • option 1: using the Other logs and files dropdown menu, or
    • option 2: downloading via Overleaf’s arXiv submission process

    Option 1: Using “Other logs and files”

    Follow these steps to download just the .bbl file generated for your project:

      Select the file icon (Logs and output files) next to the Recompile button:

    OLlogsandoutputs.png

    OLgeneratedfiles.png

    OLdownloadbbl.png

    Option 2: via Overleaf’s arXiv submission process

    The full project source files, including the .bbl file, can also be downloaded via the arXiv-submission process as shown in the following step-by-step guide.

      Select Submit in the top menu:

    OLarxivorg2.png

    OLarxivselectthis.png

    Do not worry, selecting this option this will not immediately send the project files to arXiv; instead, it displays another window which lets you download your article, complete with .bbl file, for onward submission to arXiv:

    How to download an Overleaf template?

    I don’t feel too well about uploading the sourcecode of my paper to some website I hadn’t heard about before. That’s why I tried to simply use the source of the template. The problem is I could not compile it myself since I do not have the classfile wlscirep.cls. Where can I get it?

    Additionally, this answer to Latex template for Scientific Reports (Nature) seems to be still valid. Should I ignore the Overleaf template and simply use revtex like before?

    Offline Overleaf

    Overleaf has been widely adopted as the standard tool for collaborative scientific writing. Perhaps, its greatest selling point is that a \(\LaTeX\) document can be edited at the same time by all the authors. One of its non-widely known features is that it handles the document changes throughout a GIT repository. This means that you can work on your document offline with your own favorite tools. In this post I talk about combining Overleaf with Sublime as \(\LaTeX\) editor, GitKraken as GIT GUI client, and Meld as diff tool.

    Why I don’t like Overleaf editor? Mainly because:

    • Managing files is painful.
    • It only commits atomic changes.
    • Comparing all paragraph changes between versions is cumbersome.
    • Comparing the whole project files is impossible.
    • You can’t preview equations and images in the edit window.
    • You can’t split the view into edit window and PDF viewer.
    • It doesn’t have support for REGEX.
    • You easily leave double spaces across the document.
    • It doesn’t have a dark theme.
    • It doesn’t have a horizontal/vertical split view.
    • Its compiler and visualization might not feel fast enough.

    Setup

    Although I have previously used other \(\LaTeX\) editors like Texmaker and TeXShop, my personal choice is Sublime because of its versatility.

    1. Install a \(\LaTeX\) distribution. You need a \(\LaTeX\) distribution to compile your documents in your OS. For Apple fans, the MacTeX distribution is really easy to install in the Mac OS environment. For an Ubuntu user, the installation is just one line:

    2. Install Sublime Text. If you don’t already have it installed, you need to follow the steps from their website.

    3. Install Package control. Package control manages Sublime’s plugins. Open Sublime and do the following:

    Open the command palette

    Press Linux: ctrl+shift+p or Mac: cmd+shift+p

    Type Install Package Control , and press enter

    Other installation instructions can be found here.

    4. Install the LatexTools plugin.

    Open the command palette

    Press Linux: ctrl+shift+p or Mac: cmd+shift+p

    Type Package Control: Install Package , and press enter

    Another listing box will open after a few seconds.

    Type LaTeXTools , and press enter

    5. Install and configure Skim (for Mac users only). Skim is a PDF viewer for Mac that is a good complement for Sublime.

    Install it from here.

    Go to Skim’s preferences by clicking Skim > Preferences or pressing cmd+, .

    Click the Sync button.

    Click on the Check for file changes box.

    Select Sublime Text from the Preset menu

    The options should look something like this:

    6. Install GitKraken. GitKraken is a nice GIT GUI client that makes easy to visualize commits in window. You can download it from their official page.

    7. Install and configure Meld. Meld is one of those great diff comparison utilities that you didn’t know you need.

    1. In Ubuntu you can install it by simply typing in the command line:

    In MacOS X you can install it using Homebrew by typing:

    If you are one of those lost souls that doesn’t like Homebrew you can install it using one of these DMG images and fixing some rough edges by following this Stackoverflow solution but I highly recommend the Homebrew solution.

    2. Go to Meld’s preferences by clicking the menu Meld > Preferences (or in Python > Preferences if you are running a Python widget).

    3. Under the Editor tab, make sure the following options are checked: Enable text wrapping, Do not split words over two lines, Show line numbers, and Use syntax highlighting. Your configuration should look something like this:

    GIT Cloning your \(\LaTeX\) project

    1. Obtain the GIT url of your Overleaf project. You can get it by clicking the Overleaf menu > GIT button as the images below show:

    A popup dialog with the URL address will appear similar to the next one.

    2. Clone the project. In this example, I would clone my project and rename it with a command like:

    3. Create a .gitignore file. Since the \(\LaTeX\) compilation creates many auxiliary files, it is better to keep them out of our repository by ignoring them with a .gitignore file inside of the project.

    The following .gitignore file contents is the largest I have used, but new auxiliary files can be created depending on the \(\LaTeX\) packages you might add to your document. You can straight copy the contents or download it from here .

    Note that I am also ignoring PDF files, so if one of your images is a PDF, you would have to force its addition to your repository.

    Editing your \(\LaTeX\) project using Sublime

    1. Open the \(\LaTeX\) project. You can straight forward open the directory containing your \(\LaTeX\) project and start working on it. From the command line, you can open it by typing:

    If you created the .gitignore file, then a Sublime window similar to the next one will show up.

    2. Compile your document. Under your main \(\TeX\) file, you can compile it by pressing Linux: ctrl+b or Mac: cmd+b .

    This will create all the \(\LaTeX\) auxiliary files and a PDF file containing your document will show up.

    3. Create a Sublime project (optional). You can create a Sublime project to not show the \(\LaTeX\) auxiliary files in the Navigation sidebar.

    Click in the menu Project > Save project as… and type a name for the project. This will create two JSON files with extensions .sublime-project and .sublime-workspace.

    Edit the recently created project file with extension .sublime-project and add the files to exclude like the following:

    Managing your \(\LaTeX\) git repository using GitKraken

    GitKraken is a Git GUI client that makes the Git management easy. In order to open a private repository, you need a professional account that you can freely get if you are a student here. You can open your repository by pressing Linux: ctrl+o or Mac: cmd+o and pointing to the directory location of your \(\LaTeX\) project.

    The next image shows an Overleaf \(\LaTeX\) project with several commits opened in GitKraken. You can see the automatically atomic commits done in Overleaf by another contributor at the bottom of the list.

    Using Meld to compare different commits

    Meld is a great visual diff and merge tool. The syntax for using it inside the git project directory is in three possible ways:

    a) Show the differences between 2 specific commits:

    b) See all modifications in the working directory with respect a specific commit

    c) See the current changes in the working directory with respect to the last commit

    A visual way to get the commits ids for making a diff comparison is by clicking on the commit button in GitKraken. This button is located in the top right corner of the window, for instance, the commit id from last figure is seen here:

    For example, typing the git difftool command and pasting commit id

    will open the following directory comparison view in Meld:

    Then clicking on a modified \(TeX\) file will show the changes by paragraph and specific words. For instance, the next figure shows fixed grammar mistakes.

    Overleaf как скачать файл tex

    Compile your own papers yourself,

    Need to be compressed as a zip to upload

    Compressed as follows

    Uploaded is a zip file

    2. Upload notes

    You can click on the green box to change to Chinese.

    The red box is my own classification

    3. Upload

    1 Click on new project to create a new project

    2 Select upload project

    3 Click to select the path, file.

    4 or drag in directly

    Waiting for upload

    Enter the following interface

    Back to previous,

    Will find a new file

    Right option, the first one is copy, the second is download,
    The third is Archive

    4. About deleting Archive

    Choose third One Archive, although it is the meaning of the archive, is actually deleted to the following location

    You can find him in the archived project, click inside

    The two rightmost options are, Unarchive unarchive with Completely deleted (cannot be retrieved)

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *