Skip to content

Commit ab5ccec

Browse files
committed
Add some tests for hyphenation auto install or not
1 parent d35cfb1 commit ab5ccec

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
format: pdf
3+
lang: es
4+
latex-auto-install: false
5+
_quarto:
6+
tests:
7+
pdf:
8+
noErrors: true
9+
printsMessage:
10+
- WARN
11+
- 'missing hyphenation.*hyphen-spanish'
12+
---
13+
14+
```{r}
15+
#| include: false
16+
17+
# Remove the hyphen package for spanish so that the test is meaningful
18+
if (tinytex::check_installed("hyphen-spanish")) {
19+
message("Removing 'hyphen-spanish' package for the render")
20+
tinytex::tlmgr_remove("hyphen-spanish")
21+
}
22+
```
23+
24+
# Hola !
25+
26+
automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
format: pdf
3+
lang: es
4+
_quarto:
5+
tests:
6+
pdf: null
7+
---
8+
9+
```{r}
10+
#| include: false
11+
12+
# Remove the hyphen package for spanish
13+
if (tinytex::check_installed("hyphen-spanish")) {
14+
message("Removing 'hyphen-spanish' package for the render")
15+
tinytex::tlmgr_remove("hyphen-spanish")
16+
}
17+
```
18+
19+
# Hola !
20+
21+
automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente automáticamente
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
format: pdf
3+
lang: zh
4+
_quarto:
5+
tests:
6+
pdf: null
7+
---
8+
9+
# 范叶亮

0 commit comments

Comments
 (0)