Replies: 6 comments 9 replies
-
Quick thought about the environment issue: have you considered using Windows Subsystem Linux (WSL) or Devcontainer (Docker)? Mostly via Visual Studio Code which natively supports those environments. (Positron might work as well but I did not try it yet) For the HTML/PDF, conditional contents is there for that. |
Beta Was this translation helpful? Give feedback.
-
Thx for the reply. On the environment: it is way too complex for me to consider such a fundamental change to my work. I'm happy with RStudio (2024.09.0+375). I do know about HTML/PDF conditional contents and have used these in some places. But I've got to get LaTeX working with this project. |
Beta Was this translation helpful? Give feedback.
-
Hi @friendly !
I remember when writing a book with them, we could ask some TeX question their help desk. At the time they had some issue in the .cls file provided that needed to be solved (but it was written with bookdown not Quarto). Though we needed to ask them .tex question and not Quarto question. Looking for help to hire, I am not sure the Quarto forum as a place for such thing to be visible; So I hope you'll find some help but you should also try to ask elsewhere too.
This is the one that will be used to create the final .tex and load different partials (e.g.
Yes - if you let Quarto build the PDF for you, then it is not possible to let MikTeX prompt you as a user. Quarto + TinyTeX does have support for automatic package installation when missing, but it does not prompt. I don't know if you can configure MikTeX that way. If you are confortable with LaTeX compilation, and you wan't to do that yourself, you should also be able to let Quarto produce a .tex file only ( However, just to be clear, MikTeX is supported. Just not the prompt to user for missing packages. So all required packages should be available beforehand when you'll run a
If you want help for TinyTeX to run on your system, please do open a discussion at https://github.com/rstudio/tinytex and I'll be happy to help
I am no LaTeX expert here, so I am not sure where those modification should be done. I have already mentioned some options above, but this make me thing also about what you can do inside the document.
As mentioned conditional content is helpful here to remove content in some output format and not others. If you are using knitr engine to create some figures or HTML rendering, know that it should handle non HTML content by trying to make a screenshot of the interactive figure using webshot2 or webshot R package. There is also feature to condition your computation based on output format
I hope this helps. And I wish you to find the hire you are looking for your book. Thanks for using Quarto !! |
Beta Was this translation helpful? Give feedback.
-
@cderv Another gotcha was that installing Yet another is that one cannot easily have two TeX systems on Windows, but it is possible to switch between them by changing their order in the system It would be great to have a public document on this problem, so I can start a discussion on https://github.com/rstudio/tinytex |
Beta Was this translation helpful? Give feedback.
-
Progress report: I was able to get MikTeX working to compile my book, but it was quite tedious. For the record (or anyone else with this problem):
Questions: Note that Clearly, I need a How can I change the name of the output files from
|
Beta Was this translation helpful? Give feedback.
-
@friendly I am also writing a book for CRC and have gotten the PDF to build. It was quite tricky, dealing with lots of "partials", but it seems to work OK for now. I'm happy to share the files and chat a bit if you think that would be helpful. You can reach me at my Université de Montréal email, easily findable on the web. |
Beta Was this translation helpful? Give feedback.
-
Description
[Env: Windows 10, Quarto 1.5.53]
I'm not sure this is an appropriate place to make this request, but I can't think of a better one. If inappropriate and you have an idea, please let me know.
I'm working on a new book, Visualizing Multivariate Data and Models in R using Quarto to be published by CRC Press and am running into a considerable number of problems trying to produce a LaTeX/PDF version, no less customize this to my desired.
I'm looking for someone I can hire on a short contract basis to help with this because this is more help than I can ask from the wonderful staff who maintain this discussion list.
For background, I wrote a previous book Discrete Data Analysis with R; (see the online version)
using
.Rnw
format, where I was able to customize the CRC Presskrantz.cls
style considerably to achieve a nice looking book, that I could supply in camera-ready format, complete with visual tables of contents and indices for Subject, Author, Examples.In the new book, using Quarto, I can easily produce an HTML version and publish this to a GitHub site, but I can't even get a LaTeX/PDF version to build reliably.
Problems I need help with
localtexmf
directory and be prompted by MikTeX to install/update packages.Quarto doesn't seem to support MikTeX for this purpose, but prefers
tinytex
based on the TexLive distribution. A main problem I've run into is that the TexLive package manager,tlmgr
doesn't work on my system, so latex packages needed cannot be installed, and the PDF compilation fails.I have ideas for the book design in LaTeX that go beyond what is provided by the default
krantz.cls
style. These include extensive use of color in the text, custom section headers and callouts, ...HTML and PDF output: CRC Press allows me to have an online version of the book and there I can include, e.g., animated GIF images that would not be part of the printed version.
I need some help with setting things up so that some text and figures can be done differently in the HTML and PDF versions.
I'm estimating that solving the TexLive problem would be short, but I'd like some help with the other problems, perhaps 10-20 hours.
Beta Was this translation helpful? Give feedback.
All reactions