Argument of \@sect has an extra . EMparbox needs varwidth. EMpsrectbox needs emath. Pb. sty. Enko. Toubun: arg. File ended while scanning use of \... Hen. Ko needs color. Hen. Toubun: arg. I can't write on file `... Illegal unit of measure (pt inserted). La. Te. X Error: Cannot determine size of graphic in ./******. The sieve of Eratosthenes is an ancient algorithm for finding all prime numbers up to any given limit. It iteratively marks the multiples of each prime as composite. Package Description View TeXdoc; akademia: Polish Virtual Academy of TeX: lshortukr: Ukrainian Not So Short Introduction to LaTeX: lshortjp: Japanese Not So Short. Bounding. Box). La. Te. X Error: Environment... La. Te. X Error: Environment clip. Lline undefined. La. Te. X Error: Environment edaenumerate undefined. La. Te. X Error: Environment hyou undefined. La. Te. X Error: Environment jquote undefined. La. Te. X Error: Environment mawarikomi undefined. La. Te. X Error: Environment nidan undefined. La. Te. X Error: Environment rectbox undefined. La. Te. X Error: Environment zahyou undefined. La. Te. X Error: File `.. La. Te. X Error: Float(s) lost. La. Te. X Error: Illegal character in array arg. La. Te. X Error: Missing \begin. La. Te. X Error: No counter '...' defined. La. Te. X Error: Undefined color `lightgray'. Missing = inserted for \ifnum. No room for a new \dimen . No room for a new \write . Package calc Error: `\relax ' invalid at this point. Package keyval Error: .. Package keyval Error: apnzahyou undefined. Package keyval Error: xscale undefined. Package keyval Error: yscale undefined. Pgozyohou needs emath. T. sty ! Te. X capacity exceeded, sorry ... Te. X capacity exceeded, sorry . Te. X capacity exceeded, sorry . Te. X capacity exceeded, sorry . Te. X capacity exceeded, sorry . Te. X capacity exceeded, sorry . Undefined control sequence. Using italics, bold or underlined words can. Let's begin with an example. As you can see, there are three basic commands and they can be nested to get combined effects. With these you can't, for instance. Sometimes the \emph command behaves just as \textit, but is not exactly the same. What the \emph command actually does with its argument depends. Moreover, some packages, e. Beamer, change the behaviour of \emph command. Material provided as- is, use at your own risk. Contents. Why You Need Your Own Lists. Ly. X provides excellent list environments, including itemize, enumerate. If those don't fit your needs you can usually use a. But once in a while, you can't find a. Then you must build your own list. Ly. X. I recently had just such a need. I needed to make chapter quizzes in a. Each quiz consists of a numbered list of questions. Each question. is followed by a lettered list of possible answers. One of the answers. In order to easily use this in Ly. X, all of this. must be expressed as environments. Two existing packages might have fit the bill: exam. However, each of those was a document class. To use them in. my book, I would have had to use them as a document class, which of. I also could have stripped out all the exam specific. This document is primarily La. Te. X. The linking of La. Te. X environments and. Ly. X is well documented elsewhere on this website. When you. need to make your own lists, use this document as a starting point. Each. item consists of a label and a body. The label is a bullet or a number. Here's how a list is created manually: \begin. It can contain font properties. Alph, \roman, \arabic and the like. Notice that the body code sometimes contains code you might expect to be in the label, such as \usecounter. Also, if you're using Ly. X, you want to work with. ERT (Evil Red Text - - in other words, inline La. Te. X. within the Ly. X). So you need to convert the manual list code to. To minimize. complexity, let's do that with the Hello World code so you can see it. If you remember, this is the Hello World code. At this point we'll just use the \item command for list items. We'll call our new list environment questions. Let's put the list inside the environment, replacing the initialization and finalization code: \documentclass. We've placed them in the document preamble (before the \begin. It's simple. substitution, but you need to understand it in this simple example. Only if you understand that what you're really doing is. The preceding code gets us most of the way to Ly. X heaven, but we still have the \item commands which would necessitate ERT within Ly. X. That would be unacceptable. So what we'll do is create an environment called question (note that this is singular) to represent the list items. Here's the code: \documentclass. It had no formatting of. The reason it was made so simple is to make understanding it easy, so. The last part of this article framed the list as environments. The next. several articles will go back to manually constructed lists to. For. simplicity however, the next few articles will leave environments. To assume. any meaning, that number must be a counter that is declared in the. Let's start with the original Hello World: \documentclass. Specifically, we added. The placement of \usecounter. Nevertheless, the body code is where you put it. The preceding code produces output that looks like this (after significant cropping): You might notice that the items start to the left of the . You can space items any way you like. Item. spacing has its own article. Numbers can be shown as Arabic numerals, upper case roman numerals. Roman numerals, uppercase letters A- Z or lowercase letters. Command What it does\arabic. You. could just make a simple environment that prints the equivalent of a. The. labels must stick out to the left. In my opinion, the bodies should all. Inter item. spacing should exceed inter paragraph spacing, which itself should. Label width should be large enough to handle. Roman numeral for 8 has four characters). To. get an instantly readable list, you need it spaced correctly. Here are some of the common vertical spacing lengths used with list items: Command What it does\parskip. Space between paragraphs outside of a list, and part of the space between a non- list paragraph and a list item.\topsep. Extra space added to \parskip before the first and after the last item.\parsep. Paragraph separation within a single item.\itemsep. Extra inter- item spacing added to \parsep.\partopsep. This is added to the top and/or bottom of the list if and. Remember, environments can nest. Defaults to 0.\labelwidth. Width allotted to the label. This should be set at least to or more than the longest expected label.\labelsep. The distance between the rightmost part of the label. This is one of the. Use it early and often. BEWARE: This setting. If you set this you might need to add a. The indent of the first line of each paragraph in an item. It can be a little ugly, but. This length is capable of causing some real ugliness - - leave it alone. What this horrid. This makes. the body lines not line up. If you already have a list where. Don't set this length except out of self- defense. It's trouble. WARNINGExcept for \parskip, which isn't a list property, all these lengths should be set in the list's body code: \begin. Each example's label. Each item is bold font to. In each example, item. Lincoln's Gettysburg Address. It has no \setlength commands. Note the ugliness of question 4, where the text wraps to the left of the end of the label. This is caused by the \labelwidth. Let's correct that by. Ahh, that's better. The body for question 4 lines up as a block, because \labelwidth. The labels have all been pushed. The amount by which \labelwidth exceeded the longest label does not effect how far labels were pushed to the left, nor anything else. The only effect of an extra large \labelwidth. Otherwise it has no effect. Thus, the preceding screenshot would. This is done with the \labelsep length. As discussed earlier, this adjustment works by shoving the labels left, not by soving the bodies right. Let's set \labelsep to 2in. This is probably too much to be practical in normal circumstances, but it makes the effect obvious. In the preceding, you see that the item bodies are exactly where they. However, the labels were pushed. Sometimes that's what you want, but sometimes you wanted. If that's the case, what you need to do is move the left. So, in the case of the preceding \labelsep adjustment, if you want the label to stay put, you must add an amount to the \leftmargin. The following shows a one inch readjustment to attempt to keep. In the preceding, everything except the right margin was pushed to the. Let's try 1. 2. 7 inches. The preceding gets the labels just about where they were before, with. Now let's. indent paragraphs, other than the first paragraph, in items, by setting. In the preceding, the only difference from the one before it is that. This makes. it easier to discern individual paragraphs within an item. Obviously. one inch is too much - - a half an inch would be better for most. Next, let's really garbage up this document by setting \itemindent to one inch. OK, that's just plain wrong! Just say no to \itemindent! The one exception is if you're already getting symptoms similar to the screenshot above. In that case, try setting \itemindent. Possibly something. Sometimes you know beforehand that no items will wrap. When you know nothing will wrap, you can. What you want to do is set. To really emphasize something, you might choose to put four. Usually you'll try to make items tighter, especially. In general, the following principle should always be true: interline spacing < interparagraph spacing < interitem spacing. If you use standard line spacing with wrapping items, or especially. It's often a good idea to use the setspace. Also, you can set paragraph. Let's explore with a few examples, starting with default vertical spacing. The preceding looks pretty good, with two possible exceptions: The interparagraph spacing in question 4 is a little too small to easily delineate the paragraphs. This list is pretty spread out, which can consume a lot of page surface on long lists. So you also set \parsep. Now, let's instead condense this without indentation, but instead. The preceding uses the setspace package (\usepackage. Now that line spacing is condensed, \parsep can be set to the tiny value of 1 ex, and \itemsep. The result is a pleasing list where items have. You could make it even shorter by setting \setlength\listparindent. When making your. Both questions and. The. choice letters start over again at . However, it should be available to create an answer key. Since it's intended to work with Ly. X, it's vital that everything is. The way I've visualized it is to have five. Questions. Question. Choices. Choice. Rightchoice. Questions defines the list of questions, while Question invokes one. Similarly, Choices defines the list of choices, while. Choice invokes one choice item. Rightchoice also invokes a choice item. Rightchoice environment will print the choice dark and with leading and trailing asterisks. Questions uses the \qcounter counter and Choices uses the \acounter counter, which is set on the counter level to reset when \qcounter changes. So what you have is a list of questions, each of which has its own. La. Te. X source code. Rightchoice environment. The \showcorrect variable, which can be changed on the fly, enables Rightchoice to print dark and with surrounding asterisks if set to true. This is not intended to be a professional implementation of a quiz, but. This solution's implementation is. One. of each question's choices is correct. Here's a quiz I produced with my. La. Te. X: Output of Multiple Choice Quiz. This is the. quiz, printed after some plain text (Hello world). The questions are. The. possible choices are indented from the question above them, and each. The. result is an obviously readable multiple choice test. In each question, the correct response is bold, italicized, and is.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |