R/exams NOPS generates documents in Times New Roman, which then fail during scanning The 2019 Stack Overflow Developer Survey Results Are InGenerate new time-lagged variable in RHow to use Times new Roman font in grid.text()?trouble debugging my ifelse statementChart images fail to appear in Word document with RMarkdown when saving to a new locationChanging to Times New Roman in r graphR error on a Mac: “family 'Times New Roman' not included in postscript() device”Converting factor value to new variable which stores count of how many times it occured in the factorPackage installation on RStudio / R ver 2.11.1Generating sequence which is n times its predecessorGenerate a new group ID every time a variable changes its value

What do hard-Brexiteers want with respect to the Irish border?

Did Section 31 appear in Star Trek: The Next Generation?

How can I autofill dates in Excel excluding Sunday?

When should I buy a clipper card after flying to OAK?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

Am I thawing this London Broil safely?

Return to UK after having been refused entry years ago

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Does the shape of a die affect the probability of a number being rolled?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

Is an up-to-date browser secure on an out-of-date OS?

Why isn't airport relocation done gradually?

Can you compress metal and what would be the consequences?

Feature engineering suggestion required

Can someone be penalized for an "unlawful" act if no penalty is specified?

How to save as into a customized destination on macOS?

Can one be advised by a professor who is very far away?

Do these rules for Critical Successes and Critical Failures seem fair?

Apparent duplicates between Haynes service instructions and MOT

"as much details as you can remember"

Time travel alters history but people keep saying nothing's changed

What is the meaning of Triage in Cybersec world?

Identify boardgame from Big movie



R/exams NOPS generates documents in Times New Roman, which then fail during scanning



The 2019 Stack Overflow Developer Survey Results Are InGenerate new time-lagged variable in RHow to use Times new Roman font in grid.text()?trouble debugging my ifelse statementChart images fail to appear in Word document with RMarkdown when saving to a new locationChanging to Times New Roman in r graphR error on a Mac: “family 'Times New Roman' not included in postscript() device”Converting factor value to new variable which stores count of how many times it occured in the factorPackage installation on RStudio / R ver 2.11.1Generating sequence which is n times its predecessorGenerate a new group ID every time a variable changes its value



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















I have been using r/exams in some of my last exams and everything has worked fine. This semester, however, r/exams seems to generate the exams in Times New Roman instead of Helvetica, which messes with the character recognition in the scanning process.



Even the minimal example, produces this behavior:



library("exams")
myexam <- list("cholesky.Rnw")
set.seed(403)
ex1 <- exams2nops(myexam, n = 1,
dir = "nops_pdf", name = "demo", date = "2015-07-29",
points = c(1), showpoints = TRUE)


Does anyone have any idea what could have gone wrong? How do I see the intermediate steps? I get no error messages.



Thanks!










share|improve this question
























  • I don't know the package, but there are a lot of options in ?exams2nops, have you pored over this? A quick glance shows: "Note that the font in the PDF must not be modified for the reading step to work reliably. (A sans-serif font is used and hence the codesfmath LaTeX package is also used - if it is installed.)", perhaps your latex installation is missing sfmath?

    – MichaelChirico
    Mar 8 at 9:56






  • 1





    Thanks for the hint. Something was missing in my TinyTex installation. It was not sfmath. I moved to MacTex and it works again!

    – André Calero Valdez
    Mar 8 at 10:24


















3















I have been using r/exams in some of my last exams and everything has worked fine. This semester, however, r/exams seems to generate the exams in Times New Roman instead of Helvetica, which messes with the character recognition in the scanning process.



Even the minimal example, produces this behavior:



library("exams")
myexam <- list("cholesky.Rnw")
set.seed(403)
ex1 <- exams2nops(myexam, n = 1,
dir = "nops_pdf", name = "demo", date = "2015-07-29",
points = c(1), showpoints = TRUE)


Does anyone have any idea what could have gone wrong? How do I see the intermediate steps? I get no error messages.



Thanks!










share|improve this question
























  • I don't know the package, but there are a lot of options in ?exams2nops, have you pored over this? A quick glance shows: "Note that the font in the PDF must not be modified for the reading step to work reliably. (A sans-serif font is used and hence the codesfmath LaTeX package is also used - if it is installed.)", perhaps your latex installation is missing sfmath?

    – MichaelChirico
    Mar 8 at 9:56






  • 1





    Thanks for the hint. Something was missing in my TinyTex installation. It was not sfmath. I moved to MacTex and it works again!

    – André Calero Valdez
    Mar 8 at 10:24














3












3








3








I have been using r/exams in some of my last exams and everything has worked fine. This semester, however, r/exams seems to generate the exams in Times New Roman instead of Helvetica, which messes with the character recognition in the scanning process.



Even the minimal example, produces this behavior:



library("exams")
myexam <- list("cholesky.Rnw")
set.seed(403)
ex1 <- exams2nops(myexam, n = 1,
dir = "nops_pdf", name = "demo", date = "2015-07-29",
points = c(1), showpoints = TRUE)


Does anyone have any idea what could have gone wrong? How do I see the intermediate steps? I get no error messages.



Thanks!










share|improve this question
















I have been using r/exams in some of my last exams and everything has worked fine. This semester, however, r/exams seems to generate the exams in Times New Roman instead of Helvetica, which messes with the character recognition in the scanning process.



Even the minimal example, produces this behavior:



library("exams")
myexam <- list("cholesky.Rnw")
set.seed(403)
ex1 <- exams2nops(myexam, n = 1,
dir = "nops_pdf", name = "demo", date = "2015-07-29",
points = c(1), showpoints = TRUE)


Does anyone have any idea what could have gone wrong? How do I see the intermediate steps? I get no error messages.



Thanks!







r exams






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 9:50







André Calero Valdez

















asked Mar 8 at 9:41









André Calero ValdezAndré Calero Valdez

184




184












  • I don't know the package, but there are a lot of options in ?exams2nops, have you pored over this? A quick glance shows: "Note that the font in the PDF must not be modified for the reading step to work reliably. (A sans-serif font is used and hence the codesfmath LaTeX package is also used - if it is installed.)", perhaps your latex installation is missing sfmath?

    – MichaelChirico
    Mar 8 at 9:56






  • 1





    Thanks for the hint. Something was missing in my TinyTex installation. It was not sfmath. I moved to MacTex and it works again!

    – André Calero Valdez
    Mar 8 at 10:24


















  • I don't know the package, but there are a lot of options in ?exams2nops, have you pored over this? A quick glance shows: "Note that the font in the PDF must not be modified for the reading step to work reliably. (A sans-serif font is used and hence the codesfmath LaTeX package is also used - if it is installed.)", perhaps your latex installation is missing sfmath?

    – MichaelChirico
    Mar 8 at 9:56






  • 1





    Thanks for the hint. Something was missing in my TinyTex installation. It was not sfmath. I moved to MacTex and it works again!

    – André Calero Valdez
    Mar 8 at 10:24

















I don't know the package, but there are a lot of options in ?exams2nops, have you pored over this? A quick glance shows: "Note that the font in the PDF must not be modified for the reading step to work reliably. (A sans-serif font is used and hence the codesfmath LaTeX package is also used - if it is installed.)", perhaps your latex installation is missing sfmath?

– MichaelChirico
Mar 8 at 9:56





I don't know the package, but there are a lot of options in ?exams2nops, have you pored over this? A quick glance shows: "Note that the font in the PDF must not be modified for the reading step to work reliably. (A sans-serif font is used and hence the codesfmath LaTeX package is also used - if it is installed.)", perhaps your latex installation is missing sfmath?

– MichaelChirico
Mar 8 at 9:56




1




1





Thanks for the hint. Something was missing in my TinyTex installation. It was not sfmath. I moved to MacTex and it works again!

– André Calero Valdez
Mar 8 at 10:24






Thanks for the hint. Something was missing in my TinyTex installation. It was not sfmath. I moved to MacTex and it works again!

– André Calero Valdez
Mar 8 at 10:24













1 Answer
1






active

oldest

votes


















2














Starting from R/exams version 2.3-2 (the current CRAN version at the time of writing) it is enforced that the digits that need to be scanned are always in Helvetica (fontfamilyphv) even if the font is switched for the rest of the document.



I'm not sure though which package might have been the culprit in switching the fonts for you when using TinyTex. But I guess it would be useful to find out if others encounter the same problem.



I just went through the source code of exams2nops() to check what packages we use. Partly for historical reasons there are quite a few. Possibly these could also be streamlined.



  • Basic tools: graphicx, color, amsmath, amssymb, latexsym.

  • For compatibility with Sweave: verbatim, url, fancyvrb, ae.

  • Layout etc.: multicol, a4wide, pdfpages, chngpage.

  • For compatibility with LaTeX produced by pandoc from Markdown: booktabs, longtable, eurosym, textcomp.





share|improve this answer























  • Since exams uses tools::texi2dvi(), it cannot take full advantage of tinytex and TinyTeX. If you switch to tinytex::latexmk(), missing LaTeX packages will be automatically installed in TinyTeX.

    – Yihui Xie
    Mar 13 at 19:57











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55060465%2fr-exams-nops-generates-documents-in-times-new-roman-which-then-fail-during-scan%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Starting from R/exams version 2.3-2 (the current CRAN version at the time of writing) it is enforced that the digits that need to be scanned are always in Helvetica (fontfamilyphv) even if the font is switched for the rest of the document.



I'm not sure though which package might have been the culprit in switching the fonts for you when using TinyTex. But I guess it would be useful to find out if others encounter the same problem.



I just went through the source code of exams2nops() to check what packages we use. Partly for historical reasons there are quite a few. Possibly these could also be streamlined.



  • Basic tools: graphicx, color, amsmath, amssymb, latexsym.

  • For compatibility with Sweave: verbatim, url, fancyvrb, ae.

  • Layout etc.: multicol, a4wide, pdfpages, chngpage.

  • For compatibility with LaTeX produced by pandoc from Markdown: booktabs, longtable, eurosym, textcomp.





share|improve this answer























  • Since exams uses tools::texi2dvi(), it cannot take full advantage of tinytex and TinyTeX. If you switch to tinytex::latexmk(), missing LaTeX packages will be automatically installed in TinyTeX.

    – Yihui Xie
    Mar 13 at 19:57















2














Starting from R/exams version 2.3-2 (the current CRAN version at the time of writing) it is enforced that the digits that need to be scanned are always in Helvetica (fontfamilyphv) even if the font is switched for the rest of the document.



I'm not sure though which package might have been the culprit in switching the fonts for you when using TinyTex. But I guess it would be useful to find out if others encounter the same problem.



I just went through the source code of exams2nops() to check what packages we use. Partly for historical reasons there are quite a few. Possibly these could also be streamlined.



  • Basic tools: graphicx, color, amsmath, amssymb, latexsym.

  • For compatibility with Sweave: verbatim, url, fancyvrb, ae.

  • Layout etc.: multicol, a4wide, pdfpages, chngpage.

  • For compatibility with LaTeX produced by pandoc from Markdown: booktabs, longtable, eurosym, textcomp.





share|improve this answer























  • Since exams uses tools::texi2dvi(), it cannot take full advantage of tinytex and TinyTeX. If you switch to tinytex::latexmk(), missing LaTeX packages will be automatically installed in TinyTeX.

    – Yihui Xie
    Mar 13 at 19:57













2












2








2







Starting from R/exams version 2.3-2 (the current CRAN version at the time of writing) it is enforced that the digits that need to be scanned are always in Helvetica (fontfamilyphv) even if the font is switched for the rest of the document.



I'm not sure though which package might have been the culprit in switching the fonts for you when using TinyTex. But I guess it would be useful to find out if others encounter the same problem.



I just went through the source code of exams2nops() to check what packages we use. Partly for historical reasons there are quite a few. Possibly these could also be streamlined.



  • Basic tools: graphicx, color, amsmath, amssymb, latexsym.

  • For compatibility with Sweave: verbatim, url, fancyvrb, ae.

  • Layout etc.: multicol, a4wide, pdfpages, chngpage.

  • For compatibility with LaTeX produced by pandoc from Markdown: booktabs, longtable, eurosym, textcomp.





share|improve this answer













Starting from R/exams version 2.3-2 (the current CRAN version at the time of writing) it is enforced that the digits that need to be scanned are always in Helvetica (fontfamilyphv) even if the font is switched for the rest of the document.



I'm not sure though which package might have been the culprit in switching the fonts for you when using TinyTex. But I guess it would be useful to find out if others encounter the same problem.



I just went through the source code of exams2nops() to check what packages we use. Partly for historical reasons there are quite a few. Possibly these could also be streamlined.



  • Basic tools: graphicx, color, amsmath, amssymb, latexsym.

  • For compatibility with Sweave: verbatim, url, fancyvrb, ae.

  • Layout etc.: multicol, a4wide, pdfpages, chngpage.

  • For compatibility with LaTeX produced by pandoc from Markdown: booktabs, longtable, eurosym, textcomp.






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 8 at 22:15









Achim ZeileisAchim Zeileis

6,62612027




6,62612027












  • Since exams uses tools::texi2dvi(), it cannot take full advantage of tinytex and TinyTeX. If you switch to tinytex::latexmk(), missing LaTeX packages will be automatically installed in TinyTeX.

    – Yihui Xie
    Mar 13 at 19:57

















  • Since exams uses tools::texi2dvi(), it cannot take full advantage of tinytex and TinyTeX. If you switch to tinytex::latexmk(), missing LaTeX packages will be automatically installed in TinyTeX.

    – Yihui Xie
    Mar 13 at 19:57
















Since exams uses tools::texi2dvi(), it cannot take full advantage of tinytex and TinyTeX. If you switch to tinytex::latexmk(), missing LaTeX packages will be automatically installed in TinyTeX.

– Yihui Xie
Mar 13 at 19:57





Since exams uses tools::texi2dvi(), it cannot take full advantage of tinytex and TinyTeX. If you switch to tinytex::latexmk(), missing LaTeX packages will be automatically installed in TinyTeX.

– Yihui Xie
Mar 13 at 19:57



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55060465%2fr-exams-nops-generates-documents-in-times-new-roman-which-then-fail-during-scan%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved