| 1 | |
| 2 | `Powerdot` [TULIP Lab](http://www.tulip.org.au) Style Package |
| 3 | ================== |
| 4 | |
| 5 | `powerdot-tuliplab` is the latex package used in TULIP Lab for presentation drafting. It comes with several sample `tex` files so that you can quickly start working with it. |
| 6 | |
| 7 | If you are creating a presentation using this package, you are recommended to use `git` to host the repository, and use `git-flow` to manage the collaborative writing platform for academic presentation authoring. |
| 8 | |
| 9 | |
| 10 | --- |
| 11 | ## I. Required Packages |
| 12 | --- |
| 13 | |
| 14 | You should be familiar with `LaTeX`, if not, you need learn it from [WikiBook](https://en.wikibooks.org/wiki/LaTeX). |
| 15 | |
| 16 | We recommend the following packages for cross platform writing: |
| 17 | |
| 18 | * [TeXLive!](https://tug.org/texlive/) with `powerdot` package |
| 19 | * [SmartGit](https://www.syntevo.com/smartgit/) |
| 20 | * [Bitbucket](http://bitbucket.org) or [GitHub](https://github.com/) |
| 21 | |
| 22 | --- |
| 23 | ## II. Contained Files |
| 24 | --- |
| 25 | |
| 26 | This package contains the following files |
| 27 | |
| 28 | 1. `powerdot-tuliplab.sty` TULIP-Lab Style File |
| 29 | 2. `tuliplab-P00.tex` A Simple Presentation Sample with Transitions |
| 30 | 3. `tuliplab-P01.tex` One Academic Presentation Sample with References List |
| 31 | 4. `tuliplab-P03.tex` One Sample file with PSTrick figures. |
| 32 | 5. `logos/tulip` Folder of images for slides graphics. |
| 33 | |
| 34 | You can use replace `logos/tulip.eps`, `logos/tulip-wordmark.eps` with your favorite images. Four alternatives are also provided in the folder for top left picture, two banner options provided. |
| 35 | |
| 36 | --- |
| 37 | ## III. Package Installation |
| 38 | --- |
| 39 | |
| 40 | 1. Copy files the whole folder `powerdot-tuliplab` with file `powerdot-tuliplab.sty` and folder `logos` folders to your home directory under `~/texmf/tex/latex/powerdot-tuliplab`; for `macOS`, please put it under `/usr/local/texlive/texmf-local/tex/latex` |
| 41 | |
| 42 | 2. Refresh `TexLive` by typing the following command: |
| 43 | |
| 44 | ```shell |
| 45 | cd |
| 46 | sudo texhash |
| 47 | ``` |
| 48 | |
| 49 | For `Mktex` on `Windows`, you can run `mktexlsr` |
| 50 | |
| 51 | |
| 52 | 3. For compiling, you should use the chain operators `LaTeX -> DVI`, and then `DVI -> PS`, finally `PS -> PDF`. |
| 53 | |
| 54 | |
| 55 | |
| 56 | --- |
| 57 | ## IV. Setup the Repository for Your Own Presentation Slides |
| 58 | --- |
| 59 | |
| 60 | Those examples provided in this package can be used as the template, and I recommend you create a new repository in your `git` platform, initialized with one sample `tex` file in this package. |
| 61 | |
| 62 | 1. Customize the file name: |
| 63 | - change `tuliplab-P0X.tex` into a suitable file name |
| 64 | |
| 65 | |
| 66 | 1. Check out the repository to local drive, and set up the local environment for `gitinfo2` package: |
| 67 | |
| 68 | |
| 69 | - Download/copy those files from `https://github.com/tulip-lab/templatex/tree/develop/templatex/gitinfo`, which is the `gitinfo` folder with three executive `bash` `shell` scripts: |
| 70 | * `post-checkout` |
| 71 | * `post-commit` |
| 72 | * `post-merge` |
| 73 | |
| 74 | - Copy or move these three files into your repository's `.git/hooks` folder. |
| 75 | - For example, if the root of your local repositories is `~/MyFancySlides`, then you can copy/move above three files to `~/MyFancySlides/.git/hooks/`. |
| 76 | |
| 77 | - Test Run: check out or pull your repository, and it should generate/update the file `./git/gitHeadInfo.gin` in your local repository. |
| 78 | - For example: check `~/MyFancySlides/.git/gitHeadInfo.gin`. |
| 79 | |
| 80 | - Compile the main `LaTeX` file, and view the `PDF`. |
| 81 | |
| 82 | 1. Happy LaTeXing! |
| 83 | |
| 84 | ## V. Rules for Collaborative LaTeXing |
| 85 | --- |
| 86 | |
| 87 | You MUST follow the following rules when writing collaboratively. Otherwise, your co-author will find it impossible to work together. |
| 88 | |
| 89 | ### III.A. LaTeX Source Code |
| 90 | |
| 91 | 1. Avoid **ineffective** modifications. |
| 92 | |
| 93 | 1. Do not change line breaks without good reason. |
| 94 | |
| 95 | 1. Turn off automatic line wrapping of your LaTeX editor. |
| 96 | |
| 97 | 1. Start each new sentence in a new line. |
| 98 | |
| 99 | 1. Split long sentences into several lines so that each line has at most `80` characters. |
| 100 | |
| 101 | 1. For all the marginal comments by other co-authors, you MUST responed to them using a responsive marginal comment, such as |
| 102 | |
| 103 | ```latex |
| 104 | \gangli{What is wrong here?} |
| 105 | \qwu{This is my response ...} |
| 106 | ``` |
| 107 | |
| 108 | 1. If your comment has been properly addressed by co-authors, you **MUST** remove or comment out both the *original* and the *response* marginal comments. |
| 109 | |
| 110 | |
| 111 | 1. You can use the following code to indicate where you are updating up to: |
| 112 | |
| 113 | ```latex |
| 114 | \HRule %TODO: YourName up to here! |
| 115 | ``` |
| 116 | |
| 117 | ### III. B. Repository |
| 118 | |
| 119 | 1. Put only those files that are directly modified by the user under version control. |
| 120 | |
| 121 | 1. Verify that your code can be compiled flawlessly before - committing your modifications to the repository. |
| 122 | |
| 123 | 1. Use `git-latexdiff` or `latediff` (or `git` compare tools) to critically review your modifications before committing them to the repository. |
| 124 | |
| 125 | 1. Add a meaningful and descriptive comment when committing your modifications to the repository. |
| 126 | |
| 127 | 1. Use the `git` client for copying, moving, or renaming files and folders that are under revision control. |
| 128 | |
| 129 | 1. Use `git-flow` scheme to create `feature`, `branch`, `release` and `version` of your paper. Be really careful when you are touching `develop` or `master` branch. |
| 130 | |
| 131 | |
| 132 | |
| 133 |