Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. Log File: ./build
  2. Pdf File: ./build
  3. Commands ($PATH): /usr/local/texlive/2016/bin/x86_64-darwin
  4.  
  5. documentclass[a4paper,twoside, openright,12pt]{report}
  6.  
  7. graphicspath{
  8. {./figures/tikz/}{./figures/non_tikz/}
  9. }
  10. usepackage{graphicx, color}
  11. usepackage{tikz}
  12. usetikzlibrary{external}
  13. %tikzexternalize[shell escape=-enable-write1 -shell-escape, prefix=./build/]
  14. tikzexternalize[prefix=./tikz_figures/]
  15. %tikzexternalize
  16. usepackage{pgfplots}
  17. pgfplotsset{compat=newest}
  18. %% the following commands are needed for some matlab2tikz features
  19. usetikzlibrary{plotmarks}
  20. usetikzlibrary{arrows.meta}
  21. usepgfplotslibrary{patchplots}
  22. usepackage{grffile}
  23. usepackage{amsmath}
  24.  
  25. usetikzlibrary{arrows.meta}
  26. usepackage{standalone}
  27. input{./figures/tikz/tikz_definitions}
  28.  
  29.  
  30. begin{figure}[H]
  31. centering
  32. includestandalone[width=textwidth]{example}
  33. caption{example caption.}
  34. label{fig:example}
  35. end{figure}
  36.  
  37.  
  38. addcontentsline{toc}{chapter}{Bibliography}
  39. bibliography{references}
  40. bibliographystyle{alphaurl}
  41.  
  42. end{document}
  43.  
  44. Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e
  45. rror -interaction=batchmode -jobname "./tikz_figures/main-figure0" "deftikzex
  46. ternalrealjob{main}input{main}"' did NOT result in a usable output file './tik
  47. z_figures/main-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify
  48. that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-esca
  49. pe'. Sometimes it is also named 'write 18' or something like that. Or maybe the
  50. command simply failed? Error messages can be found in './tikz_figures/main-fig
  51. ure0.log'. If you continue now, I'll try to typeset the picture.
  52.  
  53. main folder
  54. main.tex (main tex file)
  55. references.bib
  56. build (folder)
  57. epstopdf (folder)
  58. tikz_figures (folder
  59. *.aux, *.log, *.pdf, *.toc, (output files)
  60. chapters (folder)
  61. *.tex (tex files)
  62. figures (folder)
  63. non_tikz (folder)
  64. *.png, *.jpg, (all non tikz figures)
  65. tikz (folder)
  66. blocks (folder containing figures for tikz figures)
  67. *.tex (multiple standalone tex files)
  68. *.tikz (multiple tikz files editable with ktiz)
  69. tikz_definitions.tex (one tikz definition file)
  70.  
  71. usepackage{tikz}
  72.  
  73. usetikzlibrary{arrows}
  74.  
  75. pgfdeclarelayer{background}
  76. pgfdeclarelayer{foreground}
  77. pgfsetlayers{background,main,foreground}
  78.  
  79. definecolor{oneColor}{RGB}{47,128,0}
  80. definecolor{secondColor}{RGB}{242,30,0}
  81. definecolor{thirdColor}{RGB}{106,178,248}
  82.  
  83. tikzstyle{line} = [dash pattern=on 15pt off 25pt]
  84.  
  85. %% define reusable figure
  86. newcommand{reusablefigure}[4]{
  87. % a figure
  88. begin{pgfonlayer}{foreground}
  89. node[anchor=center, rotate=#4, opacity=0.6, inner sep=0]
  90. (#1) at (#2,#3) {includegraphics[scale=0.8]{blocks/a_figure.pdf}};
  91. end{pgfonlayer}
  92.  
  93. % white background rectangle
  94. begin{pgfonlayer}{main}
  95. begin{scope}[shift=(#1.center), rotate=#4]
  96. fill [white, rounded corners=10pt] (-1.35,-0.53) rectangle (1.35,0.53);
  97. end{scope}
  98. end{pgfonlayer}
  99.  
  100. % coordinate frame
  101. begin{pgfonlayer}{foreground}
  102. begin{scope}[shift=(#1.center), rotate=#4]
  103. draw [<->, thick, color=#1Color]
  104. (-0.8,1.1) node [left] (y) {$y_{#1}$} --
  105. (-0.8,0) --
  106. (2,0) node [below right] (x) {$x_{#1}$};
  107. end{scope}
  108. end{pgfonlayer}
  109. }
  110.  
  111. %% define another reusable figure
  112. newcommand{anotherfigure}[2]{
  113. begin{pgfonlayer}{foreground}
  114. draw [fill=red] (#1,#2) circle (0.07cm);
  115. end{pgfonlayer}
  116. }
  117.  
  118. begin{tikzpicture}[
  119. scale=0.8,
  120. axis/.style={very thick, ->, >=stealth'},
  121. ]
  122.  
  123. % draw lines
  124. draw[line, ultra thick] (0.2textwidth, 4) -- (0.95textwidth, 4);
  125. draw[line, ultra thick] (0.2textwidth, 2) -- (0.95textwidth, 2);
  126.  
  127. % a figure
  128. reusablefigure{name1}{0}{0}{45}
  129.  
  130. % the same figure
  131. reusablefigure{name2}{10}{3}{0}
  132.  
  133.  
  134. % measurements
  135. anotherfigure{1}{1}
  136. anotherfigure{2}{2}
  137. anotherfigure{4}{3}
  138.  
  139. end{tikzpicture}
  140.  
  141. documentclass{standalone}
  142.  
  143. input{tikz_definitions}
  144.  
  145. begin{document}
  146. input{overview.tikz}
  147. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement