Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
# Indice: # «.revisao» (to "revisao") # «.shell» (to "shell") # «.def-1» (to "def-1") # «.documentclass» (to "documentclass") # «.texbook» (to "texbook") # «.math-1» (to "math-1") # «.baixar-kopka-daly» (to "baixar-kopka-daly") # «.aula-4-slides» (to "aula-4-slides") # «.aula-4-slides-ex» (to "aula-4-slides-ex") # «.aula-5-slides-ex» (to "aula-5-slides-ex") # «.texworks» (to "texworks") # «.polyglossia» (to "polyglossia") # «.beamer» (to "beamer") # «.includegraphics» (to "includegraphics") ##### # # Revisão # 2019feb14 # ##### # «revisao» (to ".revisao") Como se virar sem memória: Lembrar M-e (eval/execute), M-j (jump) M-j sem prefixo vai pra lista dos "eejump targets" O comentário no topo dessa lista tem este link: (find-emacs-keys-intro "1. Basic keys (eev)") "The quickest way to open or recreate this is with `M-2 M-j'." M-5 M-j (find-eev-quick-intro) (find-eev-quick-intro "The quickest way to open or recreate this is with `M-5 M-j'") M-x brff (find-eev-quick-intro "runs `find-firefox' on the URL at point") M-2 M-j (find-eev-quick-intro "quick reference of the main Emacs and eev keys") (find-emacs-keys-intro) M-x notes (notes) TAB e setas no M-x (completion e history) (find-emacs-keys-intro "Completion" "<TAB>") Partes da janela do Emacs (find-enode "Screen") (find-enode "Menu Bar") (find-enode "Tool Bars") (find-enode "Windows") (find-enode "Buffers" "Most buffers are made by visiting files") (find-enode "Mode Line") (find-enode "Mode Line" "If the buffer is modified" "**") (find-enode "Echo Area") (find-enode "Minibuffer") M-x find-latex-links Gera um buffer com hyperlinks e "templated text" (find-eev-quick-intro "M-x find-latex-links") (find-eev-quick-intro "window on the right is visiting the file") "The first line(s) regenerate(s) the buffer" (find-eval-intro "4. Elisp hyperlinks") (find-eval-intro "lots of sexps" "first sexp" "regenerate") (find-latex-links) (find-latex-links "~/2019-CLG/teste2") (find-latex-links "~/2019-CLG/slides") (find-latex-links "~/2019-CLG/texto") Funções com nomes curtos: c, d, e, w (find-eev-quick-intro "7.4. Commands with very short names") (find-latex-links "~/2019-CLG/teste2" 2 "defun c") (find-latex-links "~/2019-CLG/slides" 2 "defun c") (find-eval-intro "(defun f ") xpdf (find-eev-quick-intro "main keys of xpdf") Copiar as suas notas pro ~/TODO (find-eev-quick-intro "4.1. `find-here-links'" "~/TODO") (find-eev-quick-intro "7.1. `eejump'" "~/TODO" "M-1 M-j") Salvar arquivos no gmail Salve ~/TODO e os arquivos .tex em: (find-fline "~/2019-CLG/") Sample slides: acrescentar geometry e link acrescentar xcolor e link M-1 M-j Acrescentar symbols no clg # (find-es "tex" "minipage") # (find-angg ".emacs.papers" "symbols") \begin{itemize} Acrescentar exemplos de tabular, center e cores no exemplo de slides ##### # # shell # 2019feb14 # ##### # «shell» (to ".shell") # (find-man "1 sh") # (find-man "1 sh" "PS1") # (find-man "1 sh" "here-document") # (find-lshortpage (+ 14 7) "1.5 A Typical Command Line Session") # (find-fline "/tmp/") * (eepitch-sh) * (eepitch-kill) * (eepitch-sh) export PS1='$PWD\$ ' cd /tmp/ rm -fv foo.* ls -lAF ls -lAF foo.tex cat > foo.tex <<'%%%' \documentclass{article} \begin{document} Hello \end{document} %%% ls -lAF foo.tex ls -lAF pdflatex foo.tex xpdf foo.pdf ##### # # Um exemplo de \def e math mode # 2019feb08 # ##### # «def-1» (to ".def-1") \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} $\begin{pmatrix} & one & \\ two & & three \\ & four & \\ & five & \\ \end{pmatrix} $ \def\foo#1#2#3#4#5{ \begin{pmatrix} & #1 & \\ #2 & & #3 \\ & #4 & \\ & #5 & \\ \end{pmatrix} } $\foo12345 \foo abcde \foo{one}{two}{three} {four}{five} $ \end{document} ##### # # \documentclass # 2019feb08 # ##### # «documentclass» (to ".documentclass") % (find-lshortpage (+ 14 9) "1.6.1 Document Classes") ##### # # TeXing the TeXbook # 2019feb08 # ##### # «texbook» (to ".texbook") # (find-angg ".emacs.papers" "texbook") # https://ctan.org/pkg/texbook # http://www.ctan.org/tex-archive/systems/knuth/dist/tex/ # http://www.ctan.org/tex-archive/systems/knuth/dist/tex/texbook.tex # http://mirrors.dotsrc.org/ctan/systems/knuth/dist/tex/texbook.tex * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) mkdir -p $S/http/mirrors.dotsrc.org/ctan/systems/knuth/dist/tex/ cd $S/http/mirrors.dotsrc.org/ctan/systems/knuth/dist/tex/ rm -fv $S/http/mirrors.dotsrc.org/ctan/systems/knuth/dist/tex/texbook.tex wget 'http://mirrors.dotsrc.org/ctan/systems/knuth/dist/tex/texbook.tex' rm -Rv ~/usrc/texbook/ mkdir -p ~/usrc/texbook/ cd ~/usrc/texbook/ cp -v $S/http/mirrors.dotsrc.org/ctan/systems/knuth/dist/tex/texbook.tex . cp -v $S/http/www.ctan.org/tex-archive/systems/knuth/dist/tex/texbook.tex . patch texbook.tex <<'%%%' 7,10c7,10 < \loop\iftrue < \errmessage{This manual is copyrighted and should not be TeXed}\repeat < \pausing1 \input manmac < \ifproofmode\message{Proof mode is on!}\pausing1\fi --- > %\loop\iftrue > % \errmessage{This manual is copyrighted and should not be TeXed}\repeat > \input manmac %\pausing1 \input manmac > %\ifproofmode\message{Proof mode is on!}\pausing1\fi %%% tex texbook pdftex texbook.tex # --- aqui começa a parte em lisp --- (code-c-d "texbook" "~/usrc/texbook/") (code-xpdf "texbook" "~/usrc/texbook/texbook.pdf") (code-pdf-text "texbook" "~/usrc/texbook/texbook.pdf" 12) ;; (find-texbookfile "texbook.tex") ;; (find-texbookpage) ;; (find-texbooktext) ;; (find-texbookpage 10 "Contents") ;; (find-texbookpage (+ 11 1) "1 The Name of the Game") ;; (find-texbookpage (+ 11 3) "2 Book Printing versus Ordinary Typing") ;; (find-texbookpage (+ 11 7) "3 Controlling TEX") ;; (find-texbookpage (+ 11 13) "4 Fonts of Type") ;; (find-texbookpage (+ 11 19) "5 Grouping") ;; (find-texbookpage (+ 11 23) "6 Running TEX") ;; (find-texbookpage (+ 11 37) "7 How TEX Reads What You Type") ;; (find-texbookpage (+ 11 43) "8 The Characters You Type") ;; (find-texbookpage (+ 11 51) "9 TEX's Roman Fonts") ;; (find-texbookpage (+ 11 57) "10 Dimensions") ;; (find-texbookpage (+ 11 63) "11 Boxes") ;; (find-texbookpage (+ 11 69) "12 Glue") ;; (find-texbookpage (+ 11 85) "13 Modes") ;; (find-texbookpage (+ 11 91) "14 How TEX Breaks Paragraphs into Lines") ;; (find-texbookpage (+ 11 109) "15 How TEX Makes Lines into Pages") ;; (find-texbookpage (+ 11 127) "16 Typing Math Formulas") ;; (find-texbookpage (+ 11 139) "17 More about Math") ;; (find-texbookpage (+ 11 161) "18 Fine Points of Mathematics Typing") ;; (find-texbookpage (+ 11 185) "19 Displayed Equations") ;; (find-texbookpage (+ 11 199) "20 Definitions (also called Macros)") ;; (find-texbookpage (+ 11 221) "21 Making Boxes") ;; (find-texbookpage (+ 11 231) "22 Alignment") ;; (find-texbookpage (+ 11 251) "23 Output Routines") ;; (find-texbookpage (+ 11 267) "24 Summary of Vertical Mode") ;; (find-texbookpage (+ 11 285) "25 Summary of Horizontal Mode") ;; (find-texbookpage (+ 11 289) "26 Summary of Math Mode") ;; (find-texbookpage (+ 11 295) "27 Recovery from Errors") ;; (find-texbookpage (+ 11 305) "A Answers to All the Exercises") ;; (find-texbookpage (+ 11 339) "B Basic Control Sequences") ;; (find-texbookpage (+ 11 367) "C Character Codes") ;; (find-texbookpage (+ 11 373) "D Dirty Tricks") ;; (find-texbookpage (+ 11 403) "E Example Formats") ;; (find-texbookpage (+ 11 427) "F Font Tables") ;; (find-texbookpage (+ 11 441) "G Generating Boxes from Formulas") ;; (find-texbookpage (+ 11 449) "H Hyphenation") ;; (find-texbookpage (+ 11 457) "I Index") ;; (find-texbookpage (+ 11 483) "J Joining the TEX Community") ;; (find-texbookpage (+ 11 427) "Font tables") ;; (find-texbookpage (+ 11 457) "Index") ;; (find-texbooktext (+ 11 457) "Index") ;; (find-texbooktext "\\mathsurround (kerning before and after") ;; (find-texbooktext) #* # (find-texbookpage 400) # (find-texbooktext) ##### # # Exercício 1 de math mode # 2019feb08 # ##### # «math-1» (to ".math-1") % (find-texbookpage (+ 11 127) "16 Typing Math Formulas") % (find-texbooktext (+ 11 127) "Typing Math Formulas") % (find-texbookpage (+ 12 130) "\\prime") % (find-texbooktext (+ 12 130) "\\prime") $a'' + \sqrt{x^2 + y^2}$ % (find-lshortpage (+ 14 58) "matrix environments") % (find-lshorttext (+ 14 58) "matrix environments") ##### # # Baixando uma cópia do Kopka/Daly # 2019feb13 # ##### # «baixar-kopka-daly» (to ".baixar-kopka-daly") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) cd ~/2019-CLG/ wget -nc http://angg.twu.net/books/__comp/kopka_daly__a_guide_to_latex_4th_ed.pdf ##### # # Aula 4: preparando slides do jeito tosco/antigo # 2019feb13 # ##### # «aula-4-slides» (to ".aula-4-slides") # (find-clg ".emacs.clg" "clgslides") # (find-clg1page) # (find-clg1text) # (find-lshortpage (+ 14 11) "1.6.2 Packages") # (find-lshorttext (+ 14 11) "1.6.2 Packages") # (find-lshortpage (+ 14 17) "\\newpage") # (find-lshorttext (+ 14 17) "\\newpage") # Chapters and sections # (find-lshortpage (+ 14 27) "2.7 Titles, Chapters, and Sections") # (find-lshorttext (+ 14 27) "2.7 Titles, Chapters, and Sections") # Cross references # (find-lshortpage (+ 14 30) "2.8 Cross References") # (find-lshorttext (+ 14 30) "2.8 Cross References") # (find-lshortpage (+ 14 30) "\\label{marker}, \\ref{marker} and \\pageref{marker}") # (find-lshorttext (+ 14 30) "\\label{marker}, \\ref{marker} and \\pageref{marker}") # (find-lshortpage (+ 14 30) "2.9 Footnotes") # (find-lshorttext (+ 14 30) "2.9 Footnotes") # (find-kopkadaly4page (+ 12 32) "2.7.3 Vertical spacing") # (find-kopkadaly4text (+ 12 32) "2.7.3 Vertical spacing") # (find-kopkadaly4page (+ 12 33) "\\bigskip \\medskip \\smallskip") # (find-kopkadaly4text (+ 12 33) "\\bigskip \\medskip \\smallskip") # Centering: # (find-lshortpage (+ 14 32) "2.11.2 Flushleft, Flushright, and Center") # (find-lshorttext (+ 14 32) "2.11.2 Flushleft, Flushright, and Center") # \TeX and \LaTeX: # (find-lshortpage (+ 14 19) "2.3 Ready-Made Strings") # (find-lshorttext (+ 14 19) "2.3 Ready-Made Strings") # Boldface, italic/slanted, sans serif, font size... # (find-kopkadaly4page (+ 12 5) "He took a {\\bf bold step} forward.") # (find-kopkadaly4text (+ 12 5) "He took a {\\bf bold step} forward.") # (find-kopkadaly4page (+ 12 65) "\\textbf{text}") # (find-kopkadaly4text (+ 12 65) "\\textbf{text}") # (find-kopkadaly4page (+ 12 63) "\\Huge") # (find-kopkadaly4text (+ 12 63) "\\Huge") # Colors: # (find-clg ".emacs.clg" "xcolor") # Paper size: A4, A5, custom-sized slides... # (find-clg ".emacs.clg" "geometry") # For example, I used this on my slides: \usepackage[paperwidth=11cm, paperheight=8.5cm, top=1.5cm, bottom=.5cm, left=1cm, right=1cm, includefoot ]{geometry} # Paragraph # (find-kopkadaly4page (+ 12 46) "3.2.4 Paragraph formatting") # (find-kopkadaly4text (+ 12 46) "3.2.4 Paragraph formatting") # (find-kopkadaly4page (+ 12 46) "\\parindent") # (find-kopkadaly4text (+ 12 46) "\\parindent") # (find-kopkadaly4page (+ 12 307) "8.2 Lengths") # (find-kopkadaly4text (+ 12 307) "8.2 Lengths") ##### # # aula-4-slides-ex # 2019feb13 # ##### # «aula-4-slides-ex» (to ".aula-4-slides-ex") # «aula-5-slides-ex» (to ".aula-5-slides-ex") # (find-latex-links "~/2019-CLG/slides") \documentclass{article} % (find-clg ".emacs.clg" "lshort" "Classes") \usepackage[paperwidth=11cm, paperheight=8.5cm, top=1.5cm, bottom=.5cm, left=1cm, right=1cm, includefoot ]{geometry} % (find-clg ".emacs.clg" "geometry") \usepackage{xcolor} % (find-clg ".emacs.clg" "xcolor") \begin{document} % Boldface, italic/slanted, sans serif, font size... % (find-kopkadaly4page (+ 12 5) "He took a {\\bf bold step} forward.") % (find-kopkadaly4text (+ 12 5) "He took a {\\bf bold step} forward.") % (find-kopkadaly4page (+ 12 65) "\\textbf{text}") % (find-kopkadaly4text (+ 12 65) "\\textbf{text}") % (find-kopkadaly4page (+ 12 63) "\\Huge") % (find-kopkadaly4text (+ 12 63) "\\Huge") Meus slides % \TeX and \LaTeX: % (find-lshortpage (+ 14 19) "2.3 Ready-Made Strings") % (find-lshorttext (+ 14 19) "2.3 Ready-Made Strings") do curso de \LaTeX % (find-clg ".emacs.clg" "xcolor") % (find-xcolorpage 1 "\\color{red") % (find-xcolortext 1 "\\color{red") {Normal \color{red}vermelho} normal {Normal \bf boldface} normal % (find-lshortpage (+ 14 32) "2.11.2 Flushleft, Flushright, and Center") % (find-lshorttext (+ 14 32) "2.11.2 Flushleft, Flushright, and Center") \begin{center} {Normal \color{red}vermelho} normal \Large {Normal \bf boldface} normal \end{center} % (find-clg ".emacs.clg" "kopkadaly" "4.8 Tables") \begin{tabular}{rcl} a & b & c \\ aa & bb & cc \\ aaa & bbb & ccc \\ \end{tabular} \begin{tabular}{|r|rr|ccc} \hline a & b & c \\[5pt] aa & bb & cc \\ aaa & bbb & ccc \\\hline \end{tabular} \end{document} ##### # # texworks - the SyncTeX feature # 2019feb15 # ##### # «texworks» (to ".texworks") # (find-clg ".emacs.clg" "texworks") # (find-texworksmanualpage (+ 5 25) "5.1 SyncTeX'ing between source and preview") # Exercício: pegue um texto em português grande -- por exemplo: # http://angg.twu.net/a-vida-dos-animais.html # e converta-o para LaTeX. # Sugestões: # 1) use "~/2019-CLG/animais.tex". # 2) use isto: # (find-enode "Fill Commands" "M-q") # # Depois edite-o no texworks e aprenda a usar o synctex. ##### # # polyglossia - o sucessor do pacote "babel" # 2019feb15 # ##### # «polyglossia» (to ".polyglossia") # (find-clg ".emacs.clg" "polyglossia") # (find-kopkadaly4page (+ 12 251) "11 Multilingual LATEX") # (find-kopkadaly4page (+ 12 252) "11.1 The babel system") # (find-lshortpage (+ 14 22) "2.4.9 Accents and Special Characters") # (find-lshortpage (+ 14 22) "2.5 International Language Support") # (find-lshortpage (+ 14 23) "2.5.1 Polyglossia Usage") # Exercício: pegue o "animais.tex" do exercício anterior e faça com # que ele use twocolumn, polyglossia e português. Note que você vai # ter que mudar o programa usado na compilação de pdflatex para # lualatex. ##### # # beamer # 2019feb15 # ##### # «beamer» (to ".beamer") # (find-clg ".emacs.clg" "beamer") # https://www.overleaf.com/learn/latex/Beamer_Presentations:_A_Tutorial_for_Beginners_(Part_1)%E2%80%94Getting_Started # http://www.telecom.uff.br/pet/petws/downloads/tutoriais/beamer/tut_beamer_2k100205.pdf # (find-tlsh "find * | sort | grep beamer") # (find-tlsh "find * | sort | grep beamer | grep pdf") # (find-fline "/usr/local/texlive/2018/texmf-dist/doc/latex/beamer/") # (find-fline "/usr/local/texlive/2018/texmf-dist/doc/latex/beamer/" "beamerexample-lecture") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) cd /usr/local/texlive/2018/texmf-dist/doc/latex/beamer/ cp -v beamerexample-lecture* ~/2019-CLG/ cd ~/2019-CLG/ pdflatex beamerexample-lecture-beamer-version.tex xpdf beamerexample-lecture-beamer-version.pdf # (find-fline "~/2019-CLG/") # (find-fline "~/2019-CLG/beamerexample-lecture-print-version.tex") # (find-fline "~/2019-CLG/beamerexample-lecture-beamer-version.tex") # (find-fline "~/2019-CLG/beamerexample-lecture-body.tex") ##### # # \includegraphics # 2018mai31 # ##### # «includegraphics» (to ".includegraphics") # (find-kopkadaly4page (+ 12 154) "graphicx") # (find-kopkadaly4text (+ 12 154) "graphicx") # (find-kopkadaly4page (+ 12 155) "\\includegraphics") # (find-kopkadaly4text (+ 12 155) "\\includegraphics") # (find-graphicspage 2 "\\includegraphics") # (find-graphicstext 2 "\\includegraphics") # (find-graphicxpage 2 "\\includegraphics") # (find-graphicxtext 2 "\\includegraphics") # O beamer-lecture tem um exemplo bem difícil de uso de # \includegraphics, que usa uns "\def"s... uns slides meus do ano # passado têm um exemplo simples (na página de título). # # http://angg.twu.net/LATEX/2018vichy-vgms-slides.pdf * (eepitch-sh) * (eepitch-kill) * (eepitch-sh) export PS1='$PWD\$ ' * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) # The e-script below downloads, unpacks and compiles the .tgz in /tmp/edrx-latex/ # rm -rfv /tmp/2018vichy-vgms-slides.tgz rm -rfv /tmp/edrx-latex/ cd /tmp/ wget -nc http://angg.twu.net/LATEX/2018vichy-vgms-slides.tgz mkdir /tmp/edrx-latex/ tar -C /tmp/edrx-latex/ -xvzf /tmp/2018vichy-vgms-slides.tgz cd /tmp/edrx-latex/ # lualatex 2018vichy-vgms-slides.tex cp -v *.jpg ~/2019-CLG/ # (find-xpdfpage "/tmp/edrx-latex/2018vichy-vgms-slides.pdf") # (find-fline "/tmp/edrx-latex/2018vichy-vgms-slides.tex") # (find-fline "/tmp/edrx-latex/2018vichy-vgms-slides.tex" "\\includegraphics") \includegraphics[height=50pt]{2018vichy-video-edrx.jpg} \includegraphics[height=50pt]{2018vichy-video-selana.jpg}