Skip to content

Commit

Permalink
Batch changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvartan committed Nov 10, 2023
1 parent fe9aaf6 commit 053448e
Show file tree
Hide file tree
Showing 35 changed files with 1,092 additions and 859 deletions.
17 changes: 8 additions & 9 deletions R/_dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,25 @@
# \AtEndEnvironment{}{}
# \AfterEndEnvironment{}{}

# TODO
# TODO:
#
# * Fix spacing (\baselineskip).
# * Fix SCSS. Mobile menu is appearing with white or transparent color.
# * Fix caption sizes and spacing.

# * Fix spacing in `figure` environment.
# * Fix quinary section after skip.
# * Find why the title of LoF, LoT, ToC and Abstract do not align with others.
# * Fix title page spacing.
# * Add command tag sub function.
# * Fix title and table captions making the caption name (e.g., "Figure -")
# become tabular.
# * Create errata table (c.f. Funaro et al., 2020).
# * Fix References section bookmark (see R package {xmpdf}).
# * Fix spacing in `theorem` environment.
# * Fix spacing
# * Fix References and Glossary, and Parts spacing on TOC (underlying reasons).
# * Include `\ABNTEXchapterupperifneeded{}` in the References section config.
# * Fix '\tightlist' settings.
# * Fix indentation of unordered and ordered lists.
# * Change table font sizes to be accordingly with figure font sizes.
# * Add code post-chapters, pre-appendices and pre-annexes automatically.
# * Add numbers and letters before chapter's and appendices bookmarks.
# * Fix caption spacing after tables.
# * Set indentation of unordered and ordered list (see ABNT norms).
# * Add post- and pre-chapters code automatically.
# * Refactor code for creating ambient variables in
# 'quarto-pre-render-common.R' . Transform code into function and then add
# it in the {rutils} package.
Expand All @@ -83,3 +80,5 @@
# * Add <https://fair-software.eu/>.
# * Add <https://www.bestpractices.dev/en/projects/6244 badge>.
# * Fix code background on dark theme.
# * Refactor format using Quarto filters.
# * Use `etoolbox` and pre, app or patch to edit `abntex2` commands.
8 changes: 0 additions & 8 deletions R/quarto-pre-render-pdf.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,6 @@ swap_list <- list(
end_tag = "%:::% list-of-symbols body end %:::%",
value = NULL,
quarto_render = TRUE
),
list_of_terms = list(
from = here::here("qmd/list-of-terms.qmd"),
to = here::here("tex/include-before-body.tex"),
begin_tag = "%:::% list-of-terms body begin %:::%",
end_tag = "%:::% list-of-terms body end %:::%",
value = NULL,
quarto_render = TRUE
)
)

Expand Down
7 changes: 6 additions & 1 deletion R/quarto-setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
# library(ggplot2, quietly = TRUE)
# lybrary(yaml)

# Load libraries

library(dplyr, quietly = FALSE, verbose = FALSE)
library(ggplot2, quietly = FALSE, verbose = FALSE)

# Set variables -----

set.seed(2023)
Expand Down Expand Up @@ -71,7 +76,7 @@ if (env_vars$format == "pdf") {
if (env_vars$format == "html") {
ggplot2::theme_set(
ggplot2::theme_gray(
base_size = "",
base_size = base_size,
base_family = env_vars$sansfont,
base_line_size = base_size/22, # `ggplot2::theme_gray` default
base_rect_size = base_size/22 # `ggplot2::theme_gray` default
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ format:
Most customization options available in the Quarto system are compatible with this format. For more details, refer to the [extension YAML file](https://github.com/danielvartan/abnt/blob/main/_extensions/abnt/_extension.yml) and the [PDF Options](https://quarto.org/docs/reference/formats/pdf.html) section in the [Quarto guide](https://quarto.org/docs/reference/formats/pdf.html).
For additional formatting information, see the `abnt` [print output](https://danielvartan.github.io/abnt/index.pdf) and the [web output](https://danielvartan.github.io/abnt/).
For additional formatting information, see Appendix _Settings__ of `abnt` [print output](https://danielvartan.github.io/abnt/index.pdf) and the [web output](https://danielvartan.github.io/abnt/).

Please note that some documentation may still be missing. We are actively working to provide complete documentation. If you have questions, ideas to share, or need assistance, feel free to use the [GitHub discussion tab](https://github.com/danielvartan/abnt/discussions). We and the community will do our best to assist you.

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ and the [PDF
Options](https://quarto.org/docs/reference/formats/pdf.html) section in
the [Quarto guide](https://quarto.org/docs/reference/formats/pdf.html).
For additional formatting information, see the `abnt` [print
output](https://danielvartan.github.io/abnt/index.pdf) and the [web
output](https://danielvartan.github.io/abnt/).
For additional formatting information, see Appendix \_Settings\_\_ of
`abnt` [print output](https://danielvartan.github.io/abnt/index.pdf) and
the [web output](https://danielvartan.github.io/abnt/).

Please note that some documentation may still be missing. We are
actively working to provide complete documentation. If you have
questions, ideas to share, or need assistance, feel free to use the
[GitHub discussion repository
[GitHub discussion
tab](https://github.com/danielvartan/abnt/discussions). We and the
community will do our best to assist you.

Expand Down
Loading

0 comments on commit 053448e

Please sign in to comment.