You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

451 lines
15 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>examples :: Swarmlab faq</title>
<link rel="canonical" href="http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab_xelatex-thesis/docs/index-setup.html">
<meta name="generator" content="Antora 2.3.4">
<link rel="stylesheet" href="../../_/css/site.css">
<link rel="stylesheet" href="../../_/css/search.css">
<script>var uiRootPath = '../../_'</script>
</head>
<body class="article">
<header class="header">
<nav class="navbar">
<div class="navbar-brand">
<a class="navbar-item" href="http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs">Swarmlab faq</a>
<button class="navbar-burger" data-target="topbar-nav">
<span></span>
<span></span>
<span></span>
</button>
</div>
<div id="topbar-nav" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="#">Home</a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="#">Products</a>
<div class="navbar-dropdown">
<a class="navbar-item" target ="hybridgit" href="https://git.swarmlab.io:3000/zeus/swarmlab-hybrid">Hybrid</a>
<a class="navbar-item" target ="venusgit" href="https://git.swarmlab.io:3000/swarmlab/venus-client">Venus</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="#">Services</a>
<div class="navbar-dropdown">
<a class="navbar-item" target ="hybrid" href="https://api-client.swarmlab.io:8088/">Hybrid</a>
<a class="navbar-item" target ="venus" href="https://api-client.swarmlab.io:8088/">Venus</a>
</div>
</div>
<div class="navbar-item">
<input id="search-input" type="text" placeholder="Search docs">
</div>
</div>
</div>
</nav>
</header>
<div class="body">
<div class="nav-container" data-component="swarmlab_xelatex-thesis" data-version="docs">
<aside class="nav">
<div class="panels">
<div class="nav-panel-menu is-active" data-panel="menu">
<nav class="nav-menu">
<h3 class="title"><a href="index.html">swarmlab_xelatex-thesis</a></h3>
<ul class="nav-list">
<li class="nav-item" data-depth="0">
<ul class="nav-list">
<li class="nav-item" data-depth="1">
<a class="nav-link" href="index.html">usage</a>
</li>
<li class="nav-item is-current-page" data-depth="1">
<a class="nav-link" href="index-setup.html">examples</a>
</li>
</ul>
</li>
</ul>
</nav>
</div>
<div class="nav-panel-explore" data-panel="explore">
<div class="context">
<span class="title">swarmlab_xelatex-thesis</span>
<span class="version">docs</span>
</div>
<ul class="components">
<li class="component">
<a class="title" href="../../CloudComputing_Lab/docs/index.html">CloudComputing_Lab</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../CloudComputing_Lab/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_faq/docs/index.html">swarmlab_faq</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_faq/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_how-to-build-a-Swarmlab-service/docs/index.html">swarmlab_how-to-build-a-Swarmlab-service</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_how-to-build-a-Swarmlab-service/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_infrastructure-as-code/docs/index.html">swarmlab_infrastructure-as-code</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_infrastructure-as-code/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_iot-sensor-node/docs/index.html">swarmlab_iot-sensor-node</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_iot-sensor-node/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_network-adhoc/docs/index.html">swarmlab_network-adhoc</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_network-adhoc/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_poc-datacollector/docs/index.html">swarmlab_poc-datacollector</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_poc-datacollector/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_raspi-docker/docs/index.html">swarmlab_raspi-docker</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_raspi-docker/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_sec-intro/docs/index.html">swarmlab_sec-intro</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_sec-intro/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_sec-iptables/docs/index.html">swarmlab_sec-iptables</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_sec-iptables/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_sec-ssh-tunneling/docs/index.html">swarmlab_sec-ssh-tunneling</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_sec-ssh-tunneling/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_sidecar-firefox/docs/index.html">swarmlab_sidecar-firefox</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_sidecar-firefox/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component">
<a class="title" href="../../swarmlab_tech-list/docs/index.html">swarmlab_tech-list</a>
<ul class="versions">
<li class="version is-latest">
<a href="../../swarmlab_tech-list/docs/index.html">docs</a>
</li>
</ul>
</li>
<li class="component is-current">
<a class="title" href="index.html">swarmlab_xelatex-thesis</a>
<ul class="versions">
<li class="version is-current is-latest">
<a href="index.html">docs</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</aside>
</div>
<main class="article">
<div class="toolbar" role="navigation">
<button class="nav-toggle"></button>
<a href="../../swarmlab_faq/docs/index.html" class="home-link"></a>
<nav class="breadcrumbs" aria-label="breadcrumbs">
<ul>
<li><a href="index.html">swarmlab_xelatex-thesis</a></li>
<li><a href="index-setup.html">examples</a></li>
</ul>
</nav>
</div>
<div class="content">
<aside class="toc sidebar" data-title="Contents" data-levels="2">
<div class="toc-menu"></div>
</aside>
<article class="doc">
<h1 class="page">examples</h1>
<div class="sect1">
<h2 id="_bold_italics_and_underlining"><a class="anchor" href="#_bold_italics_and_underlining"></a>Bold, italics and underlining</h2>
<div class="sectionbody">
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex">The following example collects the various code fragments contained in this article so that you can open them all together in Overleaf.
First example, bold, italics and underline:
Some of the \textbf{greatest} discoveries in \underline{science} were made by \textbf{\emph{accident}}.
\vspace{1.5cm}
Example of italicized text:
Some of the greatest discoveries in science were made by \emph{accident}.
\vspace{1.5cm}
Example of boldface text:
Some of the \textbf{greatest} discoveries in science were made by accident.
\vspace{1.5cm}
Example of underlined text:
Some of the greatest discoveries in \underline{science} were made by accident.
\vspace{1.5cm}
Example of emphasized text in different contexts:
Some of the greatest \emph{discoveries} in science were made by accident.
\textit{Some of the greatest \emph{discoveries} in science were made by accident.}
\textbf{Some of the greatest \emph{discoveries} in science were made by accident.}</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_font_sizes_families_and_styles"><a class="anchor" href="#_font_sizes_families_and_styles"></a>Font sizes, families, and styles</h2>
<div class="sectionbody">
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex">\documentclass{article}
\begin{document}
%Example of different font sizes and types
This is a simple example, {\tiny this will show different font sizes} and also \textsc{different font styles}.
\vspace{1cm}
%Example of different font sizes and types
In this example the {\huge huge font size} is set and the {\footnotesize Foot note size also}. There's a fairly large set of font sizes.
\vspace{1cm}
%Example of different font sizes and types
In this example, a command and a switch are used. \texttt{A command is used to change the style of a sentence}.
\sffamily
A switch changes the style from this point to the end of the document unless another switch is used.
\rmfamily
\vspace{1cm}
%Example of different font sizes and types
Part of this text is written \textsl{in different font style} to highlight it.
\end{document}</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_font_typefaces"><a class="anchor" href="#_font_typefaces"></a>Font typefaces</h2>
<div class="sectionbody">
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex">\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tgbonum}
\begin{document}
This document is a sample document to
test font families and font typefaces.
{\fontfamily{qcr}\selectfont
This text uses a different font typeface
}
\end{document}</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_paragraph_formatting"><a class="anchor" href="#_paragraph_formatting"></a>Paragraph formatting</h2>
<div class="sectionbody">
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex">\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\setlength{\parindent}{4em}
\setlength{\parskip}{1em}
\renewcommand{\baselinestretch}{2.0}
\begin{document}
This is the first paragraph, contains some text to test the paragraph
interlining, paragraph indentation and some other features. Also, is
easy to see how new paragraphs are defined by simply entering a double
blank space.
Hello, here is some text without a meaning. This text should
show what a printed text will look like at this...
\end{document}</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_line_breaks_and_blank_spaces"><a class="anchor" href="#_line_breaks_and_blank_spaces"></a>Line breaks and blank spaces</h2>
<div class="sectionbody">
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex">\begin{document}
Something in this document. This paragraph contains no information and
its purposes is to provide an example on how to insert white spaces
and lines breaks.\\
When a line break is inserted, the text is not indented, there are a
couple of extra commands do line breaks. \newline
This paragraph provides no information whatsoever. We are exploring
line breaks. \hfill \break
And combining two commands
...
...
\begin{figure}
\centering
\includegraphics[width=3cm]{overleaf-logo}
\caption{Overleaf logo}
\end{figure}</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_text_alignment"><a class="anchor" href="#_text_alignment"></a>Text alignment</h2>
<div class="sectionbody">
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex">\begin{document}
\setlength{\hsize}{0.9\hsize}% emphasize effects
\subsection*{Left-aligned example with
\texttt{\string\raggedright}\\ (standard \LaTeX{} command)}
\raggedright\blindtext[2]\par
\subsection*{Left-aligned example with \texttt{\string\RaggedRight}\\ (\texttt{ragged2e} command)}
\RaggedRight\blindtext[2]\par
\end{document}</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_multiple_columns"><a class="anchor" href="#_multiple_columns"></a>Multiple columns</h2>
<div class="sectionbody">
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex">\begin{document}
\maketitle
\begin{multicols}{3}
[
\section{First Section}
All human things are subject to decay. And when fate summons, Monarchs must obey.
]
\blindtext\blindtext
\end{multicols}</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_fonts"><a class="anchor" href="#_fonts"></a>fonts</h2>
<div class="sectionbody">
<div class="paragraph">
<p><a href="https://fonts.google.com/" target="_blank" rel="noopener">fonts</a></p>
</div>
<div class="paragraph">
<p>set of examples</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-latex hljs" data-lang="latex"></code></pre>
</div>
</div>
<div class="paragraph">
<p><a href="https://www.overleaf.com/learn/latex/XeLaTeX#Further_reading" target="_blank" rel="noopener">origin</a></p>
</div>
</div>
</div>
</article>
</div>
</main>
</div>
<footer class="footer">
<p>This page was built using the Antora <a href="https://gitlab.com/antora/antora-ui-default" target="antora">default UI</a> </p>
</footer>
<script src="../../_/js/site.js"></script>
<script src="../../_/js/vendor/lunr.js"></script>
<script src="../../_/js/vendor/search.js" id="search-script" data-base-path="../.." data-page-path="/swarmlab_xelatex-thesis/docs/index-setup.html"></script>
<script async src="../../_/../search-index.js"></script>
<script async src="../../_/js/vendor/highlight.js"></script>
</body>
</html>