Graphics, Figures & Tables ⇒ separate figures from text
separate figures from text
I am printing my thesis which includes figures in colour. Te question is this:
Can I make 2 separate outputs
-one which contains the text only, leaving a blank space for the figures,
-and the other with the figures leaving a blank space for the text?
This way I could print the text in a laser printer, and then print the figures in an inkjet colour printer.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: separate figures from text

It should not be too hard to do, and the advantages justify it. Every office has a fast big laser printer and important people have personal color inkjets that one can borrow. Any ideas????
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
separate figures from text
If so, you should be able to figure this out on your own. I personally have no idea at the moment (and no time to think about).tguozden wrote:[...] It should not be too hard to do, and the advantages justify it. [...]
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: separate figures from text
Thanks and regards
Tomás.-
separate figures from text
Phantom won't work across paragraphs, but I guess you could switch to white text. (Hopefully the color printer won't waste white ink for this. If it does, you might be in trouble.)
So the code below is currently set up to print graphics but not text. To switch to text but not graphics, you'd comment out the \renewcommand line, and the \color line.
Code: Select all
\documentclass{article}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{xcolor}
\newcommand{\toggleimage}[1]{\phantom{\includegraphics{#1}}}
\renewcommand{\toggleimage}[1]{\includegraphics{#1}}
\begin{document}
\color{white}
\lipsum[1]
\toggleimage{myimage}
\lipsum[2]
\end{document}
I don't have access to any kind of color printer most of the time. Does that make me not important? But even if I did, I don't trust such devices to line up perfectly straight or aligned anyway, so I doubt I'd get nice looking results. I also find that a lot of printers jammed on paper already having ink on it.
Re: separate figures from text

I have to print 180 pages with almost the same amount of figures. Hope that the ink printer doesn't mess it all up.
separate figures from text
Code: Select all
\includegraphics[width=4cm]{Figuras/Figus_Intro/davinci.eps}
separate figures from text
Code: Select all
\newcommand{\toggleimage[2] }{\phantom{\includegraphics[#1]{#2}}}
separate figures from text
Code: Select all
\toggleimage[width=4cm]{Figuras/Figus_Intro/galileo_1.eps}
\hspace{5cm}
\toggleimage[width=1cm]{Figuras/Figus_Intro/galileo_2.eps}\hspace{1cm}
Code: Select all
\newcommand{\toggleimage[2] }{\textcolor{white}{.}\phantom{\includegraphics[#1]{#2}}}
This is not an elegant solution but I have just printed 8 pages of my thesis first in the laser printer and after in the ink printer. It worked perfectly. To me this is a wonderful achievement, because I won't have to buy extra black ink cartridges plus I get the text with laser quality.
Thanks very very much.