Closed jamarav closed 3 years ago
Ok. I found the problem. It seems that with the current version in cran we can't include .tex
files with \input{}
function in the preamble. Probably, this functionality is only included in the development version. I attached the tikzStringWidthCalc.log file (
tikzStringWidthCalc.log
).
For the moment I will avoid using these types of functions in the preamble until a new stable version is released and use the version in cran. Of course I need to install my custom *.cls
class in my latex distribution in order to use the cran version. I tried with the developement version and works for me without install the *.cls
class in my latex distribution (It is located in the main folder with my main.Rnw
file). It seems another difference between the development version and the version in cran.
Just a suggestion, in order to improve the use of the tikzDevice plotting from child document, It would be possible to print figures without having to change to the main path? (print tikz plots directly in the child documents located in different subdirectories)
At this time, I solved this with my printTikz() function attached above:
printTikz = function(p, current_wdirectory) {
setwd(base_directory)
print(p)
setwd(current_wdirectory)
}
Ok, now I can print tikz figures from any subdirectory without the printTikz()
function attached above. The only requirement is to install de custom *.cls
in the latex distribution. With the development version it is not necessary to install, but we need to locate *.cls
file in the main folder. I had problems printing from child documents because I didn't put a copy of the *.cls
file in the subdirectories of the child documents.
Definitely, the best thing is to install the *.cls
class in our latex distribution
Hi everybody,
I would like to report my expirience with the tikzDevice because I am experiencing problems with the cran version.
I'm writing my phD with knitr and plotting with ggplot and tikzDevice and I only can use the tikzDevice package building it from the master branch. I'm not sure which is the difference between the tikzDevice package version 0.12.3.2 and 0.12.3.1 (cran repository) but the version in the cran repository doesn't works for me.
Probably the reason is that I divide the phD in different
*.Rnw
files and I use a custom*.cls
class (installed in my texlive distribution). I have amain.Rnw
in the main directory and then different*.Rnw
files (chapters) placed in different subdirectories.With this background, I'm able to work propertly with the tikzDevice built from the master branch. The only requirement is set the main directory in R before plotting with the tikzDevice (When I plot in the child documents). I use this function:
I would like to know if there are any major changes between the development version and the version in the cran repository that explain this strange behaviour. I don't understand why it works in one case and not in the other.
As an example this is an error if I use the version from the cran repository (it works with the development version):
However if I run the
tikzTest()
funtion I don't get any error:This is my session info: