Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let figures and tables float. #663

Merged
merged 1 commit into from
Feb 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/basics/101-130-yodaproject.rst
Original file line number Diff line number Diff line change
Expand Up @@ -607,14 +607,14 @@ syllabus, this should be done via :term:`GitHub`.
content from GitHub. GitHub can also resolve subdataset links to other GitHub
repositories, which lets you navigate through nested datasets in the web-interface.

.. figure:: ../artwork/src/screenshot_midtermproject.png
.. image:: ../artwork/src/screenshot_midtermproject.png
:alt: The midterm project repository, published to GitHub

The above screenshot shows the linkage between the analysis project you will create
and its subdataset. Clicking on the subdataset (highlighted) will take you to the iris dataset
the handbook provides, shown below.

.. figure:: ../artwork/src/screenshot_submodule.png
.. image:: ../artwork/src/screenshot_submodule.png
:alt: The input dataset is linked

.. _publishtogithub:
Expand Down Expand Up @@ -840,7 +840,7 @@ reproduce your data science project easily from scratch (take a look into the :r
Proud of your midterm project you can not wait to use those principles the
next time again.

.. figure:: ../artwork/src/reproduced.svg
.. image:: ../artwork/src/reproduced.svg
:width: 50%

.. gitusernote:: Push internals
Expand Down
4 changes: 2 additions & 2 deletions docs/basics/101-137-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ with the HEAD pointer.
a pointer to the branch you are currently on, and thus to the last commit
in the given branch.

.. figure:: ../artwork/src/git_branch_HEAD.png
.. image:: ../artwork/src/git_branch_HEAD.png
:width: 50%

Using ``HEAD``, you can identify the most recent commit, or count backwards
Expand Down Expand Up @@ -799,4 +799,4 @@ to remove the ``Gitjoke2.txt`` file.
and tutorials. It is out of the scope of this handbook to be a complete
guide on rebasing, and not all interactive rebasing operations are
complication-free. However, you can always undo mistakes that occur
during rebasing with the help of the `reflog <https://git-scm.com/docs/git-reflog>`_.
during rebasing with the help of the `reflog <https://git-scm.com/docs/git-reflog>`_.
4 changes: 1 addition & 3 deletions docs/basics/101-139-gin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ an SSH key as detailed above, and cloning via the SSH url:
Private repos are marked with a lock sign. To make it public, untick the
"Private" box, found under "Settings":

.. figure:: ../artwork/src/GIN_private.png

Private Gin repository are marked. They can be made public in the settings.
.. image:: ../artwork/src/GIN_private.png

In order to publish changes to a Gin repository, the repository needs
to be cloned via its SSH url.
Expand Down
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
latex_elements = {
'papersize': 'a4paper',
'pointsize': '11pt',
'figure_align': 'H',
'figure_align': 'htbp',
'sphinxsetup': r"""
verbatimwithframe=false,%
VerbatimColor={rgb}{1,1,1},%
Expand Down Expand Up @@ -335,6 +335,9 @@
\usepackage[defaultsans]{lato}
\usepackage{inconsolata}

% make sure all float stay in their respective chapter
%\usepackage[chapter]{placeins}

\usepackage{xcolor}
\definecolor{dataladyellow}{HTML}{FFA200}
\definecolor{dataladblue}{HTML}{7FD5FF}
Expand Down
2 changes: 1 addition & 1 deletion docs/usecases/reproducible-paper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ in the actual manuscript, if you want!). This was step number 1 of 4.

This figure looks like this in the manuscript:

.. figure:: ../artwork/src/img/remodnav2.png
.. image:: ../artwork/src/img/remodnav2.png

For step 2 and 3, the print statements need to be captured and bound to the ``.tex`` file.
The `tee <https://en.wikipedia.org/wiki/Tee_(command)>`_ command can write all of the output to
Expand Down