-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: font-and-figure-info
Are you sure you want to change the base?
Conversation
- 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`. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 | ||
} | ||
|
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
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)