|
| 1 | +******************************************************************************** |
| 2 | +use :code:`latexbot` from the command-line |
| 3 | +******************************************************************************** |
| 4 | + |
| 5 | +:code:`latexbot` helps you to set-up your machine to work with latex. The first |
| 6 | +step is to install everything you need. Instead of you spending time doing that |
| 7 | +let it do it. Later we will see how to convert documents and connect your |
| 8 | +overleaf project to your google drive. |
| 9 | + |
| 10 | +Basics |
| 11 | +====== |
| 12 | + |
| 13 | +For detailed information about the different comands, type :code:`latexbot --help`: |
| 14 | + |
| 15 | +.. code-block:: bash |
| 16 | + :emphasize-lines: 1 |
| 17 | +
|
| 18 | + >>> latexbot --help |
| 19 | +
|
| 20 | + Usage: latexbot [OPTIONS] COMMAND [ARGS]... |
| 21 | +
|
| 22 | + bot to help with latex documents |
| 23 | +
|
| 24 | + Options: |
| 25 | + --help Show this message and exit. |
| 26 | +
|
| 27 | + Commands: |
| 28 | + configure Download dependencies and set everything up. |
| 29 | + convert-overleaf-to-docx Convert an overleaf project to a .docx file. |
| 30 | + convert-tex-to-docx Convert the .tex files in a folder to .docx. |
| 31 | +
|
| 32 | +
|
| 33 | +Install dependencies |
| 34 | +==================== |
| 35 | + |
| 36 | +:code:`latexbot` needs to know what you need. If your are new to this, probably |
| 37 | +you will need everything. |
| 38 | + |
| 39 | +Run the following command: |
| 40 | + |
| 41 | +.. code-block:: bash |
| 42 | + :emphasize-lines: 1 |
| 43 | +
|
| 44 | + >>> latexbot configure --git=True --pandoc=True --miktex=True |
| 45 | +
|
| 46 | +
|
| 47 | +Convert a latex document to docx |
| 48 | +================================ |
| 49 | + |
| 50 | +This command uses `pandoc` in the background. This software is prettty awesome, |
| 51 | +but don't expect the conversion to be 100% perfect... |
| 52 | + |
| 53 | +.. code-block:: bash |
| 54 | + :emphasize-lines: 1 |
| 55 | +
|
| 56 | + >>> latexbot convert-tex-to-docx --input "C:\temp\...\my_tex_file.tex" --output= "C:\temp\...\my_folder" |
| 57 | +
|
| 58 | +Convert an overleaf project to google doc |
| 59 | +========================================= |
| 60 | + |
| 61 | +Here we do even more: we get a project from overleaf and convert it directly to |
| 62 | +google doc, were you can use all the fancy collaboration/commenting features. |
| 63 | + |
| 64 | +.. note:: |
| 65 | + |
| 66 | + remember to change the XXXXXXXXXX placeholder with a code of your oveleaf |
| 67 | + project. |
| 68 | + |
| 69 | +.. code-block:: bash |
| 70 | + :emphasize-lines: 1 |
| 71 | +
|
| 72 | + >>> latexbot convert-overleaf-to-docx XXXXXXXXXX --upload=True |
0 commit comments