LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Make a single PDF document from 3 PNG pictures with PDFLATEX? (https://www.linuxquestions.org/questions/programming-9/make-a-single-pdf-document-from-3-png-pictures-with-pdflatex-4175587416/)

Xeratul 08-19-2016 06:13 AM

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

kaz2100 08-19-2016 07:35 AM

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

Xeratul 08-19-2016 07:45 AM

Quote:

Originally Posted by kaz2100 (Post 5592978)
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}
}


kaz2100 08-20-2016 12:08 AM

You meant a tex command.
Apology for my misunderstanding.

Xeratul 08-22-2016 04:32 PM

Quote:

Originally Posted by kaz2100 (Post 5593428)
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 ';'.


All times are GMT -5. The time now is 06:40 PM.