Sponsored Content
Full Discussion: Simple Makefile for LaTeX
Top Forums Shell Programming and Scripting Simple Makefile for LaTeX Post 302719875 by lost.identity on Tuesday 23rd of October 2012 09:59:27 AM
Old 10-23-2012
Simple Makefile for LaTeX

I create figures using Gnuplot, but I use terminal epslatex, which produces a .tex file as output. I then latex this .tex file which creates are .dvi file, which I then convert to .ps and finally to an .eps file. Anyway here's what I'm doing in steps

Code:
gnuplot plot.gplt (this writes out figure.tex)
latex figure.tex
dvips figure.dvi
ps2eps -f figure.ps

I was wondering if I could automate this process. perhaps by writing a Makefile? Thanks!
 

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

NAME
melt - compiles Melt sources into DVI, PostScript or PDF files SYNOPSIS
meltbuild [OPTIONS] [OTHER_FILES] MAIN_FILE DESCRIPTION
meltbuild compiles Melt sources (.mlt files) into DVI, PostScript (.ps) or PDF files. It first calls the Melt preprocessor meltpp. It then calls the OCaml compiler, either directly or through Ocamlbuild or Mlpost. The program is linked with the Melt and Latex libraries. The program is then executed, producing .tex files. Then latex or pdflatex is called to produce the document. The MAIN_FILE is the main file of your document. It is the one which will be compiled, executed, and whose produced .tex file will be com- piled. OTHER_FILES will be copied into the _melt directory. They are additional files needed to compile your document, such as modules, class styles or included figures. If one OTHER_FILE has extension .mlt, it will also be pre-processed. Typically, a .mlt file has two usages. The first one is to define val- ues usable by the main .mlt file. The second one is to call the emit function to produce .tex files that can be included in your main .tex file. This is especially useful if your main .tex file is not written in Melt. Note that if you want an OTHER_FILE to be compiled and executed, you have to use it in the MAIN_FILE so that Ocamlbuild links it. If you do not use Ocamlbuild, multi-modules documents are not supported. OPTIONS
-meltpp <binary> Specify the location and name of the Melt pre-processor binary. -latop <binary> Specify the location and name of the Latop binary. -mlpost <binary> Specify the location and name of the Mlpost wrapper binary. -mlpost-no-prelude Do not pass a -latex option to the Mlpost wrapper. By default, the .tex file produced by your Melt document is given to Mlpost so it can compute a prelude to be used when compiling images. This option disables this behavior. The prelude is the contents of the .tex file before the document environment begins. -latex <binary> Specify the latex command to use. -P <path> Specify the location of pre-processor plugins. This option is passed to the Melt pre-processor. -I <path> Look for additional OCaml libraries in the given directory. This option is passed to the OCaml compiler. -L <path> Add a link to the path in the _melt directory. Useful if you don't want to copy the contents of the directory. -classic-display Give the -classic-display option to Ocamlbuild. Useful if your terminal does not handle the Ocamlbuild animation or if you want to keep a trace of the sequence of commands which are called. Has no effect if it is Mlpost that calls Ocamlbuild. -no-mlpost Do not use the Mlpost wrapper, call Ocamlbuild directly instead (or the OCaml compiler if -no-ocamlbuild is given too). Unspecified if your document produces Mlpost images. -no-ocamlbuild Do not use Ocamlbuild to compile your program. The OCaml compiler will be called directly. Usually only makes sense if your source code is made of only one file, and if you are using an OCaml version older than 3.10.2. -no-final Do not produce the final document, i.e. do not call latex. The MAIN_FILE will still be compiled and executed. -no-link By default, a symbolic link to the produced DVI, PS or PDF document is created in the current directory. This option disables this behavior. -native Compile the program to native code bytecode instead of bytecode. -dvi Produce a DVI instead of a PS file. -ps Produce a PS file. This is the default behavior. -pdf Produce a PDF instead of a PS file. -ps2pdf Produce a PS file, then convert it to PDF using ps2pdf. Useful if pdflatex won't compile your document. -cairo Use the Cairo backend of Mlpost, instead of Metapost. Implies -pdf. -mps Use the native MPS backend of Mlpost, instead of Metapost. Implies -pdf. -quiet, -q Be quiet. Less messages will be printed on the terminal, if any. -continue Continue on errors. -fake, -n Do not actually execute commands. Useful if you want to know what the Melt tool would execute to compile your document. -melt-dir <path> Change the name used for the _melt directory. -clean Remove the _melt directory and, if not -no-link, all symbolic links of the current directory linking into _melt. Cleaning is done before anything else. -version Print the version number of Melt. -- Pass the remaining arguments to the generated program. -help, --help Display the list of options SEE ALSO
meltpp(1), latop(1), mlpost(1), ocamlc(1), ocamlbuild(1), latex(1), pdflatex(1). AUTHOR
Melt was written by Romain Bardou. Contributors include Vincent Aravantinos, Francois Bobot, Pierre Chambart and Arnaud Spiwack. This manual page was written by Romain Bardou (but may be used by others). September 2010 MELTBUILD(1)
All times are GMT -4. The time now is 02:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy