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
DVIPOS(1)							      ConTeXt								 DVIPOS(1)

NAME
dvipos - compute positions in a DVI file SYNOPSIS
dvipos [ OPTION... ] infile[.dvi] DESCRIPTION
dvipos parses a DVI file looking for pos: specials. It currently recognizes pos:pxy, pos:pxywhd, pos:pxyplus, pos:begbox, pos:endbox, pos:beglines, and pos:endlines. It then outputs the information from those specials along with information that only a DVI postprocessor could determine, such as the current x and y location. The output looks like: pospxywhd{text:54}{54}{10663sp}{8535sp}{21326sp}{34081sp}{0sp} and is suitable for including in a tex(1) or pdftex(1) auxilliary file, such as document.tuo, to be read in by the next run of the tex(1) or similar typesetting engine. OPTIONS
-h, --help print usage. -W, --warning print warnings. -v, --verbose print verbose output. -d, --debug print dvitype(1) debugging data. -s, --smashchars regard height and depth as zero. -o, --output=FILE send all output to FILE. Without this option, output goes to stdout. -b, --bbox[=FILE] send bounding box to FILE (default FILE is infile.pos). -f, --framed[=BASE] request copy of DVI file, BASE.dvi, with bounding boxes framed (default FILE is infile_frames.dvi). See the --framesize option. -m, --mag=INT override tex(1) magnification by INT. -w, --framesize=INT set frame rule size by INT (default 6554 = .1pt). -p, --pages=X:Y set page ranges from X to Y. USAGE
dvipos is run mostly behind the scenes by ConTeXt's texexec(1) between runs of tex(1) or pdftex(1), in order to provide information to and get information about positional graphics. These graphics are provided by the MetaFun interface to mpost(1). dvipos is not used (or needed) in PDF-output mode but is needed for DVI-output mode. pdftex(1) starting with version 1.40 can produce position information even in DVI mode, so once the ConTeXt macros take advantage of this feature, the need for dvipos will fade. Until then, here is a typical use of dvipos: dvipos notes.dvi The position information that is output is collected by texexec(1) to include in the notes.tuo auxilliary file to use in the next run. EXAMPLES
Extract positions from doc.dvi, with output to doc.loc: dvipos -o doc.loc doc.dvi Same as above, but also send bbox information to doc.pos: dvipos -b -o doc.loc doc.dvi Instead send bbox information to /tmp/debug.pos: dvipos -b=/tmp/debug.pos -o doc.loc doc.dvi SEE ALSO
dvips(1), dvitype(1), mpost(1), pdftex(1), tex(1), texexec(1). For more about positional graphics, see the MetaFun documentation on the ConTeXt wiki <http://wiki.contextgarden.net/MetaFun>. BUGS
If you specify a file for the -b option, you must join the option and name with = rather than (the more common) space: dvipos -b=/tmp/debug.pos notes.dvi works, but dvipos -b /tmp/debug.pos notes.dvi does not. AUTHOR
dvipos is written by Jin-Hwan Cho <chofchof@ktug.or.kr>. It is free software (GPLv2 or later). This manpage was written by Sanjoy Mahajan <sanjoy@mit.edu> and is in the public domain. dvipos 20070107 (KPATHSEA) January 2007 DVIPOS(1)
All times are GMT -4. The time now is 01:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy