/media/bill/PROJECTS/System_maintenance/Tex/0_tex formatting summary.txt +-----+ MAIN REFERENCES : TexStudio Menu -> Help -> Latex Manual https://www.sharelatex.com/learn/Main_Page https://www.tug.org/twg/mactex/tutorials/ltxprimer-1.0.pdf India group https://www.latex-project.org/help/documentation/usrguide.pdf +-----+ Packages to load new makefile packages (.sty) download & add .sty file to "/media/bill/PROJECTS/System_maintenance/tex/styFiles/" in preamble of each tex doc using it, add (example) : \usepackage{/media/bill/PROJECTS/System_maintenance/tex/styFiles/setspace} +-----+ General formatting https://stackoverflow.com/questions/13021970/how-do-i-force-a-page-break-in-plain-tex new page \clearpage answered Nov 11 '12 at 12:59, gollum https://www.sharelatex.com/learn/Line_breaks_and_blank_spaces \\ \\[5pt] \newline \break \hspace{1cm} \hfill \hruefill (inserts horizontal ruler) \dotfill (string of dots) \vspace{5cm} \vfill \smallskip (3pt space+-1) \medskip (6pt+-2) \bigskip (12pt+-4) Indents \begin{addmargin}[1em]{2em}% 1em left, 2em right ...some text... \end{addmargin} +-----+ Fonts : command \textmed{} \textbf{} (bold) declaratn {\mdseries .} {\bfseries .} non-cumul \bf upright italic slanted small cap emphasis (italics within roman, roman within italics). command \textup{} \textit{} \textsl{} \textsc{} \emph{} declaratn {\upshape .} {\itshape .} {\slshape .} {\scshape .} ?? non-cumul ?? \it \sl \sc \em roman sans serif typewriter command \textrm{} \textsf{} \texttt{} declaratn {\rmfamily .} {\sffamily .} {\ttfamily .} non-cumul \rm \sf \tt declaratn {\normalsize .} {\tiny .} {\small .} {\[L,l]arge,\LARGE .} {\[h,H]uge .} non-cumul \sf command \begin{center} \end{center} declaratn \raggedright \tabularnewline[3pt] +-----+ Tables https://tex.stackexchange.com/questions/12703/how-to-create-fixed-width-table-columns-with-text-raggedright-centered-raggedlef edited Jun 6 '17 at 20:32, David Carlisle answered Mar 5 '11 at 12:09, lockstep \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \begin{tabular}{| c | L{3cm} | C{3cm} | R{3cm} |} https://tex.stackexchange.com/questions/2441/how-to-add-a-forced-line-break-inside-a-table-cell https://ask.metafilter.com/60851/How-to-center-vertically-in-a-LaTeX-table makecell package \thead{text_line1 \\ text_line2} \center{text} - center a cell horizontally {|m{1in}|m{1in}|} - center vertically within table +-----+ Images https://www.latex-tutorial.com/tutorials/figures/ Insert an image in LaTeX - Adding a figure or picture \usepackage{graphicx} https://tex.stackexchange.com/questions/95207/how-to-center-a-specific-caption edited Jan 24 '13 at 15:11, Kurt, asked Jan 24 '13 at 15:05, Marcos Roriz Junior \usepackage[justification=centering]{caption} egreg Jan 24 '13 at 15:14 You can use \captionsetup{justification=centering} in the specific table or figure environment (after \usepackage{caption}. – +-----+ Reserved characters, formatting tex command ({} enclose the text,etc) versus declaration (open, no {} - applies to whatever follows) https://www.tug.org/twg/mactex/tutorials/ltxprimer-1.0.pdf - I downloaded this LATEX Tutorials, A PRIMER, Indian TEX Users Group, Trivandrum, India, 2003 September The symbols \ and % are just two of the ten charcaters TEX reserves for its internal use. The complete list is ̃ # $ % ˆ & _ \ { } For the following - follow coding with a space to separate from any following text, code can immediately follow text < \textless > \textgreater Quotes : left " (just '') right " (just ??) Apostophes : left ' (just ') right ' (just ?) Math & Other symbols - great list pp103-108 \= (set tab) \> (tab) \+ (start NxtLine at 1st tab) \- \pushtab (increment tabs) \pulltab (decrement tabs) \‘ (left quote) puts the text following flush right against the right margin. we cannot use a \= or \> after this in a line. \’ (right quote). Within the tabbing environment puts the right text at the current tab and the left text just before this tab with a bit of spacing (preassigned by the parameter \tabbingsep ). https://en.wikibooks.org/wiki/LaTeX/Special_Characters Command Sample Character \% % {\displaystyle \%} \% % \$ $ {\displaystyle \$} \$ $ \{ { {\displaystyle \{} \{ { \_ _ {\displaystyle \_} \_ _ \P ¶ {\displaystyle \P } \P ¶ \ddag n/a ‡ \textbar n/a | \textgreater > {\displaystyle >} > > \textendash n/a – \texttrademark n/a ™ \textexclamdown n/a ¡ \textsuperscript{a} X a {\displaystyle \mathrm {X^{a}} } {\mathrm {X^{{a}}}} a \textdollar $ \pounds n/a £ \# # {\displaystyle \#} \# # \& & {\displaystyle \&} \& & \} } {\displaystyle \}} \} } \S § {\displaystyle \S } \S § \dag n/a † \textbackslash n/a \ \textless < {\displaystyle <} < < \textemdash n/a — \textregistered n/a ® \textquestiondown n/a ¿ \textcircled{a} n/a ⓐ \copyright n/a © printed tilde sign, either write \~{} or \textasciitilde{}. And a visible space ␣ can be created with \textvisiblespace. Special characters that are part of tex - must provide codes: \documentclass{article} \begin{document} \& \% \$ \# \_ \{ \} \< \> \textasciitilde \textasciicircum \textbackslash \end{document} +-----+ Hyperlinks https://tex.stackexchange.com/questions/107832/how-to-create-internet-link-in-pdf \usepackage{hyperref} You have the two parameters backwards. The correct syntax is: \href{}{}. The first parameter is the url to link to, the second is the text to display. edited Apr 10 '13 at 10:46, answered Apr 10 '13 at 2:17, Peter Grill +-----+ # enddoc