@DavidCarlisle: dl.dropboxusercontent.com/u/74558210/David%20and%20arara.mp4 Sorry for the lack of audio, I wasn't able to record it (at least in my Linux box, I can try later on my Mac). When the window is visible, the background song starts to play (Rule Britannia).
@UlrikeFischer hmm either because I'm European and modern and always use lots of letters with squiggles so default to xetex. Or because I haven't had coffee yet and misread the question...
experts: I am seeing something really really strange. I print the final result in lua and look at it in the log file, and it is ok. In the pdf file, I see extra text stuck at the end of it, which happens to be the environment_name which I am using to communicate with lua. I can't see what can cause it.
Here is my environment \newenvironment{myListing}[4]% {\directlua{startrecording(#1,#2,#3,#4)}}% {\directlua{stoprecording()}}
and the PDF file, shows everything ok, but it shows this stuck at end:
The strange thing, is that "myListing" do not show up in the log file! I print the final result in lua, and I do not see this thing stuck at the end. I think lualatex is leaking the environment name.
@Nasser given that you are passing in verbatim material (still:-) that's to be expected if you get the timing wrong and \end is not seen as an end envrionment
I do this at the very end: print(str) tex.print(str)
@DavidCarlisle well, i am using recording now. Changed all the code. It is working very well. I just when I added a 4th argument, this started. But will keep looking. I have no idea now why it shows in pdf but not in the log file.
Here is how I call lua now
\begin{myListing}{\texht}{0}{"Mathematica"}{"normalsize"}%
Clear["Global`*"];
num = (s+1)(s+2);
den = (s)(s+4)(s+6);
gain = 5;
sys = TransferFunctionModel[
gain (num/den),s]
\end{myListing}
May be the problem is with the recording, when it stops. will look at it more.
[OT]: I know a lot of people here is using git, but here is a subversion question for you. In a project we have 14 chapters, each chapter is made to be compilable on its own (handy for author revisions etc) where we have common macros etc in two sty files. The sty files should go in each chapter folder, and they should be all the same.
On linux, this is easy, soft links. Subversion handles soft links, but if your collaborators are on windows, that soft link is turned into a file copy, thus wrong version.
Any idea on how to approach this in subversion such that one is ensured that each chapter folder always have the same version.
Note: I'd like not to add the sty files in to the LaTeX dist, that is cumbersome when collaborators are using different LaTeX dists
@DavidCarlisle When we want to be able to send the authors the .tex and the two .sty to be used in current dir, then this might not be a good idea
@JosephWright why not, surely a version control system ought to be able to keep exactly the same version of a file in different folders. Some pages have mentioned externals, others that it was no good.
@daleif did a quick test with Git: two dirs, make the same file in both, commit, change one, commit, second file unchanged: they start off the same but are independent
@ChristianHupfer -- well, i guess not always. but there was a day, some years ago, when i walked through the door into our kitchen, and felt a pair of eyes staring down at me. on top of the fridge was our cat. the top of the fridge was 6 feet off the floor, and the nearest above-floor surface was even farther away. nothing was off limits. (we did keep secure screens in the windows, since the apartment was on the third floor.)
@barbarabeeton Well, I remember one of the cats of my late mother -- the cat used a chair to jump on the cupboard and from then on top of a very high book shelf. She loved to observe the other cats admiring her position up there ;-)
@JosephWright yes bbc weather basically said London was swamped but it was moving off towards east anglia, so just great for a journey from London to Norwich today?
@DavidCarlisle No trains to London this morning (could have stayed in bed for 40 mins but internet also was bust in flat so didn't know), then coming back they still weren't sorted, except National Rail didn't say that so I only found out when I got to Liverpool St
@Johannes_B: We're getting severe thunderstorms here from atlantic streams usually, rushing in from France and since we're close to the border to France with some 'high' mountains, the streams stick there and thunder and rains start here
@egreg yes but then it has to be in tate mode doesn't it and would fail in normal...
@egreg see the message I just sent ..... (which you can't see:-) but it said..
of if there is a suitable test perhaps
\if[wrong sort of box]
\box
\else
\unvbox
\fi
so that it acts as normal latex if the direction has not been changed.
I don't know if there is such a test (`texdoc ptex` is a bit hard for me:-)
@DavidCarlisle Yes, the headline was confusing. Indeed it would have been silly to spend money into an exit poll with the result “either way is possible”.