Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Converting multiple latex files to pdf Post 302275078 by Element9 on Friday 9th of January 2009 07:20:12 AM
Old 01-09-2009
Converting multiple latex files to pdf

Hi everybody! This is my first post. I am a student and I'm familiarizing myself with linux.

I have lots of directories each containing file called "zadaci.latex". I want to convert them to pdf's and rename them to <directory_name>.pdf.

I read alot on this forum and came up with this script:

#! /bin/bash

Code:
for file in *; do
    if [ -d $file ]; then
       latex $file/zadaci.latex
       dvipdf $file/zadaci.dvi
       mv $file/zadaci.dvi $file/$file.pdf
    fi
done

But latex command creates a file in directory where this script is and man page for latex is not very helpful.
Can somebody help with this?

And is there a solution that uses "find | xargs"?

Last edited by Element9; 01-09-2009 at 08:49 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting ps file to pdf

I have a number of post script files (*.ps) which I need to convert into Pdf. I am using the ps2pdf command for this, but the trouble is that this commands takes only one input at a time. So the command ps2pdf *.ps doesnt work. how can I make a script which will take each .ps file from... (3 Replies)
Discussion started by: jasjot31
3 Replies

2. AIX

AIX converting PDF to PS

my app creates pdf and prints them on windows. I want to run the same app on AIX 5.2. I convert PDF to PS using acroread command. But some options of acroread like landscape etc do not work. I came to know from google that there is bug with acroread for AIX with landscape option. Can you suggest... (3 Replies)
Discussion started by: vinayakshukre
3 Replies

3. UNIX for Dummies Questions & Answers

Converting LATEX PDF to WORD document

Hi there, is it possible to convert pdf files to Word with some free :p software or with some trick??? Now I'm working with LATEX and I can get pdf format but I would like to get .rtf or .doc files too:rolleyes:. Lately I found something like that, but it wasn't free. Thanks for any... (1 Reply)
Discussion started by: Giordano Bruno
1 Replies

4. Shell Programming and Scripting

fetching multiple pdf files from website

I need some help in getting all pdf files from a website after logging into a session. Website requires me to enter my email address then it logs me into a session where it gives me link to download all the pdf files. Is there a way i can automate this using wget or curl? (3 Replies)
Discussion started by: shehzad_m
3 Replies

5. Shell Programming and Scripting

Converting html to pdf perl

Hi All, I have a requirement of converting an html form into pdf using perl. The html form contains images, tables and css implementation. I tried using various perl modules but failed to achive the target. I succeeded in generating a pdf from the html file using... (2 Replies)
Discussion started by: DILEEP410
2 Replies

6. Shell Programming and Scripting

Script for converting a pdf to book format

Hello, excuse my English... I'm trying to do a nautilus-script to transform a normal A4 pdf to another pdf with book format, ready to be printed (double sided). I mean, the script put pages in order and also put 2 pages per horizontal A4 page (p.e.: a pdf with 8 pages would look like: 8-1, 2-7,... (2 Replies)
Discussion started by: dokan
2 Replies

7. Shell Programming and Scripting

Help converting column to row for multiple files

Hi all, I am pretty new at this so be gentle. Also, if there is any chance you could explain what the code you use is actually doing, that would really help me out, Im learning after all :) So I am trying to convert a selected column of numbers from input file1 into a row in output file2 ... (3 Replies)
Discussion started by: StudentServitor
3 Replies

8. UNIX for Dummies Questions & Answers

Converting pdf to jpg in multiple directories?

Hi! On my Ubuntu I have thousands of files in a couple hundred directories. I'm trying to convert the pdf's to jpg's. I used this command in terminal: for fname in *.pdf; do convert $fname ${fname%.pdf}.jpg; doneIt works great but the problem is I have to run this in terminal for each... (2 Replies)
Discussion started by: martinsmith
2 Replies

9. UNIX for Dummies Questions & Answers

Pdftotext from multiple pdf files to a single text file

I have a directory having a number of pdf files. I want to convert all the files to text, stored in a single text file The following creates multiple text files ls *.pdf | xargs -n1 pdftotext (1 Reply)
Discussion started by: kristinu
1 Replies

10. Shell Programming and Scripting

Converting secured pdf files to pdf using acroread

Does anybody have idea of Converting secured pdf files to pdf using acroread ? ---------- Post updated at 04:49 PM ---------- Previous update was at 04:44 PM ---------- This file is not password protected. (4 Replies)
Discussion started by: Soham
4 Replies
LILYPOND-BOOK(1)						   User Commands						  LILYPOND-BOOK(1)

NAME
lilypond-book - manual page for lilypond-book 2.14.2 SYNOPSIS
lilypond-book [OPTION]... FILE DESCRIPTION
Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document. OPTIONS
-F, --filter=FILTER pipe snippets through FILTER [default: `convert-ly -n -'] -f, --format=FORMAT use output format FORMAT (texi [default], texi-html, latex, html, docbook) -h, --help show this help and exit -I, --include=DIR add DIR to include path --info-images-dir=DIR format Texinfo output so that Info will look for images of music in DIR --left-padding=PAD pad left side of music to align music inspite of uneven bar numbers (in mm) --lily-output-dir=DIR write lily-XXX files to DIR, link into --output dir --load-custom-package=PACKAGE Load the additional python PACKAGE (containing e.g. a custom output format) -o, --output=DIR write output to DIR -P, --process=COMMAND process ly_files using COMMAND FILE... -s, --safe Compile snippets in safe mode --skip-lily-check do not fail if no lilypond output is found --skip-png-check do not fail if no PNG images are found for EPS files --use-source-file-names write snippet output files with the same base name as their source file -V, --verbose be verbose --version show version number and exit -w, --warranty show warranty and copyright Options only for the latex and texinfo backends: --latex-program=PROG run executable PROG instead of latex, or in case --pdf option is set instead of pdflatex --pdf create PDF files for use with PDFTeX EXAMPLES
$ lilypond-book --filter="tr '[a-z]' '[A-Z]'" BOOK $ lilypond-book -F "convert-ly --no-version --from=2.0.0 -" BOOK $ lilypond-book --process='lilypond -I include' BOOK REPORTING BUGS
Report bugs via http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs SEE ALSO
The full documentation for lilypond-book is maintained as a Texinfo manual. If the info and lilypond-book programs are properly installed at your site, the command info lilypond-book should give you access to the complete manual. lilypond-book 2.14.2 February 2013 LILYPOND-BOOK(1)
All times are GMT -4. The time now is 11:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy