Sponsored Content
Full Discussion: Simple Makefile for LaTeX
Top Forums Shell Programming and Scripting Simple Makefile for LaTeX Post 302720221 by Corona688 on Tuesday 23rd of October 2012 03:50:17 PM
Old 10-23-2012
You could use suffix rules I suppose.

Code:
.gnuplot.tex:
        gnuplot $<
        mv figure.tex $@

.tex.dvi:
        dvips $<

.dvi.ps:
        ps2eps -f $<

Note that the eight spaces in front of some things are tabs and must be tabs for the makefile to work.

Put it in the same directory, named Makefile.

Then you can do make plot.ps and it will follow the chain of logic back to plot.gnuplot and generate the appropriate files in turn.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Printing documents using LaTeX

Hi I want to know how to give a file for printing using Latex formatting also where can I get the latex s/w . Thanks in advance (1 Reply)
Discussion started by: gosavi_ganesh
1 Replies

2. Debian

vi 7.0 and latex

Hi, In the new version of VIM that I am using, the sections, subsections are collapsed as shown below: +-- 36 lines: \subsection*{Aim}------------------------- If I press space on the above line, the subsection will be expanded, but I have to do it every time I open the file. Is there... (0 Replies)
Discussion started by: superuser84
0 Replies

3. Programming

Makefile very simple question.

Hi I tried many times and I dont know what the he... is going on. Problem: I hava in /home/marcin/c1_menu/ this file: menu_item_data.c I want to compile this file. so I tried something like this CC=gcc LIBS=-lmenu -lncurses RM=rm BINS=menu_item_data %: %.o ${CC} -o $@... (1 Reply)
Discussion started by: marcintom
1 Replies

4. Programming

Simple Makefile Problem (with a dependency)

Hi all, I have 4 '.cpp' files and 1 header files: Tools.cpp Code1.cpp Code2.cpp Code3.cpp and Tools.hh Now all Code1.cpp, Code2.cpp, Code3.cpp use functions stored in Tools.cpp. Currently, what I do to compile all of them is using this simple shell script: (1 Reply)
Discussion started by: monkfan
1 Replies

5. UNIX for Advanced & Expert Users

Makefile problem - How to run module load in a Makefile

Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error: make: module: command not found Why is this? Is there any way to run this command in a Makefile? NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies

6. Slackware

latex-ucs

Hi! I am using Slackware 12.1 and I have a question regarding LaTeX. I am trying to use the package ucs, so that I can write in greek, but with no success. In Debian there is a package latex-ucs.deb that does the trick. Is there something similar in Slackware? Thanks in advance (1 Reply)
Discussion started by: kerb41
1 Replies

7. UNIX for Advanced & Expert Users

Makefile executing another Makefile first?

I have 2 libraries in 2 different directories that I build with Makefiles. library B depends on library A. If I modify a .cpp file in library A and run lib B's Makefile can I have B's makefile to automatically rebuild library A? I am now rebuilding A, followed by B... but I'd like B to... (0 Replies)
Discussion started by: wwuster
0 Replies

8. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies
DVITYPE(1)                                                    General Commands Manual                                                   DVITYPE(1)

NAME
dvitype, odvitype - translate a dvi file for humans SYNOPSIS
dvitype dvi_name[.dvi] DESCRIPTION
This manual page is not meant to be exhaustive. The complete documentation for this version of TeX can be found in the info file or manual Web2C: A TeX implementation. The dvitype program translates a DVI (DeVice Independent) file output by (for example) tex(1) or gftodvi(1), to a file that humans can read. It also serves as a DVI file-validating program (i.e., if dvitype can read it, it's correct) and as an example of a DVI-reading pro- gram for future device drivers. The output file can include all commands, just the important ones, or none at all (in which case only errors are reported). A subinterval of pages may be selected for transliteration; the magnification and resolution of the ``output device'' may be changed; and so on. All options are specified with an on-line dialog. The .dvi extension is supplied if omitted from dvi_name. The output goes to stdout. OPTIONS
-dpi=REAL Set resolution to REAL pixels per inch; default 300.0. -magnification=NUMBER Override existing magnification with NUMBER. -max-pages=NUMBER Process NUMBER pages; default one million. -output-level=NUMBER Verbosity level, from 0 to 4; default 4. -page-start=PAGE-SPEC Start at PAGE-SPEC, for example `2' or `5.*.-2'. -show-opcodes Show numeric opcodes (in decimal). ENVIRONMENT
The environment variable TEXFONTS is used to search for the TFM files used in the DVI file. See tex(1) for the details of the searching. If TEXFONTS is not set, it uses the system default. SEE ALSO
gftype(1), pktype(1). Donald E. Knuth, TeX for nroffware. AUTHORS
Donald E. Knuth wrote the program. It was published as part of the TeX for nroffware technical report, available from the TeX Users Group. Howard Trickey and Pavel Curtis originally ported it to Unix. Web2C 2012 19 December 1994 DVITYPE(1)
All times are GMT -4. The time now is 06:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy