@egreg Oh my! I'm amazed, the pasta is so elastic (maybe because it has no salt, if I understood)! And the formaggio! I'm gonna ask my mom to try it. :)
@egreg Really?! Another reason for going to Italy! :) It's quite a job indeed. I see my mom starting in the early Sunday morning. We come back from the mass and she's still working on it.
@GonzaloMedina: I have a friend who recommended me the chocolate santafereño. :)
@PauloCereda Colombian food is really amazing and varied. It's a shame it's almost not known outside Colombia. The task for the new generation of Colombian chefs is to launch Colombian food outside our borders.
@GonzaloMedina I see. But it happens all over Latin America, I think. Brazilian food is fantastic, but even I don't know for sure the food from, say, Minas Gerais, one of São Paulo's neighbouring states.
@PauloCereda True, but everyone in Latin America knows "feijoada", for example, but almost no one (except Colomnbians, of course) knows what an "ajiaco" is.
Ajiaco is the traditional lunch in Cundinamarca: it's a soup with four kinds of potato, chicken, guascas (an aromatic leave), capers and it is served with avocado and rice: restaurantlacasa.files.wordpress.com/2011/09/ajiaco1.jpg
@GonzaloMedina: we had a Chilean priest who came to the city. He was quite shocked when I told him I was used to eat avocados with sugar, as a dessert. Then he told me avocado is used a lot for salads and sauces. :)
@GonzaloMedina I can ask my mom for a recipe and write that down for you. :)
@JosephWright: I'm reading Taco's article about LuaTeX and Pascal. And I'm already scared with the generated Pascal code (full of macro expansions). :)
@PauloCereda You want to try patching a WEB source when you don't write Pascal in the first place. Now that is scarry! (I did the work for the LaTeX3 team to get \pdfstrcmp into XeTeX: Jonathan Kew of course had to tidy up my initial hack.)
@JosephWright You have my deepest sympathy. :) I believe it were tough times. When I heard about Pascal, I thought, "Pascal? Cool, I'll be able to understand the code.", but then... :P
@PauloCereda Actually, the Pascal was not too bad, it was the WEB. Not being familiar with the syntax it took a while to piece together the bits required
I just stumbled on this blog post about rubber and was thinking: "Isn't that exactly what latexmk does?". So, now I wonder: isn't it? Or are there any other differences?
I just figured that \endinput does only stop the reading of more text from an input file, everything which got already read after it stays in the input stream.
e.g. \@firstofone{\endinput<stuff>} inside a \input file will still include <stuff> in the document.
I had a \end{foo} which has \endgroup\endinput in it, while \endlinechar=`^^J was in effect. That caused an omega symbol to be inserted (which has charcode 13 = ^^J).
So the endline char seems to be added directly after the \end{foo} was read.
@JosephWright: Ok, there we go: The TeXBook tells it:
\endinput. The expansion is null. The next time TEX gets to the end of an
\input line, it will stop reading from the file containing that line.
My problem is that I would like to have either blank or figures on the left pages, and text on the right ones, with the numbering of the right pages to be 1,2,3,4,5 and not 1,3,5,7.
It means, in a book-derived class, to have right pages, with the odd layout, but with also an even number half th...
@MartinScharrer When TeX scans \endinput it continues tokenizing (and expanding) until the end of the line is found. Only after that the file is closed and TeX continues reading from the file that had said \input. If \endlinechar is ^^J this character is read and typeset.
@MartinScharrer The \endlinechar is added by TeX after it has scanned (in an operating system dependent way) the end of the input line and discarded whatever the operating system uses for denoting the record termination. If this \endlinechar happens to be behind a %, then it's discarded by rule. But if tokens follow on the same line the macro whose expansion contains \endinput, those tokens are processed.
@MartinScharrer The catcodes aren't assigned during tokenization. TeX stores the line in a buffer, adds the \endlinechar and then proceeds to tokenize. The \endgroup would not change the \endlinechar, which has already been added.
@egreg A text file normally ends with an end-of-line character, but some files do not. Many text editors do not allow this to happen, but it is possible. The question is now, what TeX does when it encounters the real end-of-file but there is no end-of-line character. Does it still add \endlinechar?
I just made a test file and apparently it takes the line correctly and adds \endlinechar afterwards.
@MartinScharrer: When you read a file with \read LaTeX always adds an extra line aswell. From TeX by topic: TEX implicitly appends an empty line to each input stream, so the last \read operation on a stream will always yield a single \par token.
I will pay $100 (one hundred) US Dollars to the first person to post as an answer below a command (say \foo{}) or pair of commands (say \foos, \fooe) that behave like:
equation environment if there is no \\ nor &
multline if there is a single \\
align if there are both & and \\
Also, ...
"Here it is; save your $100 to buy the TeXbook and the LaTeX companion:" - egreg
:P
@MartinScharrer Thanks. I also believe it shouldn't be allowed. :)
@egreg: I checked my favorite online bookstore looking for the LaTeX companion book. I got the following advertisement: "people who bought this book also bought the following item: TALK THAT TALK - RIHANNA". For some reason, apparently LaTeX users are Rihanna fans too. :)
tex.stackexchange.com/a/37172/8344 What to do here? It's the guys first contribution after joining today. But it's not very useful. The question was answered quite well a couple of months ago. I feel bad about down-voting the newbie though...
@PauloCereda: I thought about that, but still... What he is offering is not really a solution: "Disable hyperref". And there already is a perfect answer. I think I am just going to downvote it and leave a comment.
@wh1t3 Let me try then: in the 3rd movie, his dad tolds his name is actually Henry Jones Jr. Then he says, "I like Indiana." And his father, "We've named the dog Indiana." And Indy shuts up. :) Peer pressure! :)
Typesetting that goes beyond the scope of basic MS Word (e.g. LaTeX, or even modern Word versions with a good OpenType font) often uses ligatures for certain glyph combinations, the most common being
f + f = ff
f + i = fi
f + l = fl
f + f + i = ffi
f + f + l = ffl.
I would assume, however, that ther...
Challenge
Given that Christmas is
December
Month 12
Day 25
every year: determine today's date, and whether or not today is Christmas.
If it is Christmas, you must print "It's Christmas". If it is not Christmas, you must somehow wait until Christmas and then print "It's Christmas".
Example
...
@PauloCereda There's also \time, that contains the number of minutes since midnight when the job started; but even \time doesn't keep ticking (and there are good reasons for this).
Is Google Books a reliable source of BiBTeX records? I've found a negative feedback back from 2008, and not sure it is sill valid. Unlike Lead2Amazon and Tungare's ISBN to BibTeX converter, Google Books relatively well understands Unicode and replaces it with control sequences. But are there fact...
I'm using the exam class in a multicols environment to create a series of worksheets. Many questions are yes/no. If the question is too long, it wraps to the next line and moves the answers. Is there a way to "anchor" the answer yes/no checkboxes to always appear right aligned on the first line a...
We tend to have lots of citations, so a series of papers by the same group, which then will have sequential numbers. It's not normal to include titles in the references section for chemistry, just the important part (authors, journal, year, pages)
@JosephWright Curious way to sort. I'll never understand it. Well, I do understand it: its origin is the way documents were typeset. There was no way to sort "rationally" a bibliography, so it was created when the manuscript was being written, appending an item when cited.
It very much depends how you expect to read a reference list (to me, a bibliography is not the same thing). I want to check specific detail for a specific place, and have things numbered so they stay manageable.
(500 refs. would be a big review. I'd normally have about 20 numbered references in a communication, and maybe 50-100 in a full paper. But some of those numbers would be several references.)
I get the impression these thing are very dependent on the publication approach of subject areas. Sorted-by-citation with numbers is common in physics and chemistry, where series of papers are common and so reference numbers are high. They also make sense for experimental work where it does not matter who wrote something.
@JosephWright I'm not a fan of author-year systems either. Plain numbers and alphabetical order. But in pure mathematics it's quite rare that an article has more than three authors.
@egreg As I said, in chemistry that would probably split up cases of related papers, as the person doing the experimental (first author) will vary but the lead (last author) is the same
@egreg You've not used a communication template with references at the bottom of each page. I have.
Those are 'Word compulsory'
Getting the numbers right is always a pain, too, but such is life