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
LATEX(1)						      General Commands Manual							  LATEX(1)

NAME
latex, elatex, lambda, pdflatex - structured text formatting and typesetting SYNOPSIS
latex [first-line] 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 LaTeX language is described in the book LaTeX - A Document Preparation System. LaTeX is a TeX macro package, not a modification to the TeX source program, so all the capabilities described in tex(1) are present. The LaTeX macros encourage writers to think about the content of their documents, rather than the form. The ideal, very difficult to real- ize, is to have no formatting commands (like ``switch to italic'' or ``skip 2 picas'') in the document at all; instead, everything is done by specific markup instructions: ``emphasize'', ``start a section''. The primary source of documentation for LaTeX is the LaTeX manual referenced below, and the local guide in the file local-guide.tex or local.tex or some such. elatex is the e-TeX extended mode version of LaTeX format. lambda is the Omega version of the LaTeX format. pdflatex is the pdfTeX version of the LaTeX format. On some systems latex209 and slitex are available for compatibility with older versions of LaTeX. These should not be used for new texts. SEE ALSO
amslatex(1), amstex(1), pdflatex(1), pdftex(1), tex(1). Leslie Lamport, LaTeX - A Document Preparation System, Addison-Wesley, 1985, ISBN 020115790X. Frank Mittelbach, Michel Goossens, Johannes Braams, David Carlisle, and Chris Rowley, LaTeX Companion, Addison-Wesley, 2004, ISBN 0201362996 (2nd edition). LaTeX Graphics Companion, available as part of a boxed set: The LaTeX Companions, Revised Boxed Set : A Complete Guide and Reference for Preparing, Illustrating, and Publishing Technical Documents (2nd Edition), by Frank Mittelbach, Michel Goossens, Sebastian Rahtz, Helmut Kopka, Patrick W. Daly (Addison-Wesley, 2004, ISBN 0321269446). Web2C 2012 14 May 2010 LATEX(1)
All times are GMT -4. The time now is 12:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy