Created
May 8, 2012 23:00
-
-
Save tetsuok/2640206 to your computer and use it in GitHub Desktop.
Test dark slide background.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -x | |
| filename=sinx | |
| epsfile=${filename}.eps | |
| tex_master=main.tex | |
| tex_cmd=pdflatex | |
| color=white # color which you want to change to. | |
| gnuplot <<EOF | |
| set terminal postscript eps enhanced color 30 | |
| set output "${epsfile}" | |
| # background | |
| set object 1 rect from graph 0, 0, 0 to graph 1, 1, 0 \ | |
| behind lw 1.0 fc rgb "#000000" fillstyle solid 1.00 border -1 | |
| # border | |
| set border lw 3 lc rgb "${color}" | |
| # grid | |
| set grid lc rgb "${color}" | |
| # tics | |
| set xtics textcolor rgb "${color}" | |
| set ytics textcolor rgb "${color}" | |
| # labels | |
| set xlabel "X" textcolor rgb "${color}" | |
| set ylabel "Y" textcolor rgb "${color}" | |
| # key | |
| set key textcolor rgb "${color}" | |
| plot sin(x) lw 2 lc rgb "green" # test sinx() | |
| EOF | |
| cat <<EOF > ${tex_master} | |
| \documentclass[serif]{beamer} | |
| \usepackage{tikz} | |
| \usefonttheme{structurebold} % bolded fonts | |
| \setbeamercolor{normal text}{bg=black,fg=white} | |
| \setbeamercolor{frametitle}{fg=white} | |
| \setbeamertemplate{navigation symbols}{} %no nav symbols | |
| \title{} | |
| \author{} | |
| \date{} | |
| \begin{document} | |
| \begin{frame} | |
| \frametitle{test} | |
| \begin{center} | |
| \includegraphics[scale=0.8]{${epsfile}} | |
| \end{center} | |
| \end{frame} | |
| \end{document} | |
| EOF | |
| $tex_cmd $tex_master | |
| rm -f *.toc *.snm *.out *.nav *.aux *.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment