General ⇒ Create text file during compile?
-
stringkarma
- Posts: 7
- Joined: Tue Jun 23, 2009 10:59 pm
Create text file during compile?
I have been very happy with Beamer and have started to use it for all of my presentations. I have found an excellent viewer called Impressive for viewing the presentation. Now I am getting a little tired of making the .info file that tells impressive what slide transitions to use and which slides to omit from the overview.
To attempt to fix this I want to make a package that can be used to generate the .info file (which is just an ascii text file) during compile time. It seems that all I need is some LaTeX command which can write to a file (analogous to >> in bash). It seems that some functionality must exist as aux and out files are produced.
I have seen the \typeout command but how could this be used to send to a file rather than the terminal?
Thanks for any help on this or any other thoughts on my Impressive package.
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: Create text file during compile?
http://www.latex-community.org/forum/vi ... f=5&t=1046
Re: Create text file during compile?
If you do it from the commandline, then you could just write a bashscript with two lines-- one which compiles the latex files and one which writes your desired output.
I'm guessing you would have thought of this if you do it from the command line, but I find myself missing easy solutions so I thought I would still post.
Another alternative might be to use perltex.
-
stringkarma
- Posts: 7
- Joined: Tue Jun 23, 2009 10:59 pm
Re: Create text file during compile?
-
josephwright
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Create text file during compile?
Code: Select all
\newwrite\mywriteCode: Select all
\edef\mywritename{\jobname.info}
\immediate\openout\mywrite\mywritenameCode: Select all
\immediate\write\mywrite{<balanced text>}