eddelbuettel / pinp

Pinp Is Not PNAS -- Two-Column PDF Template
147 stars 25 forks source link

Failed to compile the example using Windows #61

Closed mnunes closed 5 years ago

mnunes commented 5 years ago

I tried to install pinp on a computer using Windows 10 in Portuguese and every time I try to compile the package example, I get the following error in my log file:

! pdfTeX error (font expansion): auto expansion is only possible with scalable 
fonts.
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox 
                                                  \fi \fi 
l.234 T
       o allow an equation to span both columns, options are to use the 
Here is how much of TeX's memory you used:
 38326 strings out of 494585
 721011 string characters out of 6176316
 852398 words of memory out of 5000000
 41278 multiletter control sequences out of 15000+600000
 593034 words of font info for 132 fonts, out of 8000000 for 9000
 14 hyphenation exceptions out of 8191
 64i,15n,77p,451b,894s stack positions out of 5000i,500n,10000p,200000b,80000s

!  ==> Fatal error occurred, no output PDF file produced!

I tried both CRAN and github versions on Windows, but they give me the same error. I looked for help on internet (like this post on StackOverflow), but I couldn't find what is wrong with my computer.

My LaTeX engine is TinyTex, based on TexLive. I know it is correctly installed, because the vanilla pdf example from rmarkdown is compiled in my computer.

I don't get what is happening, because I installed pinp on macOS and Ubuntu 18.10 and it works on both systems.

Here is my sessionInfo() if you need to check it.

R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Portuguese_Brazil.1252  LC_CTYPE=Portuguese_Brazil.1252   
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C                      
[5] LC_TIME=Portuguese_Brazil.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0        rstudioapi_0.8    knitr_1.21        magrittr_1.5     
 [5] usethis_1.4.0     devtools_2.0.1    pkgload_1.0.2     R6_2.3.0         
 [9] rlang_0.3.0.1     tools_3.5.1       pkgbuild_1.0.2    xfun_0.4         
[13] sessioninfo_1.1.1 tinytex_0.9.3     cli_1.0.1         withr_2.1.2      
[17] remotes_2.0.2     htmltools_0.3.6   yaml_2.2.0        assertthat_0.2.0 
[21] digest_0.6.18     rprojroot_1.3-2   crayon_1.3.4      processx_3.2.1   
[25] pinp_0.0.6        callr_3.1.0       fs_1.2.6          ps_1.2.1         
[29] curl_3.2          glue_1.3.0        memoise_1.1.0     evaluate_0.12    
[33] rmarkdown_1.11.2  compiler_3.5.1    backports_1.1.2   desc_1.2.0       
[37] prettyunits_1.0.2
eddelbuettel commented 5 years ago

I know it is correctly installed

Yes and no.

It only proves that most basic markdown can be converted to pdf. This is more complicated package and you are lacking fonts as shown in the error message. It is documented that this is a more demanding package, see the Requirements section of the README.md. But it is also used on Windows -- but you need to do some work at your end.

Also note that we never say that just having tinytex would solve all problems.