Home
Package ethuebung for ETH ITP Exercise Sheets — User`s Manual
Contents
1. UebungSubHeaderLineFont Set the font commands to issue be fore displaying the sub header line This includes text produced by UebungDueBy p 5 and UebungDiscussion p 5 as well as more gener ally UebungSubHeader p 6 and UebungSubHeaderPar p 6 By default this is smal1 24 UebungTitleCenterVSpacing Specify some extra spacing that will lift the central title a bit higher vertically with respect to the logo and the lecturer semester Set something here if you have e g a long lecture name which starts overlapping with the logo By default no spacing is added 0mm 6 2 Customizing the Exercise Labels and Fonts UebungHinweisFont Specify the font commands to use to set up the font for the main text produced by the hint p 12 and hints p 12 com mands This command has the same syntax as the UebungsblattTitleFont p 24 command Default font is small itshape UebungExTitleFont Specify the font used when displaying the title of an exercise i e the text passed as argument to the exercise p 8 command This command has the same syntax as the UebungsblattTitleFont p 24 command Default font is bfseries itshape UebungSubExTitleFont Specify the font used when displaying the title of a sub exercise i e the text passed as argument to the subexercise p 13 command This command has the same sy
2. will produce Exercise 1 This exercise is for the motivated student a Part a of exercise b Part b of exercise with advanced material 3 6 Note About Figures The most convenient way to insert a figure in an exercise sheet is to use includegraphics The package graphicx is already included by default by ethuebung For example if you have 14 a file named my_figure pdf in the figures subdirectory begin center includegraphics width 7cm figures my_figure end center More documentation is available here The usual begin figure end figure environment can also be used although the figure placement is then more difficult to control and usually ends up using up lots of space and cluttering the exercise sheet A neater solution is to have a figure alongside the main text For that you may use the begin wrapfigure end wrapfigure environment in the wrapfig package pretty good documentation here For example begin wrapfigure r 50mm centering includegraphics width 45mm fig DoubleUPotential end wrapfigure There is a demo file with examples on how to use figures called figures tex inside the demo directory in the ethuebung repository 4 Solutions and Tips Sheets The package ethuebung allows for the same IATFX file to generate also the solutions and tips sheet You should write up the solutions for an exercise immedately after t
3. 4 do something else on the other sheet s fi 21 ifuebungsblatt Conditional which is set to TRUE if the exercise sheet is being generated and FALSE otherwise solutions sheet or tips sheet ifmusterloesung Conditional which is set to TRUE if the solutions sheet is being generated and FALSE otherwise exercise sheet or tips sheet iftipssheet Conditional which is set to TRUE if the tips sheet is being generated and FALSE otherwise exercise sheet or solutions sheet 5 Exercise Sheet Style This package provides different exercise sheet styles i e ways the sheet look The default style should usually be sufficient however you may prefer the appearance provided by other styles UebungStyle Sets the style of the exercise sheet to the given named style This can be for example Default ETHUniZH LargeSolutions LargeTips or PreviousITP The Default style changes nothing It just provides the default style with all the labels and fonts and definitions as defined by the base package implementation The ETHUniZH style changes the sheet design and puts both the ETH and Uni ZH logos After calling UebungStyle ETHUniZH some extra new commands are available to set additional settings ETHUNIBesprechung lt ETH gt lt UNI gt to set the dates the series will be discussed at ETH and at the UNI ETHUNIURL lt URL gt to set the web page for the cou
4. The corresponding solutions sheet title 23 UebungsblattTitleSolutions Midterm Exam Solutions Not providing any number removes the number from the title UebungsblattNumber UebungsblattTitleFont Redefines the commands to set the font for the main title You may use the usual TX comands to manipulate fonts bfseries large Large fontfamily fontseries selectfont etc It is also possible to pass the name of a macro that expects an argument e g underline if nothing else follows that macro The default font specification is large bfseries UebungLogoFile Specify a graphic file with a logo to include instead of the ETH logo The file must be an acceptable file for includegraphics e g PDF or PNG for pdf output or EPS for dvi output This internally redefines the uebHeaderLogo p 30 command for an ap propriate call to includegraphics UebungDueByLabel Changes the label to display the date by which the exercise sheet is due to the given string This is by default Due by in German Abgabe For further customization see uebDueBy p 31 and or UebungSubHeader p 6 UebungDiscussionLabel Changes the label to display the date at which the exercise sheet is discussed to the given string This is by de fault Discussion in German Besprechung For further customization see uebDiscussion p 31 and or UebungSubHeader p 6
5. This command expands to nothing i e the keywords will not be visible in the compiled exercise tips or solutions sheet However they are useful to search for exercises afterwards by scanning through the IATRxX files 3 2 The begin exenumerate end exenumerate environment begin exenumerate end exenumerate This environment provides a enumerate like environment with labels a b by default with which you can split an exercise into several parts Use item for each part as for itemize and enumerate Such begin exenumerate end exenumerate environments can be nested up to two levels by default and the second level will be numbered by default i ii These environments may be broken and resumed and their numbering will be automatically resumed correctly and reset for each exercise This is useful to add comments or to introduce new concepts between different parts of an exercise For example Consider the setting in which one applies a positive voltage between the source and the gate leeds Answer the following questions begin exenumerate item This is a Calculate quantity blah blah for this setting item This is b What happens at the edge of the sample with this setting end exenumerate Now consider setting a em negative voltage instead begin exenumerate item This item will automatically be labelled c Recalculate the quantity blah bl
6. onlyexercisesheet page 20 exercise page 8 onlymusterloesung page 20 exstarred page 14 onlysolutions page 20 hint page 12 onlytipssheet page 21 hints page 12 onlyuebungsblatt page 20 hinweise page 12 pdfloesung page 19 hinweis page 12 pdfsolution page 18 ifmusterloesung page 22 solution page 17 iftipssheet page 22 subexercise page 13 ifuebungsblatt page 22 subuebung page 13 keywords page 9 theuebcounter page 29 loesung page 17 theVebungsblattNumber page 5 MakeUebungHeader page 5 tipps page 19 notexercisesheet page 21 tips page 19 35 uebDiscussion uebDueBy uebExerciseAnnotation uebExerciseEqLabel uebHeaderBelowVSpace uebHeaderCenter uebHeaderCenterWidth uebHeaderLogo uebHeaderLogoWidth uebHeaderMidVSpace uebHeaderRight uebHeaderRightWidth uebHeaderTopVSpace uebHinweisParagraph ueb ifnotempty uebLoesungEndVSpace uebLoesungEqLabel ueb maybespaceafter ueb maybespace uebSerieTitle uebTheVebungLabel uebTheVebungSubLabel uebTipsEndVSpace uebTipsEqLabel uebUebungsBlattTitle UebungAttachedSolutionTitleFont UebungAttachedSolutionTitle UebungAttachedSolutionTitleTop UebungDiscussion UebungDiscussionLabel UebungDueBy UebungDueByLabel UebungExTitleFont uebung UebungHinweiseLabel 9 Package Options Reference The following is a list of possible package options that can be passed to ethuebung some of them can be combined page 31 page 31 page 31 page 29
7. page 32 page 30 page 32 page 30 page 32 page 31 page 30 page 32 page 31 page 30 page 32 page 32 page 29 page 33 page 33 page 30 page 29 page 29 page 32 page 29 page 23 page 28 page 28 page 27 page 5 page 24 page 5 page 24 page 25 page 8 page 26 UebungHinweisFont UebungHinweisLabel UebungLabelEnum UebungLabelEnumSub UebungLabel UebungLanguage UebungLecture UebungLecturer UebungLoesungFont UebungLogoFile UebungMakeSolutionsSheet UebungMakeTipsSheet UebungProf UebungsblattNumber UebungsblattTitleFont UebungsblattTitleSeries UebungsblattTitleSolutions UebungsblattTitleTips UebungSemester UebungSolEquationLabel UebungSolLabel UebungStarredSymbol UebungStyle UebungSubExTitleFont UebungSubHeader UebungSubHeaderLineFont UebungSubHeaderPar UebungSubLabel UebungTextAttachedSolution UebungTipsEquationLabel UebungTipsFont UebungTipsLabel UebungTitleCenterVSpacing UniZHLogo UniZHLogoRaw page 25 page 26 page 26 page 26 page 25 page 7 page 4 page 4 page 27 page 24 page 17 page 19 page 4 page 5 page 24 page 23 page 23 page 20 page 4 page 27 page 27 page 27 page 22 page 25 page 6 page 24 page 6 page 25 page 28 page 20 page 19 page 19 page 25 page 33 page 33 Of course usepackage deutsch sol ethuebung Obviously some options are incompatible such as tips and sol or of course english and deutsch 1 sol Sets
8. uebHeaderRightWidth 2499 textwidth uebHeaderTopVSpace The default is ec en 15mm uebHeaderMidVSpace The default is 2mm 31 uebHeaderBelowVSpace The default is ee 2mm uebHeaderLogoWidth The default is 25 textwidth uebHeaderCenterWidth The default is 50 textwidth uebHeaderRightWidth The default is 2499 textwidth uebLoesungEndVSpace The default is 3mm uebTipsEndVSpace The default is 3mm Some MAT X Utilities Some utilities are defined by this package which you may use when you redefine commands presented above All utilities are properly commented inside the source code itself and only what I think are the two most useful utilities are presented here Note that to use these commands in a regular IATFX file and not a style file you should enclose your definitions between makeatletter and makeatother since the command names contain the character ueb ifnotempty condition tezt text if not empty text if empty Tests if condition text is empty or not this checks if the given text generates a zero width box which is not the same as checking whether a command is defined or not If the condition text is not empty then this macro expands to text if not empty otherwise expands to text if empty 32 ueb maybespace Expand
9. 2 etc so equation numbering does not collide with the equation text Equations in the main text are also guaranteed to have the same labels between the exercise solution and tips versions of the sheet 4 1 Generating the Solutions Sheet There are three independent ways of telling ethuebung to generate a solutions sheet with all solutions displayed e use the package option sol e use the command UebungMakeSolutionsSheet e use the provided script pdflatexsol As shown in the minimal template in Section 1 2 one may tell ethuebung to generate a solutions sheet by adding the sol package option This means that the command usepackage sol ethuebung will include the ethuebung package in solution sheet mode whereas the command usepackage ethuebung will generate an exercise sheet with all solutions hidden Alternatively one may omit the sol the package option and invoke the UebungMakeSolutionsSheet command instead This command should be placed in the preamble before begin document 16 UebungMakeSolutionsSheet This command has exactly the same ef fect as providing the sol package option It switches the sheet to solutions mode giving it a Solutions title and displaying all contents provided in begin loesung end loesung environments and pdfsolution p 18 commands As a third solution you may use the script pdflatexsol see Section 7 The IATFX
10. of the tips sheet Analog of UebungsblattTitleSolutions p 23 The default is Tips or in German Tipps 4 5 Selectively Output Text Depending on Sheet Type You may choose to add some additional information or text that is to appear only when compiling the solutions sheet or only when compiling the exercise sheet Use the following environments and contidionals for this purpose begin onlyexercisesheet end onlyexercisesheet The contents of this environment will be displayed in normal font only if the sheet being compiled is the exercise sheet The contents will be hidden when generating the solutions sheet as well as a tips sheet begin onlyuebungsblatt end onlyuebungsblatt Alias of the above begin onlysolutions end onlysolutions The contents of this environment will be displayed only if the solutions sheet is being generated The contents will be formatted using the default solutions font as set with UebungLoesungFont p 27 The contents will be hidden if the exercise sheet or tips sheet is being generated The difference with the begin solution end solution p 17 environment is that no Solution paragraph heading is produced begin onlymusterloesung end onlymusterloesung Alias of the above 20 begin onlytipssheet end onlytipssheet The contents of this environment will be displayed only if the tips sh
11. should be placed in the following environment begin tips end tips Some tips to be displayed only in tips sheet mode Analogue of begin loesung end loesung p 17 but for tips instead of solutions The contents of this environment will be displayed only when the tips sheet is being generated The contents of this environment will be discarded if the exercise sheet or the solutions sheet is being generated begin tipps end tipps Alias of the above environment UebungMakeTipsSheet Analogue of UebungMakeSolutionsSheet p 17 this command changes to tips sheet generation mode To generate the tips sheet analogously to the solutions sheet you may use the tips package option usepackage tips ethuebung Generates tips sheet There are also some additional commands which allow you again analogously to the solu tions sheet to customize the appearance and behavior of the tips sheet UebungTipsFont Set the font to use in tips environments Analog of UebungLoesungFont p 27 UebungTipsLabel Sets the text used to label tips paragraph head ings Analog of UebungSolLabel p 27 The default is Tips or in German Tipps 19 UebungTipsEquationLabel Specify how to prefix equation labels in tips blocks Analog of UebungSolEquationLabel p 27 The default is T UebungsblattTitleTips Title
12. the file if needed A cleaner installation is to place the ethuebung sty file somewhere in your TEXINPUTS environment path Note that no other file is needed The ETH logo is embedded into the style file 1 2 Minimal Template Here is a minimal template for an exercise sheet documentclass 11ipt a4paper article usepackage ethuebung comment this and uncomment next line for solutions 4 usepackage sol ethuebung uncomment for solutions UebungLecture Microstructures of molten cheese UebungProf Prof Zebigboss UebungSemester HS 2999 UebungsblattNumber 1 begin document MakeUebungHeader exercise Title of the exercise keywords Stern Gerlach spin quantum measurement In this exercise you will be asked to do some work begin exenumerate item Solve the following equation begin align x72 1 end align hint There might be more than one solution begin solution Write here the solution to this exercise end solution end exenumerate end document 1 3 What This Package Does This package provides a unified way of typing exercises for ETH Zurich While you type in log ically all aspects of your exercise in a single file using provided ATEX macros title text hints exercise solution etc it is rendered according to some standard style yet remaining highly customizable and provides different PDF versions of the sheet for distributing to students wit
13. way we want to display it in the sheet It is a standard AT RX counter value like thesection The default is simply arabic uebcounter You may redefine this command to display the exercise number as you wish For example redefinition 0 uebTheVebungLabel This command expands to the label that should be used as a title for the sub paragraph generated by uebung p 8 You may redefine this command to some custom value which will probably refer to the current exercise number theuebcounter The default is ueb maybespaceafter ueb TheVebungLabel theuebcounter uebTheVebungSubLabel Same as uebTheVebungLabel except that it is used for sub exercises subuebung subexercise p 13 The relevant counter value is thesubuebcounter which should be defined normally to also display the main exercise number The default is ueb maybespaceafter ueb TheVebungSubLabel thesubuebcounter uebExerciseEqLabel The default is arabic equation uebLoesungEqLabel The default is ueb TheSolEquationLabel arabic uebeqloesung uebTipsEqLabel The default is ueb TheTipsEquationLabel arabic uebeqtips 29 uebHinweisParagraph what text Produces a paragraph of text with the font typically used for hints The paragraph starts with a word or expression such as Hint Note or whatever you give in the what pa
14. with on each page printed on top Solution to exercise NN This works also as inline solutions to sub exercises and to exercise parts inside an begin exenumerate end exenumerate p 9 environment Obviously the command expands to nothing if not in solutions mode and no PDF pages are included in that case The inclusion of the PDF is internally accomplished with the includepdf command from the pdfpages package pdfsolution options PDF file Specify a PDF file to include which contain the solution to the current exercise A reference to the page where the solutions will be inserted at the end of the sheet is inserted at the current location within a begin solution end solution p 17 environment The included pdf pages are given a title on each page speci fying which exercise they are the solution to The options are any options that can be passed to includepdf of the pdfpages package Snttp mirrors ctan org macros latex contrib pdfpages pdf pages pdf 18 pdfloesung options PDF file Exact same command as pdfsolution 4 4 Tips Sheet A tips sheet is meant as a third of course optional sheet which may contain additional background information to the exercises remind some formulas or some theory and possibly give some hints on how to start solving the exercise A tips sheet is generated very similarly to the solution sheet The ATRX code corresponding to tips
15. Package ethuebung for ETH ITP Exercise Sheets User s Manual Philippe Faist pfaist phys ethz ch November 25 2014 This package provides a unified way of typing exercises for the Institute of Theoretical Physics at ETH Zurich While you type in logically all aspects of your exercise using provided 4TgX macros title text hints solution etc it is rendered according to some standard style yet remaining highly customizable and provides different versions of the sheet for distributing to students without the solutions or for TA s with solutions Tips sheets can also be generated Contents 1 Getting Started Lal Tnstallatioi 2 2 2 aa ccc wea S Be ee Ree eee a le a a eee h ae A 1 2 Minimal Template gt e e 4 d 4 4 44 45S SS SE ee RED RDG 4 RG RAG ad Lia What This Package Does sis oaaao ai 94344 448b4 44 20 bo Rea ewes LA The Helper Application doe 2 220244 4445 008 bP ee DR REED eS 2 Setting Up The Exercise Sheet 2 1 Lecture Lecturer Semester 24 4 4 044 444 Be GSES LE EEE EER a aa 2 2 Exercise Sheet Header lt a ros aa4 a 5648 444 40244444 2 eee eee ee 2 3 Exercise Sheet Language German or English 00 3 Exercises Sil A new exercise uebung so 6 a Ca ada bP ee ESE RAR eed 3 2 The begin exenumerate end exenumerate environment ta HIG ap Ph ee ee ee bebe hdd eee eee 3 4 Splitting exercises into Sub Exercises 2 2 ee ee ee ee 35 Daned Erercibe
16. a ATX macro that is named uebstyle lt StyleName gt If you also provide the command named uebstyle lt StyleName gt lt Language gt where lt Language gt is the language of the sheet i e English or Deutsch then it is called too for the relevant language A simple custom style could be defined as makeatletter newcommand uebstyle DummyStyle UebungLabelEnum alph UebungLabelEnumSub roman 33 UebungLoesungFont UebungExTitleFont bfseries newcommand uebstyle DummyStyle Deutsch UebungLabel Aufgabe makeatother This style could be set by calling the following command before begin document UebungStyle DummyStyle The exercise sheet would then have exercise parts numbered a b etc the solutions font would be normal font and not a small font and the exercise titles would be bold instead of bold italic Also if the sheet happened to be in German then the exercise label would be Aufgabe X instead of bung X that I can include them in future versions of ethuebung Contact me at If you define custom styles please it would be nice to let me know so pfaist phys ethz ch 6 6 Some Internals The IATRX style package is thoroughly commented and should be pretty readable It uses some TEX hacks which I have tried to document properly Contact me if you need help decyphering the code or if you have suggestions or comment
17. ah for this setting end exenumerate Last but not least you can refer to different parts of the exercise with BT X s usual label and ref commands as for example begin exenumerate item This is item a label expart FirstQuestion Prove Fermat s big theorem item This is item b Convince yourself that question ref expart FirstQuestion is quite difficult this will display Convince yourself that question a end exenumerate You may change the default labelling a b by specifying your label format as beginf exenumerate format for example begin exenumerate A item This is A item This is B end exenumerate The syntax is the one used by the begin enumerate end enumerate environment in the enumerate package or in the enumitem package with shortlabels options Internally the package enumitem is used with option shortlabels This Q allows the use as described above of the old enumerate syntax as well as the new but unfortunately more cryptic and verbose enumitem syntax label roman See Section 6 2 for commands available to customize the begin exenumerate end exenumerate environment in par ticular UebungLabelEnum You may of course use usual TX cross referencing for referring to other exercise parts It suffices to use a label at the exercise part you want to refer to and then refer to
18. at ethuebung sty for the default definition 30 uebDueBy The way the due by text will be displayed in the sub header line NOTE This is used only if non empty text was set with UebungDueBy p 5 otherwise this is ignored See also UebungDueBy p 5 and UebungSubHeader p 6 The default is ueb TheDueByLabel ueb TheDueBy uebDiscussion The way the discussion text will be displayed in the sub header line NOTE This is used only if non empty text was set with UebungDiscussion p 5 otherwise this is ignored See also UebungDiscussion p 5 and UebungSubHeader p 6 The default is ueb TheDiscussionLabel ueb TheDiscussion uebExerciseAnnotation Formats an exercise annotation e g num ber of points Beware if you re exploiting hacks that this command might be called twice for the same exercise as it first needs to calculate the width of the annotation in order to decide whether to put it on a new line The default is footnotesize textit 1 The following commands customize some spacing settings Note that they are defined as I4TRX commands and not lengths This means that you should redefine them also with renewcommand Also you can use for example textwidth which will expand later to the header width renewcommand uebHeaderLogoWidth 15 textwidth renewcommand uebHeaderCenterWidth 60 textwidth renewcommand
19. ayed in German when the deutsch package option is provided If you want to display some other string like Exercise Sheet this ti Q tle can be customized using commands UebungsblattTitleSeries p 23 and UebungsblattTitleSolutions p 23 The font can also be changed use UebungsblattTitleFont p 24 The header itself is highly customizable see Sec 6 1 If you wish to Q display a completely different header or with a very different layout you may write your code at the beginning of your document and simply not call MakeUebungHeader p 5 at all You may also write a custom style see Section 6 5 In any case please consider contacting me if you think your header might be useful to others so that I can add it as a style in the package You may add annotations and comments below the main header You can add for example a discussion date or a due date with the commands UebungDiscussion p 5 and UebungDueBy p 5 respectively More generally you may add stuff with the UebungSubHeader and UebungSubHeaderPar commands Customize the font with UebungSubHeaderLineFont UebungSubHeader pos text Sets the given text to be displayed un der the main header at the position pos pos is one of 1 left c center or r right If pos is not specified it defaults to center The text may not contain linebreaks Use UebungSubHeaderPar if you need line breaks Note that this command overrides any content alread
20. bungProf Prof Zebigchef UebungSemester HS 2999 UebungsblattNumber 1 UebungLecture This command sets the title of your lecture to the given argument The lecture title is displayed in the main exercise header UebungProf Use this command to set the professor or lecturer of the course to the given argument Use this command more than once to specify multiple professors on separate lines value to previously specified values allowing to specify more than one lecturer Each lecturer displayed in the header is placed on a new line Q The UebungProf command unlike the other commands appends its UebungLecturer This command is an exact alias of UebungProf UebungSemester This command sets the semester that will be dis played in the header UebungsblattNumber This sets the exercise sheet number to the given argument The exercise sheet number usually starts at 1 and increases every week as more exercise sheets are distributed The macro theUebungsblattNumber is defined to expand to the given exercise sheet number UebungDueBy Use this command to specify a date by which the sheet should be handed in For example UebungDueBy 21 12 2012 This will be displayed by default under the header aligned right with a Due by label Abgabe in German See also UebungSubHeader p 6 UebungDiscussion Use this command to spe
21. cify a date by which the sheet should be discussed For example UebungDiscussion 21 12 2012 This will be displayed by default under the header aligned left with a Discus sion label Besprechung in German See also UebungSubHeader p 6 expand to an internal macro definition So technically they can be called whenever you want Just call them before calling any other macro that actually uses those values e g MakeUebungHeader p 5 Calling such a macro a second time with a different value overrides the previous value Q These commands should be called in the preamble but they just internally theUebungsblattNumber This macro expands to the current exercise sheet number Set this macro by calling UebungsblattNumber You may use this macro anywhere in your document 2 2 Exercise Sheet Header The page header is generated automatically by the package and is displayed by calling the MakeUebungHeader command at the beginning of the document MakeUebungHeader Draws the main header of the exercise sheet in three parts with ETH logo centered title and professor semester displayed on the right And a horizontal line under those The header automatically displays the right title according to whether the exercise sheet without the solutions or with the solutions is displayed respectively printing Series or Solu tions The appropriate titles are also automatically displ
22. d exenumerate item as label normally does except that any reference to this label using ref will yield the full reference to the nested exercise part including the higher level points e g a i See the demo exenumrefs tex demo for an example In case you may wish to manually reset the exenumerate counter back to zero instead of having it resume on the next occurence of begin exenumerate end exenumerate use the command exenumeratereset This should normally not be needed but the com mand is provided in case you would need it The numbering is anyway automatically re set to zero for new exercises i e upon each uebung p 8 and subuebung p 13 and in begin loesung end loesung p 17 environments that are not themselves inside an outer begin exenumerate end exenumerate environment exenumeratereset Manually reset the numbering of the ex enumerate environment to zero The next occurrence of beginf exenumerate end exenumerate will start again from a or whatever the label was redefined to be 3 3 Hints Hints can be introduced with the hint and hints commands 11 Wasliat 4 oo Jp Displays some text meant as a hint to the student with a label Hint A special font is used e g small and italic hints Same as hint except uses the label Hints Use this when several hints are given at once For example
23. der UebungsblattTitleSeries Redefines the title of the exercise sheet whenever the sheet is compiled in exercise sheet mode This setting is ignored if the sheet is compiled in solutions sheet mode Default title is Series Ubungsblatt in German UebungsblattTitleSolutions Redefines the title of the exercise sheet whenever the sheet is compiled in solutions mode This setting is ignored if the sheet is compiled in exercise sheet mode Default title is Solutions Musterl sung in German uebUebungsBlattTitle This command expands to either Series or So lutions or whatever titles you set with UebungsblattTitleSeries or UebungsblattTitleSolutions depending on whether the sheet is being compiled in exercise sheet or solutions sheet mode Of course for tips sheets this is Tips or whatever you changed it to This does not include the series number This command can be handy if you wish to override uebSerieTitle to remove the numbering in the title and UebungsblattTitleSolutions can be specified in the same preamble The relevant title depending on exercise or solutions mode is automatically selected Q Both commands UebungsblattTitleSeries For special sheets such as Revision Sheet or Midterm Exam you may use the following commands Title of what is handed out to students UebungsblattTitleSeries Midterm Exam
24. eet is being generated The contents will be formatted using the default tips font as set with UebungTipsFont p 19 The contents will be hidden if the exercise sheet or solutions sheet is being generated The difference with the begin tips end tips p 19 environment is that no Tips paragraph heading is produced begin notexercisesheet end notexercisesheet The contents of this environment will only be displayed in normal font only if the sheet being compiled is NOT the exercise sheet The contents will be hidden when generating the exercise sheet begin notuebungsblatt end notuebungsblatt Alias of the above begin notsolutions end notsolutions The contents of this environment will be displayed in normal exercise con tent font only if the solutions sheet is NOT being generated The contents will be hidden if the solutions sheet is being generated begin notmusterloesung end notmusterloesung Alias of the above begin nottipssheet end nottipssheet The contents of this environment will be displayed in normal exercise con tent font only if the tips sheet is NOT being generated The contents will be hidden if the tips sheet is being generated The conditionals can be used to selectively output text Use the usual TeX construct for if conditionals ifmusterloseung do something on the musterloesung sheet else
25. file should be prepared as for generating the exercise sheet i e without the sol package option and without any call to UebungMakeSolutionsSheet Then the solution PDF with a standard extension _sol pdf can be generated with the shell command gt pdflatexsol qitil ex06 tex whereas the exercise sheet can be generated with either the usual pdflatex or with pdflatexex 4 2 Inline Solutions for Solutions Sheet begin loesung end loesung Use the begin loesung end loesung environment to write the solutions to each ex ercise inline right after the exercise main text The begin loesung end loesung en vironment may appear anywhere in the exercise and may be repeated You may have for example one general solution at the end of the exercise or multiple solutions after each exercise part or sub exercise begin loesung end loesung Provides solution text to an exercise The content of this environment is by default hidden unless in solution sheet mode package option sol or with the command UebungMakeSolutionsSheet p 17 If in solution sheet mode then the contents is formatted using a smaller font by default and is preceeded by the label Solution or L sung if the sheet is in german with the deutsch package option see Sec 2 3 Equations numbered within this environment obey a separate counter and their labels are preceeded by a letter S resp L in German
26. he exercise or between exercise parts using a begin loesung end loesung environment When the sheet is compiled in exercise sheet mode the default then the solutions are simply ignored and not displayed However when in solutions sheet mode then whenever the environment begin loesung end loesung is encountered a label Solution is printed followed by the contents of the environment By default the solution text is printed in a smaller font to make it visually clear that it is the solution to the exercise but this can easily be changed see Section 5 The same concept applies for the tips sheet With the helper application you can click on the Compile SOLUTIONS Sheet button to compile the document in solutions sheet mode 3nttp en wikibooks org wiki LaTeX Importing Graphics nttp texdoc net texmf dist doc latex wrapfig wrapfig doc pdf http en wikibooks org wiki LaTeX Floats Figures_and_Captions Wrapping_text_around_ figures 15 However you don t have to use the helper application You can also provide the pack age option sol or call the command UebungMakeSolutionsSheet p 17 in your document preamble Either will work usepackage sol ethuebung solutions sheet or usepackage ethuebung UebungMakeSolutionsSheet begin document Formatting of the solutions takes care too of numbering the equations differently i e S 1 S
27. hint Remember that a unitary U satisfies UU dagger U dagger U mathbb I or if there are several hints hints Remember that a unitary U satisfies UU dagger U dagger U mathbb I Also a rotation R satisfies RR T R T R mathbb I You can customize the appearance of the hint text as the label used for hints with the UebungHinweisLabel p 26 UebungHinweiseLabel p 26 and the UebungHinweisFont p 25 com mands If you want to display something else than a hint such as a note but in the same style you can use the command uebHinweisParagraph p 30 hinweis This is exactly the same as hint hinweise This is exactly the same as hints A Both hinweis and hint produce the same output in the same language which is the language of the sheet English by default or German if the deutsch package option was given 12 3 4 Splitting exercises into Sub Exercises You can split exercises into sub exercises in the same spirit as when in a regular IATRX article you split section s into subsection s subuebung Define a sub exercise the title of which will be the argu ment given This will number the sub exercise automatically subexercise Exactly the same as subuebung The following example exercise Quantization of the Electromagnetic Field keywords electromagnetic field second quantizat
28. hout the solutions or for TA s with solutions Tips sheets can also be generated The exercise numbering is taken care of automatically and the equations are given different prefixes depending on whether they are part of the exercise main text the solution or in a tip block The page margins are adapted Exercise part numbering is done smartly and can be resumed solutions may be attached as external PDF files e g for scanned hand written solutions and almost every aspect of the sheet can be customized Read on to learn more Any questions suggestions or comments are welcome at pfaist phys ethz ch 1 4 The Helper Application A helper application makes it easier to compile the different versions of your sheet serie solutions without having to change your LaTeX file The application is available for download at https github com phfaist ethuebung releases This application is not required to compile your sheets it just makes the task slightly more easier You can always compile the different sheets by a simple package option See Section 4 for more information 2 Setting Up The Exercise Sheet 2 1 Lecture Lecturer Semester Setting up the exercise sheet is just a matter of calling a small number of commands before the beginning of your document in the preamble See the template given in Sec 1 2 These lines could be for example UebungLecture Microstructures of molten cheese UebungProf Prof Zebigboss Ue
29. i e S 1 S 2 resp L 1 L 2 such that it is guaranteed that equation numbering stays consistent between solution sheet mode and exercise sheet mode begin solution end solution Exactly the same as the begin loesung end loesung environment 17 and begin solution end solution display their label in the same language which is the language of the exercise sheet This defaults to English but may be set to German with the deutsch package option Sec 2 3 Both commands begin loesung end loesung 4 3 PDF Attachment as solution It is also possible to attach a PDF file with for example a scanned hand written solution The pages of that file are included at the end of the solutions sheet with a reference to the page number at the point in the exercise where the solution is referenced and a title superimposed to the included PDF pages that specify which exercise those pages refer to For example if a solution is scanned as scanned solution pdf then you can simply write in your exercise exercise A Nice Exercise Show that blah blah blah something cool pdfsolution scanned solution pdf the pdfsolution command internally expands to a begin solution end solution environment at the point where its called inserting some text like The solution is provided on page XYZ Then the pages of the specified PDF are appended at the end of the solutions sheet
30. ion quantum fields In this exercise we will learn to quantize the electromagnetic field subexercise Classical Case First here are some questions about classical E M fields subexercise Quantum Case Now we will quantize the E M field will appear as Exercise N Quantization of the Electromagnetic Field In this exercise N 1 Classical Case First here are N 2 Quantum Case Now we Leaving an extra blank newline between subexercise and the sub Q exercise text will produce the sub exercise text on a new line 13 Q Of course subexercise is customizable too See Section 6 2 3 5 Starred Exercises It is common to mark some exercises with a star in order to indicate that they are more ad vanced and meant for the more motivated students This can be achieved with the exstarred command exstarred Produce a starred exercise or exercise part exstarred must be placed immediately before one of the following commands exercise p 8 uebung p 8 item subexercise p 13 or subuebung p 13 to pro duce those exercises or exercises parts with a star The star symbol can be changed with the command UebungStarredSymbol p 27 For example exstarred exercise This exercise is for the motivated student begin exenumerate item Part a of exercise exstarred item Part b of exercise with advanced material end exenumerate
31. ntax as the UebungsblattTitleFont p 24 command Default font is bfseries itshape UebungLabel Specify the text to display to label an exercise This is typically Exercise or Question Default value is Exercise See also uebTheUebungLabel p 29 UebungSubLabel Specify the text to display to label a sub exercise The default value is empty See also uebTheUebungSubLabel p 29 25 UebungLabelEnum Specify the label that will be used for each exercise part e g a tla ae produced by a begin exenumerate end exenumerate p 9 environment Here you must specify the label with the format for the enumitem package i e for example use any string containing one of the roman Roman alph Alph or arabic commands The default label definition is alph UebungLabelEnumSub Specify the label that will be used for each nested exercise part Le any begin exenumerate end exenumerate p 9 environment nested within another begin exenumerate end exenumerate p 9 envi ronment The default is i ii As for UebungLabelEnum the format has to be conform to the enumitem package The default label definition is roman UebungHinweisLabel Specify what text to display to introduce a hint produced by hint p 12 and hinweis p 12 You may for example use a Pe a colon instead of a
32. on does nothing else than redefining re customizing Q the sheet title for exercises and for solutions the exercise label using the commands UebungsblattTitleSeries p 23 etc documented in Sec tion 6 It also automatically includes the IATFX babel package with the german option You may alternatively use the following command UebungLanguage Set the language of the sheet to the given language This may be currently English or Deutsch This will also load the babel package This has the same effect as passing the deutsch or english package options If you do not wish to load the babel package at all use the nobabel1 Q package option 3 Exercises 3 1 Anew exercise uebung Use uebung or exercise to introduce a new exercise and specify a title for your exercise uebung Exercise Title Similar to a ATEX section command this command starts the definition of a new exercise The exercises are au tomatically numbered An adequate label is displayed with the current exercise number and the exercise title is printed in bold italic font by default uebung Exercise Title Annotation This syntax behaves exactly like the uebung command and adds an extra annotation to the ex ercise This can be used for example to specify how many points are awarded for successfully solving the exercise or to indicate some additional information for the exercise Example uebung Pos
33. ons included from an external PDF file with pdfloesung p 19 specify here the title to automatically display on each of those pages You may use the special uebattachedsolutiontheexercisenumber com mand to refer to the exercise for which the current page is the solution The default value is Solution to Exercise uebattachedsolutiontheexercisenumber or if the sheet is in German L osung zu der Ubung uebattachedsolutiontheexercisenumber UebungTextAttachedSolution For solutions included from an exter nal PDF file with pdfloesung p 19 use this command to specify which text should be displayed at the point where pdfloesung is called to refer to an attached solution You may use the special uebthepageattached command to refer to the page on which the solution is attached The default value is The solution to this exercise is attached on page uebthepageattached or if the sheet is in German Die L osung dieser Ubung finden Sie im Anhang auf der Seite uebthepageattached 6 4 Customizable Composed Commands Some compositions can be redefined in order to change the sheet appearance Use the proper LATEX syntax for redefining commands i e Example remove exercise sheet numbering and final dot renewcommand uebSerieTitle uebUebungsBlattTitle 28 theuebcounter This command expands to the current exercise number for matted in the
34. oth these packages are loaded and anchors are placed in the PDF file so that they can be refered to nicely and so that ref s turn into clickable links If you need your own options to hyperref or if you want to disable hyperref completely use this option 37
35. period if you prefer Default text is Hint Hinweis in German UebungHinweiseLabel Specify what text to display to introduce hints produced by hints p 12 and hinweise p 12 You may for example use a colon instead of a period if you prefer Default text is Hints Hinweise in German in the same language which is the language of the sheet By default the language is English but it can be changed to German by specifying the deutsch package option The text displayed by hint and hinweis is the one set with UebungHinweisLabel This setting is automatically changed when changing the sheet language with UebungLanguage p 7 or the deutsch and english package options The same remark applies to the hints p 12 and hinweise p 12 com mands The commands hint and hinweis produce exactly the same output 26 UebungStarredSymbol symbol Replaces the symbol to use for starred exercises or exercise parts The default is an asterisk but you can set your preferred symbol text or whatever you want 6 3 Customizing the Solutions Labels and Fonts UebungLoesungFont Specify the font to use for the inline solutions environment begin loesung end loesung p 17 The font is a se quence of IATFX font commands such as footnotesize bfseries sfshape etc This command has the same syntax as Ueb
36. rameter This is internally used by the hint p 12 hints hinweis and hinweise commands The default is par ueb TheHinweisFont 1 hspace 2mm 2 Example uebHinweisParagraph Note for the lazy it is also possible to do the whole exercise with two particles only uebSerieTitle This macro expands to the title of the exercise sheet This includes the name of the sheet given by uebUebungsBlattTitle e g Se ries or Solutions as well as the sheet number If the value doesn t refer explicitely to UebungsblattTitleSeries and or UebungsblattTitleSolutions e g via uebUebungsBlattTitle then this setting overrides any title set by those commands You may for example redefine this macro to completely override the sheet title e g renewcommand uebSerieTitle Overridden Title Or if you simply want to remove completely the sheet number and final dot renewcommand uebSerieTitle uebUebungsBlattTitle The default is uebUebungsBlattTitle ueb maybespace theVebungsblattNumber uebHeaderLogo Expands to stuff that will be displayed in the logo corner By default this command simply expands to ETHLogo p 33 uebHeaderCenter Expands to stuff that will be displayed in the center of the header Look at ethuebung sty for the default definition uebHeaderRight Expands to stuff that will be displayed in the right corner of the header Look
37. rse default empty and ETHUNIInstitut lt Institute gt to change the institute default Institute for Theoreti cal Physics or corresponding in German This style obeys the current sheet language make sure to call UebungLanguage before calling UebungStyle ETHUniZH or use the relevant package option The LargeSolutions and LargeTips style makes the exercise text appear italic in the solu tions respectively tips sheet and keeps the solution text resp tips with a normal font size instead of the smaller default font size The PreviousITP style redefines the appearance of the sheet to look like the exercise sty style developed by Christoph Buchendorfer with a larger title font bold non italic exercise titles exercise numbering including the sheet number etc Check out Section 6 5 for information on how to define custom styles 22 6 Customizing the Exercise Sheet Appearance In this section we will present some handy commands to change the way the exercise sheet looks or to change some defaults to some other values you would prefer All Uebung commands specified in this section internally expand to an internal macro definition and may be called several times if need be but it shouldn t need be Also best practice is to call them in the preamble but things will still work if you call them anywhere else before you call any command that actually uses the values you want to set 6 1 Customizing the Hea
38. s Feel free to send me an e mail at pfaist phys ethz ch 7 Handy Scripts pdflatexex pdflatexsol and pdflatextips There are several ways within the IATFX file to generate a solutions sheet or a tips sheet e use the Helper Application e use the relevant package option sol or tips e use the relevant command UebungMakeSolutionsSheet p 17 or UebungMakeTipsSheet p 19 34 For convenience there are also a few command line scripts that directly generate the dif ferent PDFs command line version of the Helper Application If you have a file named qit11 ex06 tex you can generate the exercise sheet named qit11 ex06_ex pdf by simply running the pdflatexex script gt pdflatexex qit11 ex06 tex Likewise a solution sheet named qit11 ex06_sol pdf can be generated using the pdflatexsol script with exactly the same TFX file gt pdflatexsol qitil ex06 tex And finally the tips sheet qit11 ex06_tips pdf is simply generated using the command gt pdflatextips qiti1l ex06 tex These scripts are provided alongside with the ethuebung sty package in the bin subdirec tory You should place them or link them in your PATH in order for them to be accessible to the shell 8 Commands Index ETHLogo page 33 notmusterloesung page 21 ETHLogoRaw page 33 notsolutions page 21 exenumerate page 9 nottipssheet page 21 exenumeratereset page 11 notuebungsblatt page 21 exenumfull page 11
39. s a rana did so oe oe a Sh we a eg es ye Gh a a A A ee Eo a i 3 6 Note About Figures 0606 4 224444 0800 00S REPL G SSE demts eee 4 Solutions and Tips Sheets 4 1 Generating the Solutions Sheet 2 uaaa aeaa ee 4 2 Inline Solutions for Solutions Sheet begin loesung end loesung 4 3 PDF Attachment as solution s s aa 44 4404 weed Pb baa EAA ee eee AA Sips ONCE a nh meek ee Ese SOM So ES A ee Be ee eal ee ee So Be a 4 5 Selectively Output Text Depending on Sheet Type 5 Exercise Sheet Style No f A wwnwnnw Wd Go 11 13 14 14 15 16 17 18 19 20 22 6 Customizing the Exercise Sheet Appearance 23 6 1 Customizing the Header s 4 sui 64444 eee eee db PbS Sd BOS ae eee A 23 6 2 Customizing the Exercise Labels and Fonts 0020065 25 6 3 Customizing the Solutions Labels and Fonts o aoaaa 27 6 4 Customizable Composed Commands a eee eee 28 6 5 Defining Custom Styles s acusa d a adele ee a a we bP be OW oe ole ee d 33 6 6 Some Internals 4 6 da fig a toe eve a erate ek GG yo a a Pad a a ee ey 34 7 Handy Scripts pdflatexex pdflatexsol and pdflatextips 34 8 Commands Index 35 9 Package Options Reference 36 1 Getting Started 1 1 Installation The simplest way of installing the ethuebung package is to copy the ethuebung sty file at the same location as your exercise sheet IATFX file This requires of course making several copies of
40. s to the content of the argument preceeded by a nonbreaking space except if the contents contains no text in which case this macro expands to nothing ueb maybespaceafter Same as ueb maybespace except that the space is inserted after the content if the content is not empty ETHLogo Inserts the ETH logo resized to fit textwidth Works both for DVI PS and PDF output by inserting relevant special code directly in raw PS or PDF commands so that no external figure file is needed To resize to a specific width use ETHLogo 3cm ETHLogoRaw Inserts the ETH logo at fixed size 100 x 25pt Works both for DVI PS and PDF output by inserting relevant special code directly in raw PS or PDF commands so that no external figure file is needed UniZHLogo Inserts the logo of the University of Zurich resized to fit textwidth Works both for DVI PS and PDF output by inserting rele vant special code directly in raw PS or PDF commands so that no external figure file is needed To resize to a specific width use UniZHLogo 3cm UniZHLogoRaw Inserts the logo of the University of Zurich at fixed size 25 x 25pt Works both for DVI PS and PDF output by inserting relevant special code directly in raw PS or PDF commands so that no external figure file is needed 6 5 Defining Custom Styles A style is simply a collection of customization commands such as presented above combined together in
41. that exercise part with a usual ref command This package also provides the syntax exenumfull label which can be used if you want the reference to contain both levels of exercise parts in case of nested enumeration An example usage of these commands begin exenumerate item label expart A This is exercise part a item label expart B This is exercise part b that follows exercise http mirrors ctan org macros latex required tools enumerate pdf nttp mirrors ctan org macros latex contrib enumitem enumitem pdf 10 part ref expart A begin exenumerate item label expart Bi This is exercise sub part i to exercise part b item exenumfull label expart myfullreferenceToBii label expart simpleRefToBii This is exercise sub part ii to exercise part b item exenumfull label expart Biii This is exercise sub part iii to exercise part b end exenumerate end exenumerate You can now refer to exercise part ref expart B b to exercise part ref expart Bi i to exercise part ref expart simpleRefToBii ii or exercise part ref expart myfullreferenceToBii b ii or exercise part ref expart Biii b iii Note that you can put the name you wish inside label and exenumfull label and you can combine these as you wish exenumfull label label name Attaches a label to the current begin exenumerate en
42. the sheet to be in solutions mode displaying all inline solutions See Section 4 1 tips Sets the sheet to be in tips mode displaying all inline tips See Sec tion 4 4 deutsch Sets the sheet to be in German and loads the German babel package This option has the same effect as UebungLanguage Deutsch See Section 2 3 english Sets the sheet to be in English and loads the English babel package By default if you don t include this option the ba bel package is not loaded This option has the same effect as UebungLanguage English See Section 2 3 nobabel1 Instructs ethuebung never to load the babel package This is com patible with english or deutsch package options as well as with UebungLanguage p 7 these commands or options will then only set the relevant texts without loading the babel package noexenum Sets the sheet to NOT define the begin exenumerate end exenumerate p 9 environment thus NOT including the package enumitem Use this if you have compatibility issues with enumitem and if you don t need the begin exenumerate end exenumerate environment nogeom Instructs the package NOT to touch the page geometry By default ethuebung lays out the page with specific margins that are more suit able than the default for an exercise sheet using package geometry Use this option to disable this behavior nohyperref Instructs ethuebung NOT to load packages hyperref and xcolor By default b
43. tulates of Quantum Mechanics 3 points The exercise is internally implemented as a ATX paragraph The numbering is taken care of by an internal counter uebcounter You may place a label command after your exercise or uebung command to refer to it later with ref as you would do for a latex chapter section or equation The label and title font of the exercise can be highly customized by using or redefining for example the commands UebungLabel p 25 UebungExTitleFont p 25 theuebcounter p 29 uebExerciseAnnotation p 31 etc exercise Exactly the same as uebung Both forms above with exercise title and with both exercise title and annotation can be used the same language which is the language of the sheet By default the language is English but it can be changed to German by specifying the deutsch package option The label can also independently be changed see UebungLabel p 25 Commands uebung and exercise produce exactly the same output in You should add keywords to the exercise with the keywords command Separate keywords by commas These keywords will not appear in the PDF file but can be helpful to search for exercises afterwards by scanning through the ATEX exercise sheet files exercise State Tomography of a Coin keywords tomography coin coin bias maximum likelihood Bloch sphere keywords keyword1 keyword2 Add keywords to an exercise
44. ungsblattTitleFont p 24 However here you may not specify a command that will take an argument such as underline The default is def baselinestretch 1 1 footnotesize UebungSolLabel Specify the text to display as a label for an inline solution block This is the label that will be dis played as title of the sub paragraph which is induced by a begin loesung end loesung p 17 environment The default is Solution or in German L sung UebungSolEquationLabel Specify a label that should be used to identify equations that are inside a solutions environment This text is prepended to the equation number The default is S or in German L UebungAttachedSolutionTitleTop For pages with solutions in cluded from an external PDF file with pdfloesung p 19 you may specify here the spacing between the top of the page and the title which is auto matically produced on those pages The default value is 1 3 baselineskip 27 UebungAttachedSolutionTitleFont For pages with solutions in cluded from an external PDF file with pdfloesung p 19 specify here the font commands to use to display the title which is automatically produced on those pages The syntax is the same as UebungsblattTitleFont p 24 The default value is bfseries small underline UebungAttachedSolutionTitle For pages with soluti
45. y set at the given position including any content set by UebungDiscussion p 5 or UebungDueBy p 5 If you want to include also a discussion and or a due by date then include the contents directly using the uebDiscussion p 31 and or uebDueBy p 31 commands for example UebungSubHeaderPar r uebDueBy More text UebungSubHeaderPar pos text The same as UebungSubHeader but includes the contents in a parbox such that line breaks are permitted Text is not justified but rather it is aligned left for left contents centered for center contents and aligned right for right contents Note the parbox built by UebungSubHeaderPar currently has a large Q width so don t count on line breaking This is such that lines such as Due By don t break even if they overflow past 1 3 of the page width this doesn t affect anything if there is nothing in the center So don t count on automatic line breaks in UebungSubHeaderPar If you have a specific need create a parbox or minipage environment yourself and use UebungSubHeader 2 3 Exercise Sheet Language German or English usepackage deutsch ethuebung German version Uebungsblatt will provide you the German version of the exercise sheet Simply adding the sol package option will provide you the Musterl sung usepackage deutsch sol ethuebung German verion Musterloesung This package opti
Download Pdf Manuals
Related Search
Related Contents
データシート Barrière immatérielle de sécurité S&S Super B - Nightrider.com ROMShock User`s Manual Singer AG Series User's Manual Model HDV-5CAM-30FM Modelo HDV-5CAM User Guide Installation Guide Service Manual - Alpine Home Air Products Ammonium Sulfate with Coated Urea Ammonium Sulfate with 標準カムクラッチ MLシリーズ取扱説明 Copyright © All rights reserved.
Failed to retrieve file