├── Chapter_01_-_Getting_started_with_LaTeX └── 01_first_document.tex ├── Chapter_02_-_Formatting_Text_and_Creating_Macros ├── 01_example_document.tex ├── 02_special_symbols.tex ├── 03_adjusting_font_shape.tex ├── 04_choosing_font.tex ├── 05_font_declarations.tex ├── 06_font_commands.tex ├── 07_grouping_braces.tex ├── 08_font_sizes.tex ├── 09_simple_macros.tex ├── 10_proper_spacing.tex ├── 11_macro_arguments.tex ├── 12_optional_arguments.tex ├── 13_text_box.tex ├── 14_aligning_boxes.tex ├── 15_minipages.tex ├── 16_hyphenation.tex ├── 17_justification.tex ├── 18_line_breaks.tex ├── 19_ragged_right.tex ├── 20_ragged_left.tex ├── 21_centering.tex ├── 22_center_environment.tex ├── 23_quote.tex ├── 24_quotation.tex └── 25_paragraph_skip.tex ├── Chapter_03_-_Designing_Pages ├── 01_book_chapter.tex ├── 02_margins.tex ├── 03_class_options.tex ├── 04_header_footer.tex ├── 05_footnotes.tex ├── 06_footnote_line.tex ├── 07_page_break.tex ├── 08_new_page.tex ├── 09_overfull_page.tex ├── 10_enlarge_page.tex ├── 11_line_spacing.tex ├── 12_contents.tex └── 13_shorten_contents.tex ├── Chapter_04_-_Creating_Lists ├── 01_bullet_list.tex ├── 02_list_level.tex ├── 03_enumerate_list.tex ├── 04_definition_list.tex ├── 05_compact_list.tex ├── 06_in_paragraph_list.tex ├── 07_customized_list.tex ├── 08_resume_list.tex └── 09_list_layout.tex ├── Chapter_05_-_Including_Images ├── 01_include_image.tex ├── 02_position_image.tex ├── 03_bottom_image.tex ├── 04_text_around_image.tex └── 05_no_floating.tex ├── Chapter_06_-_Creating_Tables ├── 01_tab_stops.tex ├── 02_overlapping.tex ├── 03_alignment.tex ├── 04_tabular.tex ├── 05_formatting_args.tex ├── 06_vertical_alignment.tex ├── 07_row_height.tex ├── 08_beautifying.tex ├── 09_multicolumn.tex ├── 10_insert_code.tex ├── 11_multirow.tex └── 12_caption.tex ├── Chapter_07_-_Using_Cross-References ├── 01_label_ref.tex ├── 02_page_reference.tex ├── 03_varioref.tex ├── 04_varioref_figure.tex ├── 05_varioref_range.tex ├── 06_cleveref.tex └── 07_cleveref_ranges.tex ├── Chapter_08_-_Listing_Contents_and_References ├── 01_contents.tex ├── 02_list_figures.tex ├── 03_index.tex ├── 04_index_advanced.tex ├── 05_index_iso_style.tex ├── 06_bibliography.tex ├── 07_bibliography_labels.tex ├── 08_bibtex.tex └── example.bib ├── Chapter_09_-_Writing_Math_Formulas ├── 01_equations.tex ├── 02_subscripts_superscripts.tex ├── 03_operators.tex ├── 04_operators_inline.tex ├── 05_roots.tex ├── 06_fractions.tex ├── 07_greek.tex ├── 08_greek_variants.tex ├── 09_uppercase_greek.tex ├── 10_upright_greek.tex ├── 11_upright_greek_variants.tex ├── 12_script.tex ├── 13_ellipsis.tex ├── 14_math_font_styles.tex ├── 15_italic.tex ├── 16_multiline.tex ├── 17_tagging.tex ├── 18_binary_operation.tex ├── 19_binary_relation.tex ├── 20_inequality.tex ├── 21_subset_superset.tex ├── 22_arrows.tex ├── 23_harpoons.tex ├── 24_letter_symbols.tex ├── 25_misc_symbols.tex ├── 26_variable_operators.tex ├── 27_variable_delimiters.tex ├── 28_inline_equation.tex ├── 29_displayed_equation.tex ├── 30_array.tex ├── 31_matrix.tex ├── 32_binomial.tex ├── 33_overline.tex ├── 34_underbrace.tex ├── 35_accents.tex ├── 36_stack_symbols.tex ├── 37_stack_relation.tex └── 38_theorem.tex ├── Chapter_10_-_Using_Fonts ├── 01_lmodern.tex ├── 02_kpfonts.tex ├── 03_kpfonts_light.tex ├── 04_times_roman.tex ├── 05_palatino.tex ├── 06_charter.tex ├── 07_new_century.tex ├── 08_concrete.tex ├── 09_kerkis.tex ├── 10_arev.tex ├── 11_cmbright.tex ├── 12_kurier.tex ├── 13_helvetica.tex ├── 14_courier.tex ├── 15_inconsolata.tex ├── 16_bera_mono.tex ├── 17_calligra.tex ├── 18_miama.tex ├── 19_segoe.tex └── 20_multiple_fonts.tex ├── Chapter_11_-_Developing_Large_Documents ├── 01_big_document.tex ├── 02_titlepage.tex ├── 03_letter.tex ├── chapter1.tex ├── chapter2.tex ├── dedication.tex ├── equations.tex ├── preamble.tex ├── proofs.tex └── title.tex ├── Chapter_12_-_Enhancing_Your_Documents_Further ├── 01_equation.tex ├── 02_big_document.tex ├── 02_bookmarks.tex ├── chapter1.tex ├── chapter2.tex ├── dedication.tex ├── preamble.tex ├── proofs.tex └── title.tex ├── Chapter_13_-_Troubleshooting ├── 01_test_errror.tex └── 02_warning.tex ├── LICENSE ├── README.md └── cover.png /Chapter_01_-_Getting_started_with_LaTeX/01_first_document.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | This is our first document. 4 | \end{document} 5 | -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/01_example_document.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,11pt]{article} 2 | \title{Example 2} 3 | \author{My name} 4 | \date{May 5, 2021} 5 | \begin{document} 6 | \maketitle 7 | \section{What's this?} 8 | This is our second document. It contains a title and a section with text. 9 | \end{document} 10 | -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/02_special_symbols.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | Statement \#1: 4 | 50\% of \$100 equals \$50. 5 | 6 | More special symbols are \&, \_, \{ and \}. 7 | \end{document} 8 | -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/03_adjusting_font_shape.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | Text can be \emph{emphasized}. 4 | 5 | Besides from \textit{italics}, words can be \textbf{bold}, 6 | \textsl{slanted}, or typeset in \textsc{Small Caps}. 7 | 8 | Such commands can be \textit{\textbf{nested}}. 9 | 10 | \emph{See how \emph{emphasizing} looks when nested.} 11 | \end{document} 12 | -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/04_choosing_font.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \textsf{\textbf{Get help on the Internet}} 4 | 5 | \texttt{https://latex.org} is a support forum for \LaTeX. 6 | \end{document} 7 | -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/05_font_declarations.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \sffamily\bfseries Get help on the Internet 4 | 5 | \normalfont\ttfamily https://latex.org\normalfont\ is 6 | a support forum for \LaTeX. 7 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/06_font_commands.tex: -------------------------------------------------------------------------------- 1 | % Used for Figure 2.6: Font commands 2 | \documentclass{article} 3 | \usepackage{booktabs} 4 | \renewcommand*\c{\ttfamily\textbackslash} 5 | \begin{document} 6 | \sffamily 7 | \begin{tabular}{lll} 8 | \toprule 9 | \textbf{Command} & \textbf{Declaration} & \textbf{Meaning} \\ 10 | \midrule 11 | \c textrm\{\ldots\} & \c rmfamily & \normalfont\rmfamily roman family \\ 12 | \c textsf\{\ldots\} & \c sffamily & \normalfont\sffamily sans-serif family \\ 13 | \c texttt\{\ldots\} & \c ttfamily & \normalfont\ttfamily typewriter family \\ 14 | \c textbf\{\ldots\} & \c bfseries & \normalfont\bfseries bold-face \\ 15 | \c textmd\{\ldots\} & \c mdseries & \normalfont\mdseries medium \\ 16 | \c textit\{\ldots\} & \c itshape & \normalfont\itshape italic shape \\ 17 | \c textsl\{\ldots\} & \c slshape & \normalfont\slshape slanted shape \\ 18 | \c textsc\{\ldots\} & \c scshape & \normalfont\scshape Small Caps shape \\ 19 | \c textup\{\ldots\} & \c upshape & \normalfont\upshape upright shape \\ 20 | \c textnormal\{\ldots\} & \c normalfont & \normalfont default font \\ 21 | \bottomrule 22 | \end{tabular} 23 | \end{document} 24 | -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/07_grouping_braces.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | Besides from {\itshape italics}, words can be {\bfseries bold}, 4 | {\slshape slanted}, or typeset in {\scshape Small Caps}. 5 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/08_font_sizes.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \tiny We \scriptsize start \footnotesize very \small small, 4 | \normalsize get \large big \Large and \LARGE bigger, 5 | \huge huge, \Huge gigantic! 6 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/09_simple_macros.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\TUG}{\TeX\ Users Group} 3 | \begin{document} 4 | \section{The \TUG} 5 | The \TUG\ is an organization for people who use \TeX\ or \LaTeX. 6 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/10_proper_spacing.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{xspace} 3 | \newcommand{\TUG}{\TeX\ Users Group\xspace} 4 | \begin{document} 5 | \section{The \TUG} 6 | The \TUG\ is an organization for people who use \TeX\ or \LaTeX. 7 | \end{document} 8 | -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/11_macro_arguments.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\keyword}[1]{\textbf{#1}} 3 | \begin{document} 4 | \keyword{Grouping} by curly braces limits the 5 | \keyword{scope} of \keyword{declarations}. 6 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/12_optional_arguments.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\keyword}[2][\bfseries]{{#1#2}} 3 | \begin{document} 4 | \keyword{Grouping} by curly braces limits the 5 | \keyword{scope} of \keyword[\itshape]{declarations}. 6 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/13_text_box.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \parbox{3cm}{TUG is an acronym. It means \TeX\ Users Group.} 4 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/14_aligning_boxes.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | Text line 4 | \quad\parbox[b]{1.8cm}{this parbox is aligned at its bottom line} 5 | \quad\parbox{1.5cm}{center-aligned parbox} 6 | \quad\parbox[t]{2cm}{another parbox aligned at its top line} 7 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/15_minipages.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \begin{minipage}{3cm} 4 | TUG is an acronym. It means \TeX\ Users Group. 5 | \end{minipage} 6 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/16_hyphenation.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \hyphenation{acro-nym} 3 | \begin{document} 4 | \begin{minipage}{3cm} 5 | TUG is an acronym. It means \TeX\ Users Group. 6 | \end{minipage} 7 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/17_justification.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{microtype} 3 | \begin{document} 4 | \begin{minipage}{3cm} 5 | TUG is an acronym. It means \TeX\ Users Group. 6 | \end{minipage} 7 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/18_line_breaks.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \noindent\emph{Annabel Lee}\\ 4 | It was many and many a year ago,\\ 5 | In a kingdom by the sea,\\ 6 | That a maiden there lived whom you may know\\ 7 | By the name of Annabel Lee 8 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/19_ragged_right.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \parbox{3cm}{\raggedright 4 | TUG is an acronym. It means \TeX\ Users Group.} 5 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/20_ragged_left.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \parbox{3cm}{\raggedleft 4 | TUG is an acronym. It means \TeX\ Users Group.} 5 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/21_centering.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \pagestyle{empty} 3 | \begin{document} 4 | {\centering 5 | \huge\bfseries Centered text \\ 6 | \Large\normalfont written by me \\ 7 | \normalsize\today 8 | 9 | } 10 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/22_center_environment.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{url} 3 | \begin{document} 4 | \noindent This is the beginning of a poem 5 | by Edgar Allan Poe: 6 | \begin{center} 7 | \emph{Annabel Lee} 8 | \end{center} 9 | \begin{center} 10 | It was many and many a year ago,\\ 11 | In a kingdom by the sea,\\ 12 | That a maiden there lived whom you may know\\ 13 | By the name of Annabel Lee 14 | \end{center} 15 | The complete poem can be read on 16 | \url{http://www.online-literature.com/poe/576/}. 17 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/23_quote.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \noindent Niels Bohr said: ``An expert is a person who has made 4 | all the mistakes that can be made in a very narrow field.'' 5 | Albert Einstein said: 6 | \begin{quote} 7 | Anyone who has never made a mistake has never tried anything new. 8 | \end{quote} 9 | Errors are inevitable. So, let’s be brave trying something new. 10 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/24_quotation.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{url} 3 | \begin{document} 4 | 5 | The authors of the CTAN team listed ten good reasons 6 | for using \TeX. Among them are: 7 | \begin{quotation} 8 | \TeX\ has the best output. What you end with, 9 | the symbols on the page, is as useable, and beautiful, 10 | as a non-professional can produce. 11 | 12 | \TeX\ knows typesetting. As those plain text samples 13 | show, TeX's has more sophisticated typographical algorithms 14 | such as those for making paragraphs and for hyphenating. 15 | 16 | \TeX\ is fast. On today's machines \TeX\ is very fast. 17 | It is easy on memory and disk space, too. 18 | 19 | \TeX\ is stable. It is in wide use, with a long history. 20 | It has been tested by millions of users, on demanding input. 21 | It will never eat your document. Never. 22 | \end{quotation} 23 | The original text can be found on 24 | \url{https://www.ctan.org/what_is_tex.html}. 25 | \end{document} -------------------------------------------------------------------------------- /Chapter_02_-_Formatting_Text_and_Creating_Macros/25_paragraph_skip.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{parskip} 3 | \usepackage{url} 4 | \begin{document} 5 | The authors of the CTAN team listed ten good reasons 6 | for using \TeX. Among them are: 7 | 8 | \TeX\ has the best output. What you end with, 9 | the symbols on the page, is as useable, and beautiful, 10 | as a non-professional can produce\ldots 11 | 12 | The original text can be found on 13 | \url{https://www.ctan.org/what_is_tex.html}. 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/01_book_chapter.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \begin{document} 5 | \chapter{Exploring the page layout} 6 | In this chapter we will study the layout of pages. 7 | \section{Some filler text} 8 | \blindtext 9 | \section{A lot more filler text} 10 | More dummy text will follow. 11 | \subsection{Plenty of filler text} 12 | \blindtext[10] 13 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/02_margins.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm, bottom=3cm, bindingoffset=0.5cm]{geometry} 3 | \usepackage[english]{babel} 4 | \usepackage{blindtext} 5 | \begin{document} 6 | \chapter{Exploring the page layout} 7 | In this chapter we will study the layout of pages. 8 | \section{Some filler text} 9 | \blindtext 10 | \section{A lot more filler text} 11 | More dummy text will follow. 12 | \subsection{Plenty of filler text} 13 | \blindtext[10] 14 | \end{document} 15 | -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/03_class_options.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt,landscape,twocolumn]{book} 2 | \usepackage{geometry} 3 | \usepackage[english]{babel} 4 | \usepackage{blindtext} 5 | \begin{document} 6 | \chapter{Exploring the page layout} 7 | In this chapter we will study the layout of pages. 8 | \section{Some filler text} 9 | \blindtext 10 | \section{A lot more filler text} 11 | More dummy text will follow. 12 | \subsection{Plenty of filler text} 13 | \blindtext[10] 14 | \end{document} 15 | -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/04_header_footer.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage{fancyhdr} 5 | \fancyhf{} 6 | \fancyhead[LE]{\scshape\nouppercase{\leftmark}} 7 | \fancyhead[RO]{\nouppercase{\rightmark}} 8 | \fancyfoot[LE,RO]{\thepage} 9 | \pagestyle{fancy} 10 | \begin{document} 11 | \chapter{Exploring the page layout} 12 | In this chapter we will study the layout of pages. 13 | \section{Some filler text} 14 | \blindtext 15 | \section{A lot more filler text} 16 | More dummy text will follow. 17 | \subsection{Plenty of filler text} 18 | \blindtext[10] 19 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/05_footnotes.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \begin{document} 5 | \chapter{Exploring the page layout} 6 | In this chapter we will study the layout of pages. 7 | \section{Some filler text} 8 | \blindtext 9 | \section{A lot more filler text} 10 | More dummy text\footnote{serving as a placeholder} 11 | will follow. 12 | \subsection{Plenty of filler text} 13 | \blindtext[10] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/06_footnote_line.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \renewcommand{\footnoterule} 5 | {\noindent\smash{\rule[3pt]{\textwidth}{0.4pt}}} 6 | \begin{document} 7 | \chapter{Exploring the page layout} 8 | In this chapter we will study the layout of pages. 9 | \section{Some filler text} 10 | \blindtext 11 | \section{A lot more filler text} 12 | More dummy text\footnote{serving as a placeholder} 13 | will follow. 14 | \subsection{Plenty of filler text} 15 | \blindtext[10] 16 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/07_page_break.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \begin{document} 5 | \chapter{Exploring the page layout} 6 | In this chapter we will study the layout of pages. 7 | \section{Some filler text} 8 | \blindtext 9 | \section{A lot more filler text} 10 | More dummy text will follow. 11 | \pagebreak 12 | \subsection{Plenty of filler text} 13 | \blindtext[10] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/08_new_page.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \begin{document} 5 | \chapter{Exploring the page layout} 6 | In this chapter we will study the layout of pages. 7 | \section{Some filler text} 8 | \blindtext 9 | \section{A lot more filler text} 10 | More dummy text will follow. 11 | \newpage 12 | \subsection{Plenty of filler text} 13 | \blindtext[10] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/09_overfull_page.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,11pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm, 5 | bottom=3cm, bindingoffset=1cm]{geometry} 6 | \begin{document} 7 | \chapter{Exploring the page layout} 8 | In this chapter we will study the layout of pages. 9 | \section{Some filler text} 10 | \blindtext 11 | \section{A lot more filler text} 12 | More dummy text will follow. 13 | \subsection{Plenty of filler text} 14 | \blindtext[3] 15 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/10_enlarge_page.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,11pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm, 5 | bottom=3cm, bindingoffset=1cm]{geometry} 6 | \begin{document} 7 | \chapter{Exploring the page layout} 8 | In this chapter we will study the layout of pages. 9 | \section{Some filler text} 10 | \blindtext 11 | \section{A lot more filler text} 12 | More dummy text will follow. 13 | \subsection{Plenty of filler text} 14 | \enlargethispage{\baselineskip} 15 | \blindtext[3] 16 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/11_line_spacing.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,11pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm, 5 | bottom=3cm, bindingoffset=1cm]{geometry} 6 | \usepackage[onehalfspacing]{setspace} 7 | \begin{document} 8 | \chapter{Exploring the page layout} 9 | In this chapter we will study the layout of pages. 10 | \section{Some filler text} 11 | \blindtext 12 | \section{A lot more filler text} 13 | More dummy text will follow. 14 | \subsection{Plenty of filler text} 15 | \enlargethispage{\baselineskip} 16 | \blindtext[3] 17 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/12_contents.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm, 5 | bottom=3cm, bindingoffset=1cm]{geometry} 6 | \begin{document} 7 | \tableofcontents 8 | \chapter{Exploring the page layout} 9 | In this chapter we will study the layout of pages. 10 | \section{Some filler text} 11 | \blindtext 12 | \section{A lot more filler text} 13 | More dummy text will follow. 14 | \subsection{Plenty of filler text} 15 | \blindtext[10] 16 | \end{document} -------------------------------------------------------------------------------- /Chapter_03_-_Designing_Pages/13_shorten_contents.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,12pt]{book} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage[a4paper, inner=1.5cm, outer=3cm, top=2cm, 5 | bottom=3cm, bindingoffset=1cm]{geometry} 6 | \begin{document} 7 | \tableofcontents 8 | \chapter[Page layout]{Exploring the page layout} 9 | In this chapter we will study the layout of pages. 10 | \section[Filler text]{Some filler text} 11 | \blindtext 12 | \section[More]{A lot more filler text} 13 | More dummy text will follow. 14 | \subsection[Plenty]{Plenty of filler text} 15 | \blindtext[10] 16 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/01_bullet_list.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \section*{Useful packages} 4 | LaTeX provides several packages for designing the layout: 5 | \begin{itemize} 6 | \item geometry 7 | \item typearea 8 | \item fancyhdr 9 | \item scrpage-scrlayer 10 | \item setspace 11 | \end{itemize} 12 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/02_list_level.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \section*{Useful packages} 4 | LaTeX provides several packages for designing the layout: 5 | \begin{itemize} 6 | \item Page layout 7 | \begin{itemize} 8 | \item geometry 9 | \item typearea 10 | \end{itemize} 11 | \item Headers and footers 12 | \begin{itemize} 13 | \item fancyhdr 14 | \item scrpage-scrlayer 15 | \end{itemize} 16 | \item Line spacing 17 | \begin{itemize} 18 | \item setspace 19 | \end{itemize} 20 | \end{itemize} 21 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/03_enumerate_list.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \begin{enumerate} 4 | \item State the paper size by an option to the 5 | document class 6 | \item Determine the margin dimensions using one 7 | of these packages: 8 | \begin{itemize} 9 | \item geometry 10 | \item typearea 11 | \end{itemize} 12 | \item Customize header and footer by one 13 | of these packages: 14 | \begin{itemize} 15 | \item fancyhdr 16 | \item scrpage-scrlayer 17 | \end{itemize} 18 | \item Adjust the line spacing for the whole document 19 | \begin{itemize} 20 | \item by using the setspace package 21 | \item or by the command 22 | \verb|\linespread{factor}| 23 | \end{itemize} 24 | \end{enumerate} 25 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/04_definition_list.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \begin{description} 4 | \item[paralist] provides compact lists and list 5 | versions that can be used within paragraphs, 6 | helps to customize labels and layout. 7 | \item[enumitem] gives control over labels 8 | and lengths in all kind of lists. 9 | \item[mdwlist] is useful to customize description 10 | lists, it even allows multi-line labels. 11 | It features compact lists and the capability 12 | to suspend and resume. 13 | \item[desclist] offers more flexibility in 14 | definition list. 15 | \item[multenum] produces vertical enumeration in 16 | multiple columns. 17 | \end{description} 18 | \end{document} 19 | -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/05_compact_list.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{paralist} 3 | \begin{document} 4 | \begin{compactenum} 5 | \item State the paper size by an option to 6 | the document class 7 | \item Determine the margin dimensions using one 8 | of these packages: 9 | \begin{compactitem} 10 | \item geometry 11 | \item typearea 12 | \end{compactitem} 13 | \item Customize header and footer by one 14 | of these packages: 15 | \begin{compactitem} 16 | \item fancyhdr 17 | \item scrpage-scrlayer 18 | \end{compactitem} 19 | \item Adjust the line spacing for the whole document 20 | \begin{compactitem} 21 | \item by using the setspace package 22 | \item or by the command \verb|\linespread{factor}| 23 | \end{compactitem} 24 | \end{compactenum} 25 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/06_in_paragraph_list.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{paralist} 3 | \begin{document} 4 | \begin{compactenum} 5 | \item State the paper size by an option to 6 | the document class 7 | \item Determine the margin dimensions using one 8 | of these packages: 9 | \begin{compactitem} 10 | \item geometry 11 | \item typearea 12 | \end{compactitem} 13 | \item Customize header and footer by one 14 | of these packages: 15 | \begin{compactitem} 16 | \item fancyhdr 17 | \item scrpage-scrlayer 18 | \end{compactitem} 19 | \item Adjust the line spacing for the whole document 20 | \begin{compactitem} 21 | \item by using the setspace package and one 22 | of its options: 23 | \begin{inparaenum} 24 | \item singlespacing 25 | \item onehalfspacing 26 | \item double spacing 27 | \end{inparaenum} 28 | \item or by the command \verb|\linespread{factor}| 29 | \end{compactitem} 30 | \end{compactenum} 31 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/07_customized_list.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{enumitem} 3 | \setlist{nosep} 4 | \setitemize[1]{label=---} 5 | \setenumerate[1]{label=\textcircled{\scriptsize\Alph*}, 6 | font=\sffamily} 7 | \begin{document} 8 | \begin{enumerate} 9 | \item State the paper size by an option to the 10 | document class 11 | \item Determine the margin dimensions using one of 12 | these packages: 13 | \begin{itemize} 14 | \item geometry 15 | \item typearea 16 | \end{itemize} 17 | \item Customize header and footer by one of these 18 | packages: 19 | \begin{itemize} 20 | \item fancyhdr 21 | \item scrpage-scrheader 22 | \end{itemize} 23 | \item Adjust the line spacing for the whole document 24 | \begin{itemize} 25 | \item by using the setspace package 26 | \item or by the command \verb|\linespread{factor}| 27 | \end{itemize} 28 | \end{enumerate} 29 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/08_resume_list.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{enumitem} 3 | \setlist{nosep} 4 | \setitemize[1]{label=---} 5 | \setenumerate[1]{label=\textcircled{\scriptsize\Alph*}, 6 | font=\sffamily} 7 | \begin{document} 8 | \begin{enumerate} 9 | \item State the paper size by an option to the 10 | document class 11 | \item Determine the margin dimensions using one of 12 | these packages: 13 | \begin{itemize} 14 | \item geometry 15 | \item typearea 16 | \end{itemize} 17 | \item Customize header and footer by one of these 18 | packages: 19 | \begin{itemize} 20 | \item fancyhdr 21 | \item scrpage-scrheader 22 | \end{itemize} 23 | \end{enumerate} 24 | \noindent\textbf{Tweaking the line spacing:} 25 | \begin{enumerate}[resume*] 26 | \item Adjust the line spacing for the whole document 27 | \begin{itemize} 28 | \item by using the setspace package 29 | \item or by the command \verb|\linespread{factor}| 30 | \end{itemize} 31 | \end{enumerate} 32 | \end{document} -------------------------------------------------------------------------------- /Chapter_04_-_Creating_Lists/09_list_layout.tex: -------------------------------------------------------------------------------- 1 | \documentclass[12pt]{article} 2 | \usepackage{layouts} 3 | \begin{document} 4 | \listdiagram 5 | \end{document} -------------------------------------------------------------------------------- /Chapter_05_-_Including_Images/01_include_image.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a5paper]{article} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage{graphicx} 5 | \pagestyle{empty} 6 | \begin{document} 7 | \section{Including a picture} 8 | \blindtext 9 | \begin{figure} 10 | \centering 11 | \includegraphics[width=4cm]{example-image} 12 | \caption{Test figure} 13 | \end{figure} 14 | \blindtext 15 | \end{document} -------------------------------------------------------------------------------- /Chapter_05_-_Including_Images/02_position_image.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a5paper]{article} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage{graphicx} 5 | \pagestyle{empty} 6 | \begin{document} 7 | \section{Including a picture} 8 | \blindtext 9 | \begin{figure}[ht] 10 | \centering 11 | \includegraphics[width=4cm]{example-image} 12 | \caption{Test figure} 13 | \end{figure} 14 | \blindtext 15 | \end{document} -------------------------------------------------------------------------------- /Chapter_05_-_Including_Images/03_bottom_image.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a5paper]{article} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage{graphicx} 5 | \pagestyle{empty} 6 | \begin{document} 7 | \section{Including a picture} 8 | \blindtext 9 | \begin{figure}[!b] 10 | \centering 11 | \includegraphics[width=4cm]{example-image} 12 | \caption{Test figure} 13 | \end{figure} 14 | \blindtext 15 | \end{document} -------------------------------------------------------------------------------- /Chapter_05_-_Including_Images/04_text_around_image.tex: -------------------------------------------------------------------------------- 1 | \documentclass[a5paper]{article} 2 | \usepackage[english]{babel} 3 | \usepackage{blindtext} 4 | \usepackage{graphicx} 5 | \usepackage{wrapfig} 6 | \pagestyle{empty} 7 | \begin{document} 8 | \section*{Text flowing around an image} 9 | \blindtext 10 | \begin{wrapfigure}{l}{4cm} 11 | \includegraphics[width=4cm]{ example-image} 12 | \caption{Test figure} 13 | \end{wrapfigure} 14 | \blindtext 15 | \end{document} -------------------------------------------------------------------------------- /Chapter_05_-_Including_Images/05_no_floating.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{graphicx} 3 | \usepackage{capt-of} 4 | \begin{document} 5 | Text before 6 | \bigskip 7 | 8 | \begin{minipage}{\linewidth} 9 | \centering 10 | \includegraphics{example-image} 11 | \captionof{figure}{Test figure} 12 | \end{minipage} 13 | 14 | \bigskip 15 | text after 16 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/01_tab_stops.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \begin{tabbing} 4 | \emph{Info:} \= Software \= : \= \LaTeX \\ 5 | \> Author \> : \> Leslie Lamport \\ 6 | \> Website \> : \> www.latex-project.org 7 | \end{tabbing} 8 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/02_overlapping.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\head}[1]{\textbf{#1}} 3 | \begin{document} 4 | \begin{tabbing} 5 | \= \head{Command} \= \head{Declaration} \= \head{Example}\\ 6 | \> \verb|\textrm{...}| \> \verb|\rmfamily| \> \rmfamily text\\ 7 | \> \verb|\textsf{...}| \> \verb|\sffamily| \> \sffamily text\\ 8 | \> \verb|\texttt{...}| \> \verb|\ttfamily| \> \ttfamily text 9 | \end{tabbing} 10 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/03_alignment.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\head}[1]{\textbf{#1}} 3 | \begin{document} 4 | \begin{tabbing} 5 | \= \verb|\textrm{...}| \= \head{Declaration} \= 6 | \head{Example}\kill 7 | \> \head{Command} \> \head{Declaration} \> \head{Example}\\ 8 | \> \verb|\textrm{...}| \> \verb|\rmfamily| \> \rmfamily text\\ 9 | \> \verb|\textsf{...}| \> \verb|\sffamily| \> \sffamily text\\ 10 | \> \verb|\texttt{...}| \> \verb|\ttfamily| \> \ttfamily text 11 | \end{tabbing} 12 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/04_tabular.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\head}[1]{\textnormal{\textbf{#1}}} 3 | \begin{document} 4 | \begin{tabular}{ccc} \hline 5 | \head{Command} & \head{Declaration} & \head{Output}\\ 6 | \hline 7 | \verb|\textrm| & \verb|\rmfamily| & \rmfamily Example text\\ 8 | \verb|\textsf| & \verb|\sffamily| & \sffamily Example text\\ 9 | \verb|\texttt| & \verb|\ttfamily| & \ttfamily Example text\\ 10 | \hline 11 | \end{tabular} 12 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/05_formatting_args.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\head}[1]{\textnormal{\textbf{#1}}} 3 | \begin{document} 4 | \begin{tabular}{|l|c|r|p{1.7cm}|} 5 | \hline 6 | left & centered & right & a fully justified paragraph cell\\ 7 | \hline 8 | l & c & r & p\\ 9 | \hline 10 | \end{tabular} 11 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/06_vertical_alignment.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{array} 3 | \begin{document} 4 | \begin{tabular}{@{}lp{1.2cm}m{1.2cm}b{1.2cm}@{}} 5 | \hline 6 | baseline & aligned at the top & aligned at the middle 7 | & aligned at the bottom\\ 8 | \hline 9 | \end{tabular} 10 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/07_row_height.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{array} 3 | \setlength{\extrarowheight}{4pt} 4 | \begin{document} 5 | \begin{tabular}{@{}>{\itshape}ll!{:}l<{.}@{}} 6 | \hline 7 | Info: & Software & \LaTeX\\ 8 | & Author & Leslie Lamport\\ 9 | & Website & www.latex-project.org\\ 10 | \hline 11 | \end{tabular} 12 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/08_beautifying.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{booktabs} 3 | \newcommand{\head}[1]{\textnormal{\textbf{#1}}} 4 | \begin{document} 5 | \begin{tabular}{ccc} 6 | \toprule[1.5pt] 7 | \head{Command} & \head{Declaration} & \head{Output}\\ 8 | \midrule 9 | \verb|\textrm| & \verb|\rmfamily| & \rmfamily Example text\\ 10 | \verb|\textsf| & \verb|\sffamily| & \sffamily Example text\\ 11 | \verb|\texttt| & \verb|\ttfamily| & \ttfamily Example text\\ 12 | \bottomrule[1.5pt] 13 | \end{tabular} 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/09_multicolumn.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{booktabs} 3 | \newcommand{\head}[1]{\textnormal{\textbf{#1}}} 4 | \begin{document} 5 | \begin{tabular}{@{}*{3}l@{}} 6 | \toprule[1.5pt] 7 | \multicolumn{2}{c}{\head{Input}} & 8 | \multicolumn{1}{c}{\head{Output}}\\ 9 | \head{Command} & \head{Declaration} & \\ 10 | \cmidrule(r){1-2}\cmidrule(l){3-3} 11 | \verb|\textrm| & \verb|\rmfamily| & \rmfamily Example text\\ 12 | \verb|\textsf| & \verb|\sffamily| & \sffamily Example text\\ 13 | \verb|\texttt| & \verb|\ttfamily| & \ttfamily Example text\\ 14 | \bottomrule[1.5pt] 15 | \end{tabular} 16 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/10_insert_code.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{array} 3 | \usepackage{booktabs} 4 | \newcommand{\head}[1]{\textnormal{\textbf{#1}}} 5 | \newcommand{\normal}[1]{\multicolumn{1}{l}{#1}} 6 | \begin{document} 7 | \begin{tabular}{@{}l*{2}{>{\ttfamily\textbackslash}l}l% 8 | <{Example text}@{}} 9 | \toprule[1.5pt] 10 | & \multicolumn{2}{c}{\head{Input}} & 11 | \multicolumn{1}{c}{\head{Output}}\\ 12 | & \normal{\head{Command}} & \normal{\head{Declaration}} 13 | & \normal{}\\ 14 | \cmidrule(lr){2-3}\cmidrule(l){4-4} 15 | Family & textrm & rmfamily & \rmfamily\\ 16 | & textsf & sffamily & \sffamily\\ 17 | & texttt & ttfamily & \ttfamily\\ 18 | \bottomrule[1.5pt] 19 | \end{tabular} 20 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/11_multirow.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{array} 3 | \usepackage{booktabs} 4 | \usepackage{multirow} 5 | \newcommand{\head}[1]{\textnormal{\textbf{#1}}} 6 | \newcommand{\normal}[1]{\multicolumn{1}{l}{#1}} 7 | \begin{document} 8 | \begin{tabular}{@{}l*{2}{>{\textbackslash\ttfamily}l}l% 9 | <{Example text}@{}} 10 | \toprule[1.5pt] 11 | & \multicolumn{2}{c}{\head{Input}} & 12 | \multicolumn{1}{c}{\head{Output}}\\ 13 | & \normal{\head{Command}} & \normal{\head{Declaration}} 14 | & \normal{}\\ 15 | \cmidrule(lr){2-3}\cmidrule(l){4-4} 16 | \multirow{3}{*}{Family} & textrm & rmfamily & \rmfamily\\ 17 | & textsf & sffamily & \sffamily\\ 18 | & texttt & ttfamily & \ttfamily\\ 19 | \bottomrule[1.5pt] 20 | \end{tabular} 21 | \end{document} -------------------------------------------------------------------------------- /Chapter_06_-_Creating_Tables/12_caption.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{array} 3 | \usepackage{booktabs} 4 | \usepackage{multirow} 5 | \newcommand{\head}[1]{\textnormal{\textbf{#1}}} 6 | \newcommand{\normal}[1]{\multicolumn{1}{l}{#1}} 7 | \begin{document} 8 | \begin{table} 9 | \centering 10 | \begin{tabular}{@{}l*{2}{>{\textbackslash\ttfamily}l}% 11 | l<{Example text}l@{}} 12 | \toprule[1.5pt] 13 | & \multicolumn{2}{c}{\head{Input}} 14 | & \multicolumn{2}{c}{\head{Output}}\\ 15 | & \normal{\head{Command}} & \normal{\head{Declaration}} 16 | & \normal{\head{Single use}} & \head{Combined}\\ 17 | \cmidrule(lr){2-3}\cmidrule(l){4-5} 18 | \multirow{3}{*}{Family} & textrm & rmfamily & \rmfamily & \\ 19 | & textsf & sffamily & \sffamily & \\ 20 | & texttt & ttfamily & \ttfamily & \\ 21 | \cmidrule(lr){2-3}\cmidrule(lr){4-4} 22 | \multirow{2}{1.1cm}{Weight} & textbf & bfseries & \bfseries 23 | & \multirow{2}{1.8cm}{\sffamily\bfseries Bold and 24 | sans-serif}\\ 25 | & textmd & mdseries & \mdseries & \\ 26 | \cmidrule(lr){2-3}\cmidrule(lr){4-4} 27 | \multirow{4}{*}{Shape} & textit & itshape & \itshape & \\ 28 | & textsl & slshape & \slshape & 29 | \multirow{2}{1.8cm}{\sffamily\slshape Slanted and 30 | sans-serif}\\ 31 | & textsc & scshape & \scshape & \\ 32 | & textup & upshape & \upshape & \\ 33 | \cmidrule(lr){2-3}\cmidrule(lr){4-4} 34 | Default & textnormal & normalfont & \normalfont & \\ 35 | \bottomrule[1.5pt] 36 | \end{tabular} 37 | \caption{\LaTeX\ font selection} 38 | \end{table} 39 | \end{document} -------------------------------------------------------------------------------- /Chapter_07_-_Using_Cross-References/01_label_ref.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \begin{document} 3 | \chapter{Statistics} 4 | \section{Most used packages by LaTeX.org users} 5 | \label{sec:packages} 6 | The Top Five packages, used by LaTeX.org 7 | members\footnote{according to the 2021 survey on 8 | LaTeX.org\label{fn:project}}: 9 | \begin{enumerate} 10 | \item graphicx\label{item:graphicx} 11 | \item babel 12 | \item amsmath\label{item:amsmath} 13 | \item geometry 14 | \item hyperref 15 | \end{enumerate} 16 | \chapter{Mathematics} 17 | \emph{amsmath}, on position \ref{item:amsmath} 18 | of the top list in section~\ref{sec:packages} on 19 | page~\pageref{sec:packages}, is indispensable to 20 | high-quality mathematical typesetting in \LaTeX. 21 | \emph{graphicx}, on position \ref{item:graphicx}, 22 | is for including images. See also the footnote 23 | \ref{fn:project} on page~\pageref{fn:project}. 24 | \end{document} 25 | -------------------------------------------------------------------------------- /Chapter_07_-_Using_Cross-References/02_page_reference.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \begin{document} 3 | \chapter{Statistics} 4 | \section{Introduction} 5 | \newpage 6 | \section{Most used packages by LaTeX.org users} 7 | \label{sec:packages} 8 | The Top Five packages, used by LaTeX.org 9 | members\footnote{according to the 2021 survey on 10 | LaTeX.org\label{fn:project}}: 11 | \begin{enumerate} 12 | \item graphicx\label{item:graphicx} 13 | \item babel 14 | \item amsmath\label{item:amsmath} 15 | \item geometry 16 | \item hyperref 17 | \end{enumerate} 18 | \chapter{Mathematics} 19 | \emph{amsmath}, on position \ref{item:amsmath} of the top list 20 | in section~\ref{sec:packages} on page~\pageref{sec:packages}, 21 | is indispensable to high-quality mathematical typesetting in 22 | \LaTeX. \emph{graphicx}, on position \ref{item:graphicx}, 23 | is for including images. See also the footnote \ref{fn:project} 24 | on page~\pageref{fn:project}. 25 | \end{document} -------------------------------------------------------------------------------- /Chapter_07_-_Using_Cross-References/03_varioref.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage[nospace]{varioref} 3 | \begin{document} 4 | \chapter{Statistics} 5 | \section{Introduction} 6 | \newpage 7 | \section{Most used packages by LaTeX.org users} 8 | \label{sec:packages} 9 | The Top Five packages, used by LaTeX.org 10 | members\footnote{according to the 2021 survey on 11 | LaTeX.org\label{fn:project}}: 12 | \begin{enumerate} 13 | \item graphicx\label{item:graphicx} 14 | \item babel 15 | \item amsmath\label{item:amsmath} 16 | \item geometry 17 | \item hyperref 18 | \end{enumerate} 19 | \chapter{Mathematics} 20 | \emph{amsmath}, on position \vref{item:amsmath} 21 | of the top list in section~\vref{sec:packages}, 22 | is indispensable to high-quality mathematical 23 | typesetting in \LaTeX. \emph{graphicx}, on position 24 | \vref{item:graphicx}, is for including images. 25 | See also the footnote \vref{fn:project}, that is, 26 | \vpageref{fn:project}. 27 | \end{document} 28 | -------------------------------------------------------------------------------- /Chapter_07_-_Using_Cross-References/04_varioref_figure.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{parskip} 3 | \usepackage{graphicx} 4 | \usepackage{varioref} 5 | \usepackage{blindtext} 6 | \begin{document} 7 | \section{Figures} 8 | \begin{figure} 9 | \includegraphics{example-image} 10 | \caption{An example figure} 11 | \label{fig:example} 12 | \end{figure} 13 | \blindtext 14 | \begin{figure} 15 | \includegraphics{example-image} 16 | \caption{Another example figure} 17 | \label{fig:other} 18 | \end{figure} 19 | \newpage 20 | Same reference code, different output: 21 | \begin{verbatim} 22 | See the \vpageref[above figure][figure]{fig:other} and 23 | the \vpageref[above figure][figure]{fig:example}. 24 | \end{verbatim} 25 | See the \vpageref[above figure][figure]{fig:other} and 26 | the \vpageref[above figure][figure]{fig:example}. 27 | \end{document} -------------------------------------------------------------------------------- /Chapter_07_-_Using_Cross-References/05_varioref_range.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{parskip} 3 | \usepackage{graphicx} 4 | \usepackage[nospace]{varioref} 5 | \usepackage{xcolor} 6 | \usepackage{blindtext} 7 | \begin{document} 8 | \chapter{Figures} 9 | \begin{figure} 10 | \includegraphics{example-image} 11 | \caption{An example figure} 12 | \label{fig:example} 13 | \end{figure} 14 | \clearpage 15 | \begin{figure} 16 | \includegraphics{example-image} 17 | \caption{Another example figure} 18 | \label{fig:other} 19 | \end{figure} 20 | \clearpage 21 | \begin{figure} 22 | \includegraphics{example-image} 23 | \caption{And another example figure} 24 | \label{fig:last} 25 | \end{figure} 26 | \clearpage 27 | See the figures \textcolor{red}{\vpagerefrange{fig:example}{fig:last}} 28 | and figures \textcolor{blue}{\vrefrange{fig:example}{fig:last}}. 29 | \end{document} -------------------------------------------------------------------------------- /Chapter_07_-_Using_Cross-References/06_cleveref.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{cleveref} 3 | \crefname{enumi}{position}{positions} 4 | \begin{document} 5 | \chapter{Statistics} 6 | \label{stats} 7 | \section{Most used packages by LaTeX.org users} 8 | \label{packages} 9 | The Top Five packages, used by LaTeX.org 10 | members\footnote{according to the 2021 survey on 11 | LaTeX.org\label{project}}: 12 | \begin{enumerate} 13 | \item graphicx\label{graphicx} 14 | \item babel 15 | \item amsmath\label{amsmath} 16 | \item geometry 17 | \item hyperref 18 | \end{enumerate} 19 | \chapter{Mathematics} 20 | \label{maths} 21 | \emph{amsmath}, on \cref{amsmath} of the top list in 22 | \cref{packages} of \cref{stats}, is indispensable to 23 | high-quality mathematical typesetting in \LaTeX. 24 | \emph{graphicx}, on \cref{graphicx}, is for 25 | including images. 26 | See also the \cref{project} on \cpageref{project}. 27 | \end{document} 28 | -------------------------------------------------------------------------------- /Chapter_07_-_Using_Cross-References/07_cleveref_ranges.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{cleveref} 3 | \crefname{enumi}{position}{positions} 4 | \begin{document} 5 | \chapter{Statistics} 6 | \label{stats} 7 | \section{Most used packages by LaTeX.org users} 8 | \label{packages} 9 | The Top Five packages, used by LaTeX.org 10 | members\footnote{according to the 2021 survey on 11 | LaTeX.org\label{project}}: 12 | \begin{enumerate} 13 | \item graphicx\label{graphicx} 14 | \item babel 15 | \item amsmath\label{amsmath} 16 | \item geometry 17 | \item hyperref 18 | \end{enumerate} 19 | \chapter{Mathematics} 20 | \label{maths} 21 | See \crefrange{graphicx}{amsmath} and \cpagerefrange{stats}{maths}. 22 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/01_contents.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \setcounter{tocdepth}{3} 3 | \begin{document} 4 | \tableofcontents 5 | \part{First Part} 6 | \chapter*{Preface} 7 | \addcontentsline{toc}{chapter}{Preface} 8 | \chapter{First main chapter} 9 | \section{A section} 10 | \section{Another section} 11 | \subsection{A smaller section} 12 | \subsubsection[Deeper level]{This section has an even deeper 13 | level} 14 | \chapter{Second main chapter} 15 | \part{Second part} 16 | \chapter{Third main chapter} 17 | \appendix 18 | \cleardoublepage 19 | \addtocontents{toc}{\bigskip} 20 | \addcontentsline{toc}{part}{Appendix} 21 | \chapter{Glossary} 22 | \chapter{Symbols} 23 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/02_list_figures.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \setcounter{tocdepth}{3} 3 | \renewcommand{\figurename}{Diagram} 4 | \renewcommand{\listfigurename}{List of Diagrams} 5 | \begin{document} 6 | \tableofcontents 7 | \listoffigures 8 | \part{First Part} 9 | \chapter*{Preface} 10 | \addcontentsline{toc}{chapter}{Preface} 11 | \chapter{First main chapter} 12 | \section{A section} 13 | \begin{figure} 14 | \centering 15 | \fbox{Diagram placeholder} 16 | \caption{Enterprize Organizational Chart} 17 | \end{figure} 18 | \section{Another section} 19 | \subsection{A smaller section} 20 | \subsubsection[Deeper level]{This section has an even deeper 21 | level} 22 | \chapter{Second main chapter} 23 | \part{Second part} 24 | \chapter{Third main chapter} 25 | \addtocontents{lof}{Network Diagrams:} 26 | \begin{figure} 27 | \centering 28 | \fbox{Diagram placeholder} 29 | \caption{Network overview} 30 | \end{figure} 31 | \begin{figure} 32 | \centering 33 | \fbox{Diagram placeholder} 34 | \caption{WLAN Design} 35 | \end{figure} 36 | \appendix 37 | \cleardoublepage 38 | \addtocontents{toc}{\bigskip} 39 | \addcontentsline{toc}{part}{Appendix} 40 | \chapter{Glossary} 41 | \chapter{Symbols} 42 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/03_index.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{index} 3 | \makeindex 4 | \setcounter{tocdepth}{3} 5 | \renewcommand{\figurename}{Diagram} 6 | \renewcommand{\listfigurename}{List of Diagrams} 7 | \begin{document} 8 | \tableofcontents 9 | \listoffigures 10 | \part{First Part} 11 | \chapter*{Preface} 12 | \addcontentsline{toc}{chapter}{Preface} 13 | \chapter{First main chapter} 14 | \section{A section} 15 | \begin{figure} 16 | \centering 17 | \fbox{Diagram placeholder} 18 | \caption{\index{enterprise}Enterprise Organizational Chart} 19 | \end{figure} 20 | \section{Another section} 21 | \subsection{A smaller section} 22 | \subsubsection[Deeper level]{This section has an even deeper 23 | level} 24 | \chapter{Second main chapter} 25 | \part{Second part} 26 | \chapter{Third main chapter} 27 | \addtocontents{lof}{Network Diagrams:} 28 | \index{network} 29 | \begin{figure} 30 | \centering 31 | \fbox{Diagram placeholder} 32 | \caption{Network overview} 33 | \end{figure} 34 | \begin{figure} 35 | \centering 36 | \fbox{Diagram placeholder} 37 | \caption{WLAN Design} 38 | \end{figure} 39 | \appendix 40 | \cleardoublepage 41 | \addtocontents{toc}{\bigskip} 42 | \addcontentsline{toc}{part}{Appendix} 43 | \chapter{Glossary} 44 | \chapter{Symbols} 45 | \clearpage 46 | \addcontentsline{toc}{chapter}{Index} 47 | \printindex 48 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/04_index_advanced.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{index} 3 | \makeindex 4 | \setcounter{tocdepth}{3} 5 | \renewcommand{\figurename}{Diagram} 6 | \renewcommand{\listfigurename}{List of Diagrams} 7 | \newcommand{\group}{\TeX\ Users Group} 8 | \begin{document} 9 | \tableofcontents 10 | \listoffigures 11 | \part{First Part} 12 | \chapter*{Preface} 13 | \addcontentsline{toc}{chapter}{Preface} 14 | \chapter{First main chapter} 15 | \section{A section} 16 | \begin{figure} 17 | \centering 18 | \fbox{Diagram placeholder} 19 | \caption{\index{enterprise}Enterprise Organizational Chart} 20 | \end{figure} 21 | \index{enterprise!organization} 22 | \index{enterprise!organization!sales} 23 | \index{enterprise!organization!controlling} 24 | \index{enterprise!organization!operation} 25 | \section{Another section} 26 | \subsection{A smaller section} 27 | \subsubsection[Deeper level]{This section has an even deeper 28 | level} 29 | \chapter{Second main chapter} 30 | \part{Second part} 31 | \chapter{Third main chapter} 32 | \index{network|(} 33 | \addtocontents{lof}{Network Diagrams:} 34 | \index{network} 35 | \index{network!overview} 36 | \begin{figure} 37 | \centering 38 | \fbox{Diagram placeholder} 39 | \caption{Network overview} 40 | \end{figure} 41 | \begin{figure} 42 | \centering 43 | \fbox{Diagram placeholder} 44 | \caption{WLAN Design} 45 | \end{figure} 46 | \clearpage 47 | % index commands for testing 48 | \index{wireless|see{WLAN}} 49 | \index{WLAN|emph} 50 | \index{Gamma@$\Gamma$} 51 | \index{\group\ sorted wrong} 52 | \index{TeX@\group\ sorted correctly} 53 | \index{schon@sch\"{o}n} 54 | \index{exclamation ("!)!loud} 55 | End of network chapter. 56 | \index{network|)} 57 | \appendix 58 | \cleardoublepage 59 | \addtocontents{toc}{\bigskip} 60 | \addcontentsline{toc}{part}{Appendix} 61 | \chapter{Glossary} 62 | \chapter{Symbols} 63 | \clearpage 64 | \addcontentsline{toc}{chapter}{Index} 65 | \printindex 66 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/05_index_iso_style.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage{index} 3 | \makeindex 4 | \setcounter{tocdepth}{3} 5 | \renewcommand{\figurename}{Diagram} 6 | \renewcommand{\listfigurename}{List of Diagrams} 7 | \newcommand{\group}{\TeX\ Users Group} 8 | \begin{document} 9 | \tableofcontents 10 | \listoffigures 11 | \part{First Part} 12 | \chapter*{Preface} 13 | \addcontentsline{toc}{chapter}{Preface} 14 | \chapter{First main chapter} 15 | \section{A section} 16 | \begin{figure} 17 | \centering 18 | \fbox{Diagram placeholder} 19 | \caption{\index{enterprise}Enterprise Organizational Chart} 20 | \end{figure} 21 | \index{enterprise!organization} 22 | \index{enterprise!organization!sales} 23 | \index{enterprise!organization!controlling} 24 | \index{enterprise!organization!operation} 25 | \section{Another section} 26 | \subsection{A smaller section} 27 | \subsubsection[Deeper level]{This section has an even deeper 28 | level} 29 | \chapter{Second main chapter} 30 | \part{Second part} 31 | \chapter{Third main chapter} 32 | \index{network|(} 33 | \addtocontents{lof}{Network Diagrams:} 34 | \index{network} 35 | \index{network!overview} 36 | \begin{figure} 37 | \centering 38 | \fbox{Diagram placeholder} 39 | \caption{Network overview} 40 | \end{figure} 41 | \begin{figure} 42 | \centering 43 | \fbox{Diagram placeholder} 44 | \caption{WLAN Design} 45 | \end{figure} 46 | \clearpage 47 | % index commands for testing 48 | \index{wireless|see{WLAN}} 49 | \index{WLAN|emph} 50 | \index{Gamma@$\Gamma$} 51 | \index{\group\ sorted wrong} 52 | \index{TeX@\group\ sorted correctly} 53 | \index{schon@sch\"{o}n} 54 | \index{exclamation ("!)!loud} 55 | End of network chapter. 56 | \index{network|)} 57 | \appendix 58 | \cleardoublepage 59 | \addtocontents{toc}{\bigskip} 60 | \addcontentsline{toc}{part}{Appendix} 61 | \chapter{Glossary} 62 | \chapter{Symbols} 63 | \clearpage 64 | \addcontentsline{toc}{chapter}{Index} 65 | \printindex 66 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/06_bibliography.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \section*{Recommended texts} 4 | To study \TeX\ in depth, see \cite{DK86}. For writing math texts, 5 | see \cite{DK89}. 6 | \begin{thebibliography}{8} 7 | \bibitem{DK86} D.E. Knuth, \emph{The {\TeX}book}, 1986 8 | \bibitem{DK89} D.E. Knuth, \emph{Typesetting Concrete 9 | Mathematics}, 1989 10 | \end{thebibliography} 11 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/07_bibliography_labels.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \section*{Recommended texts} 4 | To study \TeX\ in depth, see \cite{DK86}. For writing math texts, 5 | see \cite{DK89}. 6 | \begin{thebibliography}{Knuth89} 7 | \bibitem[Knuth86]{DK86} D.E. Knuth, \emph{The {\TeX}book}, 1986 8 | \bibitem[Knuth89]{DK89} D.E. Knuth, \emph{Typesetting Concrete 9 | Mathematics}, 1989 10 | \end{thebibliography} 11 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/08_bibtex.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \section*{Recommended texts} 4 | To study \TeX\ in depth, see \cite{DK86}. For writing math texts, 5 | see \cite{DK89}. 6 | \bibliographystyle{alpha} 7 | \bibliography{example} 8 | \end{document} -------------------------------------------------------------------------------- /Chapter_08_-_Listing_Contents_and_References/example.bib: -------------------------------------------------------------------------------- 1 | @book{DK86, 2 | author = "D.E. Knuth", 3 | title = "The {\TeX}book", 4 | publisher = "Addison Wesley", 5 | year = 1986 6 | } 7 | @article{DK89, 8 | author = "D.E. Knuth", 9 | title = "Typesetting Concrete Mathematics", 10 | journal = "TUGboat", 11 | volume = 10, 12 | number = 1, 13 | pages = "31--36", 14 | month = apr, 15 | year = 1989 16 | } 17 | -------------------------------------------------------------------------------- /Chapter_09_-_Writing_Math_Formulas/01_equations.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \section*{Quadratic equations} 4 | The quadratic equation 5 | \begin{equation} 6 | \label{quad} 7 | ax^2 + bx + c = 0, 8 | \end{equation} 9 | where \( a, b \) and \( c \) are constants and \( a \neq 0 \), 10 | has two solutions for the variable \( x \): 11 | \begin{equation} 12 | \label{root} 13 | x_{1,2} = \frac{-b \pm \sqrt{b^2-4ac}}{2a}. 14 | \end{equation} 15 | If the \emph{discriminant} \( \Delta \) with 16 | \[ 17 | \Delta = b^2 - 4ac 18 | \] 19 | is zero, then the equation (\ref{quad}) has a double solution: 20 | (\ref{root}) becomes 21 | \[ 22 | x = - \frac{b}{2a}. 23 | \] 24 | \end{document} -------------------------------------------------------------------------------- /Chapter_09_-_Writing_Math_Formulas/02_subscripts_superscripts.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \[ 4 | x_1^2 + x_2^2 = 1, \quad 2^{2^x} = 64 5 | \] 6 | \end{document} -------------------------------------------------------------------------------- /Chapter_09_-_Writing_Math_Formulas/03_operators.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | \[ 4 | \lim_{n=1, 2, \ldots} a_n \qquad \max_{x{$}c<{$}@{~}l}} 9 | \toprule 10 | \acute{a} & \verb|\acute{a}| &\check{a} & \verb|\check{a}| &\grave{a} & \verb|\grave{a}| &\tilde{a} & \verb|\tilde{a}| \\ 11 | \bar{a} & \verb|\bar{a}| & \ddot{a} & \verb|\ddot{a}| & \hat{a} & \verb|\hat{a}| & \vec{a} & \verb|\vec{a}| \\ 12 | \breve{a} & \verb|\breve{a}| & \dot{a} & \verb|\dot{a}| & \mathring{a} & \verb|\mathring{a}| \\ 13 | \midrule 14 | \multicolumn{8}{c}{\textbf{Extensible}} \\ 15 | \multicolumn{4}{c}{$\widehat{abc}$\,\ \texttt{\string\widehat\{abc\}}} & \multicolumn{4}{c}{$\widetilde{abc}$\,\ \texttt{\string\widetilde\{abc\}}}\\ 16 | \bottomrule 17 | \end{tabular} 18 | \end{document} -------------------------------------------------------------------------------- /Chapter_09_-_Writing_Math_Formulas/36_stack_symbols.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{amsmath} 3 | \begin{document} 4 | \[ 5 | \underset{\circ}{\cap} \neq \overset{\circ}{\cup} 6 | \] 7 | \end{document} 8 | -------------------------------------------------------------------------------- /Chapter_09_-_Writing_Math_Formulas/37_stack_relation.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{amsmath} 3 | \begin{document} 4 | \[ 5 | X \stackrel{\text{def}}{=} 0 6 | \] 7 | \end{document} 8 | -------------------------------------------------------------------------------- /Chapter_09_-_Writing_Math_Formulas/38_theorem.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{amsmath} 3 | \newtheorem{thm}{Theorem} 4 | \newtheorem{dfn}[thm]{Definition} 5 | \begin{document} 6 | \begin{dfn} 7 | A quadratic equation is an equation of the form 8 | \begin{equation} 9 | \label{quad} 10 | ax^2 + bx + c = 0, 11 | \end{equation} 12 | where \( a, b \) and \( c \) are constants and \( a \neq 0 \). 13 | \end{dfn} 14 | \begin{thm} 15 | A quadratic equation (\ref{quad}) has two solutions for the 16 | Variable \( x \): 17 | \begin{equation} 18 | \label{root} 19 | x_{1,2} = \frac{-b \pm \sqrt{b^2-4ac}}{2a}. 20 | \end{equation} 21 | \end{thm} 22 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/01_lmodern.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{lmodern} 6 | \begin{document} 7 | \large 8 | \pangram{\rmfamily} 9 | \pangram{\sffamily} 10 | \pangram{\ttfamily} 11 | \pangram{\itshape} 12 | \pangram{\slshape} 13 | \[ 14 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 15 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 16 | \] 17 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/02_kpfonts.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{kpfonts} 6 | \begin{document} 7 | \large 8 | \pangram{\rmfamily} 9 | \pangram{\sffamily} 10 | \pangram{\ttfamily} 11 | \pangram{\itshape} 12 | \pangram{\slshape} 13 | \[ 14 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 15 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 16 | \] 17 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/03_kpfonts_light.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage[light]{kpfonts} 6 | \begin{document} 7 | \large 8 | \pangram{\rmfamily} 9 | \pangram{\sffamily} 10 | \pangram{\ttfamily} 11 | \pangram{\itshape} 12 | \pangram{\slshape} 13 | \[ 14 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 15 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 16 | \] 17 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/04_times_roman.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{newtxtext} 6 | \usepackage{newtxmath} 7 | \begin{document} 8 | \large 9 | \pangram{\rmfamily} 10 | \[ 11 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 12 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 13 | \] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/05_palatino.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{newpxtext} 6 | \usepackage{newpxmath} 7 | \begin{document} 8 | \large 9 | \pangram{\rmfamily} 10 | \[ 11 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 12 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 13 | \] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/06_charter.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage[charter]{mathdesign} 6 | \begin{document} 7 | \large 8 | \pangram{\rmfamily} 9 | \[ 10 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 11 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 12 | \] 13 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/07_new_century.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{newcent} 6 | \usepackage{fouriernc} 7 | \begin{document} 8 | \large 9 | \pangram{\rmfamily} 10 | \[ 11 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 12 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 13 | \] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/08_concrete.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{concrete} 6 | \usepackage{concmath} 7 | \begin{document} 8 | \large 9 | \pangram{\rmfamily} 10 | \[ 11 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 12 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 13 | \] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/09_kerkis.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{kmath} 6 | \usepackage{kerkis} 7 | \begin{document} 8 | \large 9 | \pangram{\rmfamily} 10 | \[ 11 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 12 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 13 | \] 14 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/10_arev.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{arev} 6 | \begin{document} 7 | \large 8 | \pangram{\sffamily} 9 | \[ 10 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 11 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 12 | \] 13 | \end{document} 14 | -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/11_cmbright.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{cmbright} 6 | \begin{document} 7 | \large 8 | \pangram{\sffamily} 9 | \[ 10 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 11 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 12 | \] 13 | \end{document} 14 | -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/12_kurier.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage[math]{kurier} 6 | \begin{document} 7 | \large 8 | \pangram{\normalfont} 9 | \[ 10 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 11 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 12 | \] 13 | \end{document} 14 | -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/13_helvetica.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage[scaled=0.95]{helvet} 6 | \usepackage{sfmath} 7 | \begin{document} 8 | \large 9 | \pangram{\sffamily} 10 | \[ 11 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 12 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 13 | \] 14 | \end{document} 15 | -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/14_courier.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{courier} 6 | \begin{document} 7 | \large 8 | \pangram{\ttfamily} 9 | \end{document} 10 | -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/15_inconsolata.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{inconsolata} 6 | \begin{document} 7 | \large 8 | \pangram{\ttfamily} 9 | \end{document} 10 | -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/16_bera_mono.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{beramono} 6 | \begin{document} 7 | \large 8 | \pangram{\ttfamily} 9 | \end{document} 10 | -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/17_calligra.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{calligra} 6 | \begin{document} 7 | \large 8 | \pangram{\calligra} 9 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/18_miama.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage[T1]{fontenc} 5 | \usepackage{miama} 6 | \begin{document} 7 | \large 8 | \pangram{\fmmfamily} 9 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/19_segoe.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{fontspec} 3 | \setmainfont{Segoe UI Semilight} 4 | \begin{document} 5 | \large 6 | The quick brown fox jumps over the lazy dog. 1234567890 7 | \end{document} -------------------------------------------------------------------------------- /Chapter_10_-_Using_Fonts/20_multiple_fonts.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \newcommand{\pangram}[1]{{#1 The quick brown fox jumps over 3 | the lazy dog. 1234567890\par}} 4 | \usepackage{fontspec} 5 | \usepackage{unicode-math} 6 | \setmainfont{Cambria} 7 | \setsansfont{Segoe UI}[Scale=MatchLowercase] 8 | \setmonofont{Lucida Console}[Scale=MatchLowercase] 9 | \setmathfont{Cambria Math}[Scale=MatchLowercase] 10 | 11 | \begin{document} 12 | \large 13 | \pangram{\rmfamily} 14 | \pangram{\sffamily} 15 | \pangram{\ttfamily} 16 | \[ 17 | \int_a^b \! f(x) \, dx = \lim_{\Delta x \rightarrow 0} 18 | \sum_{i=1}^{n} f(x_i) \,\Delta x_i 19 | \] 20 | \end{document} -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/01_big_document.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \input{preamble} 3 | \begin{document} 4 | \frontmatter 5 | \include{dedication} 6 | \tableofcontents 7 | \listoftables 8 | \listoffigures 9 | \mainmatter 10 | \include{chapter1} 11 | \include{chapter2} 12 | \backmatter 13 | \include{proofs} 14 | \nocite{*} 15 | \bibliographystyle{plainnat} 16 | \bibliography{example} 17 | \end{document} 18 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/02_titlepage.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \usepackage[a5paper]{geometry}% could go to the preamble instead 3 | \input{preamble} 4 | \begin{document} 5 | \frontmatter 6 | \include{title} 7 | \include{dedication} 8 | \tableofcontents 9 | \listoftables 10 | \listoffigures 11 | \mainmatter 12 | \include{chapter1} 13 | \include{chapter2} 14 | \backmatter 15 | \include{proofs} 16 | \nocite{*} 17 | \bibliographystyle{plainnat} 18 | \bibliography{example} 19 | \end{document} 20 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/03_letter.tex: -------------------------------------------------------------------------------- 1 | \documentclass[fontsize=12pt, paper=a4]{scrlttr2} 2 | \usepackage[utf8]{inputenc} 3 | \setkomavar{fromname}{My name} % your name 4 | \setkomavar{fromaddress}{Street, City} 5 | \setkomavar{signature}{Name} % printed after the \closing 6 | \setkomavar{subject}{Invoice 1/2021} % subject of the letter 7 | \setkomavar{place}{Place} 8 | \setkomavar{date}{January 1, 2021} 9 | \begin{document} 10 | \begin{letter}{Customer Name\\ Street No. X \\ City \\ Zipcode} 11 | \opening{To whom it may concern} % eg. Hello 12 | Text follows \ldots 13 | \bigskip 14 | \closing{With kind regards} %eg. Regards 15 | \end{letter} 16 | \end{document} 17 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/chapter1.tex: -------------------------------------------------------------------------------- 1 | \chapter{Equations} 2 | \section{Quadratic equations} 3 | \begin{dfn} 4 | A quadratic equation is an equation of the form 5 | \begin{equation} 6 | \label{quad} 7 | ax^2 + bx + c = 0 8 | \end{equation} 9 | where \( a, b \) and \( c \) are constants and \( a \neq 0 \). 10 | \end{dfn} 11 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/chapter2.tex: -------------------------------------------------------------------------------- 1 | \chapter{Equation Systems} 2 | \section{Linear Systems} 3 | ... 4 | \section{Non-linear Systems} 5 | ... 6 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/dedication.tex: -------------------------------------------------------------------------------- 1 | \chapter{Dedication} 2 | This book is dedicated to one of the greatest mathematicians of 3 | all time: Carl Friedrich Gauss. Without him, this book wouldn't 4 | have been possible. 5 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/equations.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \input{preamble} 3 | \begin{document} 4 | \tableofcontents 5 | \include{chapter1} 6 | \include{chapter2} 7 | \end{document} 8 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/preamble.tex: -------------------------------------------------------------------------------- 1 | \usepackage[english]{babel} 2 | \usepackage[T1]{fontenc} 3 | \usepackage{lmodern} 4 | \usepackage{microtype} 5 | \usepackage{natbib} 6 | \usepackage{tocbibind} 7 | \usepackage{amsmath} 8 | \usepackage{amsthm} 9 | \newtheorem{thm}{Theorem}[chapter] 10 | \newtheorem{lem}[thm]{Lemma} 11 | \theoremstyle{definition} 12 | \newtheorem{dfn}[thm]{Definition} 13 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/proofs.tex: -------------------------------------------------------------------------------- 1 | \chapter{Proofs} 2 | ... 3 | -------------------------------------------------------------------------------- /Chapter_11_-_Developing_Large_Documents/title.tex: -------------------------------------------------------------------------------- 1 | \begin{titlepage} 2 | \raggedleft 3 | {\Large The Author\\[1in]} 4 | {\large The Big Book of\\} 5 | {\Huge\scshape Equations\\[.2in]} 6 | {\large Packed with hundreds of examples and solutions\\} 7 | \vfill 8 | {\itshape 2011, Publishing company} 9 | \end{titlepage} 10 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/01_equation.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \input{preamble} 3 | \begin{document} 4 | \tableofcontents 5 | \include{chapter1} 6 | \include{chapter2} 7 | \end{document} 8 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/02_big_document.tex: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | \input{preamble} 3 | \begin{document} 4 | \frontmatter 5 | \include{dedication} 6 | \tableofcontents 7 | \listoftables 8 | \listoffigures 9 | \mainmatter 10 | \include{chapter1} 11 | \include{chapter2} 12 | \backmatter 13 | \include{proofs} 14 | \nocite{*} 15 | \bibliographystyle{plainnat} 16 | \bibliography{example} 17 | \end{document} 18 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/02_bookmarks.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{bm} 3 | \usepackage[colorlinks=true,psdextra,unicode]{hyperref} 4 | \begin{document} 5 | \pdfbookmark[1]{\contentsname}{toc} 6 | \tableofcontents 7 | \pdfbookmark[1]{Abstract}{abstract} 8 | \begin{abstract} 9 | \centering 10 | Sample sections follow. 11 | \end{abstract} 12 | \section{The equation \texorpdfstring{$y=x^2$}{y=x\texttwosuperior}} 13 | \section{\texorpdfstring{$\gamma$}{\textgamma} radiation} 14 | \section[\texorpdfstring{Let $\int\sim\sum$ for 15 | $n\rightarrow\infty$} 16 | {Let \int\sim\sum\ for n\rightarrow\infty}] 17 | {Let $\bm{\int\sim\sum}$ for $\bm{n\rightarrow\infty}$} 18 | \end{document} 19 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/chapter1.tex: -------------------------------------------------------------------------------- 1 | \chapter{Equations} 2 | \section{Quadratic equations} 3 | \begin{dfn} 4 | A quadratic equation is an equation of the form 5 | \begin{equation} 6 | \label{quad} 7 | ax^2 + bx + c = 0 8 | \end{equation} 9 | where \( a, b \) and \( c \) are constants and \( a \neq 0 \). 10 | \end{dfn} 11 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/chapter2.tex: -------------------------------------------------------------------------------- 1 | \chapter{Equation Systems} 2 | \section{Linear Systems} 3 | ... 4 | \section{Non-linear Systems} 5 | ... 6 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/dedication.tex: -------------------------------------------------------------------------------- 1 | \chapter{Dedication} 2 | This book is dedicated to one of the greatest mathematicians of 3 | all time: Carl Friedrich Gauss. Without him, this book wouldn't 4 | have been possible. 5 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/preamble.tex: -------------------------------------------------------------------------------- 1 | \usepackage{lmodern} 2 | \usepackage{microtype} 3 | \usepackage{natbib} 4 | \usepackage{tocbibind} 5 | \usepackage{amsmath} 6 | \usepackage{amsthm} 7 | % default, figures 12.1 and 12.2: 8 | %\usepackage{hyperref} 9 | % colored, figure 12.3: 10 | \usepackage[colorlinks=true,linkcolor=red]{hyperref} 11 | % metadata, figure 12.4: 12 | \hypersetup{pdfauthor={Carl Friedrich Gauss}, 13 | pdftitle={The Big Book of Equations}, 14 | pdfsubject={Solving Equations and Equation Systems}, 15 | pdfkeywords={equations,mathematics}} 16 | 17 | \newtheorem{thm}{Theorem}[chapter] 18 | \newtheorem{lem}[thm]{Lemma} 19 | \theoremstyle{definition} 20 | \newtheorem{dfn}[thm]{Definition} 21 | % with titlesec, figure 12.6 22 | \usepackage{titlesec} 23 | \titleformat{\chapter}[display] 24 | {\normalfont\sffamily\Large\bfseries\centering} 25 | {\chaptertitlename\ \thechapter}{0pt}{\Huge} 26 | \titleformat{\section} 27 | {\normalfont\sffamily\large\bfseries\centering} 28 | {\thesection}{1em}{} 29 | \titlespacing*{\chapter}{0pt}{30pt}{20pt} 30 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/proofs.tex: -------------------------------------------------------------------------------- 1 | \chapter{Proofs} 2 | ... 3 | -------------------------------------------------------------------------------- /Chapter_12_-_Enhancing_Your_Documents_Further/title.tex: -------------------------------------------------------------------------------- 1 | \begin{titlepage} 2 | \raggedleft 3 | {\Large The Author\\[1in]} 4 | {\large The Big Book of\\} 5 | {\Huge\scshape Equations\\[.2in]} 6 | {\large Packed with hundreds of examples and solutions\\} 7 | \vfill 8 | {\itshape 2011, Publishing company} 9 | \end{titlepage} 10 | -------------------------------------------------------------------------------- /Chapter_13_-_Troubleshooting/01_test_errror.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \begin{document} 3 | % wrong: 4 | %\Latex\ says: Hello world! 5 | % correct: 6 | \LaTeX\ says: Hello world! 7 | \end{document} -------------------------------------------------------------------------------- /Chapter_13_-_Troubleshooting/02_warning.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \renewcommand{\familydefault}{\sfdefault} 3 | \begin{document} 4 | \emph{Hello world!} 5 | \end{document} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Packt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | # LaTeX-Beginner-s-Guide-Second-Edition 5 | LaTeX-Beginner-s-Guide-Second-Edition, published by Packt 6 | 7 | LaTeX-Beginner-s-Guide-Second-Edition 8 | 9 | This is the code repository for [LaTeX-Beginner-s-Guide-Second-Edition](https://www.packtpub.com/product/latex-beginner-s-guides/9781801078658), published by Packt. 10 | 11 | **Create visually appealing texts, articles, and books for business and science using LaTeX** 12 | 13 | ## What is this book about? 14 | LaTeX is high-quality open source typesetting software that produces professional prints and PDF files. It's a powerful and complex tool with a multitude of features, so getting started can be intimidating. However, once you become comfortable with LaTeX, its capabilities far outweigh any initial challenges, and this book will help you with just that! 15 | 16 | This book covers the following exciting features: 17 | * Make the most of LaTeX's powerful features to produce professionally designed texts 18 | * Download, install and set up LaTeX and use additional styles, templates, and tools 19 | * Typeset math formulas and scientific expressions to the highest standards 20 | * Understand how to include graphics and work with figures and tables 21 | * Discover professional fonts and modern PDF features 22 | 23 | If you feel this book is for you, get your [copy](https://www.amazon.com/dp/1801078653) today! 24 | 25 | https://www.packtpub.com/ 26 | 27 | ## Instructions and Navigations 28 | All of the code is organized into folders. 29 | 30 | The code will look like the following: 31 | ``` 32 | \documentclass{article} 33 | \begin{document} 34 | Besides from {\itshape italics}, words can be {\bfseries bold}, 35 | {\slshape slanted}, or typeset in {\scshape Small Caps}. 36 | \end{document} 37 | 38 | ``` 39 | **Following is what you need for this book:** 40 | 41 | If you are about to write mathematical or scientific papers, seminar handouts, or even plan to write a thesis, this book offers you a fast-paced and practical introduction to LaTeX. School and university students will find this easy-to-follow LaTeX guide helpful, as will mathematicians, physicists, engineers, and humanists. Anybody with high expectations from their software will discover how easy it is to leverage LaTeX's high performance for creating documents. 42 | 43 | With the following software and hardware list you can run all code files present in the book (Chapter 1-13). 44 | 45 | ### Software and Hardware List 46 | 47 | | Chapter | Software required | OS required | 48 | | -------- | -------------------------------------------------------------------------------------| -----------------------------------| 49 | | 1 - 13 | Install LaTeX | Mac OS X, Linux, and other systems | 50 | 51 | ### Related products 52 | * The Official Guide to Mermaid.js [[Packt]](https://www.packtpub.com/product/latex-beginner-s-guides/9781801078023) [[Amazon]](https://www.amazon.com/dp/1801078025) 53 | 54 | * LaTeX Cookbook [[Packt]](https://www.packtpub.com/product/latex-beginner-s-guides/9781784395148) [[Amazon]](https://www.amazon.com/dp/1784395145) 55 | 56 | ## Get to Know the Author 57 | **Stefan Kottwitz** studied mathematics in Jena and Hamburg. He works as a network and IT security engineer both for Lufthansa Industry Solutions and for Eurowings Aviation.For many years, he has been providing LaTeX support on online forums. He maintains the web forums LaTeX.org and goLaTeX.de and the Q&A sites TeXwelt.de and TeXnique.fr.He runs the TeX graphics gallery sites TeXample.net, TikZ.net, and PGFplots.net, the TeXlive.net online compiler, the TeXdoc.org service, and the CTAN.net software mirror.He is a moderator of the TeX Stack Exchange site and matheplanet.com. He publishesideas and news from the TeX world on his blogs LaTeX.net and TeX.co.Before this book, he authored the first edition of LaTeX Beginner's Guide in 2011, and LaTeX Cookbook in 2015, both published by Packt. 58 | ### Download a free PDF 59 | 60 | If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.
61 |

https://packt.link/free-ebook/9781801078658

-------------------------------------------------------------------------------- /cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/LaTeX-Beginner-s-Guide-Second-Edition/2c67293922daf9d855357299998994af53604731/cover.png --------------------------------------------------------------------------------