Questions tagged [write-file]

50 questions
11
votes
3 answers

How to read a character one by one from an external file, modify it, and save it back to another external file?

The purpose of this question is to learn how to read character by character of a fetched line of characters, modify it and save back to another file. For the sake of simplicity, let's take a simple application which is encrypting an external text…
9
votes
1 answer

How to write the \columnwidth to an external file

Some figures in my LaTeX document I am generating with Python. Normally I manually check how wide my picture can be with \showthe\columnwidth and adjust the image width accordingly. (This whole is important for not resizing text labels) Is there a…
Peter Smit
  • 14,035
3
votes
1 answer

How to use many \write to write text on just one line?

I have to use many write commands to write to the temporary file as follows \newwrite\tempfile \immediate\openout\tempfile=tempt.txt \immediate\write\tempfile{data 1} \immediate\write\tempfile{data 2} \immediate\write\tempfile{data…
StackUser
  • 195
3
votes
1 answer

How to get relative position of text in a latex produced document

I am trying to write a custom command eins such that when you have \eins{id}{text} , it outputs the relative box position and depth and height of text in mm (or points) within the printed document together with an identifier that tells me which…
xor007
  • 133
3
votes
1 answer

Is it possible to change jobname from within the input file?

Possible Duplicate: How to influence the name of the pdf file created with pdfLaTeX (from within the source code)? I have a template as follows. %…
Display Name
  • 46,933
0
votes
0 answers

Problem set with separate hints and answers in latex

I'm making a problem set for a math course in latex. Each problem has a hint and an answer, both should be found at the very end of the document. But for easy editing I want to be able to type problems/hints/answers in the same place in the source…
Jompa
  • 75