This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
fuss:latex [2016/01/27 07:32] – [Hide Sections at Compile Time Using a Conditional] office | fuss:latex [2022/04/19 08:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Installing Tex Live Under Windows ====== | ||
+ | The TeX Live install bundle found at [[http:// | ||
+ | |||
+ | - Install either Active State Perl or Strawberry Perl from the links above. | ||
+ | - Right click the '' | ||
+ | |||
+ | Change the following lines: | ||
+ | | ||
+ | <code dos> | ||
+ | rem Use TL Perl | ||
+ | set " | ||
+ | set " | ||
+ | </ | ||
+ | | ||
+ | to the following: | ||
+ | | ||
+ | <code dos> | ||
+ | rem Use TL Perl | ||
+ | rem set " | ||
+ | rem set " | ||
+ | </ | ||
+ | | ||
+ | which comments out the TeX Live installer perl settings and uses the system-wide perl you installed in the first step. | ||
+ | |||
+ | ====== Using non-Latin Characters ====== | ||
+ | |||
+ | The most elegant way is to use UTF8 encodings for both the bibliography file and the document. UTF8 has to be supported by the operating system and the editor (popular latex editors allow you to change the character encoding in their preferences). Then add in the preamble: | ||
+ | |||
+ | <code latex> | ||
+ | \usepackage[utf8]{inputenc} | ||
+ | \usepackage[T2A]{fontenc} | ||
+ | \usepackage[russian, | ||
+ | |||
+ | </ | ||
+ | |||
+ | this will render UTF8 (keyboard-generated) characters exactly as they are. The third line allows you to specify languages used in the document. | ||
+ | |||
+ | ====== Change Font inside Verbatim Environment ====== | ||
+ | |||
+ | This can be done by surrounding the '' | ||
+ | |||
+ | <code latex> | ||
+ | \begingroup | ||
+ | \fontsize{8pt}{10pt}\selectfont | ||
+ | \begin{verbatim} | ||
+ | This font is 8pt. | ||
+ | \end{verbatim} | ||
+ | \endgroup | ||
+ | </ | ||
+ | |||
+ | The first parameter to '' | ||
+ | |||
+ | ====== Update To LaTeX2e ====== | ||
+ | |||
+ | LaTeX2e is the current LaTeX version and usually has to be installed on top of an initial install. For example, on the Amiga, the '' | ||
+ | |||
+ | First, we need to get [[http:// | ||
+ | |||
+ | Then unpack the '' | ||
+ | <code bash> | ||
+ | tar -zxpvf base.tar.gz | ||
+ | </ | ||
+ | |||
+ | which will produce a '' | ||
+ | |||
+ | Now, unpack the distribution to generate the LaTeX format files: | ||
+ | <code bash> | ||
+ | cd base | ||
+ | initex unpack.ins | ||
+ | initex latex.ltx | ||
+ | </ | ||
+ | |||
+ | From the '' | ||
+ | <code bash> | ||
+ | cp latex.fmt latex.log / | ||
+ | cp *.fd *.cls *.clo *.sty *.def *.tex / | ||
+ | cp *.ist / | ||
+ | </ | ||
+ | |||
+ | and then test the installation using the provided '' | ||
+ | <code bash> | ||
+ | mkdir tmp | ||
+ | cd tmp | ||
+ | cp ../ | ||
+ | latex ltxcheck.tex | ||
+ | </ | ||
+ | |||
+ | ====== Regenerate LaTeX Format ====== | ||
+ | |||
+ | Find the '' | ||
+ | <code bash> | ||
+ | initex latex.ltx | ||
+ | </ | ||
+ | and copy the resulting '' | ||
+ | |||
+ | ====== Hide Sections at Compile Time Using a Conditional ====== | ||
+ | |||
+ | First we create the conditional: | ||
+ | <code latex> | ||
+ | \newif\ifanswers | ||
+ | </ | ||
+ | |||
+ | then we create a toggle: | ||
+ | <code latex> | ||
+ | \answerstrue % comment out to hide answers | ||
+ | </ | ||
+ | |||
+ | which will show the text in case it is not commented. | ||
+ | |||
+ | Finally, any block that should not appear on the page can be surrounded by '' | ||
+ | |||
+ | <code latex> | ||
+ | \ifanswers | ||
+ | The solution is here! | ||
+ | \fi | ||
+ | </ | ||
+ | |||
+ | ====== Number Sets ====== | ||
+ | |||
+ | Number sets can be displayed using the '' | ||
+ | |||
+ | ^ Latex ^ Description ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' |