LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 05-18-2009, 03:29 PM   #16
chr00ted
LQ Newbie
 
Registered: Feb 2009
Location: Southeast Florida
Distribution: Fedora 10
Posts: 3
Thanked: 0

[Log in to get rid of this advertisement]
The m4 file I'm using is (reports.m4):


\documentclass[letterpaper,10pt]{article}
\usepackage{graphicx}
\usepackage{eso-pic}
\setlength{\textwidth}{18.5cm}

\usepackage{fancyhdr}
\pagestyle{fancy}

\addtolength{\headheight}{\baselineskip}
\usepackage[hmargin=1cm,vmargin=2.1cm]{geometry}


\lhead{
\includegraphics[height=0.5in]{/etc/scripts/logo.png}
}
\chead{\leftmark {\bfseries ACME, Inc.}\\ \rightmark{666 Mockingbird Lane; Arlington, TX 76002}}
\rhead{\leftmark{TX Division}\\ \rightmark{(456) 123-1456}}


\begin{document}

\begin{verbatim}
include(reportfile)
\end{verbatim}

\end{document}



I run with a script that does:
m4 -D reportfile=/tmp/whatever.txt /etc/scripts/reports.m4 > /tmp/whatever.tex
pdflatex /tmp/whatever.tex
chr00ted is offline     Reply With Quote
Old 06-16-2009, 03:23 AM   #17
EricPH
LQ Newbie
 
Registered: May 2009
Posts: 2
Thanked: 0
hello,

I don't understand exactly what you did (because mainly, I am completly ignorant of m4 and tex).
Does this script allow to print without any manual operation to a CUPS print queue ?
In this case, where do you put it and how is it called in the CUPS process ?

With great gratitude of your future explanation. :-)
EricPH is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
How to wget a webpage, and save as PDF (like cups-pdf) ? frenchn00b Programming 3 11-18-2008 04:48 PM
PDF printing to cups with many output problems! maginotjr Linux - Server 1 03-06-2008 06:44 AM
cups not printing pdf documents javeree Linux - Software 0 12-07-2004 06:55 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 09:31 AM
Printing option to letterhead johniccp Linux - Newbie 0 04-16-2004 11:24 AM


All times are GMT -5. The time now is 04:43 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration