Forum: support
Monitor Forum | | RE: Rexams not working with \\tdplotsetmaincoords [ Reply ] By: Achim Zeileis on 2026-06-28 02:09 | [forum:50170] |
|
You can use the header argument, see ?tex2image for more details. The default header is header = c("\\usepackage{helvet}", "\\IfFileExists{sfmath.sty}{\\RequirePackage[helvet]{sfmath}}{}", "\\renewcommand{\\sfdefault}{phv}", "\\renewcommand{\\rmdefault}{phv}") which switches the default font from serif to sansserif (Helvetica). |
|
| RE: Rexams not working with \\tdplotsetmaincoords [ Reply ] By: Javier Cano on 2026-06-28 01:56 | [forum:50169] |
|
OK, I'll do that. Just one final question (and apologies for taking advantage of your valuable time). When I try to do the same with the `pgfplots` package, i.e. `packages = c("tikz-3dplot", "pgfplots")` I get the following warning message: > Package pgfplots Warning: running in backwards compatibility mode (unsuitable tick labels; missing features). Consider writing `\pgfplotsset{compat=1.18}` into your preamble on input line 15. How can I specify the required `pgfplots` compatibility version in this context? Kind regards, Javier |
|
| RE: Rexams not working with \\tdplotsetmaincoords [ Reply ] By: Achim Zeileis on 2026-06-28 01:50 | [forum:50168] |
|
That is up to you. When I was still active on StackOverflow, I would have tried to - get the helpful answer undeleted - modify the helpful answer to include the missing piece of the puzzle - accept the helpful answer But now I think that this is a futile battle because there are too many gatekeepers who care more about feeling important than actually helping anybody. |
|
| RE: Rexams not working with \\tdplotsetmaincoords [ Reply ] By: Javier Cano on 2026-06-28 01:44 | [forum:50167] |
|
OMG, that was such a simple solution! I'm sure I came across something along these lines while searching through different forums, but I never managed to get it working. Thank you very much for your helpful response. Would you like me to include your solution in the Stack Overflow post and mark the issue as resolved? Kind regards, Javier |
|
| RE: Rexams not working with \\tdplotsetmaincoords [ Reply ] By: Achim Zeileis on 2026-06-28 01:38 | [forum:50166] |
|
The answer on StackOverflow got pretty close to this. The person writing the answer just wasn't aware of how LaTeX packages (as opposed to tikz libraries) could be loaded in include_tikz(). The fact that this useful answer got deleted just shows again how unhelpful StackOverflow has become. One could have thought that with the rapidly declining traffic on StackOverflow the quality of the gatekeeping would have improved. However, the opposite seems to be the case. That is why I'm posting no longer on StackOverflow. |
|
| RE: Rexams not working with \\tdplotsetmaincoords [ Reply ] By: Achim Zeileis on 2026-06-28 01:32 | [forum:50165] |
|
You just need to load the "tikz-3dplot" package (which is not a tikz library): include_tikz(tz, packages = "tikz-3dplot", ...) The "packages" argument is not an argument of include_tikz() directly but can be passed through to tex2image() which is the underlying workhorse function. |
|
| Rexams not working with \\tdplotsetmaincoords [ Reply ] By: Javier Cano on 2026-06-27 23:55 | [forum:50164] |
|
I have just posted a question on Stack Overflow https://stackoverflow.com/questions/79965174/rexams-working-with-tdplotsetmaincoords. Are you aware of any issues related to the use of tikz-3dplot, or more specifically the \tdplotsetmaincoords command, within r-exams? Kind regards, and thank you very much in advance. Javier Cano |
|

