Required : tkinter (you might have to run apt install python3-tk)
Run the following :
git clone https://github.com/milmip/rapport_wf.git
cd rapport_wf
then edit Makefile config (at the top of the file). Then
make venv
make mpl-template
source venv/bin/activate
make build_mpt-env
mv README.md WORKFLOW.md
touch README.md
echo "# J'aimes les baies" > README.md
pip install pandas
Then modify the .git/config file, renaming the remote url. Create the project on GitHub : it's ready to push.
Don't forget to modify figures/config.py as well.
To create a plot with matplotlib, go to the root project directory and :
- Ensure you've
source venv/bin/activate. - Run
make new-fig. - Edit.
- Run
make FigureXX. - Go step 3 if you're not happy.
Usefull tips :
make figuresto compile all the Figures.make clean_figuresto delete all the compiled figures.
You've Libre-Office Calc opened on data/mesure.csv. Then :
- Ensure you've
source venv/bin/activate. - Run
python3.11thenimport pandas as pd. - Edit on
Libre-Office. - Run
>>> tab = pd.read_csv("data/mesures.csv"),>>> tab.describe(). - Go step 3.
If you've got localleaf, just run :
localleaf -m latex/master.tex ./ -- --outdir=build/ --auxdir=aux/
then launch your favourite pdf viewer (zathura) on build/master.pdf. It will be
automatically be refreshed.
Once you've initialized all you need. It's a classic git workflow, note one things :
In case the push of the main branch fails :
- Run
git checkout -b my_version && git push origin my_version. - Go to GitHub.
- Do a Pull Request.
- Resolve conflicts.
- Merge.
- Delete your branch.
On the web interface, do :
New project > (import) GitHub repo- Chose the project, normally you would have been added to a GitHub project previously.
- Done.
You might be writing at the same time that your wise collegues using their own local editor. Don't worry, mabe one day you would. For the moment you must know one things:
(one the left) Integration > GitHub
Then 3 cases:
pull, if you need a newer version from GitHub.push, the inverse.! Your changes in Overleaf and GitHub could not be automatically merged., it says that you and the version from GitHub is overlapping each other.- Let the popup open.
- Go to GitHub.
- A
overleaf-xxxx-xx-xx-xxxxbranch will pop. - Do a Pull Request.
- Resolve conflicts.
- Merge.
- Delete the OL branch.
- Return on OL and continue.