%%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End:
In order to define the latex command e.g. include -shell-escape you have to add the following line before the End: command into the latex file:
%%% LaTeX-command: "latex -shell-escape"
%%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End:
%%% LaTeX-command: "latex -shell-escape"
\usepackage{titlesec}
\titleclass{\NAME}{option}[\PART]
\newcounter{NAME}
\renewcommand{\theNAME}{\arabic{NAME}}
\titleformat{\NAME}[hang]
{\normalfont } % format of titletext
{{\bf Task \theNAME:} } % command before titletext
{0pt} % spacing after titletext
{} % before code
[] % after code
\titlespacing{\NAME}{0pt}{*4}{*2}
\titlespacing*{command}{left}{before-sep}{after-sep}
For a more detailed description look into the titlesec documentatio, but these are the most important points.
set terminal epslatex set output "test.tex" plot sin(x) set output
\documentclass{standalone}
\usepackage{graphicx}
\begin{document}
\end{document}
epslatexterm(name, xsize, ysize, gnuplotcommand) = sprintf('\
name="%s";\
file=name.".tex";\
set terminal epslatex size %s, %s;\
%s;\
set output name.".tex"; \
replot; \
unset output;\
eval bash(''echo \" \\\\begin{document} \" |cat - ''.file.'' > tmp '');\
eval bash(''echo \" \\\\usepackage{graphicx} \" |cat - tmp > tmp2 '');\
eval bash(''echo \" \\\\documentclass{standalone} \" |cat - tmp2 > tmp '');\
eval bash(''echo \" \\\\end{document} \" |cat tmp - > tmp2 '');\
eval bash("sed ''s/".name."/".name."-inc/g'' tmp2 > ".file );\
eval bash(''mv ''.name.''.eps ''.name.''-inc.eps'');\
eval bash(''rm tmp tmp2 -f'');\
set terminal wxt; \
',name,xsize,ysize,gnuplotcommand)
pdftk original.pdf output new.pdf user_pw PROMPT
convert -density 300 test.pdf test.jpg
pdftk A=input.pdf cat A${PAGES} output output.pdf
man pdftk
\usepackage{xcolor}\colorlet{DarkBlue}{blue!80!black}