Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

UsingMakefileToExportPDF

Please categorize this page.
<< | Page list | >>

How you can use a Makefile to create PDF-files from LyX-files

This mail on the users list LyxUsersThread:13877 talks about how, if you have a directory with small LyX-files, you can use a Makefile to convert them into PDF-files.

Here is one solution from LyxUsersPost:13880:

.SUFFIXES: .pdf .lyx

SOURCES = a.lyx b.lyx c.lyx

TARGETS = $(SOURCES:.lyx=.pdf)

.pdf.lyx:
	lyx -e pdf2 $<

all:$TARGETS 


According to LyxUsersPost:13881, GNU make can take wildcards so something like this should work:

LYX_FILES = $(wildcard *.lyx)
PDF_FILES = $(patsubst %.lyx,%.pdf,$(LYX_FILES))

all: $(PDF_FILES)

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2005-12-01 23:20 UTC