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