Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Mathematics
MATLAB, Maple, Mathematica, LaTeX
TeX command write is not inserting new lines where expected
Reply to thread
Message
[QUOTE="Eclair_de_XII, post: 6472380, member: 538457"] [B]TL;DR Summary:[/B] I'm trying to learn how to use the \write command in order to tell TeX to write files. I want to start a new line with each message inserted. According to TeX for the Impatient, whenever the program encounters the character whose charcode is given by the numerical \newlinechar parameter, the engine starts a new line. Such is not the case for the code below. Why is this? [CODE]\documentclass{article} \newlinechar=`\^^J \def\first{This is the first sentence.^^J} \def\second{This is the second sentence.^^J} \def\third{This is the third sentence.^^J} \def\nth{You get the idea.^^J} \def\outfile{outfile.txt} \newwrite\myout \begin{document} \immediate\openout\myout=\outfile \immediate\write\myout{\first} \immediate\write\myout{\second} \immediate\write\myout{\third} \immediate\write\myout{\nth} \immediate\closeout\myout \end{document}[/CODE] [/QUOTE]
Insert quotes…
Post reply
Forums
Mathematics
MATLAB, Maple, Mathematica, LaTeX
TeX command write is not inserting new lines where expected
Back
Top