R/exams NOPS generates documents in Times New Roman, which then fail during scanningGenerate 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

Confused about a passage in Harry Potter y la piedra filosofal

Can a monster with multiattack use this ability if they are missing a limb?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

There is only s̶i̶x̶t̶y one place he can be

Is a roofing delivery truck likely to crack my driveway slab?

when is out of tune ok?

Why "be dealt cards" rather than "be dealing cards"?

The plural of 'stomach"

Ways to speed up user implemented RK4

Why Were Madagascar and New Zealand Discovered So Late?

voltage of sounds of mp3files

Why is delta-v is the most useful quantity for planning space travel?

Go Pregnant or Go Home

Can somebody explain Brexit in a few child-proof sentences?

Opposite of a diet

Personal Teleportation as a Weapon

How do I define a right arrow with bar in LaTeX?

What is the oldest known work of fiction?

Hide Select Output from T-SQL

Is there any easy technique written in Bhagavad GITA to control lust?

Was the picture area of a CRT a parallelogram (instead of a true rectangle)?

Why are on-board computers allowed to change controls without notifying the pilots?

Is there an Impartial Brexit Deal comparison site?

Lay out the Carpet



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


Generate 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













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,54112027




6,54112027












  • 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

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived