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

NAME
sgml2latex - create LaTeX, DVI, PostScript or PDF output from a LinuxDoc DTD SGML source file SYNOPSIS
sgml2latex [generic-option...] [--output=tex|dvi|ps|pdf] [--bibtex] [--makeindex] [--pagenumber=n] --quick [--latex=hlatexp|platex] [--dvips=dvips|dvi2ps] file[.sgml] DESCRIPTION
sgml2latex is an old and obsoleted form of the latex converter command of LinuxDoc-Tools. It is recommended to switch the new form linux- doc -B latex now. It converts a LinuxDoc DTD SGML source file to LaTeX output, using the nsgmls(1) or onsgmls(1) parser, and the sgml- sasp(1) translator. Using the LaTeX output, and the latex(1) text formatter, you can then create DVI output, and PostScript output using the dvips(1) converter. Output will appear in file.tex for LaTeX output, file.dvi for DVI output, or file.ps for PostScript output, where file is the name of the SGML source file. Using the LaTeX output, and the pdflatex(1) text formatter, you can then create a nice PDF output, suitable for viewing with PDF viewers as xpdf(1), acroread(1) or ghostview(1). The attribute/value pair "output=latex2e" is set for conditionals. OPTIONS
sgml2latex accepts all the generic options described in linuxdoc(1), and the following specific options: --output=fmt, -o Specify the desired output format. The specifier fmt may be ``tex'', ``dvi'', ``ps'', or ``pdf''. Note: This version does not overwrite/remove the intermediate files: tex file for dvi output, or tex/dvi files for ps output. This is dif- ferent behavior from the original SGML-Tools 1.0.9, so you are warned here. --bibtex, -b Process the generated TeX with bibtex(1). --makeindex, -m Generate a TeX index file suitable for processing with makeindex(1) from and <idx> and <cdx> tags present in the SGML source. --pagenumber, -n Set the starting page number in the output DVI or PS file. --quick, -q Do only one pass of LaTeX formatting. This is often not sufficient to produce final output (because of references, etc.) but is useful for spotting TeX errors and justification problems. --pass, -P The argument of the pass option is inserted just after the LaTeX preamble generated by the document-type tag. Specify the desired output format. The specifier fmt may be ``tex'', ``dvi'', ``ps'', or ``pdf''. --latex=alternate_latex_command, -x This option is currently for Korean and Japanese. The alternate_latex_command can be ``latex'' (default), ``hlatexp'' (for Korean), ``platex'' or ``jlatex'' (for Japanese). This option can be used to render Korean document using HLaTeXp, or to render Japanese document using pLaTeX/jLaTeX. If not, HLaTeX should be installed to render Korean document. On the other hand, Japanese document can be rendered with jLaTeX (which is the default when ``-c nippon'' is specified), so if you already have jLaTeX, you may not need to install the pLaTeX. --dvips=alternate_dvips_command, -s This option is currently for Japanese. The alternate_dvips_command can be ``dvips'' or ``dvi2ps''. If you don't know this, then you may not need this. file The SGML source file, named either file or file.sgml FILES
Many files and executables in /usr/share/linuxdoc-tools and /usr/bin are used. BUGS
None known. AUTHOR
Originally written by Greg Hankins <greg.hankins@cc.gatech.edu>, based on scripts by Tom Gordon and Alexander Horz. Later rewritten by Cees de Groot <cg@cdegroot.com>. PDF patches by Juan Jose Amor <jjamor@hispalinux.es>. Currently maintained by Taketoshi Sano <sano@debian.org> for Linuxdoc-Tools. SEE ALSO
linuxdoc(1), sgml2html(1), sgml2info(1), sgml2lyx(1), sgml2rtf(1), sgml2txt(1), sgmlcheck(1). 18 May 2000 SGML2LATEX(1)
All times are GMT -4. The time now is 06:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy