1. Install act
brew install act
2. Create directory for artifacts
mkdir /tmp/artifacts
3. Run act
act -P ubuntu-latest=quay.io/jamezp/act-maven --artifact-server-path /tmp/artifacts
When developing stuff, configuring systems, or simply working with computers, I come across obstacles that can be solved easily once you know the solution. But finding the solution can take ages. In this blog, I am collecting the solutions for some of the technical problems that I encounter.
1. Install act
brew install act
2. Create directory for artifacts
mkdir /tmp/artifacts
3. Run act
act -P ubuntu-latest=quay.io/jamezp/act-maven --artifact-server-path /tmp/artifacts
For a paper in CEUR format, I wanted to change the fonts of the figures in the paper to the "Libertinus" font, which is used in the CEUR template. Some figures were created as graph plots in R. MS Copilot suggested using the extrafonts package in R, which did not work.
Here's what worked instead. I copied the ttf file of the font to a fonts subdirectory and added this to my rmd script:
library(showtext)
font_add("Libertinus Sans", "fonts/LibertinusSans-Regular.ttf") # Use the actual file path
showtext_auto()
Then, in each ggplot statement, I added the font name in the theme parameters:
ggplot(knowledge_stats, aes(x=item, y=median, group=survey, fill=survey))+
geom_bar(stat="identity", position="dodge")+
facet_grid(.~departement)+
scale_fill_manual(values = c("steelblue1", "grey80"))+
labs(title=paste("ASE: Knowledge gain", subtitle="L: 6 persons, T: 32"))+
theme_bw()+
theme(text = element_text(family = "Libertinus Sans"),plot.title = element_text(size=14), legend.title=element_text(size=16), legend.text=element_text(size=12),
axis.title.x=element_blank(), axis.title.y=element_text(size=16),
axis.text.x=element_text(size=14, angle = 90), axis.text.y=element_text(size=14), legend.position="bottom",
strip.text.x=element_text(size=12), strip.text.y=element_text(size=12),
)