# Set the header using Latex with pagestyle

## tyle customization in single-sided documents

Styles can be modified beyond the standard layouts by means of fancyhdr. Below is an example.

\documentclass{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\rfoot{Page \thepage}

\begin{document}

\section{First Section}

Hello,  here  is  some  text  without  a  meaning.   This
text  should  show  what  aprinted text will look like at
this place.  If you read this text, you will get noinformation.
Really?  Is there no information?  Is there a diㄦence between
this ...

\end{document}

To customize the footer and header in your document first import the package fancyhdr with

\usepackage{fancyhdr}

After that, the “fancy” style is set by \pagestyle{fancy}. The command \fancyhf{} clears the header and footer, otherwise the elements of the default “plain” page style will appear.

Below, a description of the rest of the commands and a few more whose usage is similar.

\rhead{Share\LaTeX}
Prints the text included inside the braces on the right side of the header.
\lhead{Guides and tutorials}
Prints the text set inside the braces on the left side of the header.
\chead{ }
Similar to the previous commands, in this case the text is centred on the header.
\rfoot{Page \thepage}
Prints the word “Page” and next the page number which is automatically set by \thepage on the right side of the footer. See the reference guide for a list of commands that automatically generate content (Section numbers, chapters and so on).
\lfoot{ }
This prints the parameter passed inside the braces on the left side of the footer.
\cfoot{ }
Similar to the previous two commands, prints its parameter on the centre of the footer.

# Write the else if block with algorithm2e

To combine such conditions, write each as a separate component using \uIf and \uElseIf (and \uElse, if needed):

To remove the vertical line, add “\SetAlgoNoLine” after “\begin{algorithm}[!h]”

\documentclass{article}

\usepackage[linesnumbered,ruled,vlined]{algorithm2e}

\begin{document}

\begin{algorithm}[H]
\uIf{if condition}{
something if \;
}
\uElseIf{elseif condition}{
something elseif \;
}
\Else{
something else \;
}
\caption{An algorithm}
\end{algorithm}

\end{document}

https://tex.stackexchange.com/a/281240

# how to remove ACM Reference format box in sig-conf template

\settopmatter{printacmref=false} % Removes citation information below abstract
\renewcommand\footnotetextcopyrightpermission[1]{} % removes footnote with conference information in first column
\pagestyle{plain} % removes running headers

https://tex.stackexchange.com/a/346309

# Insert eps graphics with graphicx (file not found)

\usepackage{epstopdf}

I then called the file using:

\includegraphics[scale=0.9]{SecularGmst.eps}

Yepp, but one must take care that epstopdf is loaded after graphics/graphicx. In TeX Live this is not needed.

https://tex.stackexchange.com/a/172725

# list all files in a folder

dir command:

 /B Uses bare format (no heading information or summary).

 /S Displays files in specified directory and all subdirectories.
dir /s /b >filelist.txt

dir > myfile.txt

Takes the output of dir and re-routes it to the file myfile.txt instead of outputting it to the screen

dir /on

List the files in alphabetical order by the names of the files.

# convert image

imagemagick, it’s CLI tool for image manipulation available for Windows as well http://www.imagemagick.org/script/binary-releases.php

magick convert rose.jpg rose.png
magick convert rose.tiff rose.png


Next, we reduce the image size before it is written to the PNG format:

magick convert rose.jpg -resize 50% rose.png


https://www.imagemagick.org/script/convert.php

# subset & superset

In mathematics, especially in set theory, a set A is a subset of a set B, or equivalently B is a superset of A, if A is “contained” inside B, that is, all elements of A are also elements of BA and B may coincide. The relationship of one set being a subset of another is called inclusion or sometimes containment.

If A and B are sets and every element of A is also an element of B, then:

• A is a subset of (or is included in) B, denoted by {\displaystyle A\subseteq B},
or equivalently

• B is a superset of (or includes) A, denoted by {\displaystyle B\supseteq A.}
•

符号”⊆”表示任何子集；符号”⊊”表示真子集。”⊂”也是一个很常见的符号，但有人仅用它表示真子集