LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2016, 06:13 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Make a single PDF document from 3 PNG pictures with PDFLATEX?


Hello

would you know how to make a single PDF document from 3 PNG pictures with PDFLATEX with a single command line or bash script?

so far I have a method with lot of echo and >>.

thank you
 
Old 08-19-2016, 07:35 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
Hya

I am not positive, but

I do not think one single command line would not do the job.

A lengthy shell script would do.

I also somewhat think that some of imagemagick/pdfedit\pdfmerge commands would do, (several lines?)

cheers
 
Old 08-19-2016, 07:45 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by kaz2100 View Post
Hya

I am not positive, but

I do not think one single command line would not do the job.

A lengthy shell script would do.

I also somewhat think that some of imagemagick/pdfedit\pdfmerge commands would do, (several lines?)

cheers
with sthg like this?

Code:
\newcommand{\figurewidth}[1]{
\begin{centering}
\includegraphics[keepaspectratio,width=1.0\textwidth]{#1}
\end{centering}
}
 
Old 08-20-2016, 12:08 AM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
You meant a tex command.
Apology for my misunderstanding.
 
Old 08-22-2016, 04:32 PM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by kaz2100 View Post
You meant a tex command.
Apology for my misunderstanding.
its possible to make a echo to some functions, with bash with ls -1 | while read -r i ; do ... and to do some echo to \figurewidth}[$i] with previous header, and later run the pdflatex ; the whole thing into cmd separated by ';'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pdf to .png converter Pedroski Linux - Software 2 05-16-2016 05:44 AM
Using pdftk to get all first pages of many pdf's into one pdf document zest n zeal Linux - Newbie 1 01-15-2008 09:07 AM
How to print/save a bundle of .png files as a single .pdf file satimis Linux - Software 24 08-04-2007 06:05 AM
how to make 'pdflatex' work in my emacs 'auctex-mode' HoreC Linux - Software 2 12-19-2004 02:33 PM
PDF to PNG converter Kostko Linux - Software 10 05-05-2003 06:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration