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;
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
add a comment |
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
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 missingsfmath
?
– 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
add a comment |
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
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
r exams
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 missingsfmath
?
– 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
add a comment |
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 missingsfmath
?
– 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
add a comment |
1 Answer
1
active
oldest
votes
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.
Since exams usestools::texi2dvi()
, it cannot take full advantage of tinytex and TinyTeX. If you switch totinytex::latexmk()
, missing LaTeX packages will be automatically installed in TinyTeX.
– Yihui Xie
Mar 13 at 19:57
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Since exams usestools::texi2dvi()
, it cannot take full advantage of tinytex and TinyTeX. If you switch totinytex::latexmk()
, missing LaTeX packages will be automatically installed in TinyTeX.
– Yihui Xie
Mar 13 at 19:57
add a comment |
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.
Since exams usestools::texi2dvi()
, it cannot take full advantage of tinytex and TinyTeX. If you switch totinytex::latexmk()
, missing LaTeX packages will be automatically installed in TinyTeX.
– Yihui Xie
Mar 13 at 19:57
add a comment |
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.
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.
answered Mar 8 at 22:15
Achim ZeileisAchim Zeileis
6,62612027
6,62612027
Since exams usestools::texi2dvi()
, it cannot take full advantage of tinytex and TinyTeX. If you switch totinytex::latexmk()
, missing LaTeX packages will be automatically installed in TinyTeX.
– Yihui Xie
Mar 13 at 19:57
add a comment |
Since exams usestools::texi2dvi()
, it cannot take full advantage of tinytex and TinyTeX. If you switch totinytex::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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 missingsfmath
?– 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