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

Extract page layout and use it in plotting #58

Open
wants to merge 9 commits into
base: font-and-figure-info
Choose a base branch
from

Conversation

compor
Copy link
Contributor

@compor compor commented Oct 9, 2024

I hope this will resolve the issues and implement the suggestions in #19 and eventually close/merge the PR after being stalled for so long.

This basically extracts LaTeX paper lengths into a CSV file.
The plot.py script has been modified to utilize this CSV if provided.

This targets #19 (not main)

@compor compor self-assigned this Oct 9, 2024
- The Libertine `ttf` can be obtained as "linux libertine" on distros, and Inconsolata `ttf` as "Inconsolata".
- The default font size of the body is `11pt`.
- Figures
- The paper is of A4 size, which in *physical units* is `210 x 297 mm`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately, this information depends on the paper class used for ACM template papers.

- Figures
- The paper is of A4 size, which in *physical units* is `210 x 297 mm`.
- Choose figure size in *physical units* (`mm`/`inch`) based on how much of A4 it occupies and export to PDF.
- Import figure PDF into paper using `\includegraphics{path/to/figure}`. This occupies the desired space in the paper; there is need to use
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has been integrated to the plotting script

\AtEndDocument{
\writePageWidths
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could move this to setup.tex; it basically extracts basic paper lengths in a csv file.


plotAll = 'all' in args.names

if 'speedup' in args.names or plotAll:
plot_speedup()
with matplotlib.rc_context(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where the plotting script configuration is applied from the exported CSV values.
If the file is not provided, we use sensible defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant