]> mj.ucw.cz Git - ads2.git/commitdiff
Makra: Napovedy sazime samostatne
authorMartin Mares <mj@ucw.cz>
Mon, 16 Jan 2012 09:44:15 +0000 (10:44 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 16 Jan 2012 09:44:15 +0000 (10:44 +0100)
7-fft/7-fft.tex
9-apx/9-apx.tex
lecnotes.tex

index 32941f9658b63bd5b55cd7bd1038e1f97a04bb91..1d73998b3463985720cccb15d4750923b46705aa 100644 (file)
@@ -515,4 +515,6 @@ Koeficienty $a_k$ a $b_k$ lze p
 
 \endexercises
 
+\hints
+
 \bye
index f4e1d34bdc80043c6fc9a0b94ecd244d22be3c4e..ea440b103a2c0216c93f24c035437a67bb399a8f 100644 (file)
@@ -411,4 +411,6 @@ Navrhn
 
 \endexercises
 
+\hints
+
 \bye
index ebf27cba3414f9b35c068325b772937222006bdd..488a91e07a5fd0749997637855cda59b3bfec3e5 100644 (file)
 \def\exx{\exwith{*}}
 \def\exxx{\exwith{*\kern-0.1em*}}
 
-% Napoveda, pise se pod cviceni, ale casem se bude sama sazet na jinem miste knizky
-\long\def\hint#1{\par
-\>\em{Hint:} #1}
+% Napovedy (pise se pod cviceni, sazi se samostatne pomoci \hints)
+
+\newwrite\hintaux
+\immediate\openout\hintaux=hints.aux
+
+\long\def\hint#1{
+% \par\>\em{Hint:} #1
+\immediate\write\hintaux{\noexpand\realhint{\the\excount}{\unexpanded{#1}}
+}}
+
+\def\realhint#1#2{\par
+\>\llap{\hbox to 1.5em{#1.\hfil}}%
+#2}
+
+\def\hints{
+\immediate\closeout\hintaux
+\h{Nápovìdy ke cvièením}
+\nobreak
+{
+\advance\leftskip by 1.5em
+\parindent=0pt
+\input hints.aux
+\par
+}
+}
 
 % Reseni cviceni, pise pod cviceni (a pripadne pod \hint)
-\long\def\solution#1{\par
-\>\em{Øe¹ení:} #1}
+%\long\def\solution#1{\par
+%\>\em{Øe¹ení:} #1}
 
 %%% Odkazy na kapitoly a jine objekty %%%