@JosephWright @Johannes_B @PauloCereda How do you explain to somebody who doesn't speak very good English that \usepackage{something} will not work with something.docx? And why is it not like \usepackage{lipsum}? Obviously there are potentially good answers to this question, but what if you have 19 or so other people also needing your attention?!
@cfr Is this in the context of your LaTeX course? Or is the person trying to use LaTeX inside Word? It's hard to know what the right answer is without knowing what the person's goal is.
@Johannes_B I think the idea was that \usepackage{lipsum} adds stuff to your document. So LaTeX should be able to get stuff out of other things, too, like Word documents, in the same way.
@AlanMunn In the course. So he's trying to use LaTeX. But he couldn't understand how you could write things not in Word.
@cfr "\usepackage{lipsum} tells LaTeX to take instructions from another file, lipsum.sty. But the .docx file doesn't contain any instructions for LaTeX, instead it contains instructions that only Microsoft Word can understand."
@cfr When I tried to introduce students in a music course to basic HTML I found the biggest barrier was just understanding the concept of a plain text file and installing and using a text editor.
@AlanMunn Yes. I told him you needed to get the stuff into a .tex file in order for LaTeX to use it. (I know this isn't quite true. But I didn't think I could manage the concept of 'any plain text file'.)
@cfr But I guess that was my point. He understands that Word uses docx, so you tell him that TeX uses TeXworks. Then you avoid the whole issue of 'plain text file'.
@JosephWright I know. But you asked what the student used - and I'm guessing. I'm well aware it offers IMAP. You don't think I use Office 365 directly, surely?
On pp. 203–204 of the TeXbook, Knuth describes how TeX absorbs macros' arguments: delimited go until the first appearance of the delimiter, and undelimited go until the next token, in both cases respecting brace groups. But then he says:
In both cases ,if the argument found in this way has t...
@cfr the tex file is your manuscript, written with something like a typewriter and is later processed by LaTeX. Since you cannot make things large, or bold, you have to somehow mark what should be done with the text pieces on the page using only the typewriter.
@cfr I'm guessing this is coming from the common illusion that a Word doc IS plain text (look on the screen, it's just my words, right?). People don't understand that the computer is actually processing something much more complex.
@Johannes_B I think he'd understood that much. He understood the formatting needed to be done in the .tex file. He just wasn't sure how you told it which bit of the Word document to apply which formatting to...
@PauloCereda -- typewriters, you say? take a look at tinyurl.com/p232hva -- it's so full of anachronisms that today would have been the perfect day to publish it. (reference, with some commentary, coming in my next tugboat column.)
@cfr People don't know plain text exists! I had never seen a terminal until I started trying out LaTeX and was told I had to run biber in the terminal. I searched on my Mac for "terminal" and this mysterious window appeared that looked like the old DOS command line I remembered from my dad's blue-screen computer back in the 90s. I had no idea it existed.
@cfr I didn't really get it until I learned about ASCII character codes. The idea that each letter is a series of eight ones and zeros in a special code, and that a plain text file is nothing more than a series of these codes.
@DavidCarlisle It reads a little like your answers. And Ryan's answer starts with discussion with David so I thought maybe that is one of your former accounts unmerged
@percusse But it doesn't look plain. If I didn't know what plain text meant, I wouldn't think it would look like that. I might not know what plain text was. And I might be wrong about it. It just seems weird to think that's it.
@AndrewCashner Well, maybe. Yes, I see what you mean.
@cfr Actual quote from a student evaluation: "He also forced us to submit our essays as text files instead of Word Documents in a very particular manner, which was quite annoying and unnecessary. "
@AndrewCashner I would be annoyed at that too. I only accept PDF files, but having people submit plain text files for most things seems a bit searching for adjective.
@Faheem No I just asked for plain .txt files with no formatting (or simple Markdown if they knew it). These were very short essays. I told them to use gedit but it was a giant mess. I doubt I will try again.
@AlanMunn It was a dumb decision. There was no advantage to anyone in the end.
@AlanMunn But the student comment also illuminate the problem of @cfr's student: they had to use this "weird" file format instead of Word (which is normal). So Word is "plain text" as in "a normal document file" for many users.
@FaheemMitha Well, as we've been discussing, the average student has literally no concept of a plain text file, since their only interaction with text and computers is usually through Word. And except for the most simple things, completely unformatted text isn't very readable, so plain text for me isn't a viable format.
@FaheemMitha @barbarabeeton I write class notes in Markdown and then print them in Latin Modern Teletype by importing them into fancyvrb using a shell script. Such advanced technology to produce typewriter output.
@AlanMunn I just meant doing *this* for titles. I meant Markdown as a basic way to format plain text. Like I said, this is an old battle that I don't want to fight anymore. In the future I plan to ask for PDFs for essays and make sure students know LaTeX exists as an option, but not push it.
@AlanMunn I would like to teach students basic HTML as part of 21st century basic literacy, and important to know if you are going to have to be promoting yourself as a musician on the web for your whole career. But that means teaching text files and text editors, which takes class time and annoys people. (Can't you just drag and drop with WordPress?)
@AndrewCashner I was referring to your using fancyvrb etc. for your own notes. It seems like you would be much better served using pandoc for Markdown -> LaTeX conversion.
@AndrewCashner Hmm. I turned our lab webpage into Wordpress so that anyone in the lab can do stuff with it. Otherwise I became the single point of knowledge, which is deadly.
@AlanMunn All I'm doing is printing out the source code verbatim, it's nothing complicated. But you may be right. I used pandoc a lot in the past but I should look into it again.
I know this is a bit vague, but I have a filename and a date, which are a bit close together. What might be a good space to separate them? About the length of a word would work.
@AndrewCashner Nice chatting with you too. Have fun in LA.
@AlanMunn I got somewhat annoyed when a student wouldn't give me the .tex source for a PDF submission just because it is so much easier to mark up a text file than PDF. Word is OK to mark up, too. But that was only because I knew she'd produced the PDF from .tex. I don't ask for the source when they've used Pages.
@AndrewCashner I do this by just including a colophon in my course materials which explains the software used to produce it. Students who are interested notice. Those who don't care just ignore it.
But generally I try to discourage students and colleagues from using LaTeX because I would be their only source of information....
You were loading some ancient (undistributed for decades) packages such as psfig but once I removed those, the error message seemed quite clear
! LaTeX Error: \begin{minipage} on input line 82 ended by \end{center}.
because you had a duplicated line
\end{center}
so I deleted one of them th...